/* =========================================================
   Asteron — design system
   1. tokens  2. base  3. header  4. footer  5. hero
   6. sections  7. components  8. forms  9. motion  10. responsive
   ========================================================= */

/* 1. tokens ---------------------------------------------- */
:root {
  --ink: #111216;
  --ink-soft: #2b2f38;
  --paper: #f4f5f7;
  --paper-2: #e9ebef;
  --white: #fff;
  --blue: #3259f5;
  --blue-dark: #2646c8;
  --blue-text: #213db0;   /* small blue text on light — AAA */
  --blue-on-photo: #2646c8; /* display blue over the hero photo — AAA */
  --blue-light: #8ba0ff;
  --muted: #3b404a;
  --muted-dark: #b6bbc6;
  --muted-dark-2: #a6acb9;
  --line: rgba(17, 18, 22, .16);
  --line-soft: rgba(17, 18, 22, .09);
  --line-dark: rgba(255, 255, 255, .18);
  --line-dark-soft: rgba(255, 255, 255, .13);
  --line-dark-strong: rgba(255, 255, 255, .32);
  --line-strong: rgba(17, 18, 22, .34);
  --blue-line: rgba(33, 61, 176, .42);
  --blue-tint: rgba(50, 89, 245, .09);
  /* accents: one blue for display type on light grounds, a lighter one over the dark photo band */
  --accent: var(--blue-on-photo);
  --accent-on-photo-dark: #9db0ff;
  /* text on the ink background, strongest to quietest */
  --on-dark-strong: #e4e6eb;
  --on-dark: #cfd2d9;
  /* states */
  --danger: #c2384a;
  --danger-text: #932334;
  --danger-tint: rgba(194, 56, 74, .1);
  /* 外部フォントを待たず、各OSの読みやすい標準書体を使います。
     --display … 大見出し・宣言的なコピーに使う明朝。
     --jp      … 和文の本文・UI。
     --sans    … 欧文とラベル。 */
  --display: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif CJK JP", serif;
  --sans: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  /* type scale — nothing that carries meaning is set below --fs-label */
  --fs-nav: 13px;                                     /* header navigation */
  --fs-label: 12px;                                   /* eyebrows, tags, small caps labels */
  --fs-small: 14px;                                   /* hints, list rows, link labels, meta */
  --fs-body: clamp(15px, calc(14.4px + .15vw), 16px); /* running text */
  --fs-body-lg: clamp(16px, calc(15.4px + .15vw), 17px); /* long article text, FAQ questions, a stand-out line */
  --fs-lead: clamp(16px, 1.4vw, 19px);
  --fs-input: 16px;                                   /* 16px keeps iOS from zooming into fields */
  --fs-heading-sm: clamp(17px, 1.7vw, 21px);
  --fs-display-xs: clamp(20px, 1.8vw, 26px);          /* small card titles */
  --fs-display-s: clamp(24px, 2.3vw, 32px);           /* card titles */
  --fs-display-m: clamp(28px, 3.2vw, 44px);           /* sub-section headings */
  --fs-display-l: clamp(36px, 5vw, 72px);             /* section headings */
  --fs-display-xl: clamp(46px, 6.2vw, 88px);          /* page titles */
  --lh-body: 2;
  /* spacing rhythm */
  --space-section: clamp(64px, 7vw, 104px);
  --space-block: clamp(32px, 4vw, 56px);
  /* shape */
  --radius: 3px;
  --radius-pill: 99px;
  --shadow-accent-left: inset 2px 0 0 var(--blue);
  --text-veil: 0 0 24px rgba(244,245,247,.92), 0 0 8px rgba(244,245,247,.8);
  --side: clamp(24px, 5vw, 80px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --motion-feedback: .2s;
  --motion-enter: .56s;
  --header-h: 92px;
}

/* 2. base ------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
b, strong { font-weight: 500; }
h1, h2, h3, h4 { font-weight: 500; text-wrap: wrap; line-break: strict; }   /* 行長の均等化で単語を切らず、意味の区切りは .nb で指定する */
/* 本文は最終行が1〜2文字だけにならないよう、ブラウザに改行位置を整えてもらう。
   文節で折り返す .phrase の中では使わない：もともと1文字だけの行はできず、
   Chromium は keep-all と text-wrap: pretty が重なる一部の文章でクラッシュする */
:is(p, li, dd, dt, summary, figcaption, blockquote):not(.phrase, .phrase *) { text-wrap: pretty; }
/* 日本語は文節の切れ目でだけ改行する。ビルド時に BudouX が切れ目へ <wbr> を入れ、
   その段落に .phrase を付ける（scripts/phrase-breaks.mjs）。長い本文は通常の組版のまま */
.phrase { word-break: keep-all; overflow-wrap: break-word; }
/* 開きかっこを含む文節など、まとめて扱う単位（同じくビルド時に付く） */
.phrase-unit { display: inline-block; max-width: 100%; }
/* 入力欄の文字と、スクリプトが後から書き込む案内文には <wbr> がないので対象外にする */
.phrase :is(input, textarea, select) { word-break: normal; }
.phrase :is(.field-error, .form-status) { word-break: normal; word-break: auto-phrase; }
/* 明朝見出しは太らせず、字間と行間で見せる */
.hero h1, .page-hero h1, .page-head h1, .lead, .notfound h1 { font-weight: 500; }

:focus-visible {
  outline: 3px solid var(--blue-text);
  outline-offset: 4px;
  border-radius: var(--radius);
}
.section-dark :focus-visible, .site-footer :focus-visible, .mobile-menu :focus-visible {
  outline-color: var(--blue-light);
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: -60px; left: 20px; padding: 12px 18px; color: white; background: var(--ink); transition: top .2s ease; }
.skip-link:focus { top: 20px; }

/* 3. header ---------------------------------------------- */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--side);
  border-bottom: 1px solid var(--line-soft);
  transition: background .24s var(--ease), border-color .24s var(--ease);
}
.site-header.is-scrolled { height: 70px; border-bottom-color: var(--line); background: var(--white); }
/* Reading progress stays inside the existing header without changing its size. */
.site-header::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--blue); transform: scaleX(var(--reading-progress, 0)); transform-origin: left; pointer-events: none; }
.brand { position: relative; z-index: 101; width: 142px; }
.brand img { width: 100%; height: auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); font-size: var(--fs-nav); font-weight: 500; letter-spacing: .04em; }
.desktop-nav > a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; white-space: nowrap; }
.desktop-nav > a:not(.nav-contact)::after { content: ""; position: absolute; right: 0; bottom: 8px; left: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease); }
.desktop-nav > a:hover::after,
.desktop-nav > a:focus-visible::after,
.desktop-nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { padding: 0 20px; border-radius: var(--radius-pill); color: white; background: var(--ink); transition: background .25s ease, transform .25s ease; }
.nav-contact:is(:hover, :focus-visible) { background: var(--blue-text); }
.nav-contact span { display: inline-block; margin-left: 16px; transition: transform var(--motion-feedback) var(--ease); }
.nav-contact:is(:hover, :focus-visible) span { transform: translate(2px, -2px); }

