/* ════════════════════════════════════════════
   大阪体育大学 LP — style.css
   ════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --blue:       #78C2E4;
  --blue-dark:  #4a9fc4;
  --blue-light: #c2e4f5;
  --navy:       #0d1b2a;
  --ink:        #1a1a1a;
  --gray:       #6b7280;
  --gray-light: #f4f4f0;
  --white:      #fafaf8;

  --serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --sans:  'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a { text-decoration: none; }
button {
  font-family: var(--sans);
  cursor: pointer;
}


/* ════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}
.site-nav.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120, 194, 228, 0.2);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--navy);
  transition: color 0.3s;
}
.site-nav.scrolled .nav-logo { color: var(--navy); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(13, 27, 42, 0.65);
  transition: color 0.3s;
}
.site-nav.scrolled .nav-links a { color: var(--gray); }
.nav-links a:hover { color: var(--blue-dark) !important; }
.nav-cta {
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 9px 22px;
  border: 1px solid rgba(13, 27, 42, 0.35);
  color: var(--navy);
  border-radius: 50px;
  transition: all 0.3s;
}
.site-nav.scrolled .nav-cta {
  border-color: var(--blue);
  color: var(--blue);
}
.nav-cta:hover {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: var(--white) !important;
}

/* Story page nav (always scrolled style) */
.site-nav.nav-light {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120, 194, 228, 0.2);
}
.site-nav.nav-light .nav-logo { color: var(--navy); }
.site-nav.nav-light .nav-links a { color: var(--gray); }
.site-nav.nav-light .nav-cta { border-color: var(--blue); color: var(--blue); }
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}


/* ════════════════════════════════════════════
   PHOTO CONTAINERS
   ════════════════════════════════════════════ */
.photo-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Gradient fallbacks — replaced by real photos when available */
.photo-a {
  background:
    url('../images/mihara_01.jpg') center/cover no-repeat,
    linear-gradient(160deg, #0d2a4a 0%, #1a4a7c 50%, #2d6b9f 100%);
}
.photo-b {
  background:
    url('../images/tahara_01.jpg') center/cover no-repeat,
    linear-gradient(160deg, #2a1a0a 0%, #6b3a1a 50%, #9f5a2d 100%);
}
.photo-c {
  background:
    url('../images/kono_01.jpg') center/cover no-repeat,
    linear-gradient(160deg, #0a2a1a 0%, #1a5a3a 50%, #2d8a5a 100%);
}
.photo-d {
  background:
    url('../images/komizo_01.jpg') center/cover no-repeat,
    linear-gradient(160deg, #1a1a3a 0%, #2a2a6b 50%, #4a4a9f 100%);
}
.photo-e {
  background:
    url('../images/imai_01.jpg') center/cover no-repeat,
    linear-gradient(160deg, #2a1a0a 0%, #6b4a1a 50%, #9f7a2d 100%);
}

/* Grain texture overlay */
.photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  background-size: 200px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.photo-label {
  position: absolute;
  bottom: 14px;
  left: 16px;
  font-family: var(--serif);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.1em;
  z-index: 1;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  padding: 4px 12px;
  border-radius: 20px;
}


/* ════════════════════════════════════════════
   SHARED UTILITIES
   ════════════════════════════════════════════ */
.section-label {
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}

.divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, var(--blue), transparent);
  margin: 0 auto;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO INTRO OVERLAY ── */
.hero-intro {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease;
  pointer-events: none;
}
.hero-intro.fade-out { opacity: 0; }
.hero-intro-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.1;
}
.hi-line {
  font-family: var(--serif);
  font-size: clamp(42px, 7.5vw, 96px);
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.03em;
  display: block;
  transition: transform 2.0s cubic-bezier(0.76, 0, 0.24, 1);
}
.hi-em {
  font-family: var(--serif);
  font-size: clamp(42px, 7.5vw, 96px);
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.03em;
  display: block;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.625s ease 0.1s, transform 1.625s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
}
/* Phase 2: 上下に分かれる */
.hero-intro.split .hi-line1 { transform: translateY(-0.6em); }
.hero-intro.split .hi-line2 { transform: translateY(0.6em); }
.hero-intro.split .hi-em    { opacity: 1; transform: scale(1); }

/* ── CURTAIN INTRO ── */
.hero-slits {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}
.curtain-half {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background: var(--navy);
  transition: transform 1.0s cubic-bezier(0.76, 0, 0.24, 1);
}
.curtain-half:first-child {
  top: 0;
  transform: translateY(0);
}
.curtain-half:last-child {
  bottom: 0;
  transform: translateY(0);
  transition-delay: 0.04s;
}
.hero-slits.open .curtain-half:first-child { transform: translateY(-101%); }
.hero-slits.open .curtain-half:last-child  { transform: translateY(101%); }

/* Staggered fade-in */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ヒーロー内のfade-upはスリット後に発火 */
#hero .fade-up { opacity: 0; animation: none; }
#hero.slits-done .fade-up { animation: fadeUp 0.8s ease forwards; }
#hero.slits-done .fade-up-1 { animation-delay: 0.00s; }
#hero.slits-done .fade-up-2 { animation-delay: 0.15s; }
#hero.slits-done .fade-up-3 { animation-delay: 0.30s; }
#hero.slits-done .fade-up-4 { animation-delay: 0.50s; }
/* ヒーロー以外のfade-up（ストーリーページなど）は通常通り */
.fade-up { opacity: 0; animation: fadeUp 0.8s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.25s; }
.fade-up-3 { animation-delay: 0.4s; }
.fade-up-4 { animation-delay: 0.6s; }


/* ════════════════════════════════════════════
   TOP — HERO
   ════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--blue-light);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 写真カルーセル：右2/3に配置・背面 */
.hero-carousel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 66.67%;
  overflow: hidden;
  z-index: 0;
}
/* top.png：写真の上・テキストの下に重ねる */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/top.png') left center / auto 100% no-repeat;
  z-index: 1;
  pointer-events: none;
}
.hero-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 35%;
  background: linear-gradient(to right, var(--blue-light) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide .photo-wrap { height: 100%; }

/* スライドカウンター */
.carousel-counter {
  position: absolute;
  bottom: 40px;
  right: 44px;
  z-index: 3;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.65);
}
#carousel-current {
  color: var(--white);
  font-weight: 500;
}
.carousel-sep {
  opacity: 0.45;
  margin: 0 4px;
}

