/* ======================================================
   だけじゃない堀越 — Redesign v2
   Ref: kamiyama.ac.jp — generous space, arcs, large type
   ====================================================== */

:root {
  --black: #111;
  --white: #fff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f4;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur: 0.4s;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--black);
  background: var(--white);
  font-family: "游ゴシック", "游ゴシック体", "Yu Gothic", "YuGothic", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.05em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, blockquote { margin: 0; }

/* ---- Layout ---- */
.lp {
  overflow-x: hidden;
}

.container {
  width: min(100%, 1420px);
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 160px 0;
}

.sp-only { display: none; }

/* ======================================================
   SECTION HEADER  (label + heading)
   ====================================================== */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.08em;
  padding-left: 0.08em;
}

.section-desc {
  margin-top: 16px;
  font-size: 18px;
  color: var(--gray-500);
  letter-spacing: 0.06em;
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  --hero-scale: clamp(0.68, calc(100vw / 1440px), 1.22);
  height: 100svh;
  min-height: 0;
  font-size: calc(16px * var(--hero-scale));
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.8);
  transform: scale(calc(1.8 * var(--hero-scale)));
  transform-origin: center 42%;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.56) 0%,
    rgba(0, 0, 0, 0.22) 42%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 2em 4.5em 0;
  color: var(--white);
}

.hero-brand {
  display: flex;
  align-items: flex-end;
  gap: 1.25em;
  margin-bottom: 1.75em;
  position: relative;
  z-index: 3;
}

.hero-brand a {
  display: inline-block;
}

