/* =========================
   Base
========================= */
html { font-size: 62.5%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", "Meiryo", sans-serif;
  font-weight: 400;
}

img{
  width: 100%;
  height: auto;
}

.inner-base{
  max-width: 1200px;
  margin: auto;
}

.pc {
  display: block;
}
.sp {
  display: none;
}
@media (max-width: 768px){
.pc {
  display: none;
}
.sp {
  display: block;
}
}

/* =========================
   MV + Scroll
========================= */
section.mv{
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
section.mv .inner-base{
  width: 50vw;
}
h1.mv{
  opacity: 0;
  animation: mvFadeIn 1.5s ease-out 0.3s forwards;
}
@keyframes mvFadeIn{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.mv picture,
.mv img{
  display: block;
  width: 100%;
  height: auto;
}

.mv-scroll{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100px;
  margin: 0 auto;
  width: fit-content;
  display: grid;
  justify-items: center;
  gap: 10px;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  animation: navFadeIn 1s ease-out 1.8s forwards;
}

.mv-scroll__line{
  width: 2px;
  height: 62px;
  position: relative;
  background: rgba(0, 80, 255, 0.18);
  overflow: hidden;
  border-radius: 2px;
}

.mv-scroll__line::after{
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: rgba(0, 80, 255, 1);
  animation: scrollLine 1.4s ease-in-out infinite;
  border-radius: 2px;
}

.mv-scroll__text{
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(0, 80, 255, 1);
}

@keyframes scrollLine{
  0%   { transform: translateY(-120%); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateY(320%); opacity: 0; }
}

/* =========================
   Section layout (.sec-flex)
========================= */
.sec-flex{
  display: flex;
  align-content: flex-start;
  flex-direction: row;
  gap: 80px;
  margin-bottom: 120px;
}

.sec-flex:nth-child(2n){
  flex-direction: row-reverse;
}

.sec-flex h2{
  width: 14.75%;
}
#sec-concept .contents {
  padding-left: 2vw;
  padding-right: 2vw;
}
#sec-concept .desc p {
  padding-left: 1.5em;
  padding-right: 1.5em;
}
.sec01-img {
    width: 100%;
    margin: 0 auto;
}
.sec-flex .contents{
  width: calc(85.25% - 80px);
  background: #fff;
  border-radius: 90px;
  padding: 6vw 8vw;
  text-align: center;
}

.sec-flex .contents h3{
  word-break: keep-all;
  overflow-wrap: break-word;
  font-size: clamp(18px, 3vw, 25px);
  letter-spacing: 0.05em;
}
.sec-flex .contents .caution h3 {
    font-size: clamp(18px, 3vw, 22px);
    letter-spacing: 0.05em;
    text-align: left;
    margin-bottom: 10px;
}
.sec-flex .contents .caution h4 {
    font-size: clamp(14px, 2vw, 18px);
    letter-spacing: 0.05em;
    text-align: left;
    margin: 10px 0 0 0;
}
.sec-flex .contents .caution p {
  margin: 4px 0;
}
.sec-flex .contents .caution ul {
  margin-top: 4px;
  padding-left: 2rem;
}
.sec-flex .contents .caution ul li {
  text-align: left;
  font-size: clamp(12px, 2vw, 15px);
}
/* desc */
.sec-flex .contents .desc p{
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 3.6rem;
  text-align: justify;
}

.sec-flex .contents .desc table{
  margin: auto;
  font-size: clamp(14px, 1.6vw, 18px);
  text-align: left;
}

.sec-flex .contents .desc table tr{
  display: flex;
  justify-content: flex-start;
  gap: 4rem;
  margin-bottom: 1rem;
}

.sec-flex .contents .desc table th{
  width: 13%;
  text-align-last: justify;
}

.sec-flex .contents .desc table td{
  width: calc(85% - 4rem);
  line-height: 1.8;
}

/* =========================
   Teacher
========================= */
.teacher{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
}

.photo{ width: 23%; }