.menu-button { position: relative; z-index: 101; display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-button > span:not(.sr-only) { position: absolute; left: 8px; width: 28px; height: 1px; background: currentColor; transition: transform .24s var(--ease); }
.menu-button > span:nth-child(2) { top: 17px; }
.menu-button > span:nth-child(3) { top: 26px; }
.menu-button[aria-expanded="true"] > span:nth-child(2) { transform: translateY(5px) rotate(45deg); }
.menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu { position: fixed; z-index: 99; inset: 0; display: none; flex-direction: column; justify-content: space-between; padding: 118px var(--side) 36px; overflow-y: auto; color: white; background: var(--ink); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-family: var(--display); font-weight: 500; font-size: clamp(23px, 6.6vw, 34px); letter-spacing: .01em; }
.mobile-menu nav span { display: inline-block; width: 42px; color: var(--muted-dark-2); font-family: var(--sans); font-size: var(--fs-label); vertical-align: top; }
.mobile-menu nav a[aria-current="page"] { border-bottom-color: var(--blue-light); }
.mobile-menu nav a[aria-current="page"] span { color: var(--blue-light); }
.mobile-menu-sub { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.mobile-menu-sub a { color: var(--on-dark); font-family: var(--jp); font-size: var(--fs-small); }
.mobile-menu > p { margin: 30px 0 0; color: var(--muted-dark-2); font-size: var(--fs-label); line-height: 1.9; letter-spacing: .14em; }

/* 4. footer ---------------------------------------------- */
.site-footer { padding: clamp(70px, 8vw, 110px) var(--side) 34px; color: var(--on-dark); background: var(--ink); font-family: var(--jp); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 60px 6vw; padding-bottom: clamp(50px, 6vw, 80px); border-bottom: 1px solid var(--line-dark); }
.footer-logo { display: block; width: 156px; }
.footer-logo img { width: 100%; height: auto; }
.footer-brand p { max-width: 350px; margin: 28px 0 0; color: var(--muted-dark); font-size: var(--fs-body); line-height: 2; }
.footer-mail { display: inline-block; margin-top: 22px; color: white; font-family: var(--sans); font-size: var(--fs-body-lg); letter-spacing: .01em; border-bottom: 1px solid var(--line-dark-strong); padding-bottom: 3px; transition: color .25s ease, border-color .25s ease; }
.footer-mail:hover { color: var(--blue-light); border-color: var(--blue-light); }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 4vw; }
.footer-nav h2 { margin: 0 0 8px; color: var(--muted-dark); font-family: var(--sans); font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font-size: var(--fs-small); transition: color .2s ease; }
.footer-nav a:hover { color: var(--blue-light); }
.footer-nav a:focus-visible, .footer-mail:focus-visible { color: var(--blue-light); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 26px; }
.footer-bottom p { margin: 0; color: var(--muted-dark); font-family: var(--sans); font-size: var(--fs-label); letter-spacing: .12em; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom nav a { color: var(--muted-dark); font-size: var(--fs-label); transition: color .2s ease; }
.footer-bottom nav a:hover { color: white; }

/* 5. hero ------------------------------------------------ */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 56px) var(--side) clamp(74px, 10vh, 120px); overflow: hidden; isolation: isolate; background: var(--paper); }
.hero-grid { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(17,18,22,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(17,18,22,.055) 1px, transparent 1px); background-size: 25vw 25vw; -webkit-mask-image: linear-gradient(to right, black, transparent 72%); mask-image: linear-gradient(to right, black, transparent 72%); }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { position: relative; margin: 0 0 clamp(30px, 4.5vh, 56px); padding-left: 44px; font-size: var(--fs-label); font-weight: 600; line-height: 1.55; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; position: absolute; top: 8px; left: 0; width: 29px; height: 1px; background: var(--blue); }
.hero h1 { margin: 0; font-family: var(--display); font-size: var(--fs-display-xl); line-height: 1.24; letter-spacing: -.025em; text-shadow: var(--text-veil); }
.hero h1 em { color: var(--accent); font-style: normal; }
@media (min-width: 761px) {
  .hero h1 { text-shadow: 0 0 8px rgba(244,245,247,.6); }
}
.hero .hero-kicker { max-width: 640px; margin-bottom: clamp(18px, 2.4vh, 28px); font-family: var(--jp); font-size: var(--fs-label); letter-spacing: .08em; text-transform: none; }
.hero .hero-subline { margin: clamp(14px, 2vh, 24px) 0 0; color: var(--muted); font-size: var(--fs-small); font-weight: 500; letter-spacing: .09em; }
.hero .hero-copy h1 { font-size: var(--fs-display-xl); line-height: 1.2; }
.hero-note { position: relative; z-index: 1; max-width: 640px; margin-top: clamp(34px, 4.5vh, 62px); padding: 22px 0 0; border-top: 1px solid var(--line-strong); }
.hero-note p { margin: 0 0 26px; font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.hero-index { position: absolute; top: 50%; right: 16px; margin: 0; font-size: var(--fs-label); letter-spacing: .18em; writing-mode: vertical-rl; transform: translateY(-50%); }

.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.hero-cta .button { min-width: 220px; padding-top: 16px; padding-bottom: 16px; }
.text-link { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-family: var(--jp); font-size: var(--fs-small); font-weight: 500; letter-spacing: .04em; transition: color .2s ease, border-color .2s ease; }
.text-link:hover { color: var(--blue-text); border-color: var(--blue-text); }
.text-link:focus-visible { color: var(--blue-text); border-color: var(--blue-text); }
.text-link > [aria-hidden="true"] { display: inline-block; transition: transform var(--motion-feedback) var(--ease); }
.text-link:is(:hover, :focus-visible) > [aria-hidden="true"] { transform: translateX(4px); }
.text-link[href^="#"]:is(:hover, :focus-visible) > [aria-hidden="true"] { transform: translateY(3px); }

/* 6. sections -------------------------------------------- */
.section { position: relative; padding: var(--space-section) var(--side); }
/* 背景が変わらないまま続く場合、上下の余白が二重になって間延びするので詰める */
.section-tint + .section-tint, .section-dark + .section-dark { padding-top: clamp(24px, 3vw, 54px); }
.section-dark { color: white; background: var(--ink); }
.section-tint { background: var(--paper-2); }
.section-label { display: flex; gap: 20px; align-items: center; font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.section-label::after { content: ""; height: 1px; min-width: 24px; flex: 1; margin-left: 12px; background: var(--line); transform-origin: left; }
.section-dark .section-label::after { background: var(--line-dark); }
.section-label span { color: var(--blue-text); }
.section-label p { margin: 0; }
.section-label.light { color: white; }
.section-label.light span, .section-dark .step-no, .section-dark .value-grid .num { color: var(--blue-light); }
.section-label.light p { color: var(--muted-dark); }
/* 節の見出しは全ページで同じ大きさ・同じ余白にそろえる（英字ラベルと罫線は置かない） */
.section-heading { margin: 0 0 var(--space-block); }
.section-heading h2 { margin: 0; font-family: var(--display); font-size: var(--fs-display-m); line-height: 1.4; letter-spacing: -.025em; }
.section-heading > p { max-width: 48em; margin: clamp(22px, 2.4vw, 32px) 0 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.section-dark .section-heading > p, .section-dark .process-intro > p, .section-dark .section-intro > p { color: var(--muted-dark); }

/* Content sections share the approved white surface. Existing section classes
   keep their spacing; contact bands, the footer and the mobile menu stay dark. */
main .section-dark:not(.contact-cta) {
  --muted-dark: var(--muted);
  --on-dark: var(--ink-soft);
  --on-dark-strong: var(--ink);
  --line-dark: var(--line);
  --line-dark-soft: var(--line-soft);
  --line-dark-strong: var(--line-strong);
  --blue-light: var(--blue-text);
  color: var(--ink);
  background: var(--white);
}
/* These components previously used literal white instead of the text roles. */
main .section-dark:not(.contact-cta) :is(
  .section-label.light, .business-card h3, .business-card-top i,
  .program-heading h3, .program-language-label, .program-card h4, .program-cta,
  .offer-link, .case-subtitle, .role-split-title,
  .split > h2, .split > h3, .split-stack h3, .usecase-list p
) { color: var(--ink); }
main .section-dark:not(.contact-cta) :is(.business-card-top i, .program-languages li) { border-color: var(--line); }
main .section-dark:not(.contact-cta) :is(.business-card-primary, .program-card:first-child, .case-photo.is-empty, .voice-list-dark .voice) { background: var(--paper); }
main .section-dark:not(.contact-cta) .voice-list-dark .voice.is-empty { background: transparent; }
main .section-dark:not(.contact-cta) .business-card:is(:hover, :focus-visible) { background: var(--paper-2); }
main .section-dark:not(.contact-cta) .business-card:is(:hover, :focus-visible) .business-card-top i { color: var(--white); background: var(--blue-text); }
main .section-dark:not(.contact-cta) .program-cta:hover { color: var(--blue-text); }
/* Outer rules establish the grid; the internal rules remain quiet. */
main :is(.business-grid, .program-grid, .program-paths, .offer-grid) { border-top-color: var(--line-strong); }

/* breadcrumb */
.breadcrumb { padding: calc(var(--header-h) + 22px) var(--side) 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-family: var(--jp); font-size: var(--fs-label); }
.breadcrumb li::after { content: "/"; margin-left: 10px; color: var(--line); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb a:hover { color: var(--blue-text); }
.breadcrumb [aria-current] { color: var(--ink); }

/* page hero (sub pages) */
.page-hero { position: relative; min-height: min(760px, 86vh); min-height: min(760px, 86svh); overflow: hidden; isolation: isolate; background: var(--paper); }
.page-hero-content { position: absolute; right: var(--side); bottom: clamp(64px, 9vh, 100px); left: var(--side); }
.page-hero h1 { max-width: 1100px; margin: 0; font-family: var(--display); font-size: var(--fs-display-xl); line-height: 1.22; letter-spacing: -.025em; text-shadow: var(--text-veil); }
.page-hero h1 em { color: var(--accent); font-style: normal; }
.nb { display: inline-block; max-width: 100%; text-wrap: wrap; }   /* 意味のまとまりを保つ。拡大時など、句自体が幅を超える場合は折り返す */

.page-number::after { content: attr(data-number); }   /* decorative: kept out of the text layer */
.page-number { position: absolute; top: 115px; right: var(--side); margin: 0; color: rgba(17,18,22,.13); font-size: clamp(90px, 14vw, 210px); line-height: 1; letter-spacing: -.08em; }

/* education page hero — the content flows instead of being pinned
   to the bottom, so the heading, the lead, the note and the two CTAs all fit in one view */
/* パンくずが先にヘッダー分を空けているので、ここでは --header-h を足さない */
.page-hero-flow { display: flex; align-items: flex-end; min-height: min(740px, 84vh); min-height: min(740px, 84svh); padding: clamp(40px, 6vh, 72px) var(--side) clamp(56px, 7vh, 88px); }
.page-hero-flow .page-hero-content { position: static; width: 100%; }
.page-hero-flow h1 { max-width: none; font-size: var(--fs-display-xl); }
.hero-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 410px); gap: clamp(30px, 4vw, 68px); align-items: end; margin-top: clamp(36px, 5vh, 68px); }
.hero-detail-text { grid-column: 2; grid-row: 1; padding: 18px 20px; border-top: 1px solid var(--line-strong); background: rgba(244,245,247,.9); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); font-family: var(--jp); }
.hero-detail-text p { margin: 0; font-size: var(--fs-body); line-height: 2; }
.hero-detail-text .hero-detail-note { margin-top: 16px; color: var(--muted); font-size: var(--fs-small); line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; grid-column: 1; grid-row: 1; }
.hero-actions .text-link { width: 176px; }

/* education shortcuts — existing type, rules and spacing, without a second sticky bar */
.page-nav { padding: 26px var(--side); border-bottom: 1px solid var(--line); }
.page-nav ul { display: flex; flex-wrap: wrap; gap: 4px 32px; margin: 0; padding: 0; list-style: none; }
.page-nav a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; font-family: var(--jp); font-size: var(--fs-small); line-height: 1.8; }
.page-nav a span { color: var(--blue-text); }
.page-nav a:hover { color: var(--blue-text); }
.page-nav a:focus-visible { color: var(--blue-text); }
.page-nav a span { display: inline-block; transition: transform var(--motion-feedback) var(--ease); }
.page-nav a:is(:hover, :focus-visible) span { transform: translateY(3px); }

/* compact hero for utility pages */
.page-head { position: relative; padding: clamp(36px, 5vw, 84px) var(--side) 0; }
.page-head .eyebrow { margin-bottom: 26px; }
.page-head h1 { margin: 0; font-family: var(--display); font-size: var(--fs-display-xl); line-height: 1.28; letter-spacing: -.025em; }
.page-head h1 em { color: var(--accent); font-style: normal; }
.page-head > p:not(.eyebrow) { max-width: 48em; margin: clamp(28px, 3.5vw, 44px) 0 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.page-head + .section { padding-top: clamp(64px, 7vw, 110px); }
.page-head-cta { padding-bottom: clamp(74px, 8vw, 120px); }
.page-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; margin-top: 42px; }
.page-head-actions .text-link { width: 230px; }
/* key facts under a page title (contact) */
.page-facts { display: flex; max-width: 760px; margin: clamp(28px, 3.5vw, 44px) 0 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--jp); }
.page-facts div { flex: 1 1 0; min-width: 0; padding: 14px 20px 14px 0; }
.page-facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.page-facts dt { color: var(--muted); font-size: var(--fs-label); }
.page-facts dd { margin: 4px 0 0; font-size: var(--fs-small); font-weight: 500; line-height: 1.6; }

/* 7. components ------------------------------------------ */

.intro-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 540px); gap: clamp(28px, 3vw, 44px); align-items: end; margin-top: clamp(70px, 9vw, 130px); }
.lead { position: relative; z-index: 2; margin: 0; font-family: var(--display); font-size: var(--fs-display-m); line-height: 1.7; letter-spacing: -.02em; }
.lead span { color: var(--accent); }
.intro-body { position: relative; z-index: 2; max-width: none; }
/* リード文の真下に本文を積む版（development で使用） */
.intro-stack { display: block; }
.intro-stack .intro-body { max-width: 860px; margin-top: clamp(30px, 3.4vw, 46px); }
.intro-body p { margin: 0 0 24px; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.intro-body p:last-child { margin-bottom: 0; }

/* business cards */
.business { padding-bottom: clamp(90px, 9vw, 150px); }
.business-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.business-card { position: relative; display: flex; min-height: 620px; padding: 40px clamp(26px, 3.6vw, 58px) 46px; overflow: hidden; flex-direction: column; border-left: 1px solid var(--line-dark); transition: background .35s ease; }
.business-card:first-child { border-left: 0; }
.business-card:hover { background: rgba(255,255,255,.045); }
/* 主事業の見せ方。青いグラデーションはAI企業の常套句なので使わず、
   ごく薄い明度差と、左端の細い罫線だけで差をつけています */
.business-card-primary { background: rgba(255,255,255,.04); }
.business-card-primary::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--blue); }
.business-card::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .36s var(--ease); pointer-events: none; }
.business-card:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.business-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted-dark); font-size: var(--fs-label); letter-spacing: .15em; }
.business-card-top i { display: grid; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; place-items: center; color: white; font-size: 18px; font-style: normal; transition: color var(--motion-feedback) var(--ease), border-color var(--motion-feedback) var(--ease), background var(--motion-feedback) var(--ease), transform var(--motion-feedback) var(--ease); }
.business-card:is(:hover, :focus-visible) .business-card-top i { background: var(--blue); border-color: var(--blue-text); transform: translate(2px, -2px); }
.business-card h3 { margin: 0 0 36px; color: var(--white); font-family: var(--display); font-weight: 500; font-size: var(--fs-display-s); line-height: 1.4; letter-spacing: .01em; }
.business-description { max-width: 500px; margin: 0 0 32px; color: var(--muted-dark); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.business-card ul { margin: auto 0 30px; padding: 0; list-style: none; }
.business-card li { padding: 11px 0; border-top: 1px solid var(--line-dark-soft); color: var(--on-dark); font-family: var(--jp); font-size: var(--fs-small); }
.business-more { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line-dark-strong); font-family: var(--jp); font-size: var(--fs-small); }
.business-more b { font-size: 20px; font-weight: 400; transition: transform .25s var(--ease); }
.business-card:is(:hover, :focus-visible) .business-more b { transform: translateX(4px); }

