/* 일본 시험 공개 페이지 전용(cbt/seo/site.css 를 본떴다). 값은 공통 토큰(shared/tokens/tokens.json)과 같다 — 검색으로 들어온 사람이 앱으로 넘어갈 때
   다른 사이트로 온 느낌이 들지 않게. 폰트는 시스템 일본어 폰트(앱 번들 폰트를 가리키지 않는다). */
:root {
  --bg: #f5f7f3; --surface: #ffffff; --ink: #1b1f22; --ink-2: #4e5a61; --muted: #66737a;
  --rule: #cbd6d6; --rule-soft: #e2e9e5; --accent: #1f5361; --on-accent: #f5f7f3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a; --surface: #1e2124; --ink: #eceae6; --ink-2: #c2c0bb; --muted: #9a9ea4;
    --rule: #34383d; --rule-soft: #2a2d31; --accent: #7cc0cf; --on-accent: #15171a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.7 "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:focus-visible, .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 1.25rem 1rem 4rem; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--rule); }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.topnav { display: flex; align-items: center; gap: .9rem; font-size: .9rem; white-space: nowrap; }
.topnav a:not(.cta) { color: var(--ink-2); text-decoration: none; }
.topnav a:not(.cta):hover { text-decoration: underline; }
.top .cta { font-size: .9rem; padding: .4rem .8rem; }

main { padding-top: 1rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin: 1rem 0 -.75rem; overflow-wrap: anywhere; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
h1 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); line-height: 1.35; margin: .2rem 0 .6rem; text-wrap: balance; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; margin: 2.2rem 0 .3rem; padding-bottom: .35rem; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.lead { color: var(--ink-2); margin: 0 0 1.2rem; }
.meta { font-size: .85rem; color: var(--muted); }

.cta {
  display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none;
  font-weight: 600; padding: .6rem 1.1rem; border-radius: 6px; white-space: nowrap;
}
.cta.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; }

.list { list-style: none; padding: 0; margin: .6rem 0; }
.list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule-soft); }
.list a { text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.list a:hover { text-decoration: underline; }
.list .meta { white-space: nowrap; font-variant-numeric: tabular-nums; }
.list.units a, .list.units li > span:first-child { font-weight: 400; }
.subject-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem 1rem; margin-top: .3rem; }

.foot { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--muted); }
.foot p { margin: .3rem 0; }
.foot a { color: var(--ink-2); }
.foot .xapps { font-size: .75rem; line-height: 1.7; }
.foot .xapps span { font-weight: 600; margin-right: .3rem; }
@media (max-width: 30rem) {
  .topnav { gap: .6rem; }
  .brand { white-space: normal; }
  .list li { flex-direction: column; gap: 0; }
  .list .meta { white-space: normal; }
}

h3 { font-size: 1rem; margin: 1.4rem 0 .2rem; }
.paper { margin-top: 1.5rem; }
.q { padding: .9rem 0; border-bottom: 1px solid var(--rule-soft); }
.q h3 { margin: 0 0 .3rem; color: var(--accent); }
.src { white-space: pre-wrap; overflow-wrap: anywhere; margin: .3rem 0; }
.ctx { background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: .6rem .9rem; margin: 1.2rem 0 .2rem; }
.choices { list-style: none; padding: 0; margin: .5rem 0 .2rem; }
.choices li { display: flex; gap: .6rem; padding: .15rem 0; }
.choices b { flex: none; min-width: 1.4em; color: var(--ink-2); }
.choices span { white-space: pre-wrap; overflow-wrap: anywhere; }
.srcs { font-size: .85rem; overflow-wrap: anywhere; padding-left: 1.2rem; }
.pv-more { margin: 2rem 0 1rem; padding: 1rem; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); }
.pv-more p { margin: 0 0 .7rem; }
