@charset "utf-8";
/* ==================================================== */
/*  ローディング
/* ==================================================== */
/*#loader-bg {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  background: #fff;
  z-index: 9999;
}
#loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 195.28px;
  height: auto!important;
  background: #fff;
  opacity: 1;
}
.loading-bar {
  position: relative;
  width: 100%;
  height: 2px;
  background: #EAEAEA;
  margin-top: 100px;
}
.loading-bar:before { 
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  height: 2px;
  -webkit-animation: width-0to100 2.06s ease-out;
  -moz-animation: width-0to100 2.06s ease-out;
  -o-animation: width-0to100 2.06s ease-out;
  -ms-animation: width-0to100 2.06s ease-out;
  animation: width-0to100 2.06s ease-out;
  background: #DE005A;
}
@keyframes width-0to100 {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}*/

/* ==================================================== */
/*  メインビジュアル
/* ==================================================== */
/*#mainvisual*/
#mainvisual {
  position: relative;/*
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: nowrap;*/
  height: calc(100vh - 88px);
  margin-top: 88px;

}

@media screen and (max-width: 767px){
  #mainvisual {
    height: calc(100vh - 95px);
    margin-top: 72px;
  }
}

/* ==================================================== */
/*  テキストエリア
/* ==================================================== */

.mainvisual__ttl-area{
  position: absolute;
  top: 18.49vh;
  left: 6.003vw;
  display: flex;
  flex-direction: column;
  z-index: 15;
}

/* Enterボタン*/
.enter_btn {
  position: relative;
  display: block;
  width: 18.643vw;
  margin-top: 3%;
  padding: 0.878vw 0;
  text-align: center;
  letter-spacing: 1px;
  line-height: 1;
  border: solid 1px #0096DF;
  border-radius: 8px;
  color: #0096DF;
  font-size: 1.9rem;
  font-size: clamp(16px, calc(16px + (24 - 16) * ((100vw - 768px) / (1366 - 768))), 24px);
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all  0.5s ease;
  z-index: 15;
}
.enter_btn:hover {
  color: #fff;
  background: #0096DF;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all  0.5s ease;
}
.enter_btn:after{
  content: '';
  position: absolute;
  top: 40%;
  right: 35px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #0096DF;
  border-right: 1px solid #0096DF;
  transform: rotate(45deg);
  transition: all .3s;
}
.enter_btn:hover:after{
  right: 20px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
}
@media screen and (max-width: 767px) {
  .mainvisual__ttl-area{
    top: auto;
    bottom: 0;
    left: auto;
    padding: 0 20px;
    width: 100%;

  }
  .enter_btn {
    width: 52.267vw;
    margin: 0 auto;
    padding: 12px 0;
    font-size: 1.8rem;
    border-radius: 6px;
  }
  .enter_btn:after {
    top: 37%;
  }
}

/* /Enterボタン*/

h1 {
  white-space: nowrap;
  line-height: 1;
}
h1#title {
  z-index: 15;
}
#title span {
  display: block;
  transform: translateY(105%);
}
.fadein-txt {
  overflow: hidden;
  margin-bottom: 12px;
}
.fadein-txt:nth-child(3) {
  margin-bottom: 32px;
}
.txt-1 {
  width: 41.334vw;
}
.txt-2 {
  width: 66.444vw;
}
.txt-3 {
  width: 47.622vw;
}
.txt-4 {
  width: 18.643vw;
}

@media screen and (max-width:767px) {
  h1#title {
    margin-bottom: 40px;
  }
  .txt-1 {
    width: 79.253vw;
  }
  .txt-2 {
    width: 61.907vw;
  }
  .txt-3 {
    width: 61.525vw;
  }
  .txt-4 {
    width: 48.408vw;
  }
  .txt-5 {
    width: 37.933vw;
  }
  .txt-6 {
    width: 34.605vw;
  }

  .fadein-txt {
    margin-bottom: 8px;
  }
  .fadein-txt:nth-child(3) {
    margin-bottom: 8px;
  }

}