.hero-logo {
  display: block;
  width: 14.5em;
  height: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.hero-sub {
  font-size: 0.75em;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  line-height: 1;
}

.hero h1 {
  position: absolute;
  top: 14svh;
  left: 0;
  right: 0;
  z-index: 2;
  width: min(84vw, 70em);
  margin: 0 auto;
  color: var(--white);
  text-align: center;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.hero-title-small,
.hero-title-main,
.hero-title-subline {
  display: block;
}

.hero-title-small {
  font-size: 2.7em;
  letter-spacing: 0.08em;
}

.hero-title-main {
  margin-top: 0.08em;
  font-size: 5.4em;
  letter-spacing: 0.01em;
  padding-left: 0.52em;
}

.hero-title-main-text,
.hero-title-main-dot {
  display: inline-block;
}

.hero-title-subline {
  margin-top: 0.34em;
  font-size: 1.2em;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.hero-lead {
  position: absolute;
  left: 4rem;
  bottom: 2em;
  margin-top: 0;
  font-size: 1.75em;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.hero-scroll {
  position: absolute;
  top: auto;
  right: 2em;
  bottom: 3em;
  left: auto;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  transform: none;
  font-size: 0.625em;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--white);
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero-scroll span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.hero-scroll::before {
  content: "";
  display: block;
  width: 0.8em;
  height: 0.8em;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.9;
}

.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 9.6em;
  background: linear-gradient(to bottom, currentColor 0%, rgba(255,255,255,0) 100%);
  opacity: 0.7;
}

/* ======================================================
   MESSAGE BALLOONS
   ====================================================== */
.ribbons-section {
  position: relative;
  z-index: 2;
  padding: 300px 0 200px;
  background:
    linear-gradient(rgba(0,0,0,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.09) 1px, transparent 1px),
    var(--white);
  background-size: 24px 24px;
}

.ribbons-float {
  position: relative;
  z-index: 20;
  margin-top: -400px;
  pointer-events: none;
}

.ribbons-float .balloon {
  pointer-events: auto;
}

.ribbons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
}

.balloon {
  position: relative;
  width: fit-content;
  max-width: 92%;
  margin-top: -14px;
  animation: float 3s ease-in-out infinite;
}

.balloon:nth-child(1) { animation-duration: 3.2s; animation-delay: 0s; }
.balloon:nth-child(2) { animation-duration: 2.8s; animation-delay: 0.4s; }
.balloon:nth-child(3) { animation-duration: 3.5s; animation-delay: 0.8s; }
.balloon:nth-child(4) { animation-duration: 3.0s; animation-delay: 1.2s; }
.balloon:nth-child(5) { animation-duration: 3.3s; animation-delay: 0.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.balloon:first-child {
  margin-top: 0;
}

.balloon p {
  position: relative;
  background: var(--white);
  border: 4px solid var(--black);
  padding: 28px 56px;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--black);
}

/* ---- tail — right side (pointing down) ---- */
.balloon--right {
  align-self: flex-end;
}

.balloon--right p::before,
.balloon--right p::after {
  content: "";
  position: absolute;
  bottom: -22px;
  right: 60px;
  width: 0;
  height: 0;
}

/* outer triangle (border) */
.balloon--right p::before {
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid var(--black);
}

/* inner triangle (fill) */
.balloon--right p::after {
  bottom: -15px;
  right: 64px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 16px solid var(--white);
}

/* ---- tail — left side (pointing down) ---- */
.balloon--left {
  align-self: flex-start;
}

.balloon--left p::before,
.balloon--left p::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 60px;
  width: 0;
  height: 0;
}

/* outer triangle (border) */
.balloon--left p::before {
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid var(--black);
}

/* inner triangle (fill) */
.balloon--left p::after {
  bottom: -15px;
  left: 64px;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 16px solid var(--white);
}

/* stagger offsets for overlapping effect */
.balloon:nth-child(1) { margin-right: 0; z-index: 5; }
.balloon:nth-child(2) { margin-left: 0; z-index: 4; }
.balloon:nth-child(3) { margin-right: -20px; z-index: 3; }
.balloon:nth-child(4) { margin-left: -20px; z-index: 2; }
.balloon:nth-child(5) { margin-right: 20px; z-index: 1; }

/* ======================================================
   DAILY SCENES  — scattered paper cards
   ====================================================== */
.daily {
  position: relative;
  z-index: 10;
  background: #F6F6F7;
  max-height: 1200px;
  padding-top: 220px;
  padding-bottom: 0;
  margin-top: -120px;
}

.daily::before {
  content: "";
  display: block;
  position: absolute;
  top: -50px;
  left: 50%;
  width: 300%;
  height: 640px;
  margin: 0;
  background: #F6F6F7;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 0;
}

.daily > .container {
  position: relative;
  z-index: 1;
}

.scene-stack {
  position: relative;
  min-height: 950px;
}

/* ---- base card ---- */
.scene-card {
  position: absolute;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.4s var(--ease);
  animation: float 3s ease-in-out infinite;
}

.scene-card[data-card="1"] { animation-duration: 3.4s; animation-delay: 0s; }
.scene-card[data-card="2"] { animation-duration: 2.9s; animation-delay: 0.5s; }
.scene-card[data-card="3"] { animation-duration: 3.6s; animation-delay: 1.0s; }
.scene-card[data-card="4"] { animation-duration: 3.1s; animation-delay: 0.3s; }
.scene-card[data-card="5"] { animation-duration: 3.3s; animation-delay: 0.7s; }

.scene-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.scene-card__inner {
  display: flex;
  flex-direction: column-reverse;
  height: 100%;
}

.scene-card__photo {
  overflow: hidden;
  flex-shrink: 0;
}

.scene-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.scene-card:hover .scene-card__photo img {
  transform: scale(1.04);
}

.scene-card__body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.scene-card__body h3 {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.scene-card__body p {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-500);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* ---- individual card positions & rotations ---- */
/*
  Layout strategy: cards overlap at their PHOTO or EDGE areas only,
  never over another card's text body.
  Higher z-index cards have their text at the BOTTOM so it stays visible,
  or are positioned so only photo regions overlap.
*/

/* Card 1: top-right (photo overlay) */
.scene-card[data-card="1"] {
  width: 640px;
  top: 0;
  right: 0;
  left: auto;
  transform: rotate(1.5deg);
  z-index: 2;
}
.scene-card[data-card="1"] .scene-card__inner {
  position: relative;
  flex-direction: column;
}

.scene-card[data-card="1"] .scene-card__photo {
  height: 100%;
  position: absolute;
  inset: 0;
}

.scene-card[data-card="1"] .scene-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.scene-card[data-card="1"] .scene-card__body {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 48px 44px;
  min-height: 480px;
  justify-content: flex-start;
  align-items: flex-end;
  text-align: right;
}

.scene-card[data-card="1"] .scene-card__body h3 {
  color: var(--white);
}

.scene-card[data-card="1"] .scene-card__body p {
  color: rgba(255, 255, 255, 1);
}

/* Card 2: top-left (photo overlay) */
.scene-card[data-card="2"] {
  width: 520px;
  top: 20px;
  left: 80px;
  right: auto;
  transform: rotate(-1.5deg);
  z-index: 9;
}

.scene-card[data-card="2"] .scene-card__inner {
  position: relative;
  flex-direction: column;
}

.scene-card[data-card="2"] .scene-card__photo {
  height: 100%;
  position: absolute;
  inset: 0;
}

.scene-card[data-card="2"] .scene-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.scene-card[data-card="2"] .scene-card__body {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 48px 40px;
  min-height: 340px;
  justify-content: flex-end;
}

.scene-card[data-card="2"] .scene-card__body h3 {
  color: var(--white);
}

.scene-card[data-card="2"] .scene-card__body p {
  color: rgba(255, 255, 255, 1);
}

/* Card 3: bottom-center (photo overlay) */
.scene-card[data-card="3"] {
  width: 480px;
  top: 420px;
  left: 35%;
  transform: rotate(1.8deg);
  z-index: 7;
}
.scene-card[data-card="3"] .scene-card__inner {
  position: relative;
  flex-direction: column;
}

.scene-card[data-card="3"] .scene-card__photo {
  height: 100%;
  position: absolute;
  inset: 0;
}

.scene-card[data-card="3"] .scene-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.scene-card[data-card="3"] .scene-card__body {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 48px 44px;
  min-height: 480px;
  justify-content: flex-end;
}

.scene-card[data-card="3"] .scene-card__body h3 {
  color: var(--white);
}

.scene-card[data-card="3"] .scene-card__body p {
  color: rgba(255, 255, 255, 1);
}

/* Card 4: bottom-left (photo overlay) */
.scene-card[data-card="4"] {
  width: 540px;
  top: 340px;
  left: 0;
  right: auto;
  transform: rotate(-2.2deg);
  z-index: 6;
}

.scene-card[data-card="4"] .scene-card__inner {
  position: relative;
  flex-direction: column;
}

.scene-card[data-card="4"] .scene-card__photo {
  height: 100%;
  position: absolute;
  inset: 0;
}

.scene-card[data-card="4"] .scene-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.scene-card[data-card="4"] .scene-card__body {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 48px 44px;
  min-height: 480px;
  justify-content: flex-end;
}

.scene-card[data-card="4"] .scene-card__body h3 {
  color: var(--white);
}

.scene-card[data-card="4"] .scene-card__body p {
  color: rgba(255, 255, 255, 1);
}

/* Card 5: bottom-right (photo overlay) */
.scene-card[data-card="5"] {
  width: 400px;
  top: 360px;
  right: 5%;
  transform: rotate(-1.2deg);
  z-index: 8;
}

.scene-card[data-card="5"] .scene-card__inner {
  position: relative;
  flex-direction: column;
}

.scene-card[data-card="5"] .scene-card__photo {
  height: 100%;
  position: absolute;
  inset: 0;
}

.scene-card[data-card="5"] .scene-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.scene-card[data-card="5"] .scene-card__body {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 48px 44px;
  min-height: 480px;
  justify-content: flex-end;
}

.scene-card[data-card="5"] .scene-card__body h3 {
  color: var(--white);
}

.scene-card[data-card="5"] .scene-card__body p {
  color: rgba(255, 255, 255, 1);
}

/* ======================================================
   Q&A
   ====================================================== */
.qa {
  background: var(--white);
  padding-top: 200px;
}


.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.qa-card {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.qa-card__q,
.qa-card__a {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.qa-letter {
  flex-shrink: 0;
  width: 120px;
  padding-right: 16px;
  font-family: "Oswald", sans-serif;
  font-size: 96px;
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--black);
}

.qa-letter--a {
  color: var(--gray-300);
}

.qa-card__q h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.04em;
  padding-top: 8px;
}

.qa-card__a p {
  font-size: 16px;
  line-height: 2.2;
  color: var(--gray-500);
  letter-spacing: 0.02em;
  padding-top: 8px;
}

.qa-card:nth-of-type(1) .qa-card__a p,
.qa-card:nth-of-type(2) .qa-card__a p {
  color: var(--gray-700);
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

/* ======================================================
   BUTTON
   ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 48px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  cursor: pointer;
}

.btn:hover {
  background: var(--black);
  color: var(--white);
}

.btn svg {
  transition: transform var(--dur) var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* White variants */
.btn--white {
  border-color: var(--white);
  color: var(--white);
}
.btn--white:hover {
  background: var(--white);
  color: var(--black);
}

.btn--white-outline {
  border-color: var(--white);
  color: var(--white);
}
.btn--white-outline:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

/* ======================================================
   PHOTO BREAK  — full-width immersive
   ====================================================== */
.photo-break {
  display: none;
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 360px;
  max-height: 600px;
  overflow: hidden;
  border-radius: 150px 0 0 0;
}

.photo-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.photo-break__overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.photo-break__overlay p {
  color: var(--white);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

/* ======================================================
   LETTERS
   ====================================================== */
.letters {
  background: var(--white);
}

.letter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.letter-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.letter-card__image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.letter-card__image::after {
  content: "+";
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  color: var(--black);
  z-index: 1;
}

.letter-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.letter-card:nth-of-type(3) .letter-card__image img {
  filter: grayscale(1);
}

.letter-card__image[onclick] {
  cursor: pointer;
}


/* ======================================================
   IMAGE MODAL
   ====================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  cursor: zoom-out;
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-image {
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}

.modal-image.is-grayscale {
  filter: grayscale(1);
}

.letter-card__text {
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.04em;
}

/* ======================================================
   TEACHER
   ====================================================== */
.teacher {
  background:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px),
    #F6F6F7;
  background-size: 24px 24px;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.teacher-card {
  position: relative;
  padding: 0;
  background: var(--white);
  border: 4px solid var(--black);
  min-height: 450px;
  overflow: hidden;
  --teacher-photo-width: 250px;
  --teacher-photo-space: 250px;
  --teacher-photo-height: 370px;
}

.teacher-card__content {
  height: 100%;
  position: relative;
  z-index: 1;
}

.teacher-card__portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--teacher-photo-width);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: bottom right;
  z-index: 1;
}

/* 教員 A, B, D のポートレイトを大きく（Cはそのまま） */
.teacher-card:nth-child(1) .teacher-card__portrait {
  max-width: none;
}

.teacher-card blockquote {
  display: flow-root;
  height: 100%;
  min-height: 450px;
  padding: 48px 40px 0;
  position: relative;
  z-index: 2;
}

.teacher-card blockquote::before {
  content: none;
}

.teacher-card__wrap {
  display: block;
  float: right;
  width: var(--teacher-photo-space);
  height: var(--teacher-photo-height);
  margin-bottom: -80px;
  pointer-events: none;
}

.teacher-card__portrait--float {
  position: absolute;
  float: none;
  margin: 0;
  shape-outside: none;
}

.teacher-card__portrait--float.teacher-card__portrait--wide {
  width: var(--teacher-photo-width);
  max-width: none;
}

.teacher-card:nth-child(2) .teacher-card__portrait,
.teacher-card:nth-child(4) .teacher-card__portrait {
  max-width: none;
}

.teacher-card__portrait--wide {
  max-width: none;
}

@media (min-width: 961px) {
  .hero-logo {
    width: 240px;
  }

  .teacher-card:nth-child(1) {
    --teacher-photo-width: 250px;
    --teacher-photo-space: 245px;
    --teacher-photo-height: 270px;
  }

  .teacher-card:nth-child(2) {
    --teacher-photo-width: 280px;
    --teacher-photo-space: 270px;
    --teacher-photo-height: 400px;
  }

  .teacher-card:nth-child(3) {
    --teacher-photo-width: 250px;
    --teacher-photo-space: 250px;
    --teacher-photo-height: 345px;
    min-height: 350px;
  }

  .teacher-card:nth-child(4) {
    --teacher-photo-width: 250px;
    --teacher-photo-space: 245px;
    --teacher-photo-height: 360px;
    min-height: 350px;
  }

  .teacher-card:nth-child(3) blockquote,
  .teacher-card:nth-child(4) blockquote {
    display: flow-root;
    min-height: 350px;
  }

  .teacher-card:nth-child(3) blockquote {
    padding-bottom: 40px;
  }

  .teacher-card:nth-child(1) .teacher-card__profile {
    margin-bottom: 40px;
  }

  .teacher-card:nth-child(1) blockquote > p:first-of-type {
    margin-bottom: 40px;
  }
}

.teacher-card blockquote p {
  font-size: 15px;
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: 0.04em;
}

.teacher-card blockquote p.teacher-card__heading {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.9;
}

.teacher-card blockquote p + p {
  margin-top: 1.6em;
}

.teacher-card__portrait + p {
  margin-top: 1.6em;
}

.teacher-card__profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.teacher-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-200);
  flex-shrink: 0;
}