/* 左：テキストコンテンツ（top.png の上） */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 140px 48px 80px;
  max-width: 500px;
  width: 48%;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(13, 27, 42, 0.6);
  margin-bottom: 28px;
  font-weight: 300;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}
.hero-title em {
  color: var(--white);
  font-style: normal;
}
.hero-sub {
  font-size: 14px;
  color: rgba(13, 27, 42, 0.62);
  line-height: 2;
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 52px;
}
.hero-sub-spbr { display: none; }
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(13, 27, 42, 0.45);
  font-size: 11px;
  letter-spacing: 0.2em;
}
.hero-scroll-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, rgba(13,27,42,0.45), transparent);
}


/* ════════════════════════════════════════════
   TOP — MESSAGE REVEAL
   ════════════════════════════════════════════ */
.message-reveal {
  padding: 140px 40px 100px;
  background: var(--white);
}
.message-reveal-inner {
  max-width: 860px;
  margin: 0 auto;
}
.reveal-text {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 2.2;
}
.reveal-line {
  display: block;
  white-space: nowrap;
  color: #bdd8e6;
  transition: color 0.9s ease;
}
.reveal-line.in-view {
  color: var(--ink);
}
.reveal-sub {
  margin-top: 72px;
  padding-top: 52px;
  border-top: 1px solid rgba(120, 194, 228, 0.3);
  max-width: 720px;
}
.reveal-sub p {
  font-size: 15px;
  line-height: 2.3;
  color: var(--gray);
  font-weight: 300;
}
.reveal-sub strong {
  color: var(--ink);
  font-weight: 400;
}


/* ════════════════════════════════════════════
   TOP — QUIZ
   ════════════════════════════════════════════ */
