/* =========================
   1. 変数定義
   ========================= */
:root {
  --color_pink: #db4e93;
  --color_green: #008d56;
  --text_black: #222;
  --text_white: #eee;
}
:root {
  --transition-timing: cubic-bezier(0.33, 1, 0.68, 1);
  --curtain-timing: cubic-bezier(0.22, 1, 0.36, 1);
  --curtain-color: #db4e93;
}

/* =========================
   2. ベーススタイル
   ========================= */
body {
  background-attachment: fixed;
  background-image: url("../img/haikei-image.png");
  background-size: 110%;
  background-position-x: -20px;
  margin: 0;
  overflow-x: hidden;
  height: max-content;
}
h1,
h2,
h3 {
  margin: 0;
}
span {
  white-space: nowrap;
}
ul {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
li {
  list-style: circle;
}
a {
  color: var(--text_white);
}
.wrapper {
  max-width: 500px;
  margin: 0 auto;
}
.flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.bg-black {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px 12px;
}
.top-logo {
  padding: 12px 20px;
}

/* =========================
   3. レイアウト制御
   ========================= */
#header,
#main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#header.active,
#main.active {
  visibility: visible;
  opacity: 1;
}
#main {
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch;
    @media (max-width: 767px) {
    overflow-x: hidden;
  }
}
#main .wrapper {
  padding-top: 0;
}

/* .page-nav {
  display: none;
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 12px;
} */

/* =========================
   4. Heroセクション
   ========================= */