.teacher-card__profile span {
  font-size: 16px;
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ======================================================
   CLOSING
   ====================================================== */
.closing {
  position: relative;
  color: var(--white);
  padding: 180px 0;
  overflow: hidden;
}

.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./images/hero.jpg") center 30% / cover no-repeat;
  opacity: 1;
}

.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.85;
}

.closing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.closing h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.1em;
}

.closing-lead {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.closing-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 56px;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  padding: 56px 0;
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-brand a {
  display: inline-block;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer-en {
  font-size: 10px;
  color: var(--gray-400);
  letter-spacing: 0.08em;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  color: var(--gray-400);
  transition: color var(--dur) var(--ease);
}

.footer-social a:hover {
  color: var(--black);
}

.copyright {
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.04em;
}

/* ======================================================
   SCROLL REVEAL ANIMATIONS
   ====================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
[data-reveal][data-delay="1"] { transition-delay: 0.12s; }
[data-reveal][data-delay="2"] { transition-delay: 0.24s; }
[data-reveal][data-delay="3"] { transition-delay: 0.36s; }
[data-reveal][data-delay="4"] { transition-delay: 0.48s; }

/* Scene cards get a slight rotation on reveal */
.scene-card[data-reveal] {
  transform: translateY(40px) rotate(0deg);
}

.scene-card[data-reveal].is-visible[data-card="1"] { transform: rotate(1.5deg); }
.scene-card[data-reveal].is-visible[data-card="2"] { transform: rotate(-1.5deg); }
.scene-card[data-reveal].is-visible[data-card="3"] { transform: rotate(1.8deg); }
.scene-card[data-reveal].is-visible[data-card="4"] { transform: rotate(-2.2deg); }
.scene-card[data-reveal].is-visible[data-card="5"] { transform: rotate(-1.2deg); }

/* Balloons slide in from their side */
.balloon--right[data-reveal] {
  transform: translateX(60px);
}
.balloon--left[data-reveal] {
  transform: translateX(-60px);
}
.balloon[data-reveal].is-visible {
  transform: translateX(0);
}

/* Photo break overlay fades in without translate */
.photo-break__overlay[data-reveal] {
  transform: none;
  opacity: 0;
}
.photo-break__overlay[data-reveal].is-visible {
  opacity: 1;
}

/* Hero elements — initial load animation (no scroll needed) */
.hero [data-reveal] {
  transform: translateY(24px);
}

.hero [data-reveal].is-visible {
  transform: translateY(0);
}

/* ======================================================
   RESPONSIVE — Proportional scaling below 1400px
   (zoom value set dynamically via JS)
   ====================================================== */

/* ======================================================
   TABLET — 960px and below
   ====================================================== */
@media (max-width: 960px) {
  .container {
    padding: 0 32px;
  }

  .section {
    padding: 120px 0;
  }

  .section-header {
    margin-bottom: 56px;
  }

  /* Hero */
  .hero-content {
    padding: 32px 40px 0;
  }

  .hero-title-small {
    font-size: 3.1em;
  }

  .hero-title-main {
    font-size: 6.2em;
  }

  .hero-title-subline {
    font-size: 1.5em;
  }

  .hero-lead {
    left: 2.5em;
  }

  /* Balloons */
  .ribbons-section {
    padding: 200px 0 120px;
  }

  .ribbons-float {
    margin-top: -260px;
  }

  .balloon p {
    padding: 22px 40px;
  }

  /* Daily */
  .daily {
    height: auto;
    max-height: none;
    padding-top: 160px;
    margin-top: -80px;
  }

  .daily::before {
    height: 480px;
  }

  .scene-stack {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .scene-card {
    position: relative !important;
    width: 100% !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    animation: none !important;
  }

  .scene-card[data-reveal] {
    transform: translateY(32px) !important;
  }

  .scene-card[data-reveal].is-visible,
  .scene-card[data-reveal].is-visible[data-card="1"],
  .scene-card[data-reveal].is-visible[data-card="2"],
  .scene-card[data-reveal].is-visible[data-card="3"],
  .scene-card[data-reveal].is-visible[data-card="4"],
  .scene-card[data-reveal].is-visible[data-card="5"] {
    transform: none !important;
  }

  /* Q&A */
  .qa-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Letters */
  .letter-grid {
    gap: 24px;
  }

  /* Teacher */
  .teacher-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .teacher-card {
    min-height: 520px;
  }

  .teacher-card blockquote {
    height: auto;
    min-height: 520px;
    padding: 48px calc(var(--teacher-photo-width) + 80px) 48px 40px;
  }

  .teacher-card__wrap {
    display: none;
  }

  .teacher-card__portrait {
    right: 0;
    bottom: 0;
  }

  .teacher-card:nth-child(1) {
    --teacher-photo-width: 270px;
  }

  .teacher-card:nth-child(2) {
    --teacher-photo-width: 280px;
  }

  .teacher-card:nth-child(3) {
    --teacher-photo-width: 200px;
  }

  .teacher-card:nth-child(4) {
    --teacher-photo-width: 250px;
  }

  /* Closing */
  .closing {
    padding: 140px 0;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-brand {
    align-items: center;
  }
}

/* ======================================================
   MOBILE — 640px and below
   ====================================================== */
@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .sp-only { display: block; }

  /* Hero */
  .hero {
    --hero-scale: clamp(0.78, calc(100vw / 390px), 1);
    height: 100svh;
    min-height: 0;
    font-size: clamp(8px, calc(10px * var(--hero-scale)), 10px);
  }

  .hero-content {
    position: absolute;
    inset: 0;
    padding: 2.4em;
  }

  .hero-image img {
    transform: scale(1);
    object-position: center 46%;
  }

  .hero h1 {
    top: 10.2svh;
    width: calc(100% - 3.2em);
    font-size: inherit;
    line-height: 1.04;
    text-align: center;
  }

  .hero-title-small {
    font-size: 3em;
  }

  .hero-title-main {
    font-size: 7em;
    padding-left: 0.6em;
  }

  .hero-title-subline {
    font-size: 1.95em;
    line-height: 1.35;
  }

  .hero-sub {
    margin-bottom: 0;
    line-height: 1.6;
  }

  .hero-lead {
    position: absolute;
    left: 1.6em;
    right: 2.8em;
    bottom: 5.6em;
    margin-top: 0;
    font-size: 1.8em;
    line-height: 1.6;
  }

  .hero-scroll {
    display: none;
  }

  .modal-overlay {
    padding: 24px 16px;
  }

  .modal-image {
    width: calc(100vw - 32px);
  }

  /* Balloons */
  .ribbons-section {
    padding: 120px 0 80px;
  }

  .ribbons-float {
    margin-top: -160px;
  }

  .balloon p {
    padding: 18px 16px;
    font-size: clamp(16px, 4.5vw, 22px);
    border-width: 3px;
  }

  .balloon--right p::before,
  .balloon--left p::before {
    bottom: -21px;
  }

  .balloon--right p::after,
  .balloon--left p::after {
    bottom: -14px;
  }

  /* Remove stagger offsets on mobile */
  .balloon {
    margin-top: 12px;
  }

  .balloon:first-child {
    margin-top: 0;
  }

  .balloon:nth-child(1),
  .balloon:nth-child(2),
  .balloon:nth-child(3),
  .balloon:nth-child(4),
  .balloon:nth-child(5) {
    margin-left: 0;
    margin-right: 0;
  }

  /* Daily — vertical stack */
  .daily {
    max-height: none;
    padding-top: 100px;
    margin-top: -60px;
  }

  .daily::before {
    height: 320px;
    top: -30px;
  }

  .scene-stack {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .scene-card {
    position: relative !important;
    width: 100% !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    animation: none !important;
  }

  .scene-card[data-reveal] {
    transform: translateY(32px) !important;
  }

  .scene-card[data-reveal].is-visible,
  .scene-card[data-reveal].is-visible[data-card="1"],
  .scene-card[data-reveal].is-visible[data-card="2"],
  .scene-card[data-reveal].is-visible[data-card="3"],
  .scene-card[data-reveal].is-visible[data-card="4"],
  .scene-card[data-reveal].is-visible[data-card="5"] {
    transform: none !important;
  }

  .scene-card {
    aspect-ratio: 1 / 1;
  }

  .scene-card__body {
    min-height: auto !important;
    padding: 24px 24px !important;
  }

  /* Q&A */
  .qa-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .qa-letter {
    font-size: 64px;
    width: 80px;
  }

  /* Letters */
  .letter-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .letter-card__image {
    aspect-ratio: 3 / 4;
  }

  /* Teacher */
  .teacher-grid {
    grid-template-columns: 1fr;
  }

  .teacher-card {
    padding: 0;
    min-height: auto;
  }

  .teacher-card__content {
    padding-right: 0;
  }

  .teacher-card blockquote {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 36px 28px 0;
  }

  .teacher-card blockquote p {
    order: 1;
  }

  .teacher-card__profile {
    order: 2;
  }

  .teacher-card blockquote::before {
    content: none;
  }

  .teacher-card__wrap {
    display: none;
  }

  .teacher-card__portrait {
    max-width: 160px;
    width: 35%;
  }

  .teacher-card__portrait--float,
  .teacher-card__portrait--float.teacher-card__portrait--wide {
    position: static;
    float: none;
    order: 3;
    width: min(70%, 180px);
    max-width: 180px;
    margin: 24px auto 0;
  }

  .teacher-card blockquote p {
    font-size: 14px;
  }

  /* Closing */
  .closing {
    padding: 100px 0;
  }

  .closing-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 18px 32px;
  }

  .btn.btn--white-outline {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Footer */
}
