/* アウトレット・ナビ（blog/）の見た目。比較メディア型（2026-11-27 利用者が見本 A・B・C から A を選んだ）。
   深い緑の帯と黄色のボタン。記事は分類の色の見出し画像（文字だけ）が付いたカード。PC では右に案内の枠。
   端末がダークモードでも、いつも明るい色で出す（同日の利用者の決定）。 */
:root {
  --brand: #0b6e63;
  --brand-d: #08524a;
  --brand-s: #e6f2f0;
  --accent: #ffc20e;
  --accent-ink: #3b2c00;
  --ink: #1d2428;
  --muted: #5d6a70;
  --line: #dfe5e6;
  --bg: #f3f6f6;
  --card: #ffffff;
  --c1: #0b6e63;
  --c2: #2f6fb5;
  --c3: #b86f00;
  --g4: #7b8389;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  color-scheme: only light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.8; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ボタン・印 */
.btn { display: inline-block; padding: 11px 20px; border-radius: 6px; font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none; text-align: center; }
.btn-y { background: var(--accent); color: var(--accent-ink); }
.btn-y:hover { background: #ffd24d; }
.btn-w { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn-w:hover { background: rgba(255, 255, 255, 0.24); }
.badge { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }
.badge.g1 { background: var(--c1); } .badge.g2 { background: var(--c2); } .badge.g3 { background: var(--c3); } .badge.g4 { background: var(--g4); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--brand); border: 1px solid var(--brand); border-radius: 3px; padding: 0 6px; line-height: 1.7; }
.draft { display: inline-block; margin-left: 6px; padding: 0 6px; background: #fdecc8; color: #6b4500; font-size: 11px; font-weight: 700; border-radius: 3px; line-height: 1.7; }

/* 上部 */
.topline { background: var(--brand-d); color: #cfe7e3; font-size: 12px; }
.topline .wrap { padding-block: 5px; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 12px 20px; padding-block: 14px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: 0.02em; color: var(--ink); text-decoration: none; }
.logo-mark { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--brand); position: relative; }
.logo-mark::before { content: ""; position: absolute; inset: 10px 8px 8px; border: 3px solid var(--accent); border-radius: 2px; }
.logo-mark::after { content: ""; position: absolute; left: 8px; right: 8px; top: 15px; height: 3px; background: var(--accent); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.header-cta { font-size: 14px; padding: 8px 16px; }
.cta-short { display: none; }

/* トップの帯 */
.hero { background: linear-gradient(120deg, var(--brand) 0%, #12897c 100%); color: #fff; }
.hero-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding-block: 44px; align-items: center; }
.hero h1 { font-size: 34px; line-height: 1.4; margin: 0 0 14px; font-weight: 900; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(255, 194, 14, 0.55) 62%); }
.hero p { margin: 0 0 22px; color: #d9efec; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-card { background: #fff; color: var(--ink); border-radius: 12px; padding: 18px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.hero-card h2, .box h2 { font-size: 15px; margin: 0 0 8px; }
.grades { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.6; }
.grades td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.grades td:first-child { width: 1%; padding-left: 0; }

/* 2段組み（本文と右の枠） */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-block: 32px 64px; align-items: start; }
.col { min-width: 0; }
.sec-h { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; margin: 0 0 16px; line-height: 1.4; }
.sec-h::before { content: ""; flex: none; width: 6px; height: 22px; background: var(--brand); border-radius: 2px; }

/* カード */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: box-shadow 0.15s, transform 0.15s; }
.card:hover { box-shadow: 0 6px 18px rgba(11, 110, 99, 0.14); transform: translateY(-2px); }
.card:hover h3 { color: var(--brand); }
.card.big { grid-column: 1 / -1; flex-direction: row; }
.thumb { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 16px; text-align: center; color: #fff; }
.thumb span { font-weight: 900; font-size: 22px; line-height: 1.4; }
.thumb small { display: block; font-size: 12px; font-weight: 700; opacity: 0.88; margin-top: 8px; }
.card.big .thumb { flex: 0 0 44%; aspect-ratio: auto; min-height: 220px; }
.card.big .thumb span { font-size: 28px; }
.thumb.c1 { background: var(--c1); } .thumb.c2 { background: var(--c2); } .thumb.c3 { background: var(--c3); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.card h3 { margin: 2px 0 2px; font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.card.big h3 { font-size: 21px; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.card time { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* はじめての方へ */
.steps { margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.steps li a { color: var(--ink); text-decoration: none; }
.steps li a:hover { color: var(--brand); text-decoration: underline; }
.steps b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); }

/* 右の枠 */
.side { display: grid; gap: 18px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.box p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.box .btn { display: block; }
.box-items { border-top: 4px solid var(--accent); }
.box .more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; }
.side-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; line-height: 1.6; }
.side-list li { border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; }
.side-list a { display: block; padding: 9px 0; color: var(--ink); text-decoration: none; }
.side-list a:hover { color: var(--brand); }
.side-list li[aria-current="page"] a { color: var(--brand); font-weight: 700; }
.sns { display: flex; gap: 8px; }
.sns a { flex: 1; text-align: center; font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; padding: 8px 0; color: var(--ink); text-decoration: none; }
.sns a:hover { border-color: var(--brand); color: var(--brand); }

/* 記事 */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 32px 36px 36px; }
.post-head { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.post-title { font-size: 28px; line-height: 1.5; margin: 8px 0 6px; font-weight: 900; word-break: auto-phrase; overflow-wrap: anywhere; }
.post-date { margin: 0; font-size: 13px; color: var(--muted); }
.toc { margin: 0 0 28px; padding: 16px 20px; border-radius: 8px; background: var(--brand-s); font-size: 14px; }
.toc-title { margin: 0 0 4px; font-weight: 700; color: var(--brand-d); }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { margin: 3px 0; }
.toc a { color: var(--ink); }
.body { font-size: 16.5px; line-height: 2; }
.body p, .body ul, .body ol { margin: 0 0 1.2em; }
.body ul, .body ol { padding-left: 1.5em; }
.body li { margin-bottom: 0.3em; }
.body h2 { font-size: 21px; line-height: 1.5; margin: 2em 0 0.9em; padding: 10px 14px; background: var(--brand-s); border-left: 6px solid var(--brand); border-radius: 0 6px 6px 0; word-break: auto-phrase; }
.body h3 { font-size: 18px; line-height: 1.5; margin: 1.8em 0 0.6em; padding-bottom: 4px; border-bottom: 2px solid var(--line); word-break: auto-phrase; }
.body strong { font-weight: 700; background: linear-gradient(transparent 65%, rgba(255, 194, 14, 0.4) 65%); }
.body blockquote { margin: 0 0 1.2em; padding: 10px 16px; border-left: 3px solid var(--line); color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.body th, .body td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.body th { background: var(--brand); color: #fff; white-space: nowrap; }
.body tbody tr:nth-child(even) td { background: #f8fafa; }
.body td:first-child { white-space: nowrap; font-weight: 700; }
.sources { margin-top: 2.4em; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); line-height: 1.8; }
.sources h2 { font-size: 14px; background: none; border: 0; margin: 0 0 0.4em; padding: 0; }
.items-note { margin: 28px 0 0; font-size: 14.5px; padding: 14px 16px; background: #fff8e1; border: 1px solid #f3dc8f; border-radius: 8px; }
.related { margin-top: 36px; }

/* 下部 */
.site-footer { background: var(--ink); color: #aab4b8; font-size: 13px; }
.site-footer .wrap { padding-block: 28px 36px; display: grid; gap: 10px; }
.logo-foot { color: #fff; font-size: 18px; }
.logo-foot .logo-mark { width: 28px; height: 28px; }
.logo-foot .logo-mark::before { inset: 8px 6px 6px; border-width: 2px; }
.logo-foot .logo-mark::after { left: 6px; right: 6px; top: 12px; height: 2px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer a { color: #d6dde0; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .hero-in, .page { grid-template-columns: minmax(0, 1fr); }
  .hero-in { padding-block: 32px; gap: 24px; }
  .hero h1 { font-size: 26px; }
  /* 一覧への入口は、狭い画面でも上部に残す（#63 完了条件5）。短い名前にしてサイト名の横に置く */
  .logo { font-size: 19px; }
  .header-cta { order: 2; margin-left: auto; font-size: 13px; padding: 6px 12px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav { order: 3; margin-left: 0; width: 100%; overflow-x: auto; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card.big { flex-direction: column; }
  .card.big .thumb { aspect-ratio: 16 / 9; min-height: 0; }
  .card.big .thumb span { font-size: 24px; }
  .steps ol { grid-template-columns: minmax(0, 1fr); }
  .post { padding: 22px 16px 24px; border-radius: 8px; }
  .post-title { font-size: 22px; }
  .body { font-size: 16px; }
  .body h2 { font-size: 18px; }
  /* 3列の表は、横にずらさずに全列が見えるよう画面の幅に収める */
  .body table { font-size: 13.5px; }
  .body th, .body td { padding: 6px 7px; }
  .hero-btns .btn { flex: 1 1 100%; }
}
