:root {
  color-scheme: light;
  --ink: #122844;
  --text: #293e52;
  --muted: #51677b;
  --blue: #184eac;
  --dark-blue: #133769;
  --pale: #edf4ff;
  --line: #d1dce5;
  --gold: #f6c653;
  --paper: #fff;
  --round: 12px;
  font-family: "Inter", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 22px; }
body, figure, p, h1, h2, h3, ol, ul, dl, dd { margin: 0; }
body { line-height: 1.75; font-weight: 500; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid #bd6500; outline-offset: 4px; }
.wrap { width: min(1112px, calc(100% - 80px)); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 16px; z-index: 5; background: white; padding: 8px 18px; }
.masthead { border-bottom: 1px solid #d6dfea; background: white; }
.topbar, .site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar { min-height: 66px; }
.brand, .index-link, .site-footer a { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand { font-size: 1.08rem; font-weight: 750; letter-spacing: .025em; }
.book-icon { width: 25px; height: 28px; position: relative; background: var(--blue); border-radius: 3px 5px 5px 3px; display: inline-block; flex: none; box-shadow: inset 4px 0 0 var(--dark-blue); }
.book-icon::before { content: ""; position: absolute; top: 6px; right: 4px; width: 5px; height: 9px; background: var(--gold); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.book-icon::after { content: ""; position: absolute; bottom: 3px; left: 4px; right: 3px; border-bottom: 1px solid #c9deff; }
.index-link { font-size: .9rem; font-weight: 650; min-height: 44px; }
.brand:hover, .index-link:hover, .site-footer a:hover { color: var(--blue); text-decoration: underline; }
.list-icon { width: 15px; height: 11px; background: linear-gradient(var(--muted),var(--muted)) left center / 15px 1.5px no-repeat; border-top: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); }
.hero { background-color: #f1f6fd; border-bottom: 1px solid var(--line); overflow: hidden; }
.route-notice { color: #62470e; background: #fff6de; padding: .65rem 1rem; margin-block: .75rem; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(350px, .83fr); gap: clamp(32px,5vw,76px); align-items: center; padding-block: clamp(39px,5vw,70px); }
.eyebrow, .date, .label, .meta, figcaption, .mock-minor { font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: .55rem; font-size: .87rem; color: var(--blue); letter-spacing: .09em; margin-bottom: .35rem; }
.tab-mark { width: 9px; height: 14px; background: var(--blue); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); }
.date { display: block; font-size: .87rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .035em; }
h1 { font-size: clamp(2.25rem, 4.05vw, 3.65rem); line-height: 1.22; font-weight: 800; letter-spacing: -.035em; margin: .45em 0 .3em; }
.lead { color: var(--text); max-width: 34em; font-size: 1.04rem; line-height: 1.85; }
.primary { display: inline-block; padding: .63em 1.25em; margin-top: 1.3rem; background: var(--blue); color: white; border-radius: 7px; text-decoration: none; font-weight: 700; font-size: .95rem; }
.primary:hover { background: var(--dark-blue); }
.hero-figure { isolation: isolate; position: relative; background-color: #dceafa; background-image: linear-gradient(90deg, #cedff3 1px, transparent 1px), linear-gradient(#cedff3 1px, transparent 1px); background-size: 18px 18px; border: 1px solid #b9d0e9; border-radius: var(--round); padding: 18px 24px 24px; min-height: 300px; }
figcaption { font-size: .9rem; }
figcaption span { font-size: .74rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.hero-figure figcaption, .flow-box figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 .6rem; }
.mock { background: white; border: 1.5px solid #385979; border-radius: 6px; box-shadow: 4px 5px 0 #b5cce4; position: relative; margin-top: 16px; margin-right: 15%; }
.mock-head { display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); padding: 8px 12px; font-size: .82rem; font-weight: 750; }
.player { position: relative; width: 20px; height: 14px; border-radius: 4px; background: #c53d42; }
.player::after { content: ""; position: absolute; top: 4px; left: 8px; border-style: solid; border-width: 3.5px 0 3.5px 5px; border-color: transparent transparent transparent white; }
.mock-body { position: relative; padding: 13px 16px 51px; }
.mock-minor { font-size: .9rem; }
.mock-copy { background: #f0f3f7; border-radius: 3px; padding: 9px 9px 5px; margin-top: 5px; }
.mock-copy i { display: block; width: 78%; height: 3px; background: #c1cbd6; border-radius: 2px; margin-bottom: 5px; }
.mock-copy i + i { width: 50%; }
.split-btn { margin-top: 8px; display: inline-flex; background: #2c4052; border-radius: 4px; color: white; font-size: .75rem; font-weight: 700; line-height: 1.7; }
.split-btn span { padding: 0 9px; }
.split-btn b { color: var(--ink); display: inline-block; background: var(--gold); border-radius: 0 3px 3px 0; padding: 0 6px; }
.schedule-pop { display: flex; align-items: center; gap: 7px; position: absolute; margin: 4px 0 0 26px; background: white; border: 1px solid #94a6b9; padding: 3px 8px; border-radius: 4px; color: var(--dark-blue); font-weight: 700; font-size: .75rem; box-shadow: 1px 2px 0 #d1dce8; }
.cal-icon { display: inline-block; width: 12px; height: 11px; border: 1.5px solid var(--blue); border-top-width: 3px; border-radius: 2px; }
.appointment { position: absolute; z-index: 1; right: 15px; bottom: 13px; display: flex; align-items: baseline; gap: 4px 7px; flex-wrap: wrap; width: max-content; max-width: 55%; padding: 8px 12px; color: var(--ink); background: #ffdc81; border: 1px solid #a07224; box-shadow: 3px 3px 0 #b5cce4; border-radius: 6px; transform: rotate(-3deg); }
.appointment > span { flex: 1 0 100%; line-height: 1.4; font-size: .75rem; font-weight: 700; }
.appointment strong, .appointment em { font-weight: 750; font-size: 1.15rem; font-style: normal; line-height: 1.4; }
.appointment strong span { font-size: .72rem; }
.reading { display: grid; grid-template-columns: 202px minmax(0, 1fr); gap: clamp(34px,7.6vw,100px); align-items: start; padding-block: 48px 25px; }
.contents { position: sticky; top: 20px; }
.contents h2 { font-size: .9rem; margin-bottom: .6rem; }
.chapter-links { list-style: none; padding: 0 0 0 .25rem; border-left: 2px solid var(--line); }
.chapter-links a { display: block; text-decoration: none; padding: .55em .7em; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.chapter-links a:is(:hover,[aria-current]) { color: var(--blue); background: var(--pale); border-radius: 4px; }
.body-copy { max-width: 798px; min-width: 0; }
.chapter { padding-bottom: 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.meta { color: var(--muted); display: flex; align-items: center; gap: .7rem; font-size: .8rem; margin-bottom: .6rem; }
.status { font-size: .81rem; padding: .14em .65em; border-radius: 4px; }
.practice { background: #dcefe9; color: #215e4e; }
.demo { background: #e5edf9; color: #2c5388; }
.plan { background: #fbefd2; color: #745419; }
.clock { font-variant-numeric: tabular-nums; letter-spacing: .025em; }
.chapter h2, .archive h2 { font-size: clamp(1.5rem, 2.5vw, 2.02rem); line-height: 1.45; letter-spacing: -.025em; }
.chapter h2 + p, .chapter h3 + p { margin-top: .48rem; }
.chapter p:not(.meta):not(.label) { color: var(--text); }
.chapter h3 { font-size: 1.2rem; line-height: 1.65; margin-top: 1.55rem; }
.steps { list-style: decimal; padding-left: 2.65rem; margin-top: 1rem; }
.steps li { padding: .45rem .25rem .7rem .55rem; border-bottom: 1px dashed var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::marker { color: var(--blue); font-variant-numeric: tabular-nums; font-size: 1rem; font-weight: 750; }
.steps li > strong { display: block; color: var(--ink); font-size: 1.03rem; }
.steps li p { margin-top: .12rem; }
kbd { display: inline-block; padding: 0 .35em; line-height: 1.45; font: 650 .89em/1.5 "Inter","Yu Gothic",sans-serif; border: 1px solid #b0bece; background: #f8fafc; box-shadow: 0 1px 0 #a7b5c5; border-radius: 4px; }
.tip { margin-top: 1.08rem; padding: 0 1.05rem; background: #f1f5f8; border: 1px solid #dce4eb; border-radius: 8px; }
.tip summary { padding: .7rem 0; cursor: pointer; color: var(--dark-blue); font-weight: 700; }
.tip summary::marker { color: var(--blue); }
.tip p { padding: 0 0 1rem; }
.flow-box, .visibility { margin: .9rem 0 1.1rem; padding: 16px 19px; border: 1px solid var(--line); border-radius: 8px; }
.flow-box figcaption, .visibility figcaption { margin-bottom: .7rem; }
.branch { display: grid; grid-template-columns: 6.5rem 1.8rem 1fr; gap: .74rem; align-items: center; margin: .5rem 0; color: var(--muted); }
.branch-action { display: block; text-align: center; background: #f2f5f7; border: 1px solid #c6d1da; border-radius: 4px; padding: .12rem .4rem; font-weight: 650; }
.branch-line { width: 100%; border-top: 1.5px solid currentColor; }
.chosen { color: var(--blue); }
.chosen .branch-action { background: #ffdf91; border-color: #e4ba60; color: #48350d; }
.chosen small { font-size: .76rem; margin-left: .5rem; color: #4b612c; }
.example { border-left: 4px solid #c3992e; background: #fff6de; padding: .8rem 1.2rem; margin: 1rem 0; border-radius: 0 6px 6px 0; }
.label { font-size: .82rem; color: var(--muted); }
.example .label { color: #715119; }
.screen-example { margin: 1.1rem 0; }
.screen-image { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.screen-image img { width: 100%; height: auto; display: block; }
.screen-example figcaption { color: var(--muted); margin-top: .45rem; font-weight: 500; font-size: .85rem; line-height: 1.6; }
.screen-example figcaption b { color: var(--ink); margin-right: .5em; }
.visibility dl > div { display: grid; grid-template-columns: 9rem 1fr; border-top: 1px solid var(--line); gap: .8rem; padding: .6rem 0; }
.visibility dl > div:last-child { padding-bottom: 0; }
.visibility dt { font-weight: 700; color: var(--dark-blue); }
.visibility dd { color: var(--text); }
.source { padding: 0 0 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.source p:not(.label), .source a { font-size: .9rem; }
.source a { font-weight: 700; }
.record-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.15rem; }
.archive { border-top: 2px solid var(--ink); padding: 28px 0 48px; }
.archive-head { display: flex; align-items: center; gap: .85rem; }
.archive ul { list-style: none; padding: 0; margin: .9rem 0 0; }
.archive li { border-bottom: 1px solid var(--line); }
.archive li a { display: flex; align-items: baseline; gap: 1.5rem; padding: .8rem .35rem; text-decoration: none; color: var(--text); }
.archive li a:hover { color: var(--blue); background: var(--pale); }
.archive time { color: var(--muted); font-size: .87rem; }
.archive strong { text-decoration: underline; text-decoration-color: #b0c7e0; text-underline-offset: 4px; }
.site-footer { background: var(--ink); color: white; }
.site-footer .wrap { min-height: 72px; }
.site-footer a { color: white; font-size: .86rem; }
.site-footer a:hover { color: #ffde8c; }
@media (max-width: 880px) {
  .wrap { width: min(100% - 48px, 760px); }
  .hero-layout { grid-template-columns: minmax(0, 1.07fr) minmax(275px, .93fr); gap: 26px; }
  .hero-figure { padding: 13px 13px 24px; min-height: 286px; }
  .reading { grid-template-columns: 165px minmax(0, 1fr); gap: 30px; }
  .visibility dl > div { grid-template-columns: 7.8rem 1fr; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .topbar { min-height: 58px; gap: .4rem; }
  .brand { font-size: .94rem; gap: .45rem; }
  .brand .book-icon { width: 21px; height: 24px; }
  .index-link { font-size: .79rem; gap: .35rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 22px; padding-block: 28px; }
  h1 { font-size: clamp(2.1rem, 7.5vw, 2.85rem); }
  .hero-figure { width: min(100%, 420px); justify-self: center; min-height: 252px; padding-bottom: 16px; }
  .mock { margin-top: 8px; margin-right: 20%; }
  .mock-body { padding-bottom: 44px; }
  .reading { display: block; padding-block: 22px 12px; }
  .contents { position: static; margin-bottom: 30px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; }
  .contents h2 { margin-bottom: .4rem; }
  .chapter-links { display: flex; flex-wrap: wrap; gap: 3px 7px; border: 0; padding: 0; }
  .chapter-links a { padding: .33rem .45rem; border-radius: 4px; background: #f0f4f8; color: var(--dark-blue); }
  .steps { padding-left: 1.6rem; }
  .steps li { padding-left: .22rem; }
  .chapter { padding-bottom: 25px; margin-bottom: 26px; }
  .source { display: grid; gap: .4rem; }
  .archive li a { display: grid; gap: .1rem; }
}
@media (max-width: 420px) {
  .list-icon { display: none; }
  .brand { gap: .3rem; }
  .branch { grid-template-columns: 4.8rem 1rem 1fr; gap: .5rem; }
  .chosen small { display: block; margin-left: 0; }
  .visibility dl > div { grid-template-columns: 1fr; gap: .1rem; }
  .flow-box, .visibility { padding: 12px 14px; }
}
@media print {
  .masthead, .site-footer, .archive, .contents, .primary, .skip { display: none; }
  .hero, .hero-figure { background: white; }
  .wrap { width: 100%; }
  .hero-layout, .reading { display: block; padding: 12px 0; }
  .hero-figure { display: none; }
  .chapter { padding: 12px 0; margin-bottom: 12px; }
  .body-copy { max-width: none; }
  h2, h3, summary { break-after: avoid; }
  .tip, .example, .flow-box, .visibility { break-inside: avoid; }
  details > * { display: block; }
}