/* homepage business structure */
.business-overview { margin-top: 0; }
.business-overview-heading { margin-bottom: clamp(48px, 6vw, 78px); }
.business-overview-heading h2 { max-width: 820px; margin: 0; font-family: var(--display); font-size: var(--fs-display-l); line-height: 1.38; letter-spacing: -.02em; }
.business-overview-heading p { max-width: 760px; margin: clamp(22px, 2.4vw, 32px) 0 0; color: var(--muted-dark); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.business-overview .business-card { min-height: 560px; }
.business-overview .business-card h3 { margin: clamp(58px, 6vw, 88px) 0 30px; color: white; font-family: var(--display); font-size: var(--fs-display-m); line-height: 1.45; letter-spacing: .005em; }

/* homepage education programs — keeps the existing dark card language while
   giving the four-step learning path enough room to stay readable */
.program-showcase { margin-top: clamp(86px, 10vw, 150px); }
.program-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 390px); gap: 40px clamp(48px, 8vw, 120px); align-items: start; margin-bottom: clamp(54px, 6vw, 84px); }
.program-heading-label { margin: 0 0 22px; color: var(--blue-light); font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.program-heading h3 { margin: 0; color: white; font-family: var(--display); font-size: var(--fs-display-l); font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }
.program-heading-description { max-width: 840px; margin: 28px 0 0; color: var(--muted-dark); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.program-languages { padding: 24px 0 0; border-top: 1px solid var(--line-dark); font-family: var(--jp); }
.program-language-label { margin: 0 0 12px; color: white; font-size: var(--fs-small); font-weight: 500; }
.program-languages > p:not(.program-language-label) { margin: 0; color: var(--muted-dark); font-size: var(--fs-small); line-height: 1.9; }
.program-languages ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.program-languages li { padding: 6px 11px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-pill); color: var(--on-dark-strong); font-size: var(--fs-label); letter-spacing: .04em; }
.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.program-card { display: flex; min-height: 580px; padding: clamp(32px, 3.2vw, 48px) clamp(26px, 3.5vw, 54px) 42px; flex-direction: column; border-left: 1px solid var(--line-dark); }
.program-card:nth-child(odd) { border-left: 0; }
.program-card:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
.program-card:nth-child(1) { box-shadow: var(--shadow-accent-left); background: rgba(255,255,255,.025); }
.program-stage { margin: 0; color: var(--blue-light); font-size: var(--fs-label); font-weight: 600; letter-spacing: .13em; }
.program-card h4 { margin: 42px 0 18px; color: white; font-family: var(--display); font-size: var(--fs-display-s); font-weight: 500; line-height: 1.45; letter-spacing: .005em; }
.program-catch { margin: 0 0 24px; color: var(--on-dark-strong); font-family: var(--display); font-size: var(--fs-lead); line-height: 1.85; }
.program-description { margin: 0 0 32px; color: var(--on-dark); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.program-card ul { margin: auto 0 0; padding: 0; list-style: none; }
.program-card li { padding: 10px 0; border-top: 1px solid var(--line-dark-soft); color: var(--on-dark); font-family: var(--jp); font-size: var(--fs-small); }
.program-cta { margin-top: clamp(42px, 5vw, 68px); padding: 24px 0; color: white; font-size: var(--fs-lead); }
.program-cta:is(:hover, :focus-visible) { color: var(--blue-light); border-color: var(--blue); }
.program-cta:is(:hover, :focus-visible) b { transform: translateX(4px); }

/* service list (sub pages) */
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }

.offer-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer-grid article { padding: 38px clamp(22px, 2.6vw, 44px) 46px; border-left: 1px solid var(--line-dark); }
.offer-grid article:first-child { border-left: 0; }
.offer-grid article > span { color: var(--blue-light); font-size: var(--fs-label); font-weight: 600; letter-spacing: .15em; }
/* 3カラムの見出しは既存の文字サイズを保ち、必要に応じて意味の区切りで折り返す */
.offer-grid h3 { margin: 44px 0 20px; font-family: var(--display); font-weight: 500; font-size: var(--fs-display-xs); line-height: 1.5; letter-spacing: .01em; }
.offer-grid > article > p { margin: 0 0 30px; color: var(--muted-dark); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }

.offer-grid ul { margin: 0; padding: 0; list-style: none; }
.offer-grid li { padding: 10px 0; border-top: 1px solid var(--line-dark-soft); color: var(--on-dark); font-family: var(--jp); font-size: var(--fs-small); }
/* coaching record: the caveat sits with the results it qualifies */
.track-note { max-width: 52em; margin: clamp(30px, 3.4vw, 44px) 0 0; color: var(--muted-dark); font-family: var(--jp); font-size: var(--fs-small); line-height: 1.9; }
/* link from a service card to its cases */
.offer-link { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: 32px; padding: 14px 0; border-top: 1px solid var(--line-dark-strong); border-bottom: 1px solid var(--line-dark-strong); color: white; font-family: var(--jp); font-size: var(--fs-small); }
.offer-link i { font-size: 18px; font-style: normal; transition: transform .25s var(--ease); }
.offer-link:is(:hover, :focus-visible) i { transform: translateX(4px); }
/* a real case that is waiting for permission to be published */
.offer-grid .case-status { display: inline-block; margin: 0; padding: 6px 12px; border: 1px dashed var(--line-dark-strong); border-radius: var(--radius-pill); color: var(--muted-dark); font-family: var(--jp); font-size: var(--fs-label); line-height: 1.6; letter-spacing: .06em; }
/* case photo; .is-empty holds the frame until the photo arrives */
.case-photo { margin: 0 0 32px; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.case-photo img { width: 100%; height: 100%; object-fit: cover; }
.case-photo.is-empty { display: grid; border: 1px dashed var(--line-dark-strong); background: rgba(255,255,255,.04); place-items: center; }
.case-photo.is-empty span { color: var(--muted-dark); font-family: var(--jp); font-size: var(--fs-label); letter-spacing: .06em; }
/* voices from a case: teacher and pupil comments; .is-empty holds the slot until the comment arrives */
.voice-list { display: grid; gap: 16px; margin: 32px 0 0; }
.voice { margin: 0; padding: 22px 24px; border-left: 2px solid var(--blue); background: var(--paper); }
.voice blockquote { margin: 0; }
.voice blockquote p { margin: 0; color: var(--ink-soft); font-family: var(--jp); font-size: var(--fs-body); line-height: 2; }
.voice figcaption { margin-top: 10px; color: var(--muted); font-family: var(--jp); font-size: var(--fs-label); letter-spacing: .04em; }
.voice.is-empty { border: 1px dashed var(--line); border-left-width: 2px; background: transparent; }
.voice.is-empty blockquote p { color: var(--muted); font-size: var(--fs-small); }
.voice-list-dark .voice { border-left-color: var(--blue-light); background: rgba(255,255,255,.05); }
.voice-list-dark .voice blockquote p { color: var(--on-dark); }
.voice-list-dark .voice figcaption, .voice-list-dark .voice.is-empty blockquote p { color: var(--muted-dark); }
.voice-list-dark .voice.is-empty { border-color: var(--line-dark-strong); background: transparent; }
/* in-article facts and photo */
.article-facts { margin: 0; border-top: 1px solid var(--line); }
.article-facts div { display: grid; grid-template-columns: 7em 1fr; gap: 14px 28px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body); }
.article-facts dt { color: var(--muted); }
.article-facts dd { margin: 0; }
.article-photo { margin: 0; overflow: hidden; border-radius: var(--radius); }
.article-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.article-photo figcaption { margin-top: 10px; color: var(--muted); font-size: var(--fs-small); }
.article-photo.is-empty { display: grid; aspect-ratio: 3 / 2; border: 1px dashed var(--line); background: var(--paper); place-items: center; }
.article-photo.is-empty span { color: var(--muted); font-size: var(--fs-label); letter-spacing: .06em; }
.case-subtitle { margin: clamp(56px, 6vw, 90px) 0 clamp(24px, 3vw, 36px); color: white; font-family: var(--display); font-size: var(--fs-display-s); font-weight: 500; line-height: 1.5; }

/* process */
.process { overflow: hidden; }
.process-intro { margin: 0 0 var(--space-block); }
.process-intro h2 { margin: 0; font-family: var(--display); font-size: var(--fs-display-m); line-height: 1.4; letter-spacing: -.025em; }
.process-intro > p { max-width: 48em; margin: clamp(22px, 2.4vw, 32px) 0 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.process-steps li { position: relative; display: flex; flex-direction: column; min-height: 230px; padding: 34px clamp(16px, 2.2vw, 34px) 34px 0; border-right: 1px solid var(--line); }
.process-steps li:not(:first-child) { padding-left: clamp(16px, 2.2vw, 34px); }
.process-steps li:last-child { border-right: 0; }
.section-dark .process-steps, .section-dark .process-steps li { border-color: var(--line-dark); }
.section-dark .process-steps p { color: var(--muted-dark); }
.step-no { display: block; color: var(--blue-text); font-size: var(--fs-label); letter-spacing: .12em; }
.process-steps li > div { margin-top: 26px; max-width: 250px; }
.process-steps h3 { margin: 0 0 18px; font-family: var(--display); font-weight: 500; font-size: var(--fs-display-xs); line-height: 1.4; letter-spacing: .01em; }
.process-steps p { margin: 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: 2; }

/* school learning cycle */
.learning-cycle { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.learning-cycle li { position: relative; min-height: 270px; padding: 28px clamp(18px, 2vw, 30px) 32px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.5); }
.learning-cycle li:not(:last-child)::after { content: "→"; position: absolute; z-index: 1; top: 50%; right: -16px; display: grid; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; color: var(--blue-text); background: var(--paper); font-size: var(--fs-label); place-items: center; transform: translateY(-50%); }
.learning-cycle li > span { color: var(--blue-text); font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; }
.learning-cycle h3 { margin: clamp(54px, 5vw, 78px) 0 18px; font-family: var(--display); font-size: var(--fs-display-xs); line-height: 1.45; }
.learning-cycle p { margin: 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: 2; }
.cycle-return { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: 26px 0 0; color: var(--blue-text); font-family: var(--jp); font-size: var(--fs-small); font-weight: 500; }
.cycle-return span { font-size: 24px; line-height: 1; }

/* school programs */
/* 考え方からプログラムへ続く間隔は、後続セクション側だけで確保する。 */
.section.education-principle { padding-bottom: 0; }
.section.education-programs { padding-top: clamp(64px, 11vw, 160px); }
.education-programs > .process-intro { margin-top: clamp(32px, 3.4vw, 48px); }
.program-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.program-path { display: flex; min-height: 480px; flex-direction: column; padding: 34px clamp(24px, 3.4vw, 54px) 40px; border-left: 1px solid var(--line); background: rgba(255,255,255,.28); }
.program-path:nth-child(odd) { border-left: 0; }
.program-path:nth-child(n+3) { border-top: 1px solid var(--line); }
.program-paths-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.program-paths-three .program-path { min-height: 560px; border-top: 0; border-left: 1px solid var(--line); }
.program-paths-three .program-path:first-child { border-left: 0; }
.program-paths-compact .program-path { min-height: 440px; }

.program-path-label { margin: 0; color: var(--blue-text); font-size: var(--fs-label); font-weight: 600; letter-spacing: .15em; }
.program-path h3 { margin: 52px 0 24px; font-family: var(--display); font-size: var(--fs-display-s); line-height: 1.5; letter-spacing: -.01em; }
.program-path > p:not(.program-path-label) { margin: 0 0 34px; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.program-path ul { margin: auto 0 0; padding: 0; list-style: none; }
.program-path li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-family: var(--jp); font-size: var(--fs-small); }
/* what the three programmes share, said once */
.program-common { max-width: 48em; margin: clamp(32px, 3.4vw, 44px) 0 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.program-common a { margin-left: .5em; color: var(--blue-text); border-bottom: 1px solid var(--blue-line); white-space: nowrap; }
.program-related { display: flex; justify-content: flex-end; margin: 30px 0 0; }
.program-related .text-link { width: min(100%, 520px); }

.schools-outline-grid { margin-top: clamp(70px, 9vw, 130px); }
.outline-lead { max-width: 30em; margin: 28px 0 0; color: var(--muted-dark); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.role-split-title { margin: clamp(38px, 4vw, 56px) 0 18px; font-family: var(--jp); font-size: var(--fs-small); font-weight: 500; letter-spacing: .08em; }
.section-dark .role-split-title { color: white; }
.school-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1120px; margin: clamp(52px, 6vw, 82px) 0 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.school-facts div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 21px clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--line); font-family: var(--jp); line-height: 1.8; }
.school-facts div:first-child { padding-left: 0; border-left: 0; }
.school-facts dt { color: var(--blue-text); font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; }
.school-facts dd { margin: 0; color: var(--ink-soft); font-size: var(--fs-small); }

/* section introduction */
/* セクション自体の余白があるので、見出し塊の上は空けない */
.section-intro { margin: 0 0 var(--space-block); }
.section-intro h2, .news-layout h2 { margin: 0; font-family: var(--display); font-size: var(--fs-display-m); line-height: 1.4; letter-spacing: -.025em; }
.section-intro > p { max-width: 48em; margin: clamp(22px, 2.4vw, 32px) 0 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: 2; }

/* news */
.news-layout { margin-top: 0; }
.news-layout h2 + div { margin-top: clamp(30px, 3.4vw, 46px); }
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 210px 1fr; gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.news-item > div { display: flex; align-items: center; gap: 20px; }
.news-item time { color: var(--muted); font-size: var(--fs-label); letter-spacing: .08em; }
.news-item .tag { padding: 5px 9px; border: 1px solid var(--blue-line); border-radius: var(--radius-pill); color: var(--blue-text); font-family: var(--jp); font-size: var(--fs-label); white-space: nowrap; }
.news-item p { margin: 0; font-family: var(--jp); font-size: var(--fs-body); line-height: 1.85; }
/* "see all" link under a short list */
.list-more { margin: 34px 0 0; }
.list-more .text-link { width: 230px; max-width: 100%; }

/* profile / spec table */
.profile { display: block; }
.profile-content { margin-top: clamp(50px, 6vw, 90px); }
.profile-content .spec { width: 100%; margin: 0; }
.profile-content h2 { max-width: 900px; margin: 0; font-family: var(--display); font-size: var(--fs-display-l); line-height: 1.4; letter-spacing: -.025em; }
.profile-content > p { max-width: 680px; margin: clamp(40px, 4vw, 58px) 0 clamp(54px, 6vw, 74px); color: var(--ink-soft); font-family: var(--display); font-weight: 500; font-size: var(--fs-lead); line-height: var(--lh-body); letter-spacing: .01em; }
.spec { width: min(100%, 760px); margin: 0 0 0 auto; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 150px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--jp); font-size: var(--fs-small); line-height: 1.9; }
.spec dt { color: var(--muted); }
.spec dd { min-width: 0; margin: 0; }
/* 経歴など複数行になる値。折り返した行と次の項目を見分けられるよう、項目の間をあけて行頭に印を付ける */
.spec-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.spec-list li { position: relative; padding-left: 1.1em; }
.spec-list li::before { content: ""; position: absolute; top: .9em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-text); }
.spec-full { width: 100%; margin: 0; }
/* 暗い背景のセクションに置いたとき */
.section-dark .spec { border-top-color: var(--line-dark); }
.section-dark .spec div { border-bottom-color: var(--line-dark); }
.section-dark .spec dt { color: var(--muted-dark); }
.section-dark .spec dd { color: var(--on-dark-strong); }
.section-dark .spec a { color: var(--blue-light); }
.price-detail-link { display: inline-block; margin-top: 12px; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.section-dark .split > h2, .section-dark .split > h3, .section-dark .split-stack h3 { color: white; }

/* about — 顔写真つきのプロフィール。写真を外しても本文側だけで成立します */
.bio { display: grid; grid-template-columns: minmax(0, .4fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 78px); align-items: start; margin-top: 0; }
.bio-photo { max-width: 320px; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.bio-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.bio-body h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: var(--fs-display-m); line-height: 1.4; letter-spacing: .01em; }
.bio-role { margin: 18px 0 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: 1.9; letter-spacing: .04em; }
.bio-body .spec { margin-top: clamp(34px, 4vw, 52px); }

/* education — 活用例 */
.usecase-list { margin: 0; padding: 0; border-top: 1px solid var(--line-dark); list-style: none; counter-reset: none; }
.usecase-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: baseline; gap: 0 clamp(16px, 2vw, 34px); padding: clamp(22px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line-dark); }
.usecase-list span { color: var(--blue-light); font-size: var(--fs-label); font-weight: 600; letter-spacing: .15em; }
.usecase-list p { margin: 0; color: var(--white); font-family: var(--display); font-weight: 500; font-size: var(--fs-display-xs); line-height: 1.6; letter-spacing: .01em; }
/* 明るい背景に置いたとき（もとは暗い背景用の部品） */
.section:not(.section-dark) .usecase-list { border-top-color: var(--line); }
.section:not(.section-dark) .usecase-list li { border-bottom-color: var(--line); }
.section:not(.section-dark) .usecase-list span { color: var(--blue-text); }
.section:not(.section-dark) .usecase-list p { color: var(--ink); }
.usecase-note { position: relative; max-width: 30em; margin: clamp(34px, 4vw, 54px) 0 0; padding-left: 58px; color: var(--on-dark-strong); font-family: var(--jp); font-size: var(--fs-lead); line-height: 1.95; letter-spacing: .01em; }
.usecase-note::before { content: ""; position: absolute; top: .95em; left: 0; width: 40px; height: 1px; background: var(--blue-light); }