/* ---------------hero-------------- */
.hero-header {
  width: 100%;
  height: 100vh;
  background-color: #d3cebd;
}
.hero-wrapper {
  display: flex;
}
.images-list {
  display: flex;
  flex-wrap: nowrap;
  padding: 0 20px;
  gap: 40px;
}
.hero-images__item {
  width: 640px;
  list-style: none;
  img {
    width: 100%;
  }
}
.absotute {
  position: absolute;
  bottom: 20%;
}
.h1-container {
  z-index: 100;
  display: block;
  white-space: nowrap;
  h1 {
    font-size: 8rem;
    color: var(--text_white);
    
    @media (max-width: 767px) {
      font-size: 4rem;
    }
  }
}
.hero-text {
  width: 100%;
  position: absolute;
  bottom: 3%;
  left: 60%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.hero-text p {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0.2rem;
  margin: 0.5rem 0;

  @media (max-width: 767px) {
      font-size: 18px;
  }
}
.scroll-left {
  animation: scroll-left 30s infinite linear 0.5s both;
}
.scroll-right {
  animation: scroll-right 100s infinite linear 0.5s both;
}
@keyframes scroll-left {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes scroll-right {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0%);
  }
}
.fadein {
  animation: fadeIn 0.7s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* =========================
   5. ナビゲーション
   ========================= */
.nav-logo-wrapper {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100%;
  width: calc(50% - 250px);
  display: grid;
  place-content: center stretch;
  z-index: 100;
    @media (max-width: 767px) {
      display: none;
    }
  .sns-icons {
    position: absolute;
    bottom: 3%;
    right: 10%;
    display: flex;
    justify-content: center;
    img {
      width: 32px;
      height: 32px;
      transition: transform 0.3s ease;
      &:hover {
        transform: scale(1.1);
      }
    }
  }
}

.nav-logo {
  padding: 0 15%;
  pointer-events: auto;
  img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: none;
  min-width: unset;
  left: unset;
  transform: translateY(0);
  visibility: visible;
  text-align: left;
  width: calc(50% - 250px);
  height: 100%;
  z-index: 100;

  .nav__item {
    height: 100%;
    padding: 30px 0;
    display: grid;
    grid-template-columns: min(250px, calc(100% - 40px));
    grid-template-rows: max-content max-content;
    align-content: center;
    justify-content: center;

    a {
      text-decoration: none;
      letter-spacing: 2px;
      display: block;
      padding: 12px;
      &:hover {
        opacity: 0.7;
        transition: all 0.3s ease-in-out;
      }
    }

    button {
      width: 100%;
      font-weight: bold;
      padding: 12px 4px;
      border-radius: 100px;
      background-color: var(--text_white);
      color: var(--color_pink);
      border: var(--color_pink) 2px solid;
      cursor: pointer;
      &:last-child {
        margin-top: 32px;
      }
      &:hover {
        background-color: var(--color_pink);
        color: var(--text_white);
        border: var(--text_white) 2px solid;
        transition: all 0.3s ease-in-out;
      }
    }

  }
  @media screen and (max-width: 940px) {
    font-size: 12px;
    letter-spacing: 0;
  }
  @media (max-width: 767px) {
    display: none;
  }
}

/* =========================
   6. Section1
   ========================= */
/* -------------section1------------ */
.sec-1 {
  height: 100vh;
  background-image: url("../img/sec1-back.png");
  background-size: cover;
  background-position: bottom right;
  color: var(--text_white);
  font-size: 14px;
  padding: 60px 20px;
  .box {
    margin-bottom: 40px;
  }
  h3 {
    font-size: 20px;
    margin-bottom: 40px;
    .sub-title {
      font-size: 14px;
    }
  }
  .bg-black {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.33, 1, 0.68, 1) forwards;
    animation-delay: 1s; /* カーテンアニメーション後に開始 */
  }
}
.sec-1 .bg-black:nth-child(2) {
  animation-delay: 1.2s; /* 2つ目の要素は少し遅れて開始 */
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   6. Section2
   ========================= */
.sec-2 {
  height: 100vh;
  background-image: url("../img/sec2-background.png");
  background-size: cover;
  background-position: center;
  display: grid;
  place-content: center;
  padding: 40px 20px;
}

/* =========================
   7. Section3
   ========================= */
.sec-3 {
  height: 100vh;
  background-color: var(--color_pink);
  position: relative;
  color: var(--text_white);
}
.sec3-title {
  width: 100%;
  text-align: center;
  font-size: 28px;
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  margin-top: 28px;
}
.page {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.sec3-page1 {
  z-index: 100;
  .sec3-title {
    margin-top: 0;
  }
  .rounded-box__xs {
    z-index: 10;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #f49ac1;
    border: #008d56 4px solid;
  }
  .teacher-img-box {
    width: 55%;
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: -24px;

    img {
      width: 100%;
      height: auto;
      vertical-align: top;
    }
  }
  .teacher-name-box {
    z-index: 1000;
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    justify-content: center;
    gap: 7%;
    p {
      margin: 0;
    }
    .teacher-name-title {
      font-size: 20px;
      font-weight: bold;
    }
    .kana {
      font-size: 12px;
      line-height: 0.7;
      span {
        padding-left: 16px;
      }
    }
    .jpn {
      font-size: 28px;
      padding-left: 4px;
      font-weight: bold;
    }
    .kor {
      font-size: 12px;
      padding-left: 12px;
      span {
        padding-left: 40px;
      }
    }
  }
}
.rounded-box {
  z-index: 10;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 95%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #f49ac1;
  border: #008d56 4px solid;
}
.text-wrapper {
  z-index: 100;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 460px;
  width: 85%;
  height: 65%;
  background-color: var(--color_pink);
  padding: 40px 20px;
  p {
    font-size: 18px;
    text-align: center;
    line-height: 2;
      @media (max-width: 767px) {
        font-size: 14px;
      }
  }
  .dots {
    z-index: 300;
    width: 70px;
    height: max-content;
    position: absolute;
    display: flex;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: space-between;
  }
  .dot1 {
    align-items: center;
    vertical-align: middle;
    span {
      &:nth-child(1) {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #fff;
      }
      &:nth-child(2) {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, .5);
      }
      &:nth-child(3) {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, .5);
      }
    }
  }
  .dot2 {
    align-items: center;
    vertical-align: middle;
    span {
      &:nth-child(1) {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, .5);        
      }
      &:nth-child(2) {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #fff;
      }
      &:nth-child(3) {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, .5);
      }
    }
  }
  .dot3 {
    align-items: center;
    vertical-align: middle;
    span {
      &:nth-child(1) {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, .5);
      }
      &:nth-child(2) {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, .5);
      }
      &:nth-child(3) {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #fff;
      }
    }
  }
}


.wrap_for_IntersectionObserver {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}