.sec-flex .contents .profile{
  width: calc(77% - 20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.sec-flex .contents .profile .name{
  display: flex;
  align-items: center;
}

.sec-flex .contents .profile .name h3{
  font-size: clamp(16px, 1.8vw, 20px);
  margin: 0 10px 0 0;
}

.sec-flex .contents .profile .name .furigana{
  text-transform: uppercase;
}

.sec-flex .contents .profile .name .other_post{
  background: #000;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
}

.sec-flex .contents .profile .name .teacher_cat{
  background: #28DEF2;
  color: #fff;
  padding: 6px 10px;
  display: block;
  margin-right: 10px;
  font-size: clamp(12px, 1.3vw, 14px);
  font-weight: 300;
}

.sec-flex .contents .profile .name .teacher_cat.vip{
  background: linear-gradient(
    90deg,
    rgba(104,222,224,1) 0%,
    rgba(104,222,224,1) 17%,
    rgba(55,150,208,1) 50%,
    rgba(33,118,201,1) 75%,
    rgba(13,121,226,1) 100%
  );
}

.sec-flex .contents .profile .title_block{
  display: flex;
  border-top: 1px solid #707070;
  border-bottom: 1px solid #707070;
  width: 100%;
}

.sec-flex .contents .profile .title_block p{
  font-size: clamp(10px, 1.1vw, 12px);
  margin: 10px 0;
  padding: 0 10px;
  border-right: 1px solid #707070;
  line-height: 1.6;
  display: flex;
  align-items: center;
}

.sec-flex .contents .profile .title_block p:last-child{
  border-right: none;
}

.sec-flex .contents .profile .prof_text{
  margin-top: 0;
  text-align: left;
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 2.0;
}

/* =========================
   Curriculum (base = PC layout)
========================= */
.curriculum{
  --line: #222;
  --muted: #666;
  --gap-x: 12px;
  --pad-y: 14px;
  font-feature-settings: "palt";
  font-size: clamp(12px, 1.4vw, 16px);
}

.curriculum__head,
.curriculum__row{
  display: grid;
  grid-template-columns: 100px 1fr 140px;
  column-gap: var(--gap-x);
  align-items: center;
}

.curriculum__head{
  padding: 10px 0 0;
  font-weight: 700;
  letter-spacing: .08em;
}

.curriculum__head > div{
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.curriculum__list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.curriculum__row{
  padding: var(--pad-y) 0 0;
}

/* ※ curriculumのcellは curriculum内に閉じる */
.curriculum .cell{
  min-width: 0;
}

/* PC：セルごとの下線（分割線） */
.curriculum__row .cell{
  padding: 0 8px 12px;
  border-bottom: 1px solid var(--line);
}

/* PC：内容は折り返しで全部表示、他列は高さを揃える */
@media (min-width: 769px){
  .curriculum__row{ align-items: stretch; height: 50px;}

  .curriculum__row .cell{
    display: flex;
    align-items: center;
  }

  .curriculum__row .cell.title{
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
    line-height: 1.8;
  }

  .curriculum .cell.no{
    text-align: center;
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1;
  }

  .curriculum .cell.date{ white-space: nowrap; }
  .curriculum .cell.lect{
    text-align: left;
    white-space: nowrap;
  }
}

/* =========================
   Footer
========================= */
.site-footer{
  color: #fff;
  padding: 56px 20px 28px;
}

.footer-inner{
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 34px;
  justify-items: center;
}

.footer-cta{
  width: min(860px, 100%);
  height: 124px;
  border: 4px solid currentColor;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(139,94,199,1) 0%, rgba(232,154,197,1) 100%);
}

.footer-cta::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(-90deg, rgba(139,94,199,1) 0%, rgba(232,154,197,1) 100%);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 0;
}

.footer-cta > *{
  position: relative;
  z-index: 1;
}

.footer-cta:hover::after{ opacity: 1; }
.footer-cta:hover{ opacity: .9; }

.footer-cta__text{
  font-weight: 700;
  letter-spacing: .04em;
  font-size: clamp(20px, 2.4vw, 34px);
}

.footer-cta__icon{
  position: absolute;
  right: 44px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}

.footer-cta__icon svg{
  width: 100%;
  height: 100%;
}

.footer-contact{
  text-align: center;
  display: grid;
  gap: 10px;
}

.footer-contact__label{
  margin: 0;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 18px;
}

.footer-contact__tel{
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  font-size: clamp(34px, 4vw, 56px);
  pointer-events: none;
}

.footer-contact__mail{
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
}

.footer-contact__company{
  margin: 0;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 18px;
}

.footer-copy{
  opacity: .9;
  font-size: 12px;
  letter-spacing: .04em;
}
.logo-img {
    width: 25%;
    margin: 0 auto;
}

/* =========================
   Background blob (white-heavy + visible motion)
========================= */

/* =========================
   Background (more white + clearer color separation)
========================= */

.bg-blob{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;

  /* ▼中央をしっかり白くする */
  background:
    radial-gradient(circle at 55% 32%,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,0.95) 30%,
      rgba(255,255,255,0.65) 48%,
      rgba(255,255,255,0.15) 70%,
      rgba(255,255,255,0) 85%
    ),
    linear-gradient(
      135deg,
      rgba(255,255,255,0.95) 0%,
      rgba(220,210,240,0.65) 25%,
      rgba(170,155,210,0.55) 60%,
      rgba(120,100,180,0.75) 100%
    );
}