/* education — 教える人（複数名） */
/* 人数に合わせて列が増減します（1列あたり最小260px） */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(34px, 4.5vw, 70px); }
.person-photo { max-width: 260px; margin: 0 0 28px; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.person-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
/* 写真が未用意のときのプレースホルダー */
/* 帯背景（--paper-2）と同色になって消えないよう、枠線で輪郭を出す */
.person-photo.is-empty { display: grid; aspect-ratio: 4 / 5; border: 1px dashed var(--line); background: rgba(255,255,255,.5); place-items: center; }
.person-photo.is-empty img { width: 58px; aspect-ratio: auto; opacity: .26; }
.person-name { margin: 0; font-family: var(--display); font-weight: 500; font-size: var(--fs-display-s); line-height: 1.4; letter-spacing: .01em; }
.person-name span { color: var(--muted); font-family: var(--jp); font-size: .52em; letter-spacing: .02em; }
.person-list { margin: clamp(22px, 2.4vw, 32px) 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.person-list li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-family: var(--jp); font-size: var(--fs-small); line-height: 1.95; }

/* figures / two-column prose */
.split { display: grid; grid-template-columns: .35fr 1fr; gap: 6vw; align-items: start; }
/* 見出しを横に置かず、本文の上に積む版。長い見出しが折り返さずに済みます */
.split-stack { display: block; }
.split-follow { margin-top: clamp(56px, 6vw, 90px); }
.split.split-stack > h2 { margin-bottom: clamp(32px, 3.6vw, 52px); }
.split h2 { margin: 0; font-family: var(--display); font-size: var(--fs-display-m); line-height: 1.45; letter-spacing: -.02em; }
.prose { max-width: 720px; font-family: var(--jp); }
.prose h3 { margin: 48px 0 16px; font-size: var(--fs-heading-sm); line-height: 1.6; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 1.3em; color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue-text); border-bottom: 1px solid var(--blue-line); }
.prose strong { color: var(--ink); font-weight: 500; }
.policy-date { margin-top: 40px; }

/* value / reason cards */
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 46px); }
.value-grid article { padding-top: 26px; border-top: 1px solid var(--line); }
.section-dark .value-grid article { border-color: var(--line-dark); }
.value-grid .num { color: var(--blue-text); font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; }
.value-grid h3 { margin: 34px 0 18px; font-family: var(--display); font-weight: 500; font-size: var(--fs-display-xs); line-height: 1.7; letter-spacing: .01em; }
.value-grid p { margin: 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.section-dark .value-grid p { color: var(--muted-dark); }

/* pricing */
/* 準備中のカードを教育のカードの高さまで引き伸ばすと中が大きく空くので、内容の高さに合わせる */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(22px, 2.6vw, 36px); }
.price-card { display: flex; flex-direction: column; padding: 34px clamp(26px, 3vw, 44px) 40px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.6); }
.price-card > span { color: var(--blue-text); font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; }
.price-card h3 { margin: 28px 0 14px; font-family: var(--jp); font-size: var(--fs-display-s); }
.price-card > p { margin: 0 0 28px; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.price-slot { margin: 30px 0 34px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-slot dt { color: var(--muted); font-family: var(--jp); font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; }
.price-slot dd { margin: 12px 0 0; font-family: var(--jp); font-size: var(--fs-display-xs); line-height: 1.35; letter-spacing: -.035em; }
.price-slot dd small { display: block; margin-top: 9px; color: var(--muted); font-size: var(--fs-small); letter-spacing: 0; }
.price-card h4 { margin: 0 0 4px; color: var(--muted); font-family: var(--jp); font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; }
.price-card ul { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.price-card li { padding: 11px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); font-family: var(--jp); font-size: var(--fs-small); line-height: 1.8; }
.price-card .price-card-action { margin: auto 0 0; padding-top: 26px; }
.price-card-action .text-link { width: 100%; color: var(--ink); }
.note-box { position: relative; max-width: 46em; margin-top: clamp(44px, 5vw, 72px); padding-left: 58px; font-family: var(--jp); }
.note-box::before { content: ""; position: absolute; top: .78em; left: 0; width: 40px; height: 1px; background: var(--blue); }
.note-box h3 { margin: 0 0 14px; font-family: var(--display); font-weight: 500; font-size: var(--fs-heading-sm); line-height: 1.6; letter-spacing: .01em; }
.note-box p { margin: 0; color: var(--muted); font-size: var(--fs-body); line-height: var(--lh-body); }

/* faq accordion */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; font-family: var(--jp); font-size: var(--fs-body-lg); line-height: 1.7; list-style: none; transition: color .2s ease; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--blue-text); }
.faq-list summary::after { content: ""; flex: 0 0 auto; width: 13px; height: 13px; margin-top: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq-list details[open] summary { color: var(--blue-text); }
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.faq-list .faq-body { padding: 0 60px 30px 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.faq-list .faq-body p { margin: 0 0 14px; }
.faq-list .faq-body p:last-child { margin-bottom: 0; }

/* contact CTA band */
.contact-cta { padding-bottom: clamp(56px, 6vw, 96px); }
.contact-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
/* 見出しの罫線を右の案内文の手前まで伸ばし、他のセクションの罫線と長さをそろえる */
.contact-top > .section-label { flex: 1; }
.contact-note { max-width: 30em; margin: 0; color: var(--muted-dark); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.contact-link { display: flex; align-items: center; justify-content: space-between; margin: clamp(70px, 9vw, 140px) 0 0; padding-bottom: 42px; border-bottom: 1px solid var(--line-dark-strong); transition: color .35s ease, border-color .35s ease; }
.contact-link + .contact-link { margin-top: 0; padding-top: 42px; }
.contact-link > span { font-family: var(--display); font-weight: 500; font-size: clamp(27px, 3.8vw, 56px); line-height: 1.4; letter-spacing: -.015em; }
.contact-link i { display: grid; flex: 0 0 auto; width: clamp(54px, 5.6vw, 78px); aspect-ratio: 1; margin-left: 30px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; place-items: center; font-size: clamp(21px, 2.4vw, 31px); font-style: normal; transition: color .35s ease, background .35s ease, transform .35s ease; }
.contact-link:is(:hover, :focus-visible) { color: var(--blue-light); border-color: var(--blue); }
.contact-link:is(:hover, :focus-visible) i { color: white; background: var(--blue-text); border-color: var(--blue-text); transform: translate(3px, -3px); }
.contact-meta { display: flex; flex-wrap: wrap; gap: 14px 46px; margin-top: 40px; color: var(--muted-dark); font-family: var(--jp); font-size: var(--fs-small); }
/* 値が折り返しても、2行目を項目名の下ではなく値の先頭にそろえる */
.contact-meta p { display: flex; gap: 1em; margin: 0; }
.contact-meta b { color: white; font-weight: 500; }

/* 8. forms ----------------------------------------------- */
/* 案内と実施条件を上に置き、その下にフォームを並べる */

.form-aside h2 { margin: 0 0 22px; font-family: var(--display); font-weight: 500; font-size: var(--fs-display-s); line-height: 1.45; letter-spacing: -.01em; }
.form-aside p { max-width: 620px; margin: 0 0 18px; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.form-aside .mail-alt { display: inline-block; margin-top: 10px; color: var(--blue-text); font-family: var(--sans); font-size: var(--fs-body); border-bottom: 1px solid var(--blue-line); padding-bottom: 2px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(260px, 360px); justify-content: space-between; gap: 56px clamp(48px, 7vw, 120px); align-items: start; }
.contact-form { display: grid; gap: 28px; }
.field label { display: block; margin-bottom: 10px; font-family: var(--jp); font-size: var(--fs-small); font-weight: 500; letter-spacing: .04em; }
.field .req { margin-left: 8px; padding: 3px 7px; border-radius: var(--radius-pill); background: var(--blue-text); color: white; font-size: var(--fs-label); font-weight: 600; letter-spacing: .06em; vertical-align: 1px; }
.field .opt { margin-left: 8px; padding: 3px 7px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--muted); font-size: var(--fs-label); letter-spacing: .06em; vertical-align: 1px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--jp);
  font-size: var(--fs-input);
  line-height: 1.7;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 190px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 49%, var(--ink) 50%), linear-gradient(-45deg, transparent 49%, var(--ink) 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue-text); outline-offset: 2px; border-color: var(--blue-text); box-shadow: none; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.field [aria-invalid="true"], .consent [aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.field-error { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; color: var(--danger-text); font-family: var(--jp); font-size: var(--fs-small); font-weight: 500; line-height: 1.7; }
.field-error::before { content: "!"; display: grid; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; place-items: center; color: var(--white); background: var(--danger-text); font-family: var(--sans); font-size: var(--fs-label); font-weight: 700; line-height: 1; }
.consent + .field-error { margin-top: -6px; }
.field .hint .hint-example { display: block; margin-top: 2px; color: var(--ink-soft); }
.field .hint { margin: 9px 0 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-small); line-height: 1.8; }
.consent { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; cursor: pointer; font-family: var(--jp); font-size: var(--fs-small); line-height: 1.9; }
.consent input { flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.consent a { color: var(--blue-text); border-bottom: 1px solid var(--blue-line); }
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-width: 230px;
  padding: 19px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: white;
  font-family: var(--jp);
  font-size: var(--fs-body);
  cursor: pointer;
  transition: color var(--motion-feedback) var(--ease), background var(--motion-feedback) var(--ease), transform var(--motion-feedback) var(--ease);
}
.button::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--blue-text); transform: translateY(102%); transition: transform .3s var(--ease); pointer-events: none; }
.button:not(:disabled):is(:hover, :focus-visible)::before { transform: none; }
.button:not(:disabled):active { transform: translateY(1px); }
.button i { display: inline-block; font-style: normal; font-size: 17px; transition: transform var(--motion-feedback) var(--ease); }
.button[href^="contact.html"], button.button[type="submit"] { --arrow-y: -3px; }
.button[href^="#"] { --arrow-x: 0px; --arrow-y: 3px; }
.button:not(:disabled):is(:hover, :focus-visible) i { transform: translate(var(--arrow-x, 3px), var(--arrow-y, 0px)); }
.button-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.button-ghost::before { background: var(--ink); }
.button-ghost:not(:disabled):is(:hover, :focus-visible) { color: white; }
/* sending: the label changes and the control rests; it stays legible */
.button:disabled { cursor: progress; opacity: .72; }
/* Keep the homepage actions steady while their surface changes colour. */
.hero-cta .button {
  --hero-hover-background: var(--blue-text);
  min-height: 60px;
  transition: color var(--motion-feedback) var(--ease), background-color var(--motion-feedback) var(--ease), border-color var(--motion-feedback) var(--ease);
}
.hero-cta .button::before { content: none; }
.hero-cta .button-ghost { --hero-hover-background: var(--ink); }
.hero-cta .button:not(:disabled):is(:hover, :focus-visible) { background-color: var(--hero-hover-background); }
.hero-cta .button-ghost:not(:disabled):is(:hover, :focus-visible) { border-color: var(--ink); }
.hero-cta .button:not(:disabled):active,
.hero-cta .button:not(:disabled):is(:hover, :focus-visible) i { transform: none; }
.hero-cta .button i { transition: none; }
.form-status { margin: 0; padding: 15px 18px; border-radius: var(--radius); font-family: var(--jp); font-size: var(--fs-small); line-height: 1.9; }
.form-status[data-state="error"] { background: var(--danger-tint); color: var(--danger-text); }
.form-status[data-state="sending"] { background: var(--blue-tint); color: var(--blue-dark); }
.form-status:empty { display: none; }

