:root {
  color-scheme:light;
  --paper:#f7f8f5;
  --surface:#fff;
  --ivory:#faf4e8;
  --sage:#edf5f1;
  --teal:#123e49;
  --teal-soft:#2c8088;
  --gold:#d7b66f;
  --ink:#172b31;
  --muted:#687a7e;
  --line:#dee7e4;
  --shadow:0 16px 46px rgba(23,43,49,.07);
}
html[data-theme="dark"] {
  color-scheme:dark;
  --paper:#10191c;
  --surface:#172529;
  --ivory:#29271f;
  --sage:#182c2c;
  --teal:#8fcbd0;
  --teal-soft:#75b9bf;
  --gold:#d7b66f;
  --ink:#f1f4f1;
  --muted:#a9b8b8;
  --line:#2a3c40;
  --shadow:0 16px 46px rgba(0,0,0,.18);
}
* { box-sizing:border-box; }
html { background:var(--paper); }
body { min-width:0; min-height:100svh; margin:0; color:var(--ink); background:var(--paper); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Sans",sans-serif; line-height:1.65; }
a { color:inherit; }
.landing-header { border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--paper) 92%,transparent); }
.landing-header__inner,.chapter-landing,.landing-footer__inner { width:min(100% - 36px,980px); margin-inline:auto; }
.landing-header__inner { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.landing-brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.landing-brand__mark { width:36px; height:36px; display:grid; place-items:center; border-radius:10px 10px 10px 3px; color:#f7f8f5; background:#123e49; font-weight:800; }
.landing-brand strong,.landing-brand small { display:block; line-height:1.15; }
.landing-brand strong { font-size:14px; letter-spacing:.01em; }
.landing-brand small { margin-top:3px; color:var(--muted); font-size:10px; }
.landing-header__home { min-height:44px; display:flex; align-items:center; color:var(--teal); font-size:13px; font-weight:750; text-decoration:none; }
.chapter-landing { padding:26px 0 64px; }
.breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-bottom:22px; color:var(--muted); font-size:12px; }
.breadcrumb a { text-decoration:none; }
.breadcrumb span[aria-hidden] { color:color-mix(in srgb,var(--muted) 55%,transparent); }
.chapter-hero { position:relative; overflow:hidden; padding:32px; border:1px solid color-mix(in srgb,var(--gold) 40%,var(--line)); border-radius:24px; background:var(--ivory); box-shadow:var(--shadow); }
.chapter-hero::after { content:""; position:absolute; top:0; right:0; width:118px; height:118px; border-bottom-left-radius:118px; background:color-mix(in srgb,var(--gold) 12%,transparent); pointer-events:none; }
.chapter-kicker { color:var(--teal-soft); font-size:12px; font-weight:800; letter-spacing:.13em; }
.chapter-hero h1 { max-width:760px; margin:10px 0 5px; color:var(--teal); font-size:clamp(30px,6vw,48px); line-height:1.22; letter-spacing:-.035em; }
.chapter-title-vi { margin:0; color:var(--muted); font-size:clamp(17px,3vw,21px); }
.chapter-intro { max-width:760px; margin:24px 0 0; font-size:16px; }
.chapter-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:22px; margin-top:28px; }
.landing-section { min-width:0; padding:26px; border:1px solid var(--line); border-radius:20px; background:var(--surface); }
.landing-section h2 { margin:0 0 17px; color:var(--teal); font-size:20px; line-height:1.3; }
.concept-list,.attention-list { margin:0; padding:0; list-style:none; }
.concept-list li { position:relative; padding:14px 0 14px 24px; border-bottom:1px solid var(--line); }
.concept-list li:first-child { padding-top:0; }
.concept-list li:last-child { padding-bottom:0; border-bottom:0; }
.concept-list li::before { content:""; position:absolute; top:22px; left:2px; width:7px; height:7px; border-radius:50%; background:var(--gold); }
.concept-list li:first-child::before { top:8px; }
.concept-list strong,.concept-list span { display:block; }
.concept-list strong { font-size:15px; line-height:1.55; }
.concept-list span { margin-top:4px; color:var(--muted); font-size:14px; }
.attention-card { padding:17px; border-radius:14px; background:var(--sage); }
.attention-card + .attention-card { margin-top:12px; }
.attention-card--trap { background:var(--ivory); }
.attention-card h3 { margin:0 0 8px; color:var(--teal); font-size:13px; letter-spacing:.04em; }
.attention-card p,.attention-card li { margin:0; color:var(--ink); font-size:14px; }
.attention-card ul { display:grid; gap:8px; margin:0; padding-left:19px; }
.chapter-cta { margin-top:24px; padding:26px; border-radius:20px; color:#f7f8f5; background:#123e49; }
.chapter-cta p { margin:0 0 15px; color:#c5d1ce; }
.chapter-cta a { min-height:48px; display:inline-flex; align-items:center; justify-content:center; padding:0 18px; border-radius:12px; color:#123e49; background:#f7f8f5; font-weight:800; text-decoration:none; }
.chapter-nav { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:24px; }
.chapter-nav a { min-height:62px; display:flex; flex-direction:column; justify-content:center; padding:12px 16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); text-decoration:none; }
.chapter-nav a:last-child { text-align:right; }
.chapter-nav span { color:var(--muted); font-size:11px; }
.chapter-nav strong { margin-top:2px; color:var(--teal); font-size:14px; }
.landing-footer { border-top:1px solid var(--line); }
.landing-footer__inner { min-height:92px; display:flex; align-items:center; justify-content:space-between; gap:20px; color:var(--muted); font-size:12px; }
.landing-footer strong { color:var(--ink); font-size:13px; }
.landing-footer a { color:var(--teal); }
.intent-landing { max-width:980px; }
.intent-hero { position:relative; overflow:hidden; padding:clamp(28px,5vw,52px); border:1px solid color-mix(in srgb,var(--gold) 38%,var(--line)); border-radius:26px; background:linear-gradient(135deg,var(--ivory),color-mix(in srgb,var(--sage) 72%,var(--surface))); box-shadow:var(--shadow); }
.intent-hero::after { content:"生"; position:absolute; right:24px; bottom:-34px; color:color-mix(in srgb,var(--gold) 12%,transparent); font-size:150px; font-weight:800; line-height:1; pointer-events:none; }
.intent-hero h1 { position:relative; z-index:1; max-width:790px; margin:10px 0 18px; color:var(--teal); font-size:clamp(31px,5.3vw,52px); line-height:1.2; letter-spacing:-.045em; }
.intent-hero>p { position:relative; z-index:1; max-width:740px; margin:0; color:var(--muted); font-size:clamp(15px,2vw,17px); line-height:1.8; }
.intent-primary { position:relative; z-index:1; min-height:48px; display:inline-flex; align-items:center; justify-content:center; margin-top:24px; padding:0 18px; border-radius:12px; color:#f7f8f5; background:#123e49; font-weight:800; text-decoration:none; }
.intent-content { width:min(100%,820px); margin:32px auto 0; }
.intent-section { padding:34px 0; border-bottom:1px solid var(--line); }
.intent-section:first-child { padding-top:10px; }
.intent-section h2 { margin:0 0 16px; color:var(--teal); font-size:clamp(21px,3vw,27px); line-height:1.35; letter-spacing:-.025em; }
.intent-section h3 { margin:0; color:var(--ink); font-size:16px; line-height:1.4; }
.intent-section p,.intent-section li,.intent-section dd { color:var(--muted); font-size:15px; line-height:1.82; }
.intent-section p { margin:0; }
.intent-section p+p,.intent-section p+.intent-note,.intent-note+p,.official-links+p { margin-top:14px; }
.intent-note { margin-top:20px; padding:19px 20px; border-left:3px solid var(--gold); border-radius:0 14px 14px 0; background:var(--ivory); }
.intent-note--important { border-left-color:var(--teal-soft); background:var(--sage); }
.intent-note strong { display:block; margin-bottom:5px; color:var(--ink); }
.intent-note p { font-size:14px; }
.intent-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.intent-steps article { min-width:0; padding:20px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.intent-steps article>b { display:inline-grid; min-width:32px; height:32px; place-items:center; margin-bottom:14px; border-radius:9px; color:#123e49; background:var(--gold); font-size:12px; }
.intent-steps article p { margin-top:7px; font-size:14px; line-height:1.7; }
.intent-chapters { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:20px; }
.intent-chapters a { display:grid; min-height:66px; grid-template-columns:38px 1fr; align-items:center; gap:11px; padding:10px 13px; border:1px solid var(--line); border-radius:13px; background:var(--surface); text-decoration:none; }
.intent-chapters a>b { color:var(--gold); font-size:13px; }
.intent-chapters strong,.intent-chapters small { display:block; }
.intent-chapters strong { color:var(--ink); font-size:14px; }
.intent-chapters small { margin-top:2px; color:var(--muted); font-size:11px; }
.related-links { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.related-links a,.official-links a { display:flex; min-height:70px; flex-direction:column; justify-content:center; padding:13px 16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); text-decoration:none; }
.related-links strong,.official-links strong { color:var(--teal); font-size:14px; }
.related-links span,.official-links span { margin-top:3px; color:var(--muted); font-size:12px; }
.official-links { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.source-caption { margin-top:12px!important; color:var(--muted); font-size:12px!important; }
.fact-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; margin:20px 0; }
.fact-grid div { padding:15px 12px; border:1px solid var(--line); border-radius:13px; background:var(--surface); }
.fact-grid dt { color:var(--muted); font-size:11px; font-weight:700; }
.fact-grid dd { margin:4px 0 0; color:var(--ink); font-size:14px; font-weight:800; line-height:1.4; }
.vocab-samples { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.vocab-samples article { padding:16px 12px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.vocab-samples strong,.vocab-samples span { display:block; }
.vocab-samples strong { color:var(--teal); font-size:17px; }
.vocab-samples span { margin-top:2px; color:var(--muted); font-size:12px; }
.vocab-samples p { margin-top:9px; font-size:12px; line-height:1.55; }
.study-path { display:grid; gap:0; margin:0; padding:0; list-style:none; }
.study-path li { display:grid; grid-template-columns:44px 1fr; gap:16px; padding:20px 0; border-bottom:1px solid var(--line); }
.study-path li:last-child { border-bottom:0; }
.study-path li>b { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; color:#123e49; background:var(--gold); font-size:13px; }
.study-path p { margin-top:5px; }
.intent-bottom-nav { display:flex; justify-content:space-between; gap:16px; padding-top:26px; }
.intent-bottom-nav a { min-height:44px; display:flex; align-items:center; color:var(--teal); font-size:13px; font-weight:750; text-decoration:none; }
a:focus-visible { outline:3px solid color-mix(in srgb,var(--teal-soft) 35%,transparent); outline-offset:3px; }
@media (hover:hover) { a { transition:transform .18s ease,border-color .18s ease,background-color .18s ease; } .chapter-nav a:hover,.chapter-cta a:hover { transform:translateY(-1px); } }
@media (max-width:720px) {
  .landing-header__inner,.chapter-landing,.landing-footer__inner { width:min(100% - 28px,980px); }
  .chapter-landing { padding-top:20px; padding-bottom:44px; }
  .chapter-hero { padding:24px 20px; border-radius:20px; }
  .chapter-grid { grid-template-columns:1fr; gap:14px; margin-top:18px; }
  .landing-section { padding:21px 18px; border-radius:17px; }
  .chapter-nav { grid-template-columns:1fr; }
  .chapter-nav a:last-child { text-align:left; }
  .landing-footer__inner { min-height:112px; flex-direction:column; align-items:flex-start; justify-content:center; gap:5px; }
  .intent-hero { padding:27px 20px; border-radius:20px; }
  .intent-hero::after { right:2px; bottom:-17px; font-size:94px; }
  .intent-hero h1 { font-size:30px; }
  .intent-hero>p { font-size:14px; line-height:1.72; }
  .intent-primary { width:100%; }
  .intent-content { margin-top:20px; }
  .intent-section { padding:27px 1px; }
  .intent-section p,.intent-section li { font-size:14px; line-height:1.75; }
  .intent-steps,.intent-chapters,.related-links,.official-links { grid-template-columns:1fr; }
  .intent-steps { gap:9px; }
  .intent-steps article { padding:17px; }
  .fact-grid { grid-template-columns:1fr 1fr; }
  .vocab-samples { grid-template-columns:1fr 1fr; }
  .vocab-samples article:last-child { grid-column:1/-1; }
  .intent-bottom-nav { flex-direction:column; gap:2px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }
