/* Hallmark · genre: editorial · macrostructure: layered photographic hero · tone: quiet · anchor hue: violet · pre-emit critique: P5 H5 E4 S5 R5 V5 · contrast: pass (40–41) · slop: component pass */
@import url("./tokens.css");

:root {
  --purple: #6252bd;
  --purple-bright: #7a68da;
  --purple-pale: #eeeafb;
  --ink: #222129;
  --muted: #706d78;
  --line: #dedce4;
  --paper: #f7f6f8;
  --white: #fff;
  --mint: #dcebe5;
  --peach: #f4e4da;
  --shell: min(1200px, calc(100% - 56px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif; font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 16px; border-radius: 4px; background: var(--ink); color: white; }
.skip-link:focus { transform: translateY(0); }
.back-to-top { position: fixed; z-index: 90; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); width: 54px; height: 54px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: white; background: var(--purple); box-shadow: 0 14px 34px rgba(45,35,100,.28); opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; cursor: pointer; transition: opacity .2s, visibility .2s, transform .2s, background .2s, box-shadow .2s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: #5545ad; box-shadow: 0 17px 38px rgba(45,35,100,.36); transform: translateY(-2px); }
.back-to-top:active { transform: translateY(0); }
.back-to-top:focus-visible { outline: 3px solid #c8bfff; outline-offset: 3px; }
.back-to-top svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.notice-bar { height: 32px; color: #ddd8ff; background: #282530; font-size: 10px; letter-spacing: .2em; }
.notice-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.notice-inner span:last-child { color: #9e98aa; letter-spacing: .08em; }
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 12px 30px rgba(27,23,44,.07); backdrop-filter: blur(14px); }
.header-inner { height: 80px; display: flex; align-items: center; gap: 34px; }
.brand { width: 190px; flex: 0 0 auto; display: block; }
.brand img { width: 100%; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: 31px; margin-left: auto; }
.desktop-nav a { position: relative; color: #4f4b57; font-size: 13px; font-weight: 600; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--purple); transition: right .2s; }
.desktop-nav a:hover::after { right: 0; }
.header-action { min-height: 42px; display: inline-flex; align-items: center; gap: 18px; padding: 8px 15px; border-left: 1px solid var(--line); color: var(--purple); font-size: 13px; font-weight: 700; }
.header-action span { font-size: 17px; }
.menu-button, .mobile-menu { display: none; }

.hero { position: relative; min-height: 680px; display: block; overflow: hidden; border-bottom: var(--rule-hairline) solid var(--color-hero-rule); background: var(--color-hero-paper); isolation: isolate; }
.hero-copy { position: relative; z-index: 2; width: var(--shell); min-height: 680px; display: flex; flex-direction: column; margin-inline: auto; padding: 64px 0 84px; }
.hero-copy-inner { max-width: 620px; }
.section-label { margin: 0 0 24px; color: var(--purple); font-size: 11px; font-weight: 750; letter-spacing: .19em; text-transform: uppercase; }
.section-label::before { content: ""; width: 34px; height: 1px; display: inline-block; margin-right: 12px; vertical-align: middle; background: currentColor; }
.section-label.light { color: #c9c1f9; }
.hero h1 { margin: 0; color: var(--color-hero-ink); font-family: var(--font-display); font-size: var(--text-hero-display); font-weight: 600; line-height: 1.2; letter-spacing: -.055em; white-space: nowrap; }
.hero h1 em { color: var(--purple); font-style: normal; }
.hero-lead { max-width: 540px; margin: 30px 0 0; color: var(--muted); font-size: 16px; line-height: 2.05; }
.hero-actions { display: flex; align-items: center; gap: 31px; margin-top: 36px; pointer-events: auto; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 11px 21px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--purple); box-shadow: 0 12px 28px rgba(98,82,189,.2); }
.button.primary:hover { background: #5545ad; box-shadow: 0 15px 34px rgba(98,82,189,.27); }
.text-link { padding-block: 8px; border-bottom: 1px solid #aaa4ba; font-size: 13px; font-weight: 700; }
.text-link span { margin-left: 12px; color: var(--purple); }
.button, .text-link { white-space: nowrap; }
.button:focus-visible, .text-link:focus-visible { outline: 3px solid #c8bfff; outline-offset: 4px; }
.hero-meta { width: min(600px, 52vw); margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; padding-top: 24px; border-top: var(--rule-hairline) solid color-mix(in oklch, var(--color-hero-rule), transparent 18%); }
.hero-meta > span { color: #99949f; font-size: 10px; letter-spacing: .16em; }
.hero-meta p { margin: 0; color: #625e68; font-size: 12px; text-align: right; }
.hero-image { position: absolute; z-index: 0; inset: 0; min-width: 0; margin: 0; overflow: hidden; background: var(--color-hero-paper); }
.hero-image::before { content: ""; position: absolute; z-index: 1; right: 0; bottom: 0; width: 100%; height: 210px; background: radial-gradient(ellipse at 100% 100%, rgba(34,33,41,.56) 0%, rgba(34,33,41,.27) 38%, transparent 74%); pointer-events: none; }
.hero-image::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, color-mix(in oklch, var(--color-hero-paper), transparent 2%) 0%, color-mix(in oklch, var(--color-hero-paper), transparent 5%) 28%, color-mix(in oklch, var(--color-hero-paper), transparent 22%) 44%, color-mix(in oklch, var(--color-hero-paper), transparent 72%) 61%, transparent 78%); pointer-events: none; }
.hero-image > img { position: relative; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-image figcaption { position: absolute; z-index: 2; right: 34px; bottom: 28px; display: grid; justify-items: end; gap: 4px; padding: 0; color: white; text-align: right; text-shadow: 0 2px 14px rgba(20,18,26,.5); }
.hero-image figcaption span { font-family: "Yu Mincho", "Noto Serif JP", serif; font-size: 14px; letter-spacing: .06em; }
.hero-image figcaption small { color: #c9c5ce; font-size: 10px; }

.manifesto, .method, .content { padding: 118px 0 130px; }
.section-index { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding-bottom: 19px; border-bottom: 1px solid var(--line); color: #aaa6af; font-size: 10px; letter-spacing: .18em; }
.section-index.light { border-color: rgba(255,255,255,.2); color: #918aa2; }
.manifesto-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; padding-top: 80px; }
.manifesto h2, .course-heading h2, .method h2, .content-heading h2, .product h2, .journey h2 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: clamp(39px, 4.4vw, 62px); line-height: 1.32; letter-spacing: -.045em; font-weight: 600; }
.manifesto-copy > p { margin: 0; color: var(--muted); line-height: 2; }
.manifesto-copy .lead { margin-bottom: 24px; color: var(--ink); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 25px; line-height: 1.8; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 55px; border-top: 1px solid var(--line); }
.principles article { padding: 23px 18px 0 0; }
.principles article + article { padding-left: 20px; border-left: 1px solid var(--line); }
.principles span { color: var(--purple); font-family: "Noto Serif SC", serif; font-size: 19px; font-weight: 700; }
.principles p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }

.courses { padding: 112px 0 115px; color: white; background: #292630; }
.course-heading, .content-heading { display: grid; grid-template-columns: 1.05fr .65fr; align-items: end; gap: 110px; padding-top: 70px; }
.course-heading h2 { font-size: clamp(38px,3.25vw,48px); white-space: nowrap; }
.course-heading h2 span { display: inline; }
.course-heading > p, .content-heading > p { margin: 0 0 7px; color: #a7a1ad; line-height: 2; }
.level-list { margin-top: 70px; border-top: 1px solid rgba(255,255,255,.18); }
.level-row { min-height: 122px; display: grid; grid-template-columns: 58px 120px 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.14); transition: background .2s, padding .2s; }
.level-row:hover, .level-row:focus-visible { padding-inline: 15px; background: rgba(255,255,255,.055); outline: 0; }
.level-no { color: #77717f; font-size: 10px; }
.level-list strong { color: #b8abff; font-family: Georgia, serif; font-size: 41px; font-weight: 500; }
.level-list h3 { margin: 0; font-size: 17px; }
.level-list p { margin: 4px 0 0; color: #a7a1ad; font-size: 13px; }
.level-list small { display: flex; align-items: center; gap: 24px; color: #8e8896; font-family: "Yu Mincho", "Noto Serif JP", serif; font-size: 13px; }
.level-list small b { color: #c8bfff; font-family: system-ui, sans-serif; font-size: 18px; font-weight: 400; transition: transform .2s; }
.level-row:hover small b, .level-row:focus-visible small b { transform: translateX(5px); }
.course-note { display: flex; align-items: center; gap: 45px; margin-top: 38px; color: #8e8895; font-size: 12px; }
.course-note span { color: #bcb4c8; font-weight: 700; }
.course-note p { margin: 0; }

.method-layout { display: grid; grid-template-columns: minmax(470px,.92fr) minmax(0,1.08fr); gap: 80px; padding-top: 75px; }
.method-title { position: sticky; top: 150px; align-self: start; }
.method-title h2 { font-size: clamp(42px,3.7vw,52px); white-space: nowrap; }
.method-steps { border-top: 1px solid var(--line); }
.method-steps article { min-height: 150px; display: grid; grid-template-columns: 100px 1fr; gap: 28px; align-items: start; padding: 31px 0; border-bottom: 1px solid var(--line); }
.method-steps article > span { color: var(--purple); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.method-steps strong { font-family: "Noto Serif SC", serif; font-size: 23px; }
.method-steps p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.content { padding-top: 110px; background: white; }
.content-heading > p { color: var(--muted); }
.content-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 14px; margin-top: 62px; }
.content-card { position: relative; min-height: 310px; display: flex; flex-direction: column; overflow: hidden; padding: 28px; border: 1px solid var(--line); background: #f7f6f8; }
.content-card.wide { grid-column: span 1; }
.content-card > span { color: #98939e; font-size: 10px; }
.content-card h3 { margin: auto 0 10px; font-family: "Noto Serif SC", serif; font-size: 25px; }
.content-card p { position: relative; z-index: 1; max-width: 320px; margin: 0; color: var(--muted); font-size: 13px; }
.content-card em { position: absolute; right: -5px; top: 40px; color: rgba(34,33,41,.06); font-family: "Yu Mincho", serif; font-size: 100px; font-style: normal; line-height: 1; }
.content-card.purple { color: white; border-color: var(--purple); background: var(--purple); }
.content-card.purple > span, .content-card.purple p { color: #dad4ff; }
.content-card.purple em { color: rgba(255,255,255,.09); }
.content-card.mint { background: var(--mint); }
.content-card.peach { background: var(--peach); }
.content-card.ink { color: white; border-color: var(--ink); background: var(--ink); }
.content-card.ink > span, .content-card.ink p { color: #bdb9c2; }
.content-card.ink em { color: rgba(255,255,255,.07); }

.product { padding: 110px 0 120px; border-top: 1px solid var(--line); background: #f2f0f6; }
.product-heading { display: grid; grid-template-columns: 1.05fr .65fr; align-items: end; gap: 110px; padding-top: 70px; }
.product-heading > p { margin: 0 0 7px; color: var(--muted); line-height: 2; }
.product-services { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid #d5d1df; border-bottom: 1px solid #d5d1df; }
.product-services article { min-height: 245px; padding: 34px 34px 32px 0; }
.product-services article + article { padding-left: 34px; border-left: 1px solid #d5d1df; }
.product-services article > span { color: var(--purple); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.product-services strong { display: block; margin-top: 58px; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 21px; }
.product-services p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.product-note { min-height: 112px; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 22px; margin-top: 36px; padding: 20px 24px; background: white; }
.product-note > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--purple); font-family: "Yu Mincho", "Noto Serif JP", serif; font-size: 22px; }
.product-note p { margin: 0; }
.product-note strong, .product-note small { display: block; }
.product-note strong { font-size: 15px; }
.product-note small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.product-note a { color: var(--purple); font-size: 13px; font-weight: 750; }
.product-note a span { margin-left: 16px; }

.journey { position: relative; overflow: hidden; padding: 120px 0 150px; border-top: 1px solid var(--line); background: white; }
.journey-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .6fr; align-items: end; gap: 100px; }
.journey-actions p { margin: 0 0 25px; color: var(--muted); }
.journey-japanese { position: absolute; left: 1%; bottom: -42px; color: rgba(98,82,189,.06); font-family: "Yu Mincho", serif; font-size: clamp(70px, 11vw, 160px); white-space: nowrap; line-height: 1; }

.site-footer { color: white; background: #211f27; }
.footer-top { min-height: 180px; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 55px; }
.footer-brand { width: 205px; display: block; }
.footer-logo-art { position: relative; display: block; width: 100%; aspect-ratio: 2073 / 758; }
.footer-logo-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.footer-logo-color { opacity: 1; }
.footer-logo-wordmark { clip-path: inset(0 0 0 39.5%); filter: brightness(0) invert(1); }
.footer-top > p { color: #9d98a3; font-size: 13px; }
.footer-top nav { display: flex; gap: 27px; color: #beb9c2; font-size: 12px; }
.footer-top nav a:hover { color: white; }
.footer-bottom { min-height: 68px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); color: #78737d; font-size: 10px; }

@media (max-width: 1040px) {
  .desktop-nav { gap: 18px; }
  .header-action { display: none; }
  .hero, .hero-copy { min-height: 640px; }
  .hero-copy-inner { max-width: 560px; }
  .hero-image > img { object-position: 57% center; }
  .content-grid { grid-template-columns: 1fr 1fr; }
  .content-card:first-child { grid-column: 1 / -1; }
  .product-services { grid-template-columns: 1fr 1fr; }
  .product-services article:last-child { grid-column: 1 / -1; border-top: 1px solid #d5d1df; border-left: 0; }
  .method-layout { grid-template-columns: 1fr; gap: 52px; }
  .method-title { position: static; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 36px, 600px); }
  html { scroll-padding-top: 74px; }
  .notice-bar { display: none; }
  .header-inner { height: 72px; }
  .brand { width: 154px; }
  .desktop-nav { display: none; }
  .menu-button { width: 42px; height: 42px; margin-left: auto; display: grid; place-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 2px; background: white; }
  .menu-button span { width: 19px; height: 1px; background: var(--ink); transition: transform .2s; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-menu { position: fixed; z-index: 99; inset: 72px 0 auto; display: grid; padding: 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 25px 45px rgba(29,25,46,.12); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 650; }
  .hero { min-height: 0; display: flex; flex-direction: column; overflow: visible; }
  .hero-copy { order: 1; width: var(--shell); min-height: 0; padding: 52px 0 68px; }
  .hero h1 { font-size: clamp(30px, 9vw, 38px); }
  .hero .section-label { margin-bottom: 18px; }
  .hero-lead { margin-top: 22px; font-size: 15px; line-height: 1.9; }
  .hero-actions { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 16px 25px; margin-top: 28px; }
  .hero-actions .button { min-height: 48px; }
  .hero-meta { width: 100%; margin-top: 38px; }
  .hero-image { position: relative; inset: auto; order: 2; min-height: 360px; }
  .hero-image::before { width: 100%; height: 150px; }
  .hero-image::after { background: linear-gradient(180deg, var(--color-hero-paper) 0%, transparent 16%); }
  .hero-image > img { object-position: 62% center; }
  .hero-image figcaption { right: 18px; bottom: 18px; left: auto; }
  .manifesto, .method, .content { padding: 80px 0 92px; }
  .section-index { grid-template-columns: 48px 1fr; }
  .manifesto-grid, .course-heading, .method-layout, .content-heading, .product-heading, .journey-grid { grid-template-columns: 1fr; gap: 48px; }
  .course-heading h2 { font-size: clamp(31px,9vw,39px); white-space: normal; }
  .course-heading h2 span { display: block; white-space: nowrap; }
  .manifesto-grid, .course-heading, .method-layout, .content-heading, .product-heading { padding-top: 50px; }
  .manifesto-copy .lead { font-size: 21px; }
  .principles { grid-template-columns: 1fr; }
  .principles article, .principles article + article { display: grid; grid-template-columns: 62px 1fr; gap: 16px; padding: 17px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .principles p { margin: 0; }
  .courses { padding: 78px 0 86px; }
  .level-list { margin-top: 45px; }
  .level-row { grid-template-columns: 32px 70px 1fr; gap: 10px; padding: 19px 0; }
  .level-row:hover, .level-row:focus-visible { padding-inline: 8px; }
  .level-list strong { font-size: 31px; }
  .level-list small { display: none; }
  .course-note { align-items: flex-start; flex-direction: column; gap: 6px; }
  .method-title { position: static; }
  .method-title h2 { font-size: clamp(30px,9vw,38px); }
  .method-steps article { grid-template-columns: 75px 1fr; gap: 13px; }
  .content-grid { grid-template-columns: 1fr; margin-top: 45px; }
  .content-card, .content-card:first-child { grid-column: auto; min-height: 270px; }
  .product { padding: 78px 0 88px; }
  .product-services { grid-template-columns: 1fr; margin-top: 44px; }
  .product-services article, .product-services article + article { min-height: 0; padding: 27px 0; border-left: 0; border-top: 1px solid #d5d1df; }
  .product-services article:first-child { border-top: 0; }
  .product-services article:last-child { grid-column: auto; }
  .product-services strong { margin-top: 24px; }
  .product-note { grid-template-columns: 48px 1fr; }
  .product-note a { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
  .journey { padding: 88px 0 110px; }
  .journey-grid { align-items: start; gap: 36px; }
  .journey-actions .button { width: 100%; }
  .footer-top { min-height: 250px; grid-template-columns: 1fr; align-content: center; gap: 24px; }
  .footer-top nav { flex-wrap: wrap; gap: 15px 24px; }
  .footer-bottom { min-height: 85px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 3px; }
  .back-to-top { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