/*テキストアニメーション*/
.fadein-txt span {
  animation: fadeInText 1.3s cubic-bezier(0, 0.82, 0, 0.99) 0.05s forwards;
}
@keyframes fadeInText {
  100% {
    transform: translateY(0);
  }
}
.fadeup {
  animation: fadeup 1.5s cubic-bezier(0, 0.66, 0, 0.99) 0.05s forwards;
}
@keyframes fadeup {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ==================================================== */
/*  右側：ギャラリーエリア
/* ==================================================== */

.mainvisual__slide {
/*  position: absolute;
  right: 5px;*/
  margin: 0 5px 0 auto;
  width: 70.7vw;
}

/*グリッド*/
.grid-container {
  display: grid;
  grid-template-columns: repeat(22, 1fr); /* 10列の均等な幅 */
  grid-template-rows: repeat(3, 1fr); /* 3行に設定 */
  gap: 5px; /* アイテム間の隙間を設定 */
  width: 100%;
  height: calc(100vh - 120px);
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}
/* 基本状態では不透明度0、transitionなし */
.image {
  opacity: 0;
}

/* 初回のフェードインにだけ使うクラス */
.image.fade-in {
  transition: opacity 1.2s linear;
  opacity: 1;
}

/* それ以降の切り替えはJSで制御（class: visible） */
.image.visible {
  opacity: 1;
}

/* 1行目 */
.grid-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 2; } /* A1 */
.grid-item:nth-child(2) { grid-column: 6 / 11; grid-row: 1 / 2; } /* A2 */
.grid-item:nth-child(3) { grid-column: 11 / 18; grid-row: 1 / 2;} /* A3 (1.4列分) */
.grid-item:nth-child(4) { grid-column: 18 / 23; grid-row: 1 / 2; } /* A4 */

/* 2行目 */
.grid-item:nth-child(5) { grid-column: 1 / 8; grid-row: 2 / 3;} /* B1 (1.4列分) */
.grid-item:nth-child(6) { grid-column: 8 / 13; grid-row: 2 / 3; } /* B2 */
.grid-item:nth-child(7) { grid-column: 13 / 18; grid-row: 2 / 3; } /* B3 */
.grid-item:nth-child(8) { grid-column: 18 / 23; grid-row: 2 / 3; } /* B4 */

/* 3行目 */
.grid-item:nth-child(9)  { grid-column: 1 / 6; grid-row: 3 / 4; } /* C1 */
.grid-item:nth-child(10) { grid-column: 6 / 11; grid-row: 3 / 4; } /* C2 */
.grid-item:nth-child(11) { grid-column: 11 / 16; grid-row: 3 / 4; } /* C3 */
.grid-item:nth-child(12) { grid-column: 16 / 23; grid-row: 3 / 4;} /* C4 (1.4列分) */


.grid-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* 最初は画像が見えない */
  transition: opacity 2s ease-in-out; /* フェードイン・フェードアウトのアニメーション */
}


@media screen and (min-width: 768px) {
  .sp-only{
    display: none;
  }
}

@media screen and (max-width:767px) {
  .pc-only{
    display: none;
  }
  .sp-only{
  }

  .mainvisual__slide {
    width: 84.267vw;
  }
  .grid-container {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr); 
    width: 100%;
    height: calc(100vh - 160px);
  }

  .grid-item {
    border-radius: 5px;
  }

  /* 1行目 */
  .grid-item:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 2; } /* A1 */
  .grid-item:nth-child(2) { grid-column: 4 / 6; grid-row: 1 / 2; } /* A2 */
   /* 2行目 */
  .grid-item:nth-child(3) { grid-column: 1 / 3; grid-row: 2 / 3;} /* A3 (1.4列分) */
  .grid-item:nth-child(4) { grid-column: 3 / 6; grid-row: 2 / 3; } /* A4 */
  /* 3行目 */
  .grid-item:nth-child(5) { grid-column: 1 / 4; grid-row: 3 / 4;} /* B1 (1.4列分) */
  .grid-item:nth-child(6) { grid-column: 4 / 6; grid-row: 3 / 4; } /* B2 */
  /* 4行目 */
  .grid-item:nth-child(7) { grid-column: 1 / 3; grid-row: 4 / 5; } /* B3 */
  .grid-item:nth-child(8) { grid-column: 3 / 6; grid-row: 4 / 5; } /* B4 */

}


/* ==================================================== */
/*  フッター
/* ==================================================== */
#footer{
  display: none;
}
.top_fotter{
  margin: 10px 5px 0 auto;
}
.top_fotter p{
  font-size: clamp(8px, calc(8px + (10 - 8) * ((100vw - 768px) / (1366 - 768))), 10px);
  color: #777777;
  text-align: right;
}

@media screen and (max-width:767px) {
  .top_fotter{
    display: none;
  }
}