.quiz-section {
  padding: 100px 40px 120px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* ── 浮遊写真：非表示 ── */
.quiz-float-photos { display: none; }

.quiz-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/haikei.png') center/cover no-repeat;
  opacity: 0.6;
  pointer-events: none;
}
.quiz-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 68px 56px;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.40);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
}
/* 鉤括弧装飾：左上 */
.quiz-inner::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  width: 52px;
  height: 52px;
  border-top: 1.5px solid rgba(120, 194, 228, 0.7);
  border-left: 1.5px solid rgba(120, 194, 228, 0.7);
  border-radius: 4px 0 0 0;
}
/* 鉤括弧装飾：右下 */
.quiz-inner::after {
  content: '';
  position: absolute;
  bottom: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-bottom: 1.5px solid rgba(120, 194, 228, 0.7);
  border-right: 1.5px solid rgba(120, 194, 228, 0.7);
  border-radius: 0 0 4px 0;
}

.quiz-section .section-label::before { background: var(--ink); }

.quiz-main-title {
  font-family: 'Zen Kaku Gothic New', var(--sans);
  font-size: clamp(20px, 6vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  background: url('../images/haikei.png') center / cover no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: normal;
  text-align: center;
}
.title-sp-br { display: none; }
.quiz-heading-sub {
  font-family: var(--serif);
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.quiz-heading {
  font-family: 'Zen Kaku Gothic New', var(--sans);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.quiz-desc {
  font-size: 13px;
  color: var(--gray);
  font-weight: 400;
  margin-bottom: 60px;
  letter-spacing: 0.05em;
}

.quiz-step.hidden { display: none; }
.hidden { display: none; }

/* ── QUIZ START BUTTON ── */
#quiz-start {
  text-align: center;
}
#quiz-start .section-label {
  display: inline-block;
  margin-bottom: 24px;
}
#quiz-start .quiz-heading {
  margin-bottom: 12px;
}
#quiz-start .quiz-desc {
  margin-bottom: 48px;
}
.quiz-start-btn {
  display: inline-block;
  padding: 20px 72px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.25em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(120, 194, 228, 0.45);
  animation: btnPulse 2.4s ease-in-out infinite;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.quiz-start-btn:hover {
  background: var(--blue-dark);
  animation: none;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 36px rgba(120, 194, 228, 0.55);
}
@keyframes btnPulse {
  0%   { transform: translateY(0)    scale(1);    box-shadow: 0 10px 24px rgba(120,194,228,0.40); }
  50%  { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 32px rgba(120,194,228,0.50); }
  100% { transform: translateY(0)    scale(1);    box-shadow: 0 10px 24px rgba(120,194,228,0.40); }
}

.q-number {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: rgba(13, 27, 42, 0.35);
  margin-bottom: 20px;
  font-weight: 300;
}
.q-text {
  font-family: 'Zen Kaku Gothic New', var(--sans);
  font-size: clamp(17px, 2.5vw, 22px);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 36px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}
.q-options { display: grid; gap: 12px; }
.q-options.two-col { grid-template-columns: 1fr 1fr; }
.q-options.tile-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

/* タイルグリッド専用：縦並び・中央揃え */
.tile-grid .q-option {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 16px 28px;
  gap: 16px;
  font-size: 13px;
}
.tile-grid .q-option-icon {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.tile-grid .q-option-body { align-items: stretch; text-align: left; }
.tile-grid .q-option-label { text-align: center; }
.tile-grid .q-option::after { display: none; }

.q-option {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 52px 20px 24px;
  border: 1.5px solid rgba(13, 27, 42, 0.08);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  text-align: left;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  line-height: 1.6;
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.q-option-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.2s;
}
.q-option:hover .q-option-icon { opacity: 1; }
.q-option-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.q-option::before { display: none; }
.q-option::after {
  content: '▶';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  color: rgba(13, 27, 42, 0.3);
  transition: transform 0.2s, color 0.2s;
}
.q-option:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.q-option:hover::after {
  transform: translateY(-50%) translateX(4px);
  color: var(--navy);
}

.q-option-label {
  display: block;
  font-family: 'Zen Kaku Gothic New', var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--navy);
  margin-bottom: 6px;
  font-weight: 700;
}


/* ════════════════════════════════════════════
   TOP — RESULT
   ════════════════════════════════════════════ */
@keyframes resultFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-section {
  padding: 80px 40px;
  background: var(--white);
  border-top: 1px solid rgba(120, 194, 228, 0.2);
  display: none;
}
.result-section.show { display: block; }
.result-section.show .result-message {
  animation: resultFadeUp 1.0s ease 0.2s both;
}
.result-section.show .result-sub {
  animation: resultFadeUp 1.0s ease 0.5s both;
}
.result-section.show .result-cards {
  animation: resultFadeUp 1.1s ease 0.85s both;
}
.result-section.show .result-reset {
  animation: resultFadeUp 1.0s ease 1.3s both;
}
.result-inner { max-width: 760px; margin: 0 auto; }

.result-message {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 16px;
}
.result-sub {
  font-size: 13px;
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 52px;
}
.result-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.result-card {
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-radius: 20px;
  overflow: hidden;
  display: block;
  transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 8px 32px rgba(120, 194, 228, 0.12);
  backdrop-filter: blur(8px);
}
.result-card:hover {
  box-shadow: 0 16px 48px rgba(120, 194, 228, 0.25);
  transform: translateY(-6px);
}
.result-card-photo {
  height: 240px;
  position: relative;
}
.result-card-body { padding: 24px; }
.result-card-tag {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--blue-dark);
  margin-bottom: 10px;
}
.result-card-catch {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 16px;
}
.result-card-link {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--blue-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-card-link::after { content: '→'; }

.result-reset {
  display: block;
  margin: 40px auto 0;
  padding: 14px 52px;
  background: var(--blue);
  color: var(--white);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(120, 194, 228, 0.40);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.result-reset:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(120, 194, 228, 0.50);
}


/* ════════════════════════════════════════════
   TOP — ALL STUDENTS
   ════════════════════════════════════════════ */
.all-section-wrap {
  background: var(--white);
}
/* 初期非表示 */
.all-section-wrap.all-hidden {
  display: none;
}
/* 診断完了後に出現 */
@keyframes allSectionFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.all-section-wrap.all-revealed {
  display: block;
  animation: allSectionFadeUp 0.8s ease forwards;
}
.all-section {
  padding: 120px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.all-heading {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 0;
  letter-spacing: 0.05em;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 60px;
}
.student-tile {
  display: block;
  transition: transform 0.3s;
}
.student-tile:hover { transform: translateY(-6px); }

.student-tile-photo {
  height: 280px;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  border-radius: 16px;
}
.student-tile-photo .photo-wrap {
  transition: transform 0.5s;
}
.student-tile:hover .student-tile-photo .photo-wrap {
  transform: scale(1.04);
}

.student-tile-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.student-tile-catch {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 12px;
}
.student-tile-link {
  font-size: 11px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.student-tile-link::after { content: '→'; color: var(--blue); }


/* ════════════════════════════════════════════
   TOP — CTA FOOTER
   ════════════════════════════════════════════ */
.cta-footer {
  background: var(--blue);
  padding: 100px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; }

.cta-heading {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 42px);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 24px;
}
.cta-body {
  font-size: 14px;
  color: rgba(13, 27, 42, 0.6);
  font-weight: 300;
  margin-bottom: 52px;
  line-height: 2;
}
.cta-btn,
.cta-btn-outline {
  display: inline-block;
  padding: 18px 0;
  width: 300px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s;
}
.cta-btn {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.25);
}
.cta-btn:hover {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 12px 32px rgba(13, 27, 42, 0.15);
}

.cta-btn-outline {
  margin-left: 20px;
  border: 1px solid rgba(13, 27, 42, 0.3);
  color: rgba(13, 27, 42, 0.65);
}
.cta-btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.site-footer {
  background: var(--white);
  border-top: 1px solid rgba(120, 194, 228, 0.2);
  padding: 40px;
  text-align: center;
}
.site-footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.site-footer-logo-img {
  height: 28px;
  width: auto;
}
.site-footer-copy {
  font-size: 11px;
  color: rgba(13, 27, 42, 0.2);
  letter-spacing: 0.1em;
}


/* ════════════════════════════════════════════
   STORY PAGES — HERO
   ════════════════════════════════════════════ */
.story-hero {
  height: 70vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.story-hero-photo {
  position: absolute;
  inset: 0;
}
.story-hero-photo .photo-wrap { height: 100%; }
/* 顔が切れないよう上寄りクロップ（写真差し替え後は個別調整可） */
.story-hero-photo .photo-a { background-position: center 20%; }
.story-hero-photo .photo-b { background-position: center 20%; }
.story-hero-photo .photo-c { background-position: center 20%; }
.story-hero-photo .photo-d { background-position: center 20%; }
.story-hero-photo .photo-e { background-position: center 20%; }

/* ── ストーリー別カット（Chapter 04 内） ── */
.story-photo-end {
  height: 50vh;
  min-height: 320px;
  overflow: hidden;
  position: relative;
  margin: 32px 0 40px;
  border-radius: 20px;
}
.story-photo-end .photo-wrap { height: 100%; }
.photo-a-2 { background: url('../images/mihara_02.jpg') center 30% / cover no-repeat; }
.photo-b-2 { background: url('../images/tahara_02.jpg') center 30% / cover no-repeat; }
.photo-c-2 { background: url('../images/kono_02.jpg') center 30% / cover no-repeat; }
.photo-d-2 { background: url('../images/komizo_02.jpg') center 30% / cover no-repeat; }
.photo-e-2 { background: url('../images/imai_02.jpg') center 30% / cover no-repeat; }

/* ── MESSAGE TO YOU（末尾写真の後） ── */
.story-message-outer {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 40px 80px;
}
.story-message-outer .message-box { margin-top: 0; }

.story-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,15,22,0.78) 0%, rgba(10,15,22,0.35) 48%, transparent 72%),
    linear-gradient(to top, rgba(10,15,22,0.45) 0%, transparent 30%);
}
.story-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px;
  width: 100%;
}
.story-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--blue);
  border: 1px solid rgba(120, 194, 228, 0.5);
  background: rgba(120, 194, 228, 0.08);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.story-hero-name {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.story-hero-catch {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 38px);
  color: var(--white);
  font-weight: 600;
  line-height: 1.6;
  max-width: 600px;
}


