/*
 * Rayne-Lab stylesheet v0.7
 * Modern editorial / research-lab direction.
 * Black × gold base with restrained vermilion seal accents.
 */

/* WEB-177: フォントの読み込みは postprocess_site.py が <head> に入れる <link> へ移した。
   CSS内の @import だと「style.css を取得 → 解析 → フォントCSSを取得 → 書体ファイルを取得」と
   直列3ホップになり、最初の描画がそのぶん遅れる。<link> なら style.css と並行して取りに行ける。
   ここに @import を書き戻さないこと（tests/web-177-font-loading-contract.mjs が検知する）。 */

:root {
  --ink: #09090b;
  --ink-raised: #101013;
  --ink-soft: #151519;
  --panel: rgba(22, 22, 26, 0.72);
  --panel-hover: rgba(27, 27, 32, 0.9);
  --fg: #f0eee9;
  --fg-soft: #ccc8bf;
  --muted: #8e8b84;
  /* WEB-173: #66645f はコントラスト比3.37で、0.62〜0.72remの小さい文字に使っていたためAA(4.5)未達だった。色味は保ったまま明度だけ上げて4.85にした。 */
  --muted-2: #807d77;
  --gold: #d2aa4d;
  --gold-bright: #e3bf68;
  --gold-soft: #927437;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.15);
  --stamp-border: #9f4939;
  --stamp-text: #cf6852;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);

  /* Global heading controls. Change these three values to recolor headings site-wide. */
  --heading-h1: var(--fg);
  --heading-h2: var(--fg);
  --heading-h3: var(--fg-soft);

  --gogyo-moku: #6f9457;
  --gogyo-ka: #c65c45;
  --gogyo-do: #b98d4a;
  --gogyo-kin: #c9c9d1;
  --gogyo-sui: #577fad;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--fg);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  /* WEB-179: 15px → 16px。390px幅で実測した6サイト（Wikipedia日本語版・サイボウズ式・
     GIGAZINE・note・MDN・16Personalities）はすべて本文16pxで、Rayne-Labだけが小さかった。
     日本語は画数が多いぶん、同じサイズでも英字より潰れて見える。
     字送りも 0.015em → 0.03em。ほぼ0だと字面が締まらない（サイボウズ式は0.6px≒0.0375em）。 */
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(210, 170, 77, 0.28);
  color: #fff;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 4%, rgba(210, 170, 77, 0.075), transparent 26rem),
    radial-gradient(circle at 92% 28%, rgba(159, 73, 57, 0.055), transparent 24rem),
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 88%);
}