/* thanks page */
.centered-note { display: grid; place-items: center; min-height: 72vh; min-height: 72svh; padding: calc(var(--header-h) + 40px) var(--side) 90px; text-align: center; }
.centered-note h1 { margin: 0 0 26px; font-family: var(--display); font-size: var(--fs-display-l); line-height: 1.34; letter-spacing: -.025em; }
.centered-note p:where(:not(.eyebrow)) { max-width: 520px; margin: 0 auto 34px; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
/* centered pages: the eyebrow sits on its own line, so the rule before it is dropped */
.centered-note .eyebrow { display: inline-block; padding-left: 0; }
.centered-note .eyebrow::before { display: none; }
.centered-note .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.thanks-prep { max-width: 520px; margin: 38px auto 0; padding: 24px 28px; background: var(--white); text-align: left; }
.thanks-prep h2 { margin: 0 0 14px; font-family: var(--display); font-size: var(--fs-heading-sm); }
.thanks-prep ul { margin: 0; padding-left: 1.4em; font-family: var(--jp); font-size: var(--fs-body); line-height: 2; }
.thanks-prep p { margin: 12px 0 0; font-family: var(--jp); font-size: var(--fs-small); }
.centered-note .note-small { font-size: var(--fs-small); }
.centered-note .thanks-reading { margin-top: 30px; font-family: var(--jp); font-size: var(--fs-body); }
.thanks-reading a { color: var(--blue-text); border-bottom: 1px solid currentColor; }

/* not found */
.notfound { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; overflow: hidden; padding: 140px var(--side) 90px; }
.notfound h1 { max-width: 900px; margin: 0; font-family: var(--display); font-size: var(--fs-display-xl); line-height: 1.24; letter-spacing: -.025em; }
.notfound h1 em { color: var(--accent); font-style: normal; }
.notfound .page-number { color: rgba(17,18,22,.46); }
.notfound-lead { max-width: 460px; margin: clamp(30px, 3.6vw, 48px) 0 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.notfound-links { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: clamp(40px, 4.6vw, 62px); }
.notfound-links .text-link { width: 210px; }

/* maintenance — a quiet, standalone state that keeps the Asteron visual language.
   The faint large mark is the reopening date, set with data-mark on <main>. */
.maintenance-page { min-height: 100vh; min-height: 100svh; background: var(--paper); }
.maintenance-header { position: fixed; z-index: 10; top: 0; right: 0; left: 0; display: flex; align-items: center; height: var(--header-h); padding: 0 var(--side); }
.maintenance-header img { width: 142px; height: auto; }
.maintenance { position: relative; display: grid; align-content: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 54px) var(--side) 56px; overflow: hidden; isolation: isolate; }
.maintenance::before { content: ""; position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(rgba(17,18,22,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(17,18,22,.055) 1px, transparent 1px); background-size: 25vw 25vw; -webkit-mask-image: linear-gradient(to right, black, transparent 76%); mask-image: linear-gradient(to right, black, transparent 76%); }
.maintenance::after { content: attr(data-mark); position: absolute; z-index: -1; top: 13%; right: var(--side); color: rgba(17,18,22,.07); font-family: var(--sans); font-size: clamp(90px, 15vw, 220px); font-weight: 500; line-height: 1; letter-spacing: -.08em; }
.maintenance-content { width: min(100%, 980px); }
.maintenance h1 { max-width: 940px; margin: 0; font-family: var(--display); font-size: var(--fs-display-xl); font-weight: 500; line-height: 1.28; letter-spacing: -.025em; }
.maintenance h1 span, .maintenance h1 em { display: block; width: fit-content; white-space: nowrap; }
.maintenance h1 em { color: var(--accent); font-style: normal; }
.maintenance-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr); gap: 42px clamp(48px, 8vw, 120px); align-items: end; max-width: 860px; margin-top: clamp(38px, 5vw, 72px); padding-top: clamp(26px, 3vw, 40px); border-top: 1px solid var(--line-strong); }
.maintenance-message { margin: 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: var(--lh-body); }
.maintenance-status { margin: 0; font-family: var(--jp); }
.maintenance-status div { padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.maintenance-status dt { margin-bottom: 10px; color: var(--blue-text); font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; }
.maintenance-status dd { margin: 0; font-family: var(--display); font-size: var(--fs-display-xs); line-height: 1.5; }
.maintenance-bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-top: clamp(50px, 7vw, 92px); color: var(--muted); font-family: var(--jp); font-size: var(--fs-small); }
.maintenance-contact { margin: 0; line-height: 1.9; }
.maintenance-contact a { display: inline-block; margin-left: 8px; padding-bottom: 2px; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--sans); font-size: var(--fs-body); transition: color .2s ease, border-color .2s ease; }
.maintenance-contact a:hover { color: var(--blue-text); border-color: var(--blue-text); }
.maintenance-copyright { margin: 0; color: var(--muted); font-family: var(--sans); font-size: var(--fs-label); letter-spacing: .12em; }

/* articles */
/* article index — the same quiet list treatment as the news list */
.article-index { border-top: 1px solid var(--line); }
.article-index-item { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; align-items: center; gap: 12px 26px; padding: 28px 0; border-bottom: 1px solid var(--line); transition: background var(--motion-feedback) var(--ease), border-color var(--motion-feedback) var(--ease); }
.article-index-item:is(:hover, :focus-within) { background: rgba(255,255,255,.72); border-bottom-color: var(--blue-text); }
.article-index .tag, .article-related .tag { justify-self: start; padding: 5px 9px; border: 1px solid var(--blue-line); border-radius: var(--radius-pill); color: var(--blue-text); font-family: var(--jp); font-size: var(--fs-label); white-space: nowrap; }
.article-index h3 { margin: 0; font-family: var(--display); font-size: var(--fs-display-xs); font-weight: 400; line-height: 1.6; }
/* the title link names the article; its hit area covers the whole row */
.article-index h3 a::after { content: ""; position: absolute; inset: 0; }
.article-index p { grid-column: 2 / 3; margin: 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-body); line-height: 1.9; }
.article-index-link { grid-column: 3; grid-row: 1; font-family: var(--jp); font-size: var(--fs-small); white-space: nowrap; }
.article-index h3 a, .article-index-link { transition: color .2s ease; }
.article-index-item .article-index-link { transition: color .2s ease, transform .3s var(--ease); }
.article-index-item:is(:hover, :focus-within) h3 a,
.article-index-item:is(:hover, :focus-within) .article-index-link { color: var(--blue-text); }
.article-index-item:is(:hover, :focus-within) .article-index-link { transform: translateX(4px); }
/* 記事の見出しと、目次・本文の段の左右の端をそろえるため、同じ幅の式を使う */
:root { --article-gap: clamp(40px, 5vw, 90px); --article-width: calc(225px + var(--article-gap) + 740px); }
.article-header { max-width: calc(var(--article-width) + var(--side) * 2); margin: 0 auto; padding: clamp(32px, 4vw, 48px) var(--side) clamp(40px, 5vw, 64px); }
.article-header-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--fs-label); letter-spacing: .08em; }
.article-category { padding: 4px 12px; border: 1px solid var(--blue-text); border-radius: var(--radius-pill); color: var(--blue-text); font-family: var(--jp); letter-spacing: .04em; }
/* 記事の題は、本文の見出しより一段大きいだけにとどめ、2行程度で読み切れる大きさにする */
.article-header h1 { max-width: 1000px; margin: clamp(28px, 3vw, 40px) 0 0; font-family: var(--display); font-size: clamp(30px, 3.6vw, 50px); line-height: 1.55; letter-spacing: -.02em; }
.article-header h1 .article-title-chunk { display: inline-block; max-width: 100%; white-space: normal; }
.article-header h1 .article-title-accent { color: var(--accent); }