/* 共通 */
.bg-blob::before,
.bg-blob::after{
  content:"";
  position:absolute;
  inset:-35%;
  background-repeat:no-repeat;
  will-change: transform, background-position, opacity;
  filter: blur(4px); /* ← かなり弱く */
}

/* 明るい円 */
.bg-blob::before{
  opacity: 0.75;

  background-image:
    radial-gradient(circle, rgba(180,160,220,1) 0%, rgba(180,160,220,0) 60%),
    radial-gradient(circle, rgba(160,140,210,0.7) 0%, rgba(160,140,210,0) 65%),
    radial-gradient(circle, rgba(200,180,240,0.5) 0%, rgba(200,180,240,0) 68%);

  /* ▼サイズをかなり小さく */
  background-size:
    70vmax 70vmax,
    45vmax 45vmax,
    32vmax 32vmax;

  background-position:
    -10% 85%,
    105% 15%,
    55% -20%;

  animation: blobsA 18s ease-in-out infinite alternate;
}

/* 濃い円 */
.bg-blob::after{
  opacity: 0.45;
  mix-blend-mode: multiply;

  background-image:
    radial-gradient(circle, rgba(100,70,160,0.9) 0%, rgba(100,70,160,0) 65%),
    radial-gradient(circle, rgba(130,100,190,0.6) 0%, rgba(130,100,190,0) 70%);

  background-size:
    85vmax 85vmax,
    40vmax 40vmax;

  background-position:
    110% -10%,
    -25% 60%;

  animation: blobsB 22s ease-in-out infinite alternate;
}

/* 動きを大きくして視認性UP */
@keyframes blobsA{
  0%{
    background-position: -10% 85%, 105% 15%, 55% -20%;
    transform: rotate(0deg) scale(1.05) translate3d(0,0,0);
  }
  50%{
    background-position: 20% 65%, 85% 5%, 35% -5%;
    transform: rotate(12deg) scale(1.15) translate3d(3%, -2%, 0);
  }
  100%{
    background-position: -25% 95%, 120% 30%, 70% -35%;
    transform: rotate(-14deg) scale(1.08) translate3d(-3%, 2%, 0);
  }
}

@keyframes blobsB{
  0%{
    background-position: 110% -10%, -25% 60%;
    transform: rotate(0deg) scale(1.05);
  }
  50%{
    background-position: 80% 10%, -5% 80%;
    transform: rotate(-15deg) scale(1.15);
  }
  100%{
    background-position: 125% 35%, -45% 40%;
    transform: rotate(18deg) scale(1.1);
  }
}


/* =========================
   Mainnav
========================= */
.mainnav{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  opacity: 0;
  animation: navFadeIn 1s ease-out 2.8s forwards;
}
@keyframes navFadeIn{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}
.mainnav.is-fixed{
  position: fixed;
  top: 0;
  bottom: auto;
  opacity: 1;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: navSlideDown 0.3s ease-out;
}
@keyframes navSlideDown{
  from{ transform: translateY(-100%); }
  to{ transform: translateY(0); }
}
.mainnav ul{
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0 16px;
}
.mainnav ul li a{
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 16px 28px;
  transition: opacity 0.3s;
}
.mainnav ul li a:hover,
.mainnav ul li a.is-active{
  opacity: 0.5;
}
section.mv{
  margin-bottom: 80px;
}
.sec-flex{
  scroll-margin-top: 52px;
}

/* =========================
   Responsive (Tablet)
========================= */
@media (min-width: 769px) and (max-width: 1024px){
  section.mv .inner-base{
    width: 60vw;
  }
  .mv-scroll__line{ height: 72px; }
  .mv-scroll__text{ font-size: 10px; }
  .mainnav ul li a{
    font-size: 15px;
    padding: 16px 20px;
  }
}

