/* ファーストビュー（角を大きく丸めた写真を右に、教室名の札・キャッチ・お知らせを左に重ねる） */
.fv {
  position: relative;
  z-index: 1;
  overflow-x: clip;
}

/* 後ろの縦書きの英字 */
.fv__en {
  position: absolute;
  top: 14px;
  z-index: -2;
  margin: 0;
  color: var(--main);
  font-family: var(--f-maru);
  font-weight: 500;
  font-size: 120px;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.1;
  writing-mode: vertical-rl;
  pointer-events: none;
}
.fv__en--l { left: 0; }
.fv__en--r { right: -12px; top: 320px; }

/* 写真（5 秒ごとに 1 秒かけて重ねて入れ替え、出ている写真はゆっくり縮む） */
.fv__hero {
  position: relative;
  z-index: -1;
  margin-left: 40px;
  height: calc(86.514vw + 123.573px);
  border-radius: 80px 0 0 80px;
  overflow: hidden;
}
@media (max-width: 374px) { .fv__hero { height: 448px; } }
@media (min-width: 768px) { .fv__hero { height: 788px; } }
.fv__slides,
.fv__slides li { position: absolute; inset: 0; }
.fv__slides li { opacity: 0; transition: opacity 1s ease-out; }
.fv__slides li.is-active { opacity: 1; }
.fv__slides img { width: 100%; height: 100%; object-fit: cover; }
.fv__slides li:nth-child(1) img { object-position: 72% center; }
.fv__slides li:nth-child(2) img { object-position: 45% center; }
.fv__slides li:nth-child(3) img { object-position: 74% center; }
@media (min-width: 1000px) {
  .fv__slides li:nth-child(n) img { object-position: center 30%; }
}
.fv__slides li.is-active img { animation: fv-zoom 10s ease-out both; }
@keyframes fv-zoom { from { scale: 1.1; } to { scale: 1; } }
/* キャッチが重なる下の部分を地の色で淡くする（読みやすさのため） */
.fv__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(251, 246, 238, 0.92) 0%, rgba(251, 246, 238, 0.7) 22%, rgba(251, 246, 238, 0) 48%);
  pointer-events: none;
}

/* 教室名の札（左端に付いた白い札） */
.fv__logo {
  position: absolute;
  top: 59px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 24px;
  border-radius: 0 40px 40px 0;
  background: var(--white);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.04);
  color: var(--main-ink);
  font-family: var(--f-maru);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.fv__logo-s { font-size: 12px; letter-spacing: 0.12em; }
.fv__logo-l { margin-top: 2px; font-size: 22px; letter-spacing: 0.08em; }
.fv__logo-en { margin-top: 4px; color: var(--main); font-family: var(--f-num); font-weight: 500; font-size: 11px; letter-spacing: 0.2em; }

/* キャッチ（写真の下の部分に重ねる） */
.fv__lead {
  position: relative;
  margin-top: -132px;
  padding: 0 24px;
  color: var(--main);
  font-family: var(--f-maru);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.875;
  letter-spacing: 0.04em;
}

/* お知らせ */
.fv__news { margin-top: 16px; padding: 0 24px; }
.fv__news-link {
  display: block;
  padding: 16px 24px;
  border-radius: 16px;
  background: var(--white);
  font-size: 14px;
  transition: box-shadow 0.3s ease-out;
}
.fv__news-link:hover { box-shadow: var(--shadow-card); }
.fv__news-date { display: block; font-family: var(--f-num); font-weight: 500; letter-spacing: 0.04em; }
.fv__news-text { display: block; margin-top: 4px; color: var(--main-ink); }
.fv__news-more {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  height: 34px;
  margin: -8px 0 0 auto;
  padding: 8px 16px 8px 12px;
  border-radius: 16px;
  background: var(--main-btn);
  color: var(--white);
  font-family: var(--f-maru);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  transition: background-color 0.3s ease-out;
}
.fv__news-more:hover { background: var(--main-btn-h); }
.fv__news-more svg { width: 18px; height: 18px; fill: currentColor; }

@media (min-width: 375px) {
  .fv__logo { top: calc(5.089vw + 39.916px); }
  .fv__lead {
    margin-top: calc(-9.16vw - 97.649px);
    font-size: calc(5.089vw + 12.916px);
    line-height: calc(4.58vw + 42.824px);
  }
}
@media (min-width: 768px) {
  .fv__logo { top: calc(14.583vw - 33px); padding: 24px 32px; }
  .fv__logo-s { font-size: 14px; }
  .fv__logo-l { font-size: 28px; }
  .fv__logo-en { font-size: 12px; }
  .fv__lead {
    max-width: 768px;
    margin: -168px auto 0;
    font-size: 52px;
    line-height: 1.5;
  }
  .fv__news { max-width: 768px; margin: 16px auto 0; }
  .fv__en { font-size: 180px; }
}
@media (min-width: 960px) {
  .fv__logo { top: 107px; }
  .fv__lead { max-width: 680px; padding: 0; }
  .fv__news { max-width: 680px; padding: 0; }
}

/* 1000px 以上：写真を右に寄せ、左の列の文字を写真の左端に重ねる */
@media (min-width: 1000px) {
  .fv { height: min(34.022vw + 233.783px, 887px); }
  .fv__hero {
    position: absolute;
    top: 0;
    right: 34px;
    width: calc(100vw - 194px);
    height: 100%;
    margin: 0;
    border-radius: 120px;
  }
  .fv__hero::after {
    background: linear-gradient(90deg, rgba(251, 246, 238, 0.9) 0%, rgba(251, 246, 238, 0.72) 26%, rgba(251, 246, 238, 0) 52%);
  }
  .fv__en { top: 0; font-size: 240px; }
  .fv__en--r { right: -20px; top: 260px; }
  .fv__block { position: relative; width: 760px; padding-top: min(6.8vw, 98px); }
  .fv__block .fv__logo {
    position: static;
    display: inline-flex;
    padding: 32px 40px;
    box-shadow: var(--shadow);
  }
  .fv__logo-s { font-size: 16px; }
  .fv__logo-l { font-size: 34px; }
  .fv__logo-en { font-size: 14px; }
  .fv__lead {
    max-width: none;
    margin: min(4.7vw, 68px) 0 0 40px;
    font-size: min(1.739vw + 22.609px, 56px);
    line-height: 1.5;
  }
  .fv__news {
    max-width: calc(13.043vw + 549.565px);
    margin: 24px 0 0 40px;
  }
  .fv__news-link {
    display: flex;
    align-items: center;
    padding: 24px;
    font-size: 16px;
  }
  .fv__news-text { margin: 0 0 0 24px; }
  .fv__news-more {
    height: 48px;
    margin: -23px -24px 0 auto;
    padding: 12px 24px;
    font-size: 14px;
  }
}
@media (min-width: 1920px) {
  .fv__hero { right: 40px; width: calc(100vw - 200px); }
  .fv__news { max-width: 800px; margin-top: 40px; }
}

/* あいさつ */
.intro {
  padding: 32px 40px 0;
}
.intro__text {
  max-width: 768px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 2.4615;
}
@media (min-width: 768px) {
  .intro { padding-top: 40px; }
  .intro__text { font-size: 14px; line-height: 2.2857; }
}
@media (min-width: 960px) {
  .intro__text { font-size: 16px; line-height: 2; }
}
