/* ============================================================
   くらべて、えらぶ — Design tokens + components
   ------------------------------------------------------------
   方針（調査結果より）
   - 本文は読みやすいゴシック1書体。明朝は使わない
   - ブランド色（ティール）と、行動を促す色（オレンジ）を分ける
   - 比較・ランキング系は「番号 / 表 / 大きいCTAボタン」で視線を誘導
   - 蛍光ペン風マーカー、塗り見出しなど、日本の読者が読み慣れた型を使う
   ============================================================ */

:root {
  /* surfaces */
  --bg:           #F7F5F0;
  --paper:        #FFFFFF;
  --sunk:         #F1EEE7;

  /* text */
  --ink:          #1D2330;
  --text:         #343B49;
  --muted:        #646B79;
  --faint:        #8E94A0;

  /* lines */
  --line:         #E6E2D8;
  --line-strong:  #D3CEC1;

  /* brand (teal) */
  --brand:        #0B6E5C;
  --brand-deep:   #085446;
  --brand-tint:   #E4F1ED;
  --brand-tint-2: #CDE6DF;

  /* action (burnt orange) — CTA ボタン専用 */
  --cta:          #C94F08;
  --cta-deep:     #AD4206;
  --cta-edge:     #8F3604;

  --mark:         #FFE98A;
  --gold:         #D99A12;
  --silver:       #8D96A3;
  --bronze:       #B8723F;

  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;

  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-pill: 4px;

  --shadow-sm: 0 1px 2px rgba(29, 35, 48, .06);
  --shadow:    0 1px 2px rgba(29, 35, 48, .05), 0 8px 24px rgba(29, 35, 48, .07);

  --wrap: 1120px;
  --gutter: 20px;
  --header-h: 60px;
  --gnav-h: 44px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  /* 日本語を文節の区切りで折り返す（未対応ブラウザでは通常の折り返し） */
  word-break: auto-phrase;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-tint-2);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
::selection { background: var(--mark); color: var(--ink); }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }


/* ============================================================
   広告表記バー / ヘッダー
   ============================================================ */
.prbar {
  background: var(--sunk); border-bottom: 1px solid var(--line);
  font-size: 11px; line-height: 1.6; color: var(--muted); padding: 6px 0;
}
.prbar__tag {
  display: inline-block; margin-right: 8px; padding: 0 6px;
  font-weight: 700; letter-spacing: .08em; font-size: 10px;
  color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px; background: var(--paper);
}