.article-deck { max-width: 780px; margin: clamp(22px, 2.6vw, 32px) 0 0; color: var(--muted); font-family: var(--jp); font-size: var(--fs-lead); line-height: var(--lh-body); }
.article-byline { display: flex; flex-wrap: wrap; gap: 6px 1.6em; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--jp); font-size: var(--fs-small); }
.article-layout { display: grid; grid-template-columns: 225px minmax(0, 740px); justify-content: center; gap: var(--article-gap); padding: clamp(48px, 6vw, 80px) var(--side) clamp(64px, 7vw, 104px); background: var(--white); }
.article-aside { align-self: start; position: sticky; top: 112px; padding-top: 8px; }
.article-aside > p { margin: 0 0 24px; color: var(--blue-text); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; }
.article-aside nav { display: grid; gap: 4px; border-top: 1px solid var(--line); }
.article-aside a { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-family: var(--jp); font-size: var(--fs-small); line-height: 1.6; }
/* 番号の列を固定し、項目名が2行になっても番号の下に回り込ませない */
.article-aside .toc-no { font-family: var(--sans); letter-spacing: .04em; }
.article-aside .toc-text { grid-column: 2; word-break: keep-all; overflow-wrap: anywhere; }   /* <wbr> の位置でだけ折り返す */
.article-aside a:hover { color: var(--blue-text); }
.article-body { min-width: 0; color: var(--ink-soft); font-family: var(--jp); font-size: var(--fs-body-lg); line-height: var(--lh-body); }
.article-lead { margin: 0 0 56px; color: var(--ink); font-size: var(--fs-lead); line-height: var(--lh-body); }
.article-body > section { margin-top: clamp(64px, 7vw, 96px); scroll-margin-top: 100px; }
.article-section-no { margin: 0 0 12px; color: var(--blue-text); font-family: var(--sans); font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; }
.article-body h2 { margin: 0 0 28px; color: var(--ink); font-family: var(--display); font-size: var(--fs-display-m); line-height: 1.5; letter-spacing: -.02em; }
.article-body section > p:not(.article-section-no) { margin: 0 0 1.2em; }
.article-steps { margin: 32px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: step; }
.article-steps li { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); counter-increment: step; font-size: var(--fs-body); line-height: 1.9; }
.article-steps li strong { color: var(--ink); font-weight: 600; }
.article-steps li strong::before { content: counter(step, decimal-leading-zero); display: inline-block; width: 2.2em; color: var(--blue-text); font-family: var(--sans); }
/* 授業前に見返す確認項目。印刷しても使えるよう、行頭に四角い枠を付ける */
.article-body > .article-checklist { margin-top: 72px; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.article-checklist h2 { margin-bottom: 20px; font-size: var(--fs-display-s); }
.article-checklist ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.article-checklist li { position: relative; padding-left: 2em; font-size: var(--fs-body); line-height: 1.9; }
.article-checklist li::before { content: ""; position: absolute; top: .42em; left: 0; width: 1.1em; height: 1.1em; border: 1.5px solid var(--blue-text); border-radius: 3px; background: var(--white); }
/* 記事の書き手（Asteron）の紹介。直前のチェックリストと見分けやすいよう、囲まずに上の太線で区切る */
.article-about { margin-top: 72px; padding-top: 32px; border-top: 2px solid var(--ink); }
.article-about h2 { margin-bottom: 16px; font-size: var(--fs-display-s); }
.article-about > p { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.article-related { margin-top: 72px; }
.article-related h2 { margin: 0 0 16px; color: var(--muted); font-family: var(--jp); font-size: var(--fs-small); font-weight: 500; letter-spacing: .08em; }
.article-related a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 20px 0; border-block: 1px solid var(--line); color: var(--ink); }
.article-related a + a { border-top: 0; }
.article-related-title { font-family: var(--display); font-size: var(--fs-body-lg); line-height: 1.7; }
.article-related-arrow { color: var(--muted); transition: transform .25s var(--ease), color .25s var(--ease); }
.article-related a:is(:hover, :focus-visible) :is(.article-related-title, .article-related-arrow) { color: var(--blue-text); }
.article-related a:is(:hover, :focus-visible) .article-related-arrow { transform: translateX(4px); }
.article-actions { margin-top: 48px; }

/* page titles — use the AI・IT教育 heading as the shared standard */
.hero h1.site-title,
.page-hero h1.site-title,
.page-head h1.site-title,
.centered-note h1.site-title,
.notfound h1.site-title {
  font-family: var(--display);
  font-size: var(--fs-display-xl);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.02em;
}

/* タップ領域（WCAG 2.5.5）。見た目は変えずに、当たり判定だけ広げる */
.brand, .footer-logo, .footer-mail, .mail-alt, .text-link,
.breadcrumb a, .footer-bottom nav a, .footer-nav a, .mobile-menu-sub a,
.price-detail-link, .thanks-reading a, .spec dd > a:only-child { position: relative; }
.brand::after, .footer-logo::after, .footer-mail::after, .mail-alt::after, .text-link::after,
.breadcrumb a::after, .footer-bottom nav a::after, .mobile-menu-sub a::after, .price-detail-link::after,
.thanks-reading a::after, .spec dd > a:only-child::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
}

/* 9. motion ---------------------------------------------- */
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js .reveal { animation: reveal var(--motion-enter) var(--reveal-delay, .06s) var(--ease) both; }
.reveal-delay-1 { --reveal-delay: .14s; }
.reveal-delay-2 { --reveal-delay: .22s; }
/* The observer owns readiness, so loading failure and no-JS never hide content.
   A single entrance is used for a group; nested blocks do not animate twice. */
.js .motion-ready {
  transition: opacity var(--motion-enter) var(--ease) var(--enter-delay, 0ms),
    transform var(--motion-enter) var(--ease) var(--enter-delay, 0ms),
    background var(--motion-feedback) var(--ease), border-color var(--motion-feedback) var(--ease);
}
.js .motion-ready:not(.is-visible) { opacity: 0; transform: translateY(12px); }
.js .motion-ready.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .section-label.motion-ready.is-visible::after { animation: rule-in .64s var(--ease) both; }
  .mobile-menu.is-open nav a { animation: reveal .24s var(--menu-delay, 0ms) var(--ease) both; }
  .mobile-menu nav a:nth-child(2) { --menu-delay: 24ms; }
  .mobile-menu nav a:nth-child(3) { --menu-delay: 48ms; }
  .mobile-menu nav a:nth-child(4) { --menu-delay: 72ms; }
  .mobile-menu nav a:nth-child(5) { --menu-delay: 96ms; }
  .mobile-menu nav a:nth-child(6) { --menu-delay: 120ms; }
  .mobile-menu.is-open nav a:focus-visible { animation: none; }
}