/* ════════════════════════════════════════════
   STORY PAGES — BACK LINK
   ════════════════════════════════════════════ */
.story-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 24px 60px;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--gray);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  transition: color 0.3s;
}
.story-back::before { content: '←'; color: var(--blue); }
.story-back:hover { color: var(--ink); }


/* ════════════════════════════════════════════
   STORY PAGES — BODY
   ════════════════════════════════════════════ */
.story-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 40px 0;
}
.story-intro {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2.2;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 80px;
}

/* Chapters */
.chapter {
  margin-bottom: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.chapter:first-of-type { border-top: none; padding-top: 0; }

.chapter-number {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--blue);
  margin-bottom: 8px;
  font-weight: 300;
}
.chapter-title {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 36px;
  line-height: 1.6;
}
.chapter-body {
  font-size: 15px;
  line-height: 2.4;
  color: #3a3a3a;
  font-weight: 300;
}
.chapter-body p + p { margin-top: 24px; }
.chapter-body strong { color: var(--ink); font-weight: 500; }

.chapter-quote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--blue);
  background: rgba(120, 194, 228, 0.06);
  border-radius: 0 16px 16px 0;
}
.chapter-quote p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  line-height: 2;
  font-weight: 500;
}

/* Message box */
.message-box {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(120, 194, 228, 0.25);
  border-radius: 24px;
  padding: 52px;
  margin-top: 80px;
  position: relative;
  box-shadow: 0 8px 40px rgba(120, 194, 228, 0.10);
}
.message-label {
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--blue-dark);
  margin-bottom: 20px;
  position: relative;
}
.message-text {
  font-family: var(--serif);
  font-size: clamp(15px, 2vw, 20px);
  color: var(--navy);
  line-height: 2;
  font-weight: 500;
  position: relative;
}
.message-name {
  margin-top: 24px;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.15em;
  position: relative;
}