.siteheader {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.siteheader__bar { height: var(--header-h); }
.siteheader__inner { display: flex; align-items: center; gap: 24px; height: 100%; }

.progress {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 0;
  background: var(--cta); transition: width .1s linear; z-index: 2;
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 32px; height: 32px; display: block; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__ja { font-size: 19px; font-weight: 900; letter-spacing: .02em; }
.logo__en { font-size: 9px; font-weight: 500; letter-spacing: .2em; color: var(--faint); margin-top: 3px; }

.hsearch {
  margin-left: auto; width: 100%; max-width: 360px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 0 14px; height: 40px;
}
.hsearch:focus-within { background: var(--paper); border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.hsearch__icon { width: 16px; height: 16px; color: var(--faint); flex-shrink: 0; }
.hsearch__input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: 0;
  font: inherit; font-size: 13px; color: var(--ink);
}
.hsearch__input::placeholder { color: var(--faint); }
.hsearch__key {
  font-family: var(--font); font-size: 10px; color: var(--faint);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; line-height: 16px; background: var(--paper);
}
.hsearch-sp { display: none; margin-left: auto; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink); }
.hsearch-sp svg { width: 22px; height: 22px; }

.gnavbar { height: var(--gnav-h); border-bottom: 1px solid var(--line); background: var(--paper); }
.gnavbar__inner {
  display: flex; align-items: stretch; gap: 2px; height: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.gnavbar__inner::-webkit-scrollbar { display: none; }
.gnav__item {
  display: flex; align-items: center; white-space: nowrap;
  padding: 0 14px; font-size: 13px; font-weight: 500; color: var(--text);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.gnav__item:hover { color: var(--brand); background: var(--brand-tint); }
.gnav__item.is-active { color: var(--brand); font-weight: 700; border-bottom-color: var(--brand); }
.gnav__item--all { margin-left: auto; color: var(--muted); }


/* ============================================================
   共通パーツ
   ============================================================ */
.screen { display: block; min-height: 60vh; }
main.screen { padding-bottom: 72px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-top: 32px; }
.layout__main { min-width: 0; }
.layout__aside { min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.section { margin-top: 48px; }
.section:first-child { margin-top: 0; }
.sectionhead { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sectionhead__ja {
  margin: 0; font-size: 20px; line-height: 1.4; font-weight: 900; color: var(--ink);
  padding-left: 14px; border-left: 5px solid var(--brand);
}
.sectionhead__en { font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--faint); }
.sectionhead__more { margin-left: auto; font-size: 13px; font-weight: 700; white-space: nowrap; }

.media { display: block; overflow: hidden; background: var(--sunk); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph {
  background: repeating-linear-gradient(135deg, #EFEBE2, #EFEBE2 12px, #E7E2D6 12px, #E7E2D6 24px);
  display: flex; align-items: center; justify-content: center;
}
.ph__label { font-size: 10px; letter-spacing: .2em; color: var(--faint); }

.photocredit { font-size: 11px; line-height: 1.8; color: var(--faint); margin: 24px 0 0; }
.photocredit a { color: var(--muted); text-decoration: underline; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand); color: #fff; font-weight: 900; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar--sm { width: 32px; height: 32px; font-size: 13px; }
.avatar--lg { width: 56px; height: 56px; font-size: 22px; }
.avatar--xl { width: 96px; height: 96px; font-size: 38px; }

.meta { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.meta__date { font-size: 12px; color: var(--muted); }

.chip-cat {
  display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.5; color: var(--brand-deep);
  background: var(--brand-tint); padding: 2px 10px; border-radius: var(--r-sm); white-space: nowrap;
}
a.chip-cat:hover { background: var(--brand-tint-2); color: var(--brand-deep); }
.chip-cat--sm { font-size: 11px; padding: 1px 8px; }

.byline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.byline__name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.byline__role { font-size: 12px; color: var(--muted); }
.byline__actions { margin-left: auto; display: flex; gap: 8px; }
.sharebtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; transition: opacity .15s, transform .15s; }
.sharebtn:hover { color: #fff; opacity: .85; transform: translateY(-1px); }
.sharebtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sharebtn--x { background: #000; }
.sharebtn--line { background: #06C755; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; cursor: pointer;
  border-radius: var(--r-md); padding: 10px 18px; border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { background: var(--paper); border-color: var(--line-strong); color: var(--text); font-size: 12px; padding: 7px 14px; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px; color: var(--text); background: var(--paper);
  border: 1px solid var(--line); padding: 3px 11px; border-radius: var(--r-pill);
}
a.tag:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.tag--add { color: var(--faint); background: transparent; border-style: dashed; border-color: var(--line-strong); }
.tagcloud--posttags { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.panel__title, .panel__label {
  margin: 0 0 14px; font-size: 14px; font-weight: 900; color: var(--ink); line-height: 1.5;
  display: flex; align-items: center; gap: 8px;
}
.panel__title::before, .panel__label::before {
  content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--brand); flex-shrink: 0;
}
.panel__label--sm { font-size: 13px; }
.panel__hint { font-size: 12px; line-height: 1.85; color: var(--muted); margin: 0 0 12px; }


/* ============================================================
   トップ：イントロ
   ============================================================ */
.intro {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; padding: 44px 0 40px;
}
.intro__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.intro__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: #9BD9C9; margin: 0 0 10px; }
.intro__title { margin: 0 0 14px; font-size: 34px; line-height: 1.45; font-weight: 900; letter-spacing: .01em; text-wrap: balance; }
.intro__lead { margin: 0; font-size: 14px; line-height: 2; color: #D5EEE7; max-width: 520px; }

.intro__search { display: flex; background: #fff; border-radius: var(--r-md); padding: 5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.intro__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; padding: 0 14px; color: var(--ink); }
.intro__submit {
  border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700;
  background: var(--cta); color: #fff; padding: 12px 22px; border-radius: var(--r-md);
}
.intro__submit:hover { background: var(--cta-deep); }
.intro__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: #B5E3D6; }
.intro__tags a {
  color: #fff; background: rgba(255, 255, 255, .14); padding: 3px 12px; border-radius: var(--r-pill);
}
.intro__tags a:hover { background: rgba(255, 255, 255, .26); color: #fff; }


/* ============================================================
   記事カード
   ============================================================ */
.featured { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.fcard {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-lg);
  background: var(--ink); color: #fff; box-shadow: var(--shadow-sm);
}
.fcard:hover { color: #fff; }
.fcard__media { position: absolute; inset: 0; }
.fcard__media img { transition: transform .4s ease; }
.fcard:hover .fcard__media img { transform: scale(1.04); }
.fcard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 32, 0) 30%, rgba(20, 24, 32, .86) 100%);
}
.fcard__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; padding: 20px; }
.fcard--lg { min-height: 380px; }
.fcard--sm { min-height: 182px; }
.fcard__badge {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  background: var(--cta); color: #fff; padding: 2px 10px; border-radius: var(--r-pill);
}
.fcard__title { margin: 0; font-weight: 900; font-size: 24px; line-height: 1.5; text-wrap: pretty; }
.fcard--sm .fcard__title { font-size: 16px; line-height: 1.55; }
.fcard__meta { font-size: 12px; color: #D5D9E0; }
.featured__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }

.cardgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card__media { aspect-ratio: 16 / 10; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card__date { font-size: 11px; color: var(--muted); }
.card__title { font-size: 16px; line-height: 1.6; margin: 0; font-weight: 700; text-wrap: pretty; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand); }
.card__excerpt {
  font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--faint); border-top: 1px solid var(--line); }

/* 横並びの行（一覧用） */
.rowlist { display: flex; flex-direction: column; gap: 14px; }
.row {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.row:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--text); }
.row__media { height: 100%; min-height: 138px; }
.row__body { padding: 16px 20px 16px 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.row__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row__date { font-size: 11px; color: var(--muted); }
.row__title { font-weight: 900; font-size: 18px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.row:hover .row__title { color: var(--brand); }
.row__excerpt {
  font-size: 13px; line-height: 1.8; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}


/* ============================================================
   サイドバー部品
   ============================================================ */
.ranking { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; counter-reset: rank; }
.ranking__item { display: flex; gap: 12px; align-items: flex-start; }
.ranking__num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: var(--r-sm); margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff; background: var(--faint);
}
.ranking__item:nth-child(1) .ranking__num { background: var(--gold); }
.ranking__item:nth-child(2) .ranking__num { background: var(--silver); }
.ranking__item:nth-child(3) .ranking__num { background: var(--bronze); }
.ranking__link { font-size: 13px; line-height: 1.7; color: var(--ink); font-weight: 500; }
.ranking__link:hover { color: var(--brand); }

.profilebox { text-align: center; }
.profilebox .avatar { margin-bottom: 10px; }
.profilebox__name { font-size: 15px; font-weight: 900; color: var(--ink); }
.profilebox__role { font-size: 11px; color: var(--faint); margin-bottom: 10px; }
.profilebox__bio { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 0 0 14px; text-align: left; }

.catlinks { display: flex; flex-direction: column; }
.catlinks__item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text); padding: 8px 4px; border-bottom: 1px dashed var(--line);
}
.catlinks__item:last-child { border-bottom: 0; }
.catlinks__item:hover { color: var(--brand); }
.catlinks__item span { font-size: 11px; color: var(--faint); }

/* カテゴリタイル */
.cattiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cattile {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.cattile:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--ink); }
.cattile__code {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: var(--brand-deep); background: var(--brand-tint);
}
.cattile:hover .cattile__code { background: #fff; }
.cattile__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.cattile__name { font-size: 13px; font-weight: 700; }
.cattile__count { font-size: 11px; color: var(--muted); }

/* 信頼ブロック */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.trust__num { font-size: 12px; font-weight: 900; letter-spacing: .12em; color: var(--brand); margin-bottom: 6px; }
.trust__title { font-size: 15px; font-weight: 900; color: var(--ink); margin: 0 0 8px; line-height: 1.5; }
.trust__body { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0; }


/* ============================================================
   記事詳細
   ============================================================ */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px;
  padding: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs__sep { color: var(--faint-2, #B8BCC5); }
.crumbs__now { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.post__main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px 40px 44px; }
.post__title { font-weight: 900; font-size: 30px; line-height: 1.55; margin: 0 0 20px; color: var(--ink); text-wrap: pretty; }
.post__cover { aspect-ratio: 16 / 9; border-radius: var(--r-md); margin: 24px 0 0; }
.post__disclosure {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; line-height: 1.85; color: var(--muted);
  background: var(--sunk); border-radius: var(--r-md); padding: 12px 14px; margin: 20px 0 0;
}
.post__disclosure b {
  flex-shrink: 0; font-size: 10px; letter-spacing: .08em; line-height: 18px; padding: 0 6px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: var(--paper); color: var(--muted);
}
.post__sharebar { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 12px; color: var(--muted); }

.quickpick {
  margin: 32px 0 0; border: 2px solid var(--brand); border-radius: var(--r-lg); overflow: hidden; background: var(--paper);
}
.quickpick__head { background: var(--brand); color: #fff; font-weight: 900; font-size: 14px; padding: 10px 18px; }
.quickpick__row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); }
.quickpick__row:first-of-type { border-top: 0; }
.quickpick__no {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-tint);
  color: var(--brand-deep); font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.quickpick__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.quickpick__name small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.quickpick__go {
  flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--brand);
  border: 1px solid var(--brand); border-radius: var(--r-pill); padding: 4px 14px; background: var(--paper);
}
.quickpick__go:hover { background: var(--brand); color: #fff; }

.toc { background: var(--bg); border-radius: var(--r-lg); padding: 20px 24px; margin: 28px 0 8px; }
.toc__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; font-weight: 900; color: var(--ink); }
.toc__en { font-size: 10px; font-weight: 500; letter-spacing: .16em; color: var(--faint); }
.toc__list { margin: 0; padding-left: 0; list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 4px; }
.toc__list li { counter-increment: toc; display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-strong); font-size: 14px; line-height: 1.6; }
.toc__list li:last-child { border-bottom: 0; }
.toc__list li::before { content: counter(toc); flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.toc__list a { color: var(--text); font-weight: 500; }
.toc__list a:hover { color: var(--brand); text-decoration: underline; }

/* 本文 */
.prose { font-size: 16px; line-height: 2; color: var(--ink); letter-spacing: .02em; margin-top: 32px; }
.prose p { margin: 0 0 28px; text-wrap: pretty; }
.prose strong { font-weight: 700; }
.prose h2 {
  font-weight: 900; font-size: 22px; line-height: 1.6; color: #fff;
  margin: 56px 0 22px; padding: 12px 18px; background: var(--brand); border-radius: var(--r-md);
  position: relative; scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h2::after {
  content: ""; position: absolute; left: 26px; bottom: -9px;
  border: 9px solid transparent; border-bottom: 0; border-top-color: var(--brand);
}
.prose h3 {
  font-weight: 900; font-size: 18px; line-height: 1.6; color: var(--ink);
  margin: 40px 0 16px; padding: 0 0 8px; border-bottom: 3px solid var(--brand-tint-2); position: relative;
}
.prose h3::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 72px; height: 3px; background: var(--brand); }
.prose figure { margin: 0 0 28px; }
.prose figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.8; }
.prose blockquote {
  margin: 0 0 28px; padding: 18px 22px 18px 24px; background: var(--bg);
  border-left: 4px solid var(--line-strong); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 15px; line-height: 2; color: var(--text);
}
.prose ul { margin: 0 0 28px; padding: 18px 22px 18px 40px; background: var(--bg); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 8px; }
.prose ul li::marker { color: var(--brand); }
.marker { background: linear-gradient(transparent 58%, var(--mark) 58%); font-weight: 700; }

.notecards { display: grid; gap: 12px; margin: 0 0 28px; }
.notecard { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-md); padding: 16px 20px; }
.notecard__title { font-size: 15px; font-weight: 900; margin-bottom: 4px; color: var(--ink); }
.notecard__body { font-size: 14px; line-height: 1.9; color: var(--muted); }

.note {
  font-size: 12.5px; line-height: 1.9; color: var(--muted);
  background: #FFF8E1; border: 1px solid #F1E2A6; border-radius: var(--r-md); padding: 12px 16px; margin: 0 0 28px;
}

.authorbox {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg); border-radius: var(--r-lg); padding: 22px; margin-top: 36px;
}
.authorbox__name { font-size: 15px; font-weight: 900; margin-bottom: 4px; color: var(--ink); }
.authorbox__bio { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0 0 8px; }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.pager__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; color: var(--ink); }
.pager__item:hover { border-color: var(--brand); color: var(--ink); }
.pager__item--next { text-align: right; }
.pager__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--brand); margin-bottom: 6px; }
.pager__title { font-size: 13px; line-height: 1.7; font-weight: 500; }
.pager__item--empty { border: 0; background: transparent; }