/* 10. responsive ----------------------------------------- */
@media (max-width: 1100px) {
  .desktop-nav { gap: 16px; font-size: var(--fs-label); }
  .nav-contact { padding: 0 16px; }
  .nav-contact span { margin-left: 10px; }
}
@media (max-width: 1199px) {
  /* five columns leave about eight characters a line, too narrow for phrases such as 「作り直すのではなく、」 */
  .learning-cycle { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .learning-cycle li:not(:last-child)::after { content: none; }
}
@media (max-width: 1000px) {
  /* About remains available in the mobile menu and footer when the bar gets tight. */
  .desktop-nav .nav-hide-md { display: none; }
  .page-nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .page-nav a { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .intro-content, .split, .bio, .contact-layout { grid-template-columns: 1fr; }
  .hero-detail { grid-template-columns: 1fr; align-items: start; }
  .hero-detail-text, .hero-actions { grid-column: auto; grid-row: auto; }
  .intro-body { margin-left: auto; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps li:nth-child(2) { border-right: 0; }
  .process-steps li { border-bottom: 1px solid var(--line); }
  .process-steps li:nth-child(n+3) { border-bottom: 0; }
  .learning-cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-cycle li:not(:last-child)::after { content: none; }

  .program-paths { grid-template-columns: 1fr; }
  .program-path { min-height: 0; border-top: 1px solid var(--line); border-left: 0; }
  .program-path:first-child { border-top: 0; }
  .program-paths-three .program-path { min-height: 0; border-top: 1px solid var(--line); border-left: 0; }
  .program-paths-three .program-path:first-child { border-top: 0; }
  .program-path ul { margin-top: 36px; }

  .offer-grid { grid-template-columns: 1fr; }
  .offer-grid article { border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .offer-grid article:last-child { border-bottom: 0; }
  .value-grid { grid-template-columns: 1fr; gap: 0; }
  .value-grid article { padding: 24px 0 30px; }
  .footer-top { grid-template-columns: 1fr; }
  .spec { margin-left: 0; }
  .profile-content > p { margin-left: 0; }
  .program-heading { grid-template-columns: 1fr; }
  .program-languages { max-width: 560px; }
}
@media (max-width: 860px) {
  .site-header.menu-active { color: white; }
  .site-header.is-scrolled.menu-active { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .brand { transition: filter .2s ease; }
  .site-header.menu-active .brand { filter: brightness(0) invert(1); }
  .desktop-nav { display: none; }
  .menu-button, .mobile-menu { display: flex; }
  .business-grid, .price-grid { grid-template-columns: 1fr; }

  .business-card { min-height: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .business-card:first-child { border-top: 0; }
  .business-overview .business-card { min-height: 0; }
  .program-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .program-card { min-height: 0; border-top: 1px solid var(--line-dark); border-left: 0; }
  .program-card:first-child { border-top: 0; }
  .news-layout h2 + div { margin-top: 30px; }
  .news-item { grid-template-columns: 1fr; gap: 12px; }
  .article-index-item { grid-template-columns: 1fr; gap: 12px; }
  .article-index p, .article-index-link { grid-column: auto; grid-row: auto; }
  .article-layout { grid-template-columns: 1fr; gap: 50px; }
  .article-aside { position: static; }
  .article-aside nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
}
@media (max-width: 760px) {
  :root {
    --side: 22px;
    --header-h: 72px;
  }
  html { scroll-padding-top: 88px; }
  .brand { width: 116px; }
  .hero { min-height: max(660px, 100vh); min-height: max(660px, 100svh); padding: calc(var(--header-h) + 36px) var(--side) 48px; }
  .hero-grid { background-size: 50vw 50vw; -webkit-mask-image: linear-gradient(to top, black, transparent 68%); mask-image: linear-gradient(to top, black, transparent 68%); }

  .hero h1 { font-size: clamp(36px, 10.5vw, 50px); line-height: 1.32; letter-spacing: -.02em; }
  .hero .hero-kicker { margin-bottom: 18px; padding-left: 36px; line-height: 1.7; }
  .hero .hero-kicker::before { width: 24px; }
  .hero .hero-subline { margin-top: 12px; letter-spacing: .06em; }
  .hero .hero-copy h1 { font-size: clamp(36px, 10.5vw, 50px); line-height: 1.28; }
  .hero-note { max-width: none; margin-top: 24px; padding-top: 16px; }
  .hero-note p { margin: 0 0 22px; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 24px; }
  .hero-cta .button { width: 100%; }
  .hero-index { display: none; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .intro-content { margin-top: 64px; }
  .lead { font-size: clamp(25px, 7.2vw, 38px); line-height: 1.75; }
  .intro-body { margin-top: 34px; }
  .section-heading > p, .section-intro > p { margin-top: 24px; }
  .business .section-heading h2 { font-size: clamp(25px, 8vw, 32px); line-height: 1.5; }
  .process-intro > p { margin-top: 24px; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps li, .process-steps li:not(:first-child) { min-height: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-steps li:nth-child(n+3) { border-bottom: 1px solid var(--line); }
  .process-steps li:last-child { border-bottom: 0; }
  .process-steps li > div { margin-top: 18px; max-width: none; }

  .learning-cycle { grid-template-columns: 1fr; gap: 8px; }
  .learning-cycle li { min-height: 0; padding: 24px 22px 28px; }
  .learning-cycle h3 { margin: 38px 0 14px; }
  .cycle-return { justify-content: flex-start; }

  .program-path { padding: 30px 22px 34px; }
  .program-path h3 { margin-top: 42px; }
  .school-facts { grid-template-columns: 1fr; }
  .school-facts div, .school-facts div:first-child { padding: 16px 0; border-top: 1px solid var(--line); border-left: 0; }
  .school-facts div:first-child { border-top: 0; }

  .page-hero { min-height: max(560px, 76vh); min-height: max(560px, 76svh); }
  .page-hero-content { bottom: 50px; }
  .page-hero-flow { min-height: max(520px, 78vh); min-height: max(520px, 78svh); padding: 32px var(--side) 44px; }
  .page-hero-flow h1 { font-size: min(9vw, 44px); line-height: 1.32; letter-spacing: -.02em; }
  .hero-detail { gap: 30px; margin-top: 34px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-actions .text-link { width: 100%; }
  .page-nav { padding-top: 20px; padding-bottom: 20px; }
  .page-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .page-nav a { gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .people { grid-template-columns: 1fr; gap: 44px; }
  .usecase-list li { grid-template-columns: 1fr; gap: 10px; }
  .usecase-note, .note-box { padding-left: 0; }
  .usecase-note::before, .note-box::before { display: none; }
  .person-photo { max-width: min(200px, 56%); }
  .bio { gap: 30px; }
  .bio-photo { max-width: min(220px, 62%); }

  .page-number { top: 88px; font-size: 104px; }
  .page-head { padding-top: 32px; }
  .article-header { padding-top: 28px; padding-bottom: 40px; }
  .article-header h1 { font-size: clamp(26px, 7vw, 34px); }
  .article-header h1 br { display: none; }
  .article-layout { padding-top: 40px; padding-bottom: 64px; }
  .article-lead { margin-bottom: 40px; }
  .article-body > section { margin-top: 64px; }
  .article-aside nav { grid-template-columns: 1fr; }
  .article-steps li { grid-template-columns: 1fr; gap: 2px; }
  .article-related a { grid-template-columns: minmax(0, 1fr) auto; }
  .article-related .tag { grid-column: 1 / -1; justify-self: start; }
  .profile-content { margin-top: 56px; }
  .profile-content > p { margin: 36px 0 52px; }
  .spec div { grid-template-columns: 9.5em minmax(0, 1fr); column-gap: 16px; line-height: 1.85; }
  .page-facts div { padding: 12px 10px 12px 0; }
  .page-facts div + div { padding-left: 10px; }
  .contact-top { display: block; }
  .contact-note { margin-top: 44px; }
  /* 狭い画面では固定の改行を外し、文節の切れ目で自然に折り返す */
  .contact-note br { display: none; }
  .contact-link { align-items: flex-end; margin-top: 76px; padding-bottom: 28px; }
  .contact-link > span { font-size: clamp(24px, 7.4vw, 36px); line-height: 1.42; }
  .contact-link i { width: 46px; margin: 0 0 4px 10px; font-size: 19px; }
  .contact-meta { gap: 12px 28px; margin-top: 32px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .faq-list .faq-body { padding-right: 0; }
  .notfound-links .text-link { width: 100%; }
  .maintenance { align-content: start; padding-top: calc(var(--header-h) + 82px); }
  .maintenance::before { background-size: 50vw 50vw; }
  .maintenance::after { top: 118px; font-size: 25vw; }
  .maintenance h1 { font-size: clamp(29px, 8.2vw, 38px); line-height: 1.45; }
  .maintenance-body { grid-template-columns: 1fr; gap: 34px; }
  .maintenance-status { max-width: 320px; }
  .maintenance-bottom { flex-direction: column; align-items: flex-start; margin-top: 48px; }
  .maintenance-contact a { display: block; width: fit-content; margin: 7px 0 0; }
  .button { width: 100%; }
  .page-head-actions { align-items: stretch; }
  .page-head-actions .text-link { width: 100%; }
  .hero h1.site-title,
  .page-hero h1.site-title,
  .page-head h1.site-title,
  .centered-note h1.site-title,
  .notfound h1.site-title {
    font-size: clamp(36px, 9.6vw, 46px);
    line-height: 1.3;
  }
}
@media (max-width: 400px) {
  .footer-nav { grid-template-columns: 1fr; }
  /* the label column would squeeze values such as an e-mail address; stack them instead */
  .spec div { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
}
@media (max-width: 359px) {
  .page-facts { flex-direction: column; }
  .page-facts div, .page-facts div + div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-left: 0; }
  .page-facts div + div { border-top: 1px solid var(--line); }
  .page-facts dd { margin: 0; text-align: right; }
  /* OSごとの文字幅の差があっても、長いプログラム名が句の途中で切れない余裕を確保する。 */
  .program-card { padding-right: 22px; padding-left: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rise, .js .reveal, .section-enter,
  .js .motion-ready:not(.is-visible) { opacity: 1; transform: none; animation: none; }
  .business-card::after, .article-index-item .article-index-link { transition: none; }
  .business-card:is(:hover, :focus-visible) .business-more b,
  .business-card:is(:hover, :focus-visible) .business-card-top i,
  .button:not(:disabled):is(:hover, :focus-visible) i,
  .nav-contact:is(:hover, :focus-visible) span,
  .text-link:is(:hover, :focus-visible) > [aria-hidden="true"],
  .text-link[href^="#"]:is(:hover, :focus-visible) > [aria-hidden="true"],
  .page-nav a:is(:hover, :focus-visible) span,
  .offer-link:is(:hover, :focus-visible) i,
  .program-cta:is(:hover, :focus-visible) b,
  .contact-link:is(:hover, :focus-visible) i,
  .article-index-item:is(:hover, :focus-within) .article-index-link { transform: none; }
}

@media print {
  .site-header, .mobile-menu, .skip-link, .hero-grid { display: none !important; }
  body { color: #000; background: var(--white); }
  .section-dark, .site-footer { color: #000 !important; background: var(--white) !important; }
  .business-card::after { display: none; }
  .js .rise, .js .reveal, .section-enter,
  .js .motion-ready:not(.is-visible) { opacity: 1; transform: none; animation: none; transition: none; }
  a { text-decoration: underline; }
}


/* One brand, two expressions: the bright drawing opens the dark robotics study. */
.business-card-study { display: grid; flex: 1; min-height: 208px; max-height: 300px; margin: -16px 0 24px; place-items: center; }
.business-card-study img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; opacity: .82; transition: opacity .3s var(--ease), transform .4s var(--ease); }
.business-card-pending:is(:hover, :focus-visible) .business-card-study img { opacity: 1; transform: translateY(-4px); }
.hero-cta .button[href="development.html"] { --arrow-y: -3px; }

/* Keep the contents guide available throughout the longer education page. */
html:has(.education-page) { scroll-padding-top: 170px; }
.education-page .page-nav { position: sticky; z-index: 50; top: 70px; padding: 0; border-top: 1px solid var(--line-soft); background: rgba(255,255,255,.98); }
.education-page .page-nav ul { display: flex; flex-wrap: nowrap; align-items: center; gap: 32px; padding: 0 var(--side); overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; scroll-padding-inline: var(--side); }
.education-page .page-nav li { flex: 0 0 auto; }
.education-page .page-nav a { position: relative; gap: 20px; min-height: 64px; padding: 12px 0; border: 0; white-space: nowrap; color: var(--muted); transition: color .2s var(--ease); }
.education-page .page-nav a::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--blue-text); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.education-page .page-nav a:is([aria-current="location"], :hover, :focus-visible) { color: var(--blue-text); }
.education-page .page-nav a:is([aria-current="location"], :hover, :focus-visible)::after { transform: scaleX(1); }
.education-page .page-nav a:focus-visible { outline-offset: -5px; }

/* 上辺だけ2pxにすると中身が1px下がり、隣のカードと見出しの位置がずれるため、線の太さは内側の影で足す */
.price-grid .price-card:first-child { border-top-color: var(--blue); box-shadow: inset 0 1px 0 var(--blue); background: var(--white); }
.mobile-menu > div > p { margin: 32px 0 0; color: var(--muted-dark-2); font-size: var(--fs-label); line-height: 1.9; letter-spacing: .12em; }
@media (min-width: 1001px) and (min-height: 760px) {
  .form-aside { position: sticky; top: 112px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
}
@media (max-width: 760px) {
  .business-card-study { min-height: 192px; margin: -12px -8px 24px; }
  .business-card-study img { height: 240px; }
  .education-page .page-nav ul { gap: 24px; }
  .education-page .page-nav a { min-height: 60px; gap: 16px; }
}

/* Native navigation stays a normal link; supporting browsers soften the change of world. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-group(*) { animation-duration: .22s; animation-timing-function: var(--ease); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}
@media (prefers-reduced-motion: reduce) {
  .business-card-pending:is(:hover, :focus-visible) .business-card-study img { transform: none; }
}
@media print {
  .education-page .page-nav { position: static; }
  .education-page .page-nav ul { flex-wrap: wrap; overflow: visible; }
  .form-aside { position: static; }
}