/* ════════════════════════════════════════════
   STORY PAGES — BOTTOM NAV
   ════════════════════════════════════════════ */
.story-nav-bottom {
  padding: 60px 40px;
  background: var(--gray-light);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.story-nav-prev,
.story-nav-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.2s;
}
.story-nav-prev { align-items: flex-start; }
.story-nav-next { align-items: flex-end; text-align: right; }
.story-nav-prev:hover,
.story-nav-next:hover { opacity: 0.7; }
.story-nav-dir {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--blue);
}
.story-nav-name {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.story-nav-catch {
  font-size: 12px;
  color: var(--gray);
  font-weight: 300;
}
.story-nav-center { text-align: center; }
.story-nav-home {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gray);
  transition: color 0.3s;
}
.story-nav-home:hover { color: var(--blue); }

/* ── back to top ── */
.back-to-top-wrap {
  text-align: center;
  padding: 28px 0 36px;
  background: var(--gray-light);
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gray);
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 10px 28px;
  border-radius: 50px;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.back-to-top:hover {
  color: var(--blue-dark);
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(120, 194, 228, 0.25);
}

/* ── story footer ── */
.story-footer {
  background: var(--blue);
  padding: 48px 40px;
  text-align: center;
}
.story-footer-cta {
  display: inline-block;
  margin-bottom: 24px;
  padding: 16px 48px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 500;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.25);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.story-footer-cta:hover {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 12px 32px rgba(13, 27, 42, 0.15);
}
.story-footer-copy {
  font-size: 11px;
  color: rgba(13, 27, 42, 0.45);
  letter-spacing: 0.1em;
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .site-nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-logo-img { height: 26px; }
  .nav-cta { padding: 7px 14px; font-size: 10px; letter-spacing: 0.08em; }

  /* Hero: フルブリード写真 + 下部ダークグラデーション */
  .hero { background: var(--navy); align-items: flex-end; }
  .hero::after { display: none; }  /* top.png をモバイルでは非表示 */
  .hero-carousel { width: 100%; opacity: 1; }
  .hero-carousel::before {
    display: block;
    width: 100%;
    background: linear-gradient(to top,
      rgba(13,27,42,0.92) 0%,
      rgba(13,27,42,0.55) 38%,
      rgba(13,27,42,0.15) 65%,
      transparent 100%
    );
  }
  .hero-content { padding: 0 28px 88px; width: 100%; max-width: 100%; }
  .hero-eyebrow { color: rgba(255,255,255,0.5); }
  .hero-title { color: var(--white); }
  .hero-title em { color: var(--blue); }
  .hero-sub { color: rgba(255,255,255,0.65); }
  .hero-scroll { color: rgba(255,255,255,0.4); }
  .hero-scroll-line { background: linear-gradient(to right, rgba(255,255,255,0.4), transparent); }
  .carousel-counter { bottom: 24px; right: 24px; }

  .message-reveal { padding: 80px 24px 60px; }
  .reveal-text { font-size: clamp(14px, 4.3vw, 28px); line-height: 2.2; }
  .reveal-sub { margin-top: 48px; padding-top: 36px; }

  .quiz-section { padding: 60px 24px 80px; }
  .quiz-inner { padding: 52px 32px; }
  .q-options.two-col { grid-template-columns: 1fr; }
  .q-options.tile-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile-grid .q-option { padding: 24px 12px 20px; gap: 12px; }
  .tile-grid .q-option-icon { width: 72px; height: 72px; }

  .result-cards { grid-template-columns: 1fr; }

  .all-section { padding: 60px 24px; }
  .students-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cta-footer { padding: 60px 24px; }
  .cta-btn,
  .cta-btn-outline { display: block; width: 100%; max-width: 400px; margin: 0 auto; }
  .cta-btn-outline { margin-top: 12px; }

  .story-hero-content { padding: 40px 24px; }
  .story-back { padding: 20px 24px; }
  .story-body { padding: 60px 24px 80px; }
  .message-box { padding: 40px 28px; }
  .story-photo-end { height: 65vw; min-height: 240px; max-height: 480px; }
  .story-message-outer { padding: 40px 24px 60px; }

  .story-nav-bottom {
    grid-template-columns: 1fr 1fr;
    padding: 40px 24px;
  }
  .story-nav-center { display: none; }
}

@media (max-width: 480px) {
  .students-grid { grid-template-columns: 1fr; }
  .story-nav-bottom { grid-template-columns: 1fr; gap: 32px; }
  .story-nav-next { align-items: flex-start; text-align: left; }
}

@media (max-width: 768px) {
  .title-sp-br { display: inline; }
  .quiz-start-btn { letter-spacing: 0.12em; padding: 18px 44px; white-space: nowrap; }
}

@media (max-width: 540px) {
  .hero-sub-spbr { display: inline; }
}