.fcps {
  position: relative;
}
.fcps-inner {
  position: sticky;
  top: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.body-wrap {
  width: 84%;
  margin: auto;
}
.body-wrap > p {
  text-align: center;
  padding: 2em 0 1.5em;
  font-weight: bold;
  font-size: 1.5em;
}

.fcps-targets {
  padding: 0 3% 5%;
}

.fcps_target {
  display: none;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.fcps_target.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
}

.fcps-decisions {
  width: 1%;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  top: 0;
  z-index: -100;
}
.fcps_decision {
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  border-bottom: unset;
  /* &:last-child {
    height: 1vh;
  } */
}


/* =========================
   8. Section4
   ========================= */


/* =========================
   9. カーテンアニメーション
   ========================= */
.curtain-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}
.curtain-wrapper.active {
  visibility: visible;
}
.curtain {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: var(--curtain-color);
  transform-origin: bottom;
  transform: scaleY(0);
  will-change: transform;
}
.curtain::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--curtain-color);
  border-radius: 50% 50% 0 0;
}
@keyframes curtainUp {
  0% {
    transform: scaleY(0);
  }
  100% {
    transform: scaleY(1);
    height: 100vh;
  }
}
@keyframes curtainDown {
  0% {
    transform: scaleY(1);
    transform-origin: top;
    height: 100vh;
  }
  100% {
    transform: scaleY(0);
    transform-origin: top;
  }
}
.curtain-wrapper.active .curtain {
  animation: curtainUp 0.8s var(--curtain-timing) forwards;
}
.curtain-wrapper.closing .curtain {
  animation: curtainDown 0.8s var(--curtain-timing) forwards;
}

/* =========================
   10. ユーティリティ・補助
   ========================= */