h1, h2, h3 {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

/* 見出しの改行ルール（2026-09-22）：日本語を単語の途中で折り返さない。
 * 対応ブラウザは文節単位で改行（auto-phrase）、非対応は語をまとめて折り、
 * どうしても入らない時だけ任意位置で折る。 */
h1, h2, h3, h4 {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
@supports (word-break: auto-phrase) {
  h1, h2, h3, h4 { word-break: auto-phrase; overflow-wrap: normal; }
}

h1 { color: var(--heading-h1); }
h2 { color: var(--heading-h2); }
h3 { color: var(--heading-h3); }
a { color: inherit; }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  width: min(1180px, calc(100% - 48px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: "Shippori Mincho", serif;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(210,170,77,.55);
  color: var(--gold-bright);
  font-size: 0.82rem;
  line-height: 1;
  transform: rotate(45deg);
}

.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-name {
  color: var(--fg);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

.site-nav a {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(159,73,57,.8);
  border-radius: 50%;
  color: var(--stamp-text);
  text-decoration: none;
  font-family: "Shippori Mincho", serif;
  font-size: 0.95rem;
  background: rgba(159,73,57,0.02);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.site-nav a:hover {
  color: #f0d4cd;
  border-color: var(--stamp-text);
  background: rgba(159,73,57,.17);
  transform: translateY(-2px);
}

/* Main shell */
.site-main {
  /* Default (hub / subcategory / article pages, everything except the top page):
     match the article reading column (920px) so the breadcrumb bar and page
     content line up at the same left/right edge site-wide. The home page keeps
     its own wider layout via body.is-home below. */
  width: min(920px, calc(100% - 48px));
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

body.is-home .site-main {
  width: min(1120px, calc(100% - 48px));
}

/* Home */
.home-hero {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 0 72px;
  border-bottom: 1px solid var(--border);
}

.home-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(3.7rem, 8vw, 7.4rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.home-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(210,170,77,.72);
  text-stroke: 1px rgba(210,170,77,.72);
}

.hero-lead {
  max-width: 720px;
  margin: 2rem 0 0;
  color: var(--fg-soft);
  font-size: clamp(1rem, 1.9vw, 1.16rem);
  line-height: 1.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .26rem .66rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--fg-soft);
  font-size: .68rem;
  letter-spacing: .12em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(210,170,77,.7);
}

.home-section,
.hub-section {
  padding-top: 56px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 2rem;
  margin-bottom: 28px;
}

.section-heading.compact {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.section-heading > p {
  margin: 0 0 .15rem;
  color: var(--muted);
  font-size: .9rem;
  text-align: right;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.category-list li { border-bottom: 1px solid var(--border); }
.category-list li:nth-child(odd) { border-right: 1px solid var(--border); }

.category-list a {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1.55rem 1.65rem;
  text-decoration: none;
  transition: background-color .2s ease;
}

.category-list a:hover { background: rgba(255,255,255,.025); }

.category-index,
.list-index {
  color: var(--muted-2);
  font: 500 .66rem/1 "Noto Sans JP", sans-serif;
  letter-spacing: .12em;
}

.category-card-main {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.category-card-main strong {
  color: var(--gold-bright);
  font-family: "Shippori Mincho", serif;
  font-size: 2.05rem;
  font-weight: 600;
  line-height: 1.15;
}

.category-card-main small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 400;
}

.category-card-meta {
  color: var(--fg-soft);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.category-card-meta em {
  margin-left: .2rem;
  color: var(--muted);
  font-style: normal;
  font-size: .65rem;
}

.category-arrow,
.list-arrow {
  color: var(--muted-2);
  font-size: .92rem;
  transition: color .18s ease, transform .18s ease;
}

.category-list a:hover .category-arrow,
.article-list a:hover .list-arrow {
  color: var(--gold);
  transform: translate(2px,-2px);
}

/* Category hub */
.page-head {
  padding: 26px 0 50px;
  border-bottom: 1px solid var(--border);
}

.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 6.8rem);
  line-height: 1;
  letter-spacing: -.025em;
}

.page-lead {
  max-width: 720px;
  margin: 1.45rem 0 0;
  color: var(--muted);
  /* WEB-179: リード文も本文と同じ16pxへ。カテゴリのハブで最初に読まれる文章が
     本文より小さいのは逆。 */
  font-size: 1rem;
}

.count-badge {
  flex: 0 0 auto;
  margin-bottom: .6rem;
  color: var(--muted);
  /* WEB-195: .68rem(10.88px) → .75rem(12px)。件数はカテゴリの規模を伝える情報。 */
  font-size: .75rem;
  letter-spacing: .12em;
}

.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.subcategory-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,.028), rgba(255,255,255,.012));
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.subcategory-card:hover {
  transform: translateY(-4px);
  border-color: rgba(210,170,77,.42);
  background: rgba(210,170,77,.035);
  box-shadow: var(--shadow);
}

.subcategory-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.subcategory-title {
  color: var(--fg);
  font-family: "Shippori Mincho", serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.subcategory-count {
  color: var(--gold);
  font-size: .68rem;
  white-space: nowrap;
}

.subcategory-desc {
  margin-top: .9rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.75;
}

.subcategory-link {
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--muted-2);
  /* WEB-195: .62rem(9.92px) → .75rem(12px)。
     カテゴリハブのカードで「VIEW INDEX ↗」はそのカテゴリへ入る唯一のCTAなのに
     9.92px で、ページ内で最も小さい文字のひとつだった。押す前提の文字を最小にしない。 */
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
}

.subcategory-link b {
  color: var(--gold);
  font-weight: 400;
  margin-left: .3rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: .45rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 1.6rem;
  color: var(--muted-2);
  font-size: .72rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--gold); }

/* Article lists */
.article-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.article-list li {
  position: relative;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.article-list li > a {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem .15rem;
  text-decoration: none;
}

.indexed-list li > a {
  grid-template-columns: 42px minmax(0,1fr) auto;
  padding-bottom: .45rem;
}

.list-title {
  color: var(--fg-soft);
  font-family: "Shippori Mincho", serif;
  font-size: 1rem;
  transition: color .18s ease;
}

.article-list a:hover .list-title { color: var(--gold-bright); }

.list-meta {
  margin: 0 0 .7rem 42px;
  /* WEB-184: 9.92px では一覧の更新日が読めなかったため 12px を下限にする */
  font-size: .75rem !important;
  letter-spacing: .08em;
}

.tool-list .meta {
  max-width: 760px;
  margin: -.3rem 0 1rem;
}

.meta {
  color: var(--muted);
  font-size: .78rem;
}

.empty-state {
  margin-top: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.empty-state span { color: var(--gold-soft); font-size: .66rem; letter-spacing: .18em; }
.empty-state p { color: var(--muted); }

/* Article page */
.article-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.article-header {
  padding: 18px 0 42px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  margin: .35rem 0 1.4rem;
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  line-height: 1.32;
  letter-spacing: -.01em;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted-2);
  /* WEB-194: .65rem(10.4px) → .75rem(12px)。
     実測で記事ページに12px未満のテキストが13箇所あり、そのうち「更新 2026-09-18」は
     読者が記事の鮮度を判断する情報なのに10.4pxだった。12pxを本文周辺テキストの下限とする。 */
  font-size: .75rem;
  letter-spacing: .1em;
}

.article-body {
  padding-top: 42px;
  color: #d8d5ce;
  /* WEB-179: .96rem(15.4px) → 1rem(16px)。行間は 2.05 → 1.85。
     16px で 1.7〜1.9 が読みやすい帯。小さい字に広い行間だと行が離れすぎて、
     目が次の行を探すことになる（note も行間2.0だが本文は16px）。 */
  font-size: 1rem;
  line-height: 1.85;
}

.article-body > p:first-child { margin-top: 0; }

.article-body h2 {
  margin: 3.7rem 0 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--gold-soft);
  /* WEB-179: 本文16pxに対して 1.6〜1.8倍。修正前は 1.45倍しかなく、
     見出しと本文の落差が足りずに記事がのっぺり続いて見えていた。 */
  font-size: clamp(1.6rem, 3.4vw, 1.8rem);
  line-height: 1.45;
}

.article-body h3 {
  margin: 2.6rem 0 .9rem;
  /* WEB-179: 1.06rem(17px) → 1.25rem(20px)。修正前は本文の1.14倍で、
     h3が見出しに見えていなかった（MDN 1.50倍 / 16Personalities 1.38倍）。 */
  font-size: 1.25rem;
  line-height: 1.55;
}

.article-body p { margin: 1.15rem 0; }
.article-body strong { color: #f0e8d5; font-weight: 600; }
.article-body em { color: var(--fg-soft); }

.article-body a {
  color: var(--gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: rgba(210,170,77,.45);
}
.article-body a:hover { text-decoration-color: var(--gold); }

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
  margin: 1.25rem 0;
}
.article-body li { padding-left: .15rem; margin: .38rem 0; }
.article-body li::marker { color: var(--gold-soft); }

.article-body blockquote {
  margin: 2rem 0;
  padding: .9rem 1.2rem;
  border-left: 2px solid var(--gold-soft);
  background: rgba(255,255,255,.018);
  color: var(--fg-soft);
}

.article-body hr {
  height: 1px;
  border: 0;
  background: var(--border);
  margin: 3rem 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: .84rem;
}
.article-body th,
.article-body td {
  padding: .75rem .8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.article-body th { color: var(--gold); font-weight: 500; }

.source-note {
  margin-top: 3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: .7rem;
  line-height: 1.7;
}
.source-note a { color: var(--muted); text-underline-offset: .16em; }
.source-note a:hover { color: var(--gold); }

.article-footer {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.tags li {
  padding: .26rem .62rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: .68rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted-2);
}
.footer-inner {
  width: min(1120px, calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .62rem;
  letter-spacing: .12em;
}
.footer-rule { flex: 1; height: 1px; background: var(--border); }

@media (max-width: 900px) {
  .subcategory-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-list { grid-template-columns: 1fr; }
  .category-list li:nth-child(odd) { border-right: 0; }
  .section-heading { grid-template-columns: 1fr; gap: .7rem; }
  .section-heading > p { text-align: left; }
}

@media (max-width: 680px) {
  /* WEB-179: モバイルだけ14pxまで下げていた。本文は端末を問わず16pxで揃える。 */
  body { font-size: 16px; }
  .header-inner,
  .site-main,
  .footer-inner { width: min(100% - 28px, 1120px); }
  .header-inner { height: 64px; }
  .brand-name { display: none; }
  .brand-mark { width: 27px; height: 27px; }
  .site-nav { gap: .28rem; }
  .site-nav a { width: 31px; height: 31px; font-size: .83rem; }
  .site-main { padding: 50px 0 72px; }
  .home-hero { min-height: 350px; padding: 36px 0 52px; }
  .home-hero h1 { font-size: clamp(3.25rem, 18vw, 5.4rem); }
  .hero-lead { font-size: 1rem; }
  .category-list a { min-height: 118px; grid-template-columns: 24px 1fr auto; padding: 1.2rem .2rem; }
  .category-card-main strong { font-size: 1.7rem; }
  .category-arrow { display: none; }
  .page-head { padding-top: 10px; }
  .page-head-row { display: block; }
  .page-head h1 { font-size: clamp(3.1rem, 18vw, 5rem); }
  .count-badge { display: inline-block; margin-top: 1rem; }
  .subcategory-grid { grid-template-columns: 1fr; }
  .subcategory-card { min-height: 165px; }
  .article-header h1 { font-size: clamp(1.85rem, 9vw, 2.55rem); }
  .article-body { font-size: 1rem; line-height: 1.85; }
  .article-body h2 { margin-top: 3rem; }
  .indexed-list li > a { grid-template-columns: 34px minmax(0,1fr) auto; }
  .list-meta { margin-left: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* === 五行観測モデル シリーズ導線 (WEB-0437〜0446) ============================ */

.series-toc {
  margin: 1.6rem 0 2.2rem;
  padding: 1.1rem 1.3rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
}

.series-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}

.series-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: .7rem;
  row-gap: .1rem;
  align-items: baseline;
  padding: .4rem .55rem;
  border-radius: 6px;
}

.series-item.is-current {
  background: rgba(210, 170, 77, 0.08);
  border: 1px solid rgba(210, 170, 77, 0.28);
}

.series-badge {
  grid-row: 1 / 3;
  align-self: center;
  min-width: 4.4em;
  padding: .18rem .45rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: .64rem;
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
}

.series-item.is-current .series-badge {
  border-color: var(--gold);
  color: var(--gold);
}

.series-item-title {
  font-size: .87rem;
  line-height: 1.5;
}

.series-item-title a {
  color: var(--fg-soft);
  text-decoration: none;
  text-underline-offset: .2em;
}
.series-item-title a:hover { color: var(--gold-bright); text-decoration: underline; }

.series-item.is-current .series-item-title { color: var(--fg); font-weight: 600; }

.series-item-desc {
  grid-column: 2;
  color: var(--muted-2);
  font-size: .72rem;
  line-height: 1.5;
}

.article-toc {
  margin: 0 0 2.6rem;
  padding: 1rem 1.3rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.article-toc ol {
  list-style: decimal;
  margin: .3rem 0 0;
  padding-left: 1.35rem;
  display: grid;
  gap: .35rem;
  font-size: .82rem;
}

.article-toc a {
  color: var(--fg-soft);
  text-decoration: none;
  text-underline-offset: .2em;
}
.article-toc a:hover { color: var(--gold-bright); text-decoration: underline; }

.series-pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .8rem;
  align-items: stretch;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.series-pager-link {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: .8rem .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--fg-soft);
}
.series-pager-link:not(.is-disabled):hover {
  border-color: var(--gold-soft);
  color: var(--gold-bright);
}
.series-pager-link.is-disabled {
  color: var(--muted-2);
  cursor: default;
}
.series-pager-next { text-align: right; align-items: flex-end; }

.series-pager-label {
  font-size: .66rem;
  letter-spacing: .08em;
  color: var(--muted);
}
.series-pager-title {
  font-size: .82rem;
  line-height: 1.5;
}

.series-pager-top {
  align-self: center;
  justify-self: center;
  padding: .55rem 1rem;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  color: var(--gold);
  font-size: .72rem;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
}
.series-pager-top:hover { background: rgba(210, 170, 77, 0.1); }

@media (max-width: 640px) {
  .series-pager {
    grid-template-columns: 1fr;
  }
  .series-pager-next { text-align: left; align-items: flex-start; }
  .series-pager-top { order: -1; }
  .series-item { grid-template-columns: 1fr; }
  .series-badge { justify-self: start; }
  .series-item-desc { grid-column: 1; }
}

/* 2026-09-18 Claude 読者導線の整理:
   最初の画面に「次にどこへ行けばよいか」を1つ置く。
   太極図（.ghost-taiji）は z-index 0、ヒーローの中身は z-index 2 なので重なって見える。 */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.9rem;
  align-items: center;
  margin: 1.9rem 0 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0.78rem 1.7rem;
  border: 1px solid rgba(210,170,77,.62);
  background: linear-gradient(145deg, rgba(210,170,77,.14), rgba(210,170,77,.04));
  color: var(--fg);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  border-color: rgba(210,170,77,.92);
  background: linear-gradient(145deg, rgba(210,170,77,.22), rgba(210,170,77,.07));
  transform: translateY(-1px);
}

.hero-cta--ghost {
  border-color: var(--border);
  background: none;
  color: var(--fg-soft);
}

.hero-cta--ghost:hover,
.hero-cta--ghost:focus-visible {
  border-color: rgba(210,170,77,.52);
  background: none;
  color: var(--fg);
}

@media (max-width: 560px) {
  .hero-cta { flex: 1 1 auto; justify-content: center; }
}

/* WEB-194: .68rem(10.88px) → .75rem(12px)。MBTI(R)の商標表示という法的な注記が11px未満だった。 */
.footer-note{margin:.5rem auto 0;max-width:720px;padding:0 16px;text-align:center;color:var(--muted);font-size:.75rem;line-height:1.7}

/* WEB-163 2026-09-24: カテゴリトップの記事一覧グループ見出し */
.article-index-group{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:34px 0 10px;padding-bottom:8px;border-bottom:1px solid var(--border,rgba(255,255,255,.12));font:600 1rem/1.6 "Shippori Mincho","Yu Mincho",serif;letter-spacing:.04em}
.article-index-group a{color:var(--gold-bright,#e3bf68);text-decoration:none}
.article-index-group a:hover,.article-index-group a:focus-visible{text-decoration:underline}
.article-index-group .meta{margin:0;flex:none;font-size:.72rem;letter-spacing:.08em}
#article-index .article-list{margin-top:0}

/* WEB-164 2026-09-24: 記事の共有導線 */
.article-share{margin:52px 0 0;padding:22px 24px;border:1px solid var(--border,rgba(255,255,255,.12));background:linear-gradient(145deg,rgba(255,255,255,.028),rgba(255,255,255,.012))}
.article-share__title{margin:0 0 14px;font:600 .92rem/1.6 "Shippori Mincho","Yu Mincho",serif;letter-spacing:.06em}
.article-share__actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.article-share__btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border:1px solid rgba(210,170,77,.5);background:transparent;color:var(--gold-bright,#e3bf68);font-family:inherit;font-size:.85rem;letter-spacing:.04em;text-decoration:none;cursor:pointer;transition:border-color .18s ease,background .18s ease}
.article-share__btn:hover,.article-share__btn:focus-visible{border-color:rgba(210,170,77,.85);background:rgba(210,170,77,.08)}
.article-share__status{color:var(--muted,#aaa69f);font-size:.76rem;line-height:1.7}
@media(max-width:480px){.article-share__btn{flex:1 1 auto}}