.minilist { display: flex; flex-direction: column; gap: 14px; }
.minilist__item { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.minilist__item:hover { color: var(--brand); }
.minilist__thumb { width: 76px; height: 56px; flex-shrink: 0; border-radius: var(--r-sm); }
.minilist__title { display: block; font-size: 13px; line-height: 1.6; font-weight: 500; }
.minilist__date { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }

.related { margin-top: 48px; }
.minicardgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.minicardgrid--author { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.minicard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; color: var(--ink); display: flex; flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.minicard:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); }
.minicard__media { aspect-ratio: 16 / 10; }
.minicard__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.minicard__cat { font-size: 11px; font-weight: 700; color: var(--brand); }
.minicard__title { font-size: 13px; line-height: 1.65; font-weight: 700; }
.minicard__date { font-size: 11px; color: var(--faint); }


/* ============================================================
   A8 プログラムカード（読者向け表示）
   ============================================================ */
.proglist { margin: 0 0 40px; }
.proglist__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.proglist__title { font-size: 15px; font-weight: 900; color: var(--ink); }
.proglist__pr {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 6px; line-height: 18px; background: var(--paper);
}
.proglist__note { font-size: 11px; line-height: 1.85; color: var(--muted); margin: 12px 0 0; }

.prog {
  background: var(--paper); border: 2px solid var(--brand-tint-2);
  border-radius: var(--r-lg); padding: 20px 22px 22px; margin-bottom: 16px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prog__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.prog__idx {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--brand); color: #fff; font-size: 16px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.prog__name { font-size: 17px; font-weight: 900; line-height: 1.5; color: var(--ink); }
.prog__adv { font-size: 12px; color: var(--muted); margin-top: 2px; }
.prog__point { font-size: 14px; line-height: 1.95; color: var(--text); margin: 0 0 16px; padding: 12px 14px; background: var(--bg); border-radius: var(--r-md); }

.btn-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: var(--cta); color: #fff; font-size: 16px; font-weight: 900; letter-spacing: .02em;
  padding: 15px 20px; border-radius: var(--r-pill); text-align: center;
  box-shadow: 0 4px 0 var(--cta-edge);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-cta:hover { background: var(--cta-deep); color: #fff; transform: translateY(2px); box-shadow: 0 2px 0 var(--cta-edge); }
.btn-cta:active { transform: translateY(4px); box-shadow: 0 0 0 var(--cta-edge); }
.btn-cta__arrow { font-size: 20px; line-height: 1; }
.btn-cta--off { background: var(--sunk); color: var(--muted); box-shadow: none; font-size: 13px; font-weight: 500; cursor: not-allowed; }
.btn-cta--off:hover { background: var(--sunk); color: var(--muted); transform: none; box-shadow: none; }
.prog__ctanote { font-size: 11px; color: var(--faint); text-align: center; margin: 10px 0 0; }


/* ============================================================
   ページヘッダー（カテゴリ / 検索 / 一覧）
   ============================================================ */
.pagehead { background: var(--paper); border-bottom: 1px solid var(--line); padding: 36px 0 32px; }
.pagehead__en { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--brand); margin-bottom: 8px; }
.pagehead__title { font-weight: 900; font-size: 30px; line-height: 1.4; margin: 0 0 10px; color: var(--ink); }
.pagehead__lead { font-size: 14px; line-height: 1.95; color: var(--muted); margin: 0 0 16px; max-width: 680px; }
.pagehead__result { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.pagehead__result strong { font-size: 18px; color: var(--ink); }

.listbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 24px 0 16px; }
.listbar__count { font-size: 13px; color: var(--muted); }
.listbar__count strong { font-size: 18px; color: var(--ink); }

.empty {
  background: var(--paper); border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  padding: 40px 24px; text-align: center; font-size: 14px; line-height: 2; color: var(--muted);
}

/* 検索 */
.queryform { display: flex; background: var(--paper); border: 2px solid var(--brand); border-radius: var(--r-md); padding: 4px; max-width: 640px; }
.queryform__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; padding: 0 14px; color: var(--ink); }
.queryform__submit { border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; background: var(--brand); color: #fff; padding: 10px 22px; border-radius: 3px; }
.queryform__submit:hover { background: var(--brand-deep); }

.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filterbar__item { font-size: 12px; font-weight: 500; color: var(--text); background: var(--paper); border: 1px solid var(--line-strong); padding: 5px 14px; border-radius: var(--r-pill); }
a.filterbar__item:hover { border-color: var(--brand); color: var(--brand); }
.filterbar__item.is-active { color: #fff; background: var(--brand); border-color: var(--brand); font-weight: 700; }
.filterbar__item.is-active.is-dark { background: var(--ink); border-color: var(--ink); }

.result__snippet mark, .row__excerpt mark { background: var(--mark); color: var(--ink); padding: 0 2px; border-radius: 2px; }

.suggest { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.suggest__title { font-size: 14px; font-weight: 900; margin-bottom: 12px; color: var(--ink); }

/* カテゴリ一覧 */
.catcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catcard {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.catcard:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.catcard__head { display: flex; align-items: center; gap: 8px; }
.catcard__code { font-size: 11px; font-weight: 900; color: var(--brand-deep); background: var(--brand-tint); padding: 1px 8px; border-radius: 4px; }
.catcard__en { font-size: 10px; letter-spacing: .16em; color: var(--faint); }
.catcard__name { font-size: 18px; font-weight: 900; }
.catcard__desc { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 0; flex: 1; }
.catcard__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; color: var(--faint); }
.catcard__count { font-weight: 900; color: var(--brand); font-size: 12px; }


/* ============================================================
   運営者
   ============================================================ */
.profile { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.profile__body { flex: 1; min-width: 260px; }
.profile__name { font-weight: 900; font-size: 28px; margin: 0 0 4px; color: var(--ink); }
.profile__en { font-size: 11px; letter-spacing: .14em; color: var(--faint); margin-bottom: 14px; }
.profile__bio { font-size: 14px; line-height: 2; color: var(--text); margin: 0; max-width: 640px; }
.stats { display: flex; gap: 28px; }
.stat__num { font-size: 26px; font-weight: 900; color: var(--ink); line-height: 1.3; }
.stat__label { font-size: 12px; color: var(--muted); }

.archive { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text); }
.archive__row { display: flex; justify-content: space-between; }
.archive__row span:last-child { color: var(--muted); }


/* ============================================================
   表・ページ送り・プレビュー表示
   ============================================================ */
.prose ol { margin: 0 0 28px; padding: 18px 22px 18px 44px; background: var(--bg); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 8px; }
.prose ol li::marker { color: var(--brand); font-weight: 700; }
.prose img { display: block; width: 100%; height: auto; border-radius: var(--r-md); }

.tablewrap { margin: 0 0 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 14px; line-height: 1.7; letter-spacing: 0; }
.prose th { background: var(--brand); color: #fff; font-weight: 700; text-align: left; padding: 10px 14px; white-space: nowrap; }
.prose td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: var(--bg); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 32px 0 0; }
.pagination__page {
  min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--text); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
}
a.pagination__page:hover { border-color: var(--brand); color: var(--brand); }
.pagination__page--wide { padding: 0 16px; }
.pagination__page.is-active { color: #fff; background: var(--brand); border-color: var(--brand); }

.featured--solo { grid-template-columns: 1fr; }

.devbar { background: #1D2330; color: #E8EBF1; font-size: 12px; padding: 6px 0; }
.devbar a { color: #FFD27A; font-weight: 700; }
.statebadge { font-size: 10px; font-weight: 700; padding: 1px 8px; border-radius: var(--r-pill); white-space: nowrap; }
.statebadge--draft { background: #E9EAEE; color: #4B5160; }
.statebadge--scheduled { background: #FFF0CC; color: #8A5300; }
.previewbar { margin: -8px 0 20px; padding: 10px 14px; border-radius: var(--r-md); font-size: 13px; line-height: 1.7; }
.previewbar--draft { background: #E9EAEE; color: #3A404E; }
.previewbar--scheduled { background: #FFF0CC; color: #6E4300; }

/* ============================================================
   フッター
   ============================================================ */
.sitefooter { background: var(--ink); color: #B7BCC7; padding: 48px 0 32px; }
.sitefooter__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.sitefooter__brand { font-size: 19px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.sitefooter__note { font-size: 13px; line-height: 1.95; margin: 0; }
.sitefooter__col { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.sitefooter__col a, .sitefooter__links a { color: #B7BCC7; }
.sitefooter__col a:hover, .sitefooter__links a:hover { color: #fff; text-decoration: underline; }
.sitefooter__label { color: #868D9B; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.sitefooter__links { display: flex; flex-direction: column; gap: 10px; }
.sitefooter__foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid #2A3142; }
.sitefooter__disclosure { font-size: 11px; line-height: 1.95; color: #868D9B; margin: 0 0 10px; }
.sitefooter__copy { font-size: 11px; color: #868D9B; }


/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .layout__aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .intro__inner { grid-template-columns: 1fr; gap: 24px; }
  .minicardgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minicardgrid--author { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  .hsearch { display: none; }
  .hsearch-sp { display: flex; }
  .siteheader__inner { gap: 12px; }
  .logo__ja { font-size: 17px; }

  .intro { padding: 28px 0 28px; }
  .intro__title { font-size: 25px; }
  .intro__lead { font-size: 13px; }
  .intro__submit { padding: 12px 16px; }

  .layout { padding-top: 20px; }
  .layout__aside { grid-template-columns: 1fr; }
  .section { margin-top: 36px; }
  .sectionhead__ja { font-size: 18px; }
  .sectionhead__en { display: none; }

  .featured { grid-template-columns: 1fr; }
  .featured__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .fcard--lg { min-height: 300px; }
  .fcard__title { font-size: 20px; }
  .fcard--sm { min-height: 190px; }
  .fcard--sm .fcard__body { padding: 14px; }
  .fcard--sm .fcard__title { font-size: 14px; }
  .fcard--sm .fcard__meta { display: none; }

  .cardgrid { grid-template-columns: 1fr; }
  .cattiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cattile { padding: 10px 12px; gap: 10px; }

  .row { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .row__media { min-height: 100px; }
  .row__body { padding: 12px 12px 12px 0; gap: 4px; }
  .row__title { font-size: 15px; }
  .row__excerpt { display: none; }

  .post__main { padding: 22px 18px 32px; border-radius: var(--r-md); margin: 0 calc(var(--gutter) * -1); border-left: 0; border-right: 0; border-radius: 0; }
  .post__title { font-size: 23px; }
  .prose { font-size: 15.5px; }
  .prose h2 { font-size: 19px; margin-top: 44px; padding: 10px 14px; }
  .prose h3 { font-size: 17px; }
  .byline__actions { margin-left: 0; }
  .quickpick__row { padding: 12px 14px; gap: 10px; }
  .prog { padding: 16px 16px 18px; }
  .btn-cta { font-size: 15px; padding: 14px 16px; }
  .toc { padding: 16px 16px; }
  .authorbox { flex-direction: column; }
  .pager { grid-template-columns: 1fr; }
  .minicardgrid, .minicardgrid--author { grid-template-columns: 1fr 1fr; gap: 12px; }

  .pagehead { padding: 26px 0 24px; }
  .pagehead__title { font-size: 24px; }
  .catcards { grid-template-columns: 1fr; }
  .queryform__submit { padding: 10px 16px; }
  .profile { gap: 18px; }
  .profile__name { font-size: 24px; }
  .stats { gap: 20px; }

  .sitefooter { padding: 36px 0 28px; }
  .sitefooter__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* 固定ページ（運営者情報・プライバシーポリシー） */
.pagewrap { max-width: 880px; padding-top: 20px; }
.pagewrap .post__main { margin-bottom: 8px; }
.pagewrap .prose h2 { font-size: 20px; }
.pagewrap .prose table th { white-space: normal; }
.pagewrap .prose td:first-child { white-space: nowrap; font-weight: 700; }
.pagewrap .prose table { min-width: 0; }
.pagewrap .prose td, .pagewrap .prose th { word-break: normal; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .pagewrap .prose table { font-size: 13px; }
  .pagewrap .prose th, .pagewrap .prose td { padding: 8px 10px; }
  .pagewrap .prose td:first-child { white-space: normal; }
  .pagewrap .prose h2 { font-size: 18px; }
}
@media (min-width: 721px) { .pagewrap .prose td:first-child { width: 26%; } }
