html {
    background-image: url(image/bgimg_bg.jpg);
    background-repeat: no-repeat;
    background-size:100% auto;
    }
body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: "UD新ゴ M";
    }

.wrap{
  max-width: 1240px;
  margin: 0 auto;
    overflow: hidden;
    padding: 2em;
}

h2{
    font-size: 1.4em;
    line-height: normal;
    margin: auto auto 0.4em auto;

  border-bottom: solid 2px #c0c0c0;
  position: relative;
}

h2:after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 2px #00B2DB;
  bottom: -2px;
  width: 12%;
}


#logo{
    margin:auto auto 1% auto;
}
#text{
    font-size: 1em;
    padding-top: 1%;
}


/* ----- logo animation ----- */
#logotype{
            margin: auto;
            width:60%;
            height:auto;
            display:block;
            overflow: hidden;
            transform: translate3d(0,0,0);
            text-align: center;
            opacity: 1;
    position: relative;
    top: 45%;

}
.op{
    width: 100%;
    height: 100%;
    background-color: #fff;
    position: absolute;
    z-index: 100;
    overflow: hidden;
}
/* #setumei{
    margin:15px auto auto auto;
    font-size: 0.8em;
    padding-bottom: 19%
} */


/* ----- 背景の上に表示させたいコンテンツ ----- */
.header-title{
 position: relative; /*必ず必要*/
 z-index: 2; /*必ず必要*/
 justify-content: center;
 align-items: center;
 text-align:center;
    margin: auto;
 padding: 12% 0;
 vertical-align: middle;
 max-width: 1028px
}
.contents{
    font-size: 1em;
    padding: 3% 6%;
    background-color: rgba(255,255,255,0.9);
    margin: auto;
}
.aisatsu{
    margin-bottom: 40px;
}

tr{
    vertical-align:top;
}
th{
    text-align: left;
    padding-right: 4em;
}



@media(max-width:750px){
    .wrap{
        padding: 1em;
    }
    h2{
        font-size: 1.2em;}
    .contents{
        font-size: 0.75em;
    }
    #bg-video{
        display: none!important;
    }

    #logo img{
        width:60%;
    }
    #logotype{width: 84%}
    .bg_filter{
        background: none!important;
    }
    th{
        display: block;}
    td{
        display: block;}
}

@media(min-width:751px){
#logo img{
    width:40%;
    }
/* ----- 背景用の動画ファイル ----- */
#bg-video{
 position: fixed;
 right: 0;
 bottom: 0;
 min-width: 100%;
 min-height: 100%;
 width: auto;
 height: auto;
 z-index: -100;
 filter: brightness(113%);
}
}

.gallery {
    display: grid;
    grid-template-columns: 30% 30% 30%;
    grid-template-rows: 30% 30% 30%;
    grid-template-areas:
        "A B C"
        "D E F"
        "G H I";
    gap: 10px;
}

.gallery .photoA {
    grid-area: A;
}

.gallery .photoB {
    grid-area: B;
}

.gallery .photoC {
    grid-area: C;
}

.gallery .photoD {
    grid-area: D;
}

.gallery .photoE {
    grid-area: E;
}

.gallery .photoF {
    grid-area: F;
}

.gallery .photoF {
    grid-area: G;
}

.gallery .photoF {
    grid-area: H;
}

.gallery .photoF {
    grid-area: I;
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 003 */
.button003 a {
    background: #eee;
    border-radius: 50px;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 260px;
    padding: 10px 25px;
    color: #313131;
    transition: 0.3s ease-in-out;
    font-weight: 500;
}
.button003 a:hover {
    background: #313131;
    color: #FFF;
}
.button003 a:after {
    content: '';
    width: 5px;
    height: 5px;
    border-top: 3px solid #313131;
    border-right: 3px solid #313131;
    transform: rotate(45deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
}
.button003 a:hover:after {
    border-color: #FFF;
}

* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  margin: 20px;
  padding: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.image-container {
  text-align: center;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.thumb {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

button {
  padding: 8px 16px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #2980b9;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}
