/* 用語ドリル（入り口のサイト）: 各サイトと同じ「ミニマル・スイス」のレイアウト（各サイトの layout.css と同じ決まり。2026-10-23）。
   紙の色に、サイトごとの差し色を並べる。上の帯は7サイトの色（用語ドリル全体の印） */
:root {
  --bg: #f1f4f1;
  --paper: #fbfcfa;
  --ink: #1d2a2e;
  --muted: #5d6c6e;
  --line: #d5ddd8;
  --soft: #e6ebe7;
  --mark: #1d2a2e;   /* 入り口の差し色は墨色（サイトの色は、それぞれのカードで使う） */
  --f-body: "Noto Sans JP", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic", "Meiryo", sans-serif;
  --wrap: 1120px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 42, 46, .06), 0 4px 16px rgba(29, 42, 46, .05);
  --head-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141b1d; --paper: #1c2528; --ink: #e5ece9; --muted: #9aaaa9; --line: #2f3c3f; --soft: #243034; --mark: #e5ece9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
  }
  :root:not([data-theme="light"]) .card, :root:not([data-theme="light"]) .quick a { --c: var(--cd); }
}
:root[data-theme="dark"] {
  --bg: #141b1d; --paper: #1c2528; --ink: #e5ece9; --muted: #9aaaa9; --line: #2f3c3f; --soft: #243034; --mark: #e5ece9;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
}
:root[data-theme="dark"] .card, :root[data-theme="dark"] .quick a { --c: var(--cd); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.75; letter-spacing: .01em; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }

/* 本文へ移動（キーボードのときだけ見える） */
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.stripe { display: flex; height: 6px; }
.stripe i { flex: 1; }

/* ---------- ヘッダー: 上に貼りつく・今いる場所に下線 ---------- */
.site-head { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; min-height: var(--head-h); display: flex; align-items: center; gap: 24px; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 7px; }
.site-nav { margin-left: auto; display: flex; gap: 4px; min-width: 0; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.site-nav a:hover { color: var(--ink); background: var(--paper); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 1px; background: var(--mark); }

/* ---------- ボタン・見出し・アイコン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; transition: transform .1s, background .15s; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sec-title { font-size: 1.35rem; font-weight: 900; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--mark); }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 48px; }

/* ---------- トップ: 何のサイトかを最初の画面で ---------- */
.hero { padding: 48px 0 32px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hero-eyebrow { margin: 0 0 10px; font-size: .85rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.hero h1 { margin: 0; font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 900; line-height: 1.3; }
.hero h1 span { display: inline-block; }   /* 言葉のまとまりの途中で折り返さない */
.hero-lead { margin: 18px 0 0; font-size: 1.05rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-stats { list-style: none; padding: 0; margin: 28px 0 0; display: flex; gap: 32px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 1.9rem; line-height: 1.1; font-weight: 900; }
.hero-stats span { font-size: .82rem; color: var(--muted); }

/* 右の欄: 7つのサイトへすぐ行ける一覧 */
.quick { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px 12px; }
.quick h2 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 800; }
.quick ul { list-style: none; padding: 0; margin: 0; }
.quick a { --c: var(--cl); display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: 10px; text-decoration: none; transition: background .15s; }
.quick a:hover { background: var(--bg); }
.quick img { border-radius: 9px; }
.quick b { display: block; font-size: .95rem; line-height: 1.35; }
.quick small { display: block; font-size: .75rem; color: var(--muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick em { font-style: normal; font-weight: 900; font-size: .9rem; color: var(--c); white-space: nowrap; }
.quick li + li a { border-top: 1px solid var(--line); border-radius: 0; }

/* ---------- サイトを選ぶ ---------- */
.block { padding-top: 40px; scroll-margin-top: calc(var(--head-h) + 8px); }
.group { margin-top: 8px; margin-bottom: 28px; }
.group h3 { font-size: .95rem; font-weight: 700; color: var(--muted); margin: 0 0 10px; letter-spacing: .04em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.card { --c: var(--cl); display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
a.card:hover { border-color: var(--c); box-shadow: var(--shadow); transform: translateY(-2px); }
a.card:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.card-head { display: flex; gap: 12px; align-items: center; }
.card-head img { border-radius: 10px; flex: none; }
.card h3 { margin: 0; font-size: 1.1rem; font-weight: 800; line-height: 1.4; }
.exam { margin: 2px 0 0; font-size: .8rem; color: var(--c); font-weight: 700; line-height: 1.5; }
.desc { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.7; }
.points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.points li { font-size: .78rem; border: 1px solid var(--c); color: var(--c); border-radius: 999px; padding: 1px 10px; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); }
.count { font-size: .82rem; color: var(--muted); }
.count b { font-size: 1.35rem; font-weight: 900; color: var(--ink); margin-right: 2px; }
.go { font-weight: 700; color: var(--c); }
.soon { font-size: .82rem; font-weight: 700; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 2px 12px; }
.card.is-soon::before { opacity: .4; }
.card.is-soon .card-head img { opacity: .55; }

/* どのサイトでも: 4つの使い方 */
.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.how li { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.how .ico { width: 28px; height: 28px; margin-bottom: 4px; }
.how b { font-size: 1.05rem; }
.how span { font-size: .9rem; color: var(--muted); }

/* ---------- 文章のページ ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 0 24px 48px; }
main.prose { padding-top: 32px; }
.about-block { padding: 40px 0 0; margin: 0; max-width: 760px; }
.prose h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 900; margin: 16px 0 12px; }
.prose h2:not(.sec-title) { font-size: 1.15rem; font-weight: 800; margin: 28px 0 8px; }
.prose p { margin: 0 0 10px; }
.prose a { color: var(--ink); }
.info { border-collapse: collapse; width: 100%; font-size: .9rem; }
.info th, .info td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.info th { width: 9em; background: var(--paper); font-weight: 500; }

/* ---------- フッター ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 24px 24px 32px; font-size: .8rem; color: var(--muted); line-height: 1.7; max-width: var(--wrap); margin: 0 auto; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 18px; margin-bottom: 12px; font-size: .85rem; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 32px; }
.site-foot p { margin: 0 0 4px; }

/* ---------- スマホ ---------- */
@media (max-width: 859px) {
  :root { --head-h: 56px; }
  .site-head { position: static; }
  .site-head-in { padding: 0 12px 0 16px; gap: 8px; }
  .site-nav a { padding: 0 10px; }
  main { padding: 0 16px 40px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 28px 0 8px; gap: 24px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats { gap: 24px; }
  .block { padding-top: 32px; }
  .prose { padding: 0 16px 40px; }
  .site-foot { padding: 24px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } a.card:hover { transform: none; } }