/* =========================
   Responsive (SP)
========================= */
@media (max-width: 768px){
  section.mv {
      margin: 0 0 60px;
      width: 100%;
      height: var(--vh, 100vh);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0 0 44px;
      box-sizing: border-box;
  }
  section.mv .inner-base{
      width: 70vw;
      flex-shrink: 0;
      margin-top: auto;
  }

  /* MV scroll - absoluteを解除してフロー内に */
  .mv-scroll{
    position: static;
    transform: none;
    margin-top: auto;
    margin-bottom: 50px;
    flex-shrink: 0;
  }
  .mv-scroll__line{ height: 36px; }
  .mv-scroll__text{ font-size: 10px; }

  .mainnav{
    bottom: 0;
    overflow: hidden;
  }
  .mainnav ul{
    padding: 0 8px;
  }
  .mainnav ul li a{
    font-size: 2.8vw;
    padding: 14px 8px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  /* section */
  .sec-flex{
    flex-wrap: wrap;
    gap: 30px;
    scroll-margin-top: 46px;
  }

  .sec-flex h2{
    width: 92%;
    margin: auto;
    max-width: 200px;
  }

  .sec-flex .contents{
    width: 88%;
    margin: auto;
    padding: 30px 20px;
    border-radius: 30px;
  }
  .sec-flex .contents .desc p {
    font-size: clamp(12px, 1.4vw, 15px);
    line-height: 2.2rem;
    text-align: left;
  }

  /* desc table */
  .sec-flex .contents .desc table{
    font-size: clamp(16px, 1.6vw, 19px);
  }

  .sec-flex .contents .desc table th{
    width: 100%;
    text-align-last: unset;
  }

  .sec-flex .contents .desc table tr{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    margin-bottom: 20px;
  }

  .sec-flex .contents .desc table td{
    line-height: 1.6;
    width: 100%;
  }

  /* teacher */
  .teacher{
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .photo{
    width: min(220px, 70vw);
    margin: 0 auto;
  }

  .photo img{
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }

  .sec-flex .contents .profile{
    width: 100%;
    align-items: center;
    margin-bottom: 40px;
  }

  .sec-flex .contents .profile .name{
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .sec-flex .contents .profile .name .teacher_cat{
    width: min(520px, 90%);
    margin-right: 0;
    text-align: center;
    padding: 10px 12px;
    font-size: 14px;
    letter-spacing: .06em;
  }

  .sec-flex .contents .profile .name h3{
    margin: 0;
    text-align: center;
    font-size: 22px;
    letter-spacing: .06em;
  }

  .sec-flex .contents .profile .title_block{
    flex-direction: column;
    /* width: min(520px, 92%); */
  }

  .sec-flex .contents .profile .title_block p{
    width: 100%;
    text-align: center;
    justify-content: center;
    margin: 0;
    padding: 10px 0;
    border-right: none;
    border-bottom: 1px solid #707070;
    font-size: 12px;
    letter-spacing: .04em;
    line-height: 1.6rem;
  }

  .sec-flex .contents .profile .title_block p:last-child{
    border-bottom: none;
  }

  .sec-flex .contents .profile .prof_text{
    width: 100%;
    font-size: 14px;
    line-height: 2;
    text-align: left;
  }

  /* curriculum (SP layout) */
  .curriculum__head{ display:none; }

  /* .curriculum__row{
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "no   lect"
      "date date"
      "title title";
    column-gap: 18px;
    row-gap: 14px;
    padding: 18px 0 20px;
    border-bottom: 1px solid var(--line);
    align-items: start;
  } */
   .curriculum__row{
    display: flex;
    border-bottom: 1px solid var(--line);
  }

  .curriculum__row .cell{
    padding: 0;
    border-bottom: none;
    display: block;
  }

  .curriculum__row .cell::before{ content:none; }

  .curriculum__row .cell.lect { }
  .curriculum__row .cell.date { }
  .curriculum__row .cell.title{ }

  .curriculum__row .cell.lect{
    padding-bottom: 12px;
  }

  .curriculum__row .cell.date{
    font-size: 18px;
    line-height: 1.25;
    white-space: nowrap;
    text-align: left;
    width: 30%;
    padding-bottom: 12px;
  }

  .curriculum__row .cell.title{
    font-size: 16px;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    width: 40%;
  }

  .curriculum__row .cell.lect{
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    text-align: left;
    width: 30%;
  }

  /* footer */
  .site-footer{ padding: 36px 16px 22px; }
  .footer-inner{ gap: 24px; }
  .footer-cta{ height: 88px; border-width: 3px; }
  .footer-cta__icon{ right: 18px; width: 22px; height: 22px; }
  .footer-contact__label{ font-size: 16px; }
  .footer-contact__company{ font-size: 16px; }
  .footer-contact__tel{ pointer-events: visible; }
}

@media (max-width: 420px){
  .footer-cta__text{ letter-spacing: .02em; }
  .mv-scroll__line{ height: 24px; }
  .mv-scroll{ gap: 4px; }
}