/* 必要に応じて追加 */
.scroll_down {
  position: absolute;
  left: 50%;
  bottom: 1%;
  display: block;
  width: 76px;
  z-index: 2;
  text-decoration: none;
  margin-top: 30px;
  height: 76px;
}
.scroll_down span {
  position: absolute;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-left: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  animation: fade 2s infinite;
  opacity: 0;
}
.scroll_down span:nth-of-type(1) {
  animation-delay: 0s;
  transform: rotate(-45deg);
}
.scroll_down span:nth-of-type(2) {
  transform: translateY(16px) rotate(-45deg);
  animation-delay: .15s;
}
.scroll_down span:nth-of-type(3) {
  transform: translateY(32px) rotate(-45deg);
  animation-delay: .3s;
}
@keyframes fade {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* sakai */
.section.sec-8 p  {
    color: #ffffff;
    font-family: Noto Sans JP;
    font-size: 24px;
}

.ryouri   , .tua   , .syokuzi{
    margin: 60px auto;
    position: relative;
}

.ryouri .p1 p {
    font-size: 24px;
    width: 350px;
    height: 70px;
    background-color: #db4e93;
    text-align: center;
    border: 1px solid #fff;
    line-height: 30px;
    letter-spacing: 0.5em;
    position: absolute;
    top: -50px;
    left: 75px;
}
.ryouri .p2 p {
    background-color: #db4e93;
    width: 300px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    letter-spacing: 0.3em;
    position: absolute;
    right: -20px;
    bottom: 130px;
}
.ryouri .tiri {
    position: absolute;
    left: -120px;
    top: -180px;
    z-index: -1;
}
.ryouri .yasai {
    position: absolute;
    right: -60px;
    bottom: -145px;
    z-index: -1;
}
.tua .p1 p {
    background-color: #db4e93;
    width: 350px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    letter-spacing: 0.2em;
    position: absolute;
    bottom: 55px;
    right: 0px;
}
.syokuzi .p1 p {
    width: 350px;
    height: 70px;
    background-color: #db4e93;
    text-align: center;
    line-height: 30px;
    letter-spacing: 0.3em;
    position: absolute;
    right: 15px;
    bottom: -20px;
}
.section.sec-8 .img {
    text-align: center;
}
.syokuzi .kokki img   {
    position: absolute;
    z-index: -1;
    bottom: -70px;
    left: -40px;
}
.main8 {
    background-color: #d3cebd;
    z-index: -2;
    width: 500px;
    border: 5px solid #db4e93;
    margin: 60px auto;
    height: 1500px;
    position: relative;
}
footer {
    width: 500px;
    height: 357px;
    background-color: #008d56;
    position: relative;
	
}
footer p {
    font-family: Noto Sans JP;
    font-size: 14px;
    text-align: center;
    color: #fff;
    vertical-align: middle;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 500px;
}

.section.sec-6 .main6 {
    width: 500px;
    height: 1000px;
    position: relative;
    background-color: #d3cebd;
}
.main6 .seito    {
    vertical-align: middle;
    text-align: center;
    position: absolute;
    top: 280px;
    left: 110px;	
}
.main6 .kanso1 img   {
    position: absolute;
    top: 235px;
    left: 5px;
    opacity: 0;
    transform: translateY(100px);
}
.main6 .kanso2 img  {
    position: absolute;
    top: 220px;
    right: 5px;
    opacity: 0;
    transform: translateY(100px);
}
.main6 .come1 img  {
    position: absolute;
    top: -30px;
    left: -20px;
    opacity: 0;
    transform: translateY(100px);
}
.main6 .come2 img  {
    position: absolute;
    top: 50px;
    right: -10px;
    opacity: 0;
    transform: translateY(100px);
}
.main6 .come3 img  {
    position: absolute;
    top: 297px;
    right: -10px;
    opacity: 0;
    transform: translateY(100px);
}
.main6 .come4 img  {
    position: absolute;
    left: -20px;
    opacity: 0;
    transform: translateY(100px);
    z-index: 1;
    top: 330px;
}
.main6 .come5 img  {
    position: absolute;
    bottom: 37px;
    right: 0px;
    opacity: 0;
    transform: translateY(100px);
    z-index: 1;
}
.main6 .come6 img  {
    position: absolute;
    left: -40px;
    bottom: -10px;
    opacity: 0;
    transform: translateY(100px);
}
.main6 .kanso1 img.in, .main6 .kanso2 img.in, .main6 .come1 img.in, .main6 .come2 img.in, .main6 .come3 img.in, .main6 .come4 img.in, .main6 .come5 img.in, .main6 .come6 img.in{
    opacity: 1;
    transition: 1s;
    transform: translateY(0);

}

.section.sec-5  .main5{
    width: 500px;
    height: 1000px;
    position: relative;
    background-image: url(../../img/sec3-bac.png);

}
.main6 .come1 img {
}

.section.sec-4 .main4{
    width: 500px;
    height: 1000px;
    position: relative;
    background-image: url(../../img/sec2-bac.png);
}
.section.sec-4 .sli , .section.sec-5 .sli{
    position: absolute;
    width: 450px;
    left: 25px;
    top: 240px;
}

.section.sec-5 .p1 {
    color: #fff;
    font-size: 30px;
    font-family: Noto Sans JP;
    width: 350px;
    height: 60px;
    background-color: #008d56;
    position: absolute;
    top: 78px;
    left: 76px;
    text-align: center;
    border-radius: 10px;
    line-height: 60px;
    letter-spacing: 0.3ex;
}
.section.sec-4 .p1 {
    color: #fff;
    font-size: 30px;
    font-family: Noto Sans JP;
    width: 250px;
    height: 60px;
    background-color: #db4e93;
    position: absolute;
    top: 78px;
    left: 125px;
    text-align: center;
    border-radius: 10px;
    line-height: 60px;
    letter-spacing: 0.3ex;
}

.section.sec-4 .p2  , .section.sec-5 .p2{
    text-align: center;
    width: 300px;
    height: 50px;
    position: absolute;
    top: 245px;
    left: 100px;
}
.section.sec-4 .img   , .section.sec-5 .img{
    position: absolute;
    top: 370px;
    margin: 0 auto;
    left: 50px;
    width: 400px;
    height: 200px;
}
.section.sec-4 .circle, .section.sec-5 .circle{
    width: 460px;
    height: 460px;
    border: 3px solid #fff;
    border-radius: 50%;
    position: absolute;
    left: 20px;
    margin: 0px;
    padding: 0px;
    top: 180px;
}
.section.sec-4 .main4{
    position: relative;
    width: 500px;
    height: 1100px;
    z-index: -2;
    background-image: url(../img/sec4-bac.png);
    background-size: auto 1100px;
}
.main5 .ex p {
    font-family: Noto Sans JP;
    margin: 0px;
    font-size: 14px;
    padding-left: 20px;
}

.section.sec-5 ul{
    margin: 0px;
    font-size: 14px;
}
.section.sec-5 li {
    font-family: Noto Sans JP;
    font-size: 14px;
}
.section.sec-5 .main5{
    position: relative;
    width: 500px;
    height: 1100px;
    z-index: -2;
    background-image: url(../img/sec5-bac.png);
    background-size: auto 1100px;
}
