:root {
  --ink: #1d1b18;
  --indigo: #17192f;
  --indigo-2: #252945;
  --ivory: #f6f0e5;
  --paper: #fbf8f2;
  --mist: #e8e9ec;
  --gold: #b8924b;
  --vermilion: #b95545;
  --line: rgba(23, 25, 47, .18);
  --shadow: 0 24px 70px rgba(23, 25, 47, .13);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .035em;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 999;
  padding: .7rem 1rem; background: #fff; color: var(--indigo);
}
.skip-link:focus { top: 1rem; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 48px)); margin-inline: auto; }
.section { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; overflow: clip; }
.section--paper { background: var(--paper); }
.section--mist { background: var(--mist); }
.section--dark { color: var(--ivory); background: var(--indigo); }
.section--line::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../../src/section-bg-1.jpg") center/cover no-repeat;
  opacity: .18; mix-blend-mode: screen;
}
.eyebrow {
  margin: 0 0 .85rem; color: var(--gold); font-size: .74rem;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.title {
  margin: 0 0 1.5rem; font-family: var(--serif); font-size: clamp(2rem, 4.3vw, 4.3rem);
  font-weight: 500; line-height: 1.28; letter-spacing: .03em;
}
.title--small { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.title, .lead, .quote, .portal h3, .feature h3, .course-row h3,
.faq-question > span:nth-child(2) { word-break: auto-phrase; text-wrap: balance; }
.hero-line-copy { display: inline; }
.lead { max-width: 760px; margin: 0; font-size: clamp(1rem, 1.7vw, 1.18rem); }
.fine { color: rgba(29, 27, 24, .68); font-size: .82rem; line-height: 1.75; }
.section--dark .fine { color: rgba(246, 240, 229, .68); }
.kicker {
  display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1rem;
  color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .16em;
}
.kicker::before { content: ""; width: 2.7rem; height: 1px; background: currentColor; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 84px;
  color: #fff; transition: background .3s, color .3s, box-shadow .3s;
}
.site-header.is-scrolled,
.subpage .site-header { color: var(--indigo); background: rgba(251, 248, 242, .96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; margin-right: auto; }
.brand img { width: 39px; height: 39px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 1.08rem; letter-spacing: .12em; white-space: nowrap; }
.global-nav { display: flex; align-items: center; gap: 1.55rem; font-size: .8rem; font-weight: 700; }
.global-nav > a, .nav-trigger { position: relative; padding: 1.7rem 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.global-nav > a::after, .nav-trigger::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 1.35rem; height: 1px;
  background: var(--gold); transition: right .25s;
}
.global-nav > a:hover::after, .nav-trigger:hover::after { right: 0; }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .65rem 1.25rem; color: #fff; background: var(--vermilion);
  font-size: .76rem; font-weight: 700; letter-spacing: .08em;
}
.mega-wrap { position: relative; }
.mega-menu {
  position: fixed; left: 50%; top: 75px; width: min(960px, calc(100% - 48px));
  padding: 2rem; color: var(--ink); background: var(--paper); box-shadow: var(--shadow);
  transform: translate(-50%, -8px); opacity: 0; visibility: hidden; transition: .22s;
}
.mega-wrap:hover .mega-menu, .mega-wrap:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-index { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 2rem; }
.mega-index a { display: block; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.mega-index strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.mega-index span { color: rgba(29,27,24,.62); font-size: .72rem; }
.menu-toggle { display: none; border: 0; background: none; color: inherit; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 1px; margin: 6px 0; background: currentColor; }
.mobile-panel { display: none; }

/* Buttons */
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem;
  min-height: 58px; padding: .85rem 1.55rem; border: 1px solid transparent;
  background: var(--vermilion); color: #fff; font-size: .85rem; font-weight: 700;
  letter-spacing: .08em; transition: transform .2s, background .2s, border-color .2s;
}
.button::after { content: "↗"; font-size: 1rem; }
.button:hover { transform: translateY(-2px); background: #a94638; }
.button--ghost { color: inherit; background: transparent; border-color: currentColor; }
.button--ghost:hover { color: var(--indigo); background: var(--ivory); }
.text-link { display: inline-flex; align-items: center; gap: .75rem; color: var(--indigo); font-weight: 700; border-bottom: 1px solid var(--gold); }
.section--dark .text-link { color: var(--ivory); }

/* Hero */
.hero {
  position: relative; width: 100%; min-height: 100svh; display: grid; place-items: center;
  color: #fff; background: var(--indigo); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,27,.96) 0%, rgba(10,12,27,.78) 39%, rgba(10,12,27,.12) 75%), url("../../src/fv.jpg") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background: url("../../src/texture-light-1.jpg") center/500px repeat;
  mix-blend-mode: screen;
}
.hero-inner { position: relative; z-index: 3; padding: 148px 0 80px; }
.hero-copy { width: min(800px, 62%); }
.hero-person {
  position: absolute; z-index: 3; right: max(5vw, calc((100vw - 1180px) / 2)); bottom: 0;
  width: min(31vw, 410px); filter: drop-shadow(0 24px 36px rgba(0,0,0,.32));
}
.hero h1 { margin: 0 0 1.4rem; font-family: var(--serif); font-size: clamp(3rem, 6.3vw, 6rem); font-weight: 500; line-height: 1.12; letter-spacing: .01em; }
.hero-sub { max-width: 540px; margin: 0; font-size: clamp(1rem, 1.65vw, 1.26rem); }
.hero-proof { display: flex; gap: 1.5rem; margin-top: 2rem; color: rgba(255,255,255,.72); font-size: .78rem; }
.hero-line { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.hero-line path { fill: none; stroke: rgba(184,146,75,.7); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.hero-line .line-soft { stroke: rgba(246,240,229,.22); stroke-width: .8; }
.j .hero-line path { stroke-dasharray: 1600; stroke-dashoffset: 1600; }
.hero-index { position: absolute; right: 3.5vw; bottom: 3rem; z-index: 4; color: rgba(255,255,255,.55); font-family: var(--serif); font-size: .72rem; writing-mode: vertical-rl; letter-spacing: .18em; }

/* Editorial layouts */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.split--reverse > :first-child { order: 2; }
.media-frame { position: relative; }
.media-frame::before { content: ""; position: absolute; inset: 1.1rem -1.1rem -1.1rem 1.1rem; border: 1px solid var(--gold); z-index: 0; }
.media-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }
.portal-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.portal {
  min-height: 360px; padding: clamp(2rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); position: relative;
}
.portal + .portal { border-left: 1px solid var(--line); }
.portal-number { color: var(--gold); font-family: var(--serif); font-size: 4.8rem; line-height: 1; opacity: .7; }
.portal h3 { margin: 2.5rem 0 1rem; font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 500; }
.pull {
  margin: 0; font-family: var(--serif); font-size: clamp(4rem, 9vw, 8.5rem); font-weight: 500;
  line-height: 1.04; letter-spacing: -.02em; color: var(--indigo);
}
.pull .gold { color: var(--gold); }
.problem-stack { margin-top: 3rem; border-top: 1px solid var(--line); }
.problem-row { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.problem-row span { color: var(--gold); font-family: var(--serif); }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3.2rem; background: var(--line); }
.feature { background: var(--paper); }
.feature img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feature-body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.feature-no { color: var(--gold); font-family: var(--serif); font-size: 1.5rem; }
.feature h3 { margin: 1rem 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(246,240,229,.22); margin-top: 3rem; }
.stat { padding: clamp(1.8rem, 4vw, 3.5rem); text-align: center; }
.stat + .stat { border-left: 1px solid rgba(246,240,229,.22); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(3rem, 7vw, 6.3rem); font-weight: 500; line-height: 1; color: var(--gold); }
.stat span { display: block; margin-top: 1rem; font-size: .82rem; }
.story-main { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); gap: clamp(2rem, 6vw, 6rem); margin-top: 4rem; align-items: start; }
.story-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.quote { margin: 0 0 1.5rem; font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.7rem); line-height: 1.5; }
.story-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin-top: 4rem; }
.story-mini { padding: clamp(1.7rem,4vw,3.2rem); color: var(--ink); background: var(--paper); }
.story-mini h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.course-rail { margin-top: 3rem; border-top: 1px solid var(--line); }
.course-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 2rem; align-items: center; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.course-row small { color: var(--gold); font-weight: 700; }
.course-row h3 { margin: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.profile-sign { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .15em; }

/* FAQ / process */
.faq-list { margin-top: 3rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; text-align: left; padding: 1.4rem 0; border: 0; background: none; color: inherit; cursor: pointer; }
.faq-q { color: var(--gold); font-family: var(--serif); font-size: 1.4rem; }
.faq-icon { transition: transform .2s; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 2.5rem 1.5rem; }
.faq-item.is-open .faq-answer { display: block; }
.process { counter-reset: steps; margin-top: 3rem; }
.process-step { counter-increment: steps; display: grid; grid-template-columns: 90px 1fr; gap: 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.process-step::before { content: "0" counter(steps); color: var(--gold); font-family: var(--serif); font-size: 2rem; }
.process-step h3 { margin: .15rem 0 .4rem; font-family: var(--serif); font-weight: 500; }
.cta-panel { position: relative; padding: clamp(3rem, 8vw, 7rem); color: #fff; background: var(--indigo); box-shadow: var(--shadow); overflow: hidden; }
.cta-panel::after { content: ""; position: absolute; inset: 0; background: url("../../src/section-bg-1.jpg") center/cover; opacity: .18; mix-blend-mode: screen; }
.cta-panel > * { position: relative; z-index: 1; }

/* Fixed pages */
.page-hero { position: relative; padding: 180px 0 100px; color: #fff; background: var(--indigo); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: url("../../src/section-bg-1.jpg") center/cover; opacity: .2; mix-blend-mode: screen; }
.page-hero .shell { position: relative; z-index: 1; }
.page-hero h1 { max-width: 880px; margin: 0 0 1.2rem; font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5.8rem); font-weight: 500; line-height: 1.2; }
.page-hero p { max-width: 740px; margin: 0; color: rgba(255,255,255,.76); font-size: 1.05rem; }
.breadcrumb { margin-bottom: 2rem; color: rgba(255,255,255,.58); font-size: .72rem; }
.content-prose { width: min(760px, 100%); }
.content-prose h2 { margin: 3.5rem 0 1rem; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; }
.content-prose h3 { margin: 2.5rem 0 .7rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.content-prose a { color: var(--vermilion); text-decoration: underline; }
.notice { padding: 1.3rem 1.5rem; border-left: 3px solid var(--gold); background: var(--paper); }
.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2rem; background: var(--line); }
.info-block { padding: clamp(1.5rem,3vw,2.6rem); background: var(--paper); }
.info-block h3 { margin: 0 0 .8rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.contact-frame { margin-top: 2.5rem; padding: clamp(1.5rem,4vw,3rem); border: 1px solid var(--line); background: var(--paper); }
.contact-frame iframe { width: 100%; min-height: 760px; border: 0; background: #fff; }
.article-meta { color: rgba(29,27,24,.6); font-size: .78rem; }

/* Footer */
.site-footer { color: rgba(246,240,229,.78); background: #0f1122; }
.footer-cta { padding: 5rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.9fr; gap: 4rem; padding: 4rem 0; }
.footer-brand { color: #fff; font-family: var(--serif); font-size: 1.5rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem 2rem; font-size: .78rem; }
.footer-nav a { padding: .35rem 0; }
.copyright { padding: 1rem 0 2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .68rem; }

/* Reveal fallback: visible by default; JS only enhances */
.reveal { opacity: 1; transform: none; }
.j .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; }
.j .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .global-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-panel {
    display: block; position: fixed; top: 0; right: 0; z-index: 110; width: min(420px, 92vw); height: 100svh;
    padding: 6rem 2rem 2rem; color: var(--indigo); background: var(--paper); box-shadow: -30px 0 70px rgba(23,25,47,.2);
    transform: translateX(105%); transition: transform .28s; overflow: auto;
  }
  .mobile-panel.is-open { transform: translateX(0); }
  .mobile-close { position: absolute; right: 1.5rem; top: 1.5rem; border: 0; background: none; font-size: 2rem; cursor: pointer; }
  .mobile-panel a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.1rem; }
  .mobile-panel .button { margin-top: 1.5rem; color: #fff; font-family: var(--sans); font-size: .8rem; }
  .hero-copy { width: min(650px, 72%); }
  .hero-person { right: 1.5vw; width: min(36vw, 360px); opacity: .92; }
  .course-row { grid-template-columns: 160px 1fr; }
  .course-row .text-link { grid-column: 2; justify-self: start; }
}

@media (max-width: 768px) {
  body { font-size: 15px; line-height: 1.85; }
  .shell, .narrow { width: min(100% - 32px, 1180px); }
  .site-header { height: 70px; }
  .brand img { width: 34px; height: 34px; }
  .section { padding: 4.8rem 0; }
  .hero { min-height: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(10,12,27,.95) 0%, rgba(10,12,27,.74) 58%, rgba(10,12,27,.48) 100%), url("../../src/hero-sub.jpg") center 38%/cover no-repeat; }
  .hero-inner { min-height: 820px; display: flex; align-items: flex-start; padding: 132px 0 80px; }
  .hero-copy { width: 100%; }
  .hero-person { right: -.5rem; width: min(60vw, 320px); opacity: .5; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 5.2rem); }
  .hero-sub { max-width: 100%; font-size: .92rem; letter-spacing: 0; overflow-wrap: anywhere; }
  .hero-proof { flex-direction: column; gap: .15rem; }
  .hero-index { display: none; }
  .button-row { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .split, .story-main, .footer-grid { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: initial; }
  .portal-list, .feature-list, .stats, .story-strip, .two-col-list { grid-template-columns: 1fr; }
  .portal + .portal, .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .portal { min-height: auto; }
  .pull { font-size: clamp(3.5rem, 18vw, 5.5rem); }
  .course-row { grid-template-columns: 1fr; gap: .5rem; }
  .course-row .text-link { grid-column: auto; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 135px 0 72px; }
  .page-hero h1 { font-size: clamp(2.05rem, 8.5vw, 2.55rem); letter-spacing: 0; }
  .page-hero .hero-line-copy { display: block; white-space: nowrap; }
  .button { padding: .8rem 1rem; gap: .65rem; font-size: .78rem; letter-spacing: .04em; text-wrap: balance; }
  .process-step { grid-template-columns: 55px 1fr; gap: 1rem; }
  .faq-answer { padding-left: 0; padding-right: 0; }
  .contact-frame iframe { min-height: 900px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .j .reveal { opacity: 1; transform: none; }
  .j .hero-line path { stroke-dashoffset: 0; }
}
