/*
 * Gekkosports デザイン刷新・第2弾 試作（v2）
 * 方針：記事の読みやすさを最優先。紙色・森の緑・ライムの顔は残し、色数と大きさの段階を絞る。
 * WordPress のテーマでも静的サイトでも、このまま使える素の CSS（ビルド不要）。
 */

/* ---- 1. 基礎値（デザイントークン） ---- */
:root {
  color-scheme: light;
  /* 色：Gekkosports 本体（1.x で約37色あった緑の段階を、役割ごとの9色にまとめた） */
  --paper: #f6f6ee;      /* 地 */
  --surface: #ffffff;    /* 目次・表・カードの面 */
  --ink: #17261d;        /* 本文・見出し */
  --ink-2: #3c4a40;      /* 抜粋・補足（地の上で 8.6:1） */
  --ink-3: #56635a;      /* 日付・パンくず（地の上で 5.8:1） */
  --line: #d5dbcb;       /* 罫線 */
  --forest: #163729;     /* 濃い面（ヒーロー・フッター） */
  --lime: #d6fa53;       /* 差し色：濃い面の上でだけ文字・面に使う */
  --lime-wash: #eef6d2;  /* 差し色の淡い面（カテゴリの札・印） */
  --link: #1f5a3a;       /* 本文のリンク（地の上で 7.5:1） */
  /* CRtto の部品だけはブランド色（指示書 4章） */
  --crtto-navy: #172240;
  --crtto-coral: #f04a2e;
  --crtto-coral-hover: #db3c24;

  /* 書体：OS の和文書体を使い、Web フォントは読み込まない（表示の速さを優先）。
     Windows は BIZ UDPゴシック（UD 書体、Windows 10 以降に標準搭載）を游ゴシックより先にする */
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --display: "Arial Black", "Arial", sans-serif;   /* ロゴの文字と数字の飾りだけ */
  --mono: ui-monospace, "SFMono-Regular", "Consolas", "Liberation Mono", monospace;

  /* 文字の大きさの段階（スマホの値。PC は下の media で上げる） */
  --fs-xs: .8125rem;   /* 13px：日付・パンくず（最小） */
  --fs-s: .9375rem;    /* 15px：補足・カードの抜粋・出典 */
  --fs-body: 1rem;     /* 16px：本文 */
  --fs-lead: 1.0625rem;/* 17px：記事の抜粋（リード） */
  --fs-h3: 1.125rem;   /* 18px */
  --fs-h2: 1.3125rem;  /* 21px */
  --fs-title: 1.5rem;  /* 24px：記事タイトル */

  /* 余白の段階 */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --gutter: 20px;
  --measure: 36em;     /* 本文の行長：1行およそ36字 */
  --radius: 10px;
}
@media (min-width: 768px) {
  :root {
    --fs-body: 1.0625rem; /* 17px */
    --fs-lead: 1.125rem;  /* 18px */
    --fs-h3: 1.1875rem;   /* 19px */
    --fs-h2: 1.5rem;      /* 24px */
    --fs-title: 2.125rem; /* 34px */
    --gutter: 40px;
  }
}

/* ---- 2. 基本 ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.85;
  letter-spacing: .02em;
  /* 和文の改行：禁則を厳しめに。1.x の overflow-wrap: anywhere（語の途中の改行の原因）はやめる */
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - var(--gutter) * 2, 1200px); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 10; padding: 8px 12px; background: var(--surface); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 見出し・タイトル・抜粋・案内文：語の途中で改行させない。
   文を文節（BudouX で分けた句）の間にだけ <wbr> を入れ、句の中では改行させない */
.phr { word-break: keep-all; overflow-wrap: break-word; }

/* ---- 3. ヘッダー ---- */
.site-header { position: relative; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--sp-5); min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; white-space: nowrap; font: 900 26px/1 var(--display); letter-spacing: -.06em; }
.wordmark img { width: 32px; height: 32px; }
.wordmark-accent { color: #466343; }
.global-nav ul { display: flex; gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.global-nav a { display: block; padding-block: 8px; font-size: .875rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.global-nav a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 6px; }
.global-nav a[aria-current="page"] { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-crtto a { display: inline-flex; align-items: center; gap: 6px; }
.nav-crtto a::before { width: 7px; height: 7px; border-radius: 50%; content: ""; background: var(--crtto-coral); }
.menu { display: none; }
.menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: var(--gutter); left: var(--gutter); top: 60px; padding: var(--sp-2) var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px #17261d1f; }
.menu-panel ul { margin: 0; padding: 0; list-style: none; }
.menu-panel li + li { border-top: 1px solid var(--line); }
.menu-panel a { display: block; padding: 13px 4px; font-weight: 700; text-decoration: none; }
.menu-panel .nav-crtto a { display: flex; } /* コーラルの点をメニューの中でも出す */
@media (max-width: 960px) {
  .global-nav { display: none; }
  .menu { display: block; }
}

/* ---- 4. 共通の部品 ---- */
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--lime-wash); color: #23452f; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .06em; line-height: 1.7; text-decoration: none; white-space: nowrap; }
a.chip:hover { background: #dfeeb2; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .04em; }
.meta time { font-family: var(--mono); letter-spacing: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: var(--sp-4) 0 0; color: var(--ink-3); font-size: var(--fs-xs); list-style: none; }
.breadcrumb li + li::before { margin-right: 6px; content: "/"; }
.breadcrumb a { text-underline-offset: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 20px; border-radius: var(--radius); font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.button-primary { background: var(--lime); color: var(--forest); }
.button-primary:hover { background: #e4ff86; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin: 0 0 var(--sp-5); padding-bottom: var(--sp-3); border-bottom: 2px solid var(--ink); }
.section-title h2 { margin: 0; font-size: var(--fs-h2); line-height: 1.4; letter-spacing: .02em; }
.section-title a { font-size: var(--fs-s); font-weight: 700; text-underline-offset: 4px; white-space: nowrap; }

/* 記事のサムネイル：自前の写真があるときは写真、無いときは文字のタイル（同じ線画が並ぶのをやめる） */
.thumb { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 8px; background: var(--forest); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-type { display: grid; align-content: end; height: 100%; padding: 10% 9%; color: var(--lime); word-break: keep-all; }
.thumb-type b { font-size: clamp(.8125rem, 2.6vw, 1.125rem); font-weight: 800; letter-spacing: .08em; line-height: 1.3; }
.thumb-type i { margin-top: 2px; color: #f1f7e4; font: 700 clamp(.8125rem, 3vw, 1.5rem)/1.2 var(--mono); font-style: normal; letter-spacing: -.02em; }
.thumb-type::before { position: absolute; top: 10%; right: 9%; width: 22%; aspect-ratio: 1; border-radius: 50%; content: ""; background: var(--lime); opacity: .95; }
.thumb-type.is-organizer-guide { background: #1f4a36; }
.post-row .thumb-type::before { display: none; }      /* 小さいタイルは文字だけ（印が文字に重ならないように） */
.feature-card .thumb.is-type { aspect-ratio: 21 / 9; } /* 写真の無い大きいタイルは低くする */
@media (min-width: 900px) { .feature-card .thumb.is-type { aspect-ratio: 16 / 10; } }

/* ---- 5. 記事ページ ---- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); padding-bottom: var(--sp-8); }
.article-main { min-width: 0; max-width: var(--measure); }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, var(--measure)) 240px; justify-content: center; gap: 72px; }
}
.article-header { padding-top: var(--sp-5); }
.article-title { margin: var(--sp-3) 0 0; font-size: min(var(--fs-title), 6.9vw); /* 320px でも12字のカタカナ語が1行に入る大きさ */ font-weight: 800; line-height: 1.5; letter-spacing: .01em; text-wrap: pretty; }
.article-deck { margin: var(--sp-4) 0 0; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.85; }
.article-cover { margin: var(--sp-5) 0 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* 目次：スマホは本文の前に折りたためる箱、PC（1100px 以上）は右に固定 */
.toc { margin: var(--sp-5) 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; font-size: var(--fs-s); font-weight: 800; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc-count { margin-left: auto; color: var(--ink-3); font-size: var(--fs-xs); font-weight: 600; }
.toc summary::after { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: rotate(45deg); transition: transform .15s; }
.toc[open] summary::after { transform: rotate(-135deg); }
.toc ol { margin: 0; padding: 0 16px 14px 16px; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 2em 1fr; padding-block: 5px; font-size: var(--fs-s); line-height: 1.6; }
.toc li::before { color: var(--ink-3); font-family: var(--mono); font-size: var(--fs-xs); content: counter(toc, decimal-leading-zero); padding-top: 2px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc-side { display: none; }
@media (min-width: 1100px) {
  .toc-inline { display: none; }
  .toc-side { display: block; }
  .toc-side .toc { position: sticky; top: 24px; margin-top: 128px; border: 0; background: transparent; }
  .toc-side .toc summary { padding: 0 0 10px; border-bottom: 2px solid var(--ink); pointer-events: none; }
  .toc-side .toc summary::after { display: none; }
  .toc-side .toc ol { padding: 10px 0 0; }
}

/* 本文（WordPress の本文の HTML をそのまま受ける） */
.prose { margin-top: var(--sp-6); font-size: var(--fs-body); }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.25em; }
.prose p { text-align: left; }
.prose h2 { margin-top: 2.6em; padding: 2px 0 2px 14px; border-left: 5px solid var(--forest); font-size: var(--fs-h2); line-height: 1.5; letter-spacing: .02em; }
.prose h3 { margin-top: 2em; font-size: var(--fs-h3); line-height: 1.55; }
.prose h2 + *, .prose h3 + * { margin-top: .8em; }
.prose a { color: var(--link); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 800; background: linear-gradient(transparent 62%, var(--lime-wash) 62%); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; padding-left: 1.3em; }
.prose ul > li { position: relative; }
.prose ul > li::before { position: absolute; left: -1.05em; top: .78em; width: 7px; height: 7px; border-radius: 50%; content: ""; background: #7a9c3c; }
.prose li + li { margin-top: .45em; }
.prose blockquote { margin-inline: 0; padding: 14px 18px; border-left: 4px solid #7a9c3c; border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); color: var(--ink-2); }
.prose blockquote > * { margin: 0; }
.prose hr { height: 1px; margin-block: 2.4em; border: 0; background: var(--line); }
.prose figure { margin-inline: 0; }
.prose img { border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.prose th, .prose td { padding: .55em .7em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose .wp-block-table { overflow-x: auto; }
/* 出典・参考リンク：本文より一段小さく、長い URL は折り返す */
.prose .is-sources { font-size: var(--fs-h3); border-left: 0; padding-left: 0; }
.prose h2.is-sources { margin-top: 2.8em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h3.is-sources { margin-top: 2.8em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose ul.sources { padding-left: 0; font-size: var(--fs-s); line-height: 1.75; color: var(--ink-2); }
.prose ul.sources > li { padding-left: 1.1em; }
.prose ul.sources > li::before { left: 0; top: .72em; width: 5px; height: 5px; background: var(--ink-3); }
.prose ul.sources a { overflow-wrap: anywhere; font-weight: 600; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--sp-6) 0 0; padding: var(--sp-4) 0 0; border-top: 1px solid var(--line); list-style: none; }
.article-tags a { display: inline-block; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-xs); text-decoration: none; }
.article-tags a::before { content: "# "; color: var(--ink-3); }

/* ---- 6. CRtto の部品（1.1.0 の形をそのまま。ネイビー×コーラル） ---- */
.crtto-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px 28px; margin: var(--sp-7) 0 0; padding: 28px 28px 28px 30px; border-left: 6px solid var(--crtto-coral); border-radius: 12px; background: var(--crtto-navy); color: #fff; letter-spacing: .02em; }
.crtto-cta-lockup { width: auto; height: 52px; }
.crtto-cta-copy p { margin: 0; word-break: keep-all; overflow-wrap: normal; line-break: strict; }
.crtto-cta .nb, .crtto-strip .nb { display: inline-block; }
.crtto-cta-kicker { color: #c9cedb; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; }
.crtto-cta-title { margin-top: 4px !important; font-size: 1.25rem; font-weight: 800; line-height: 1.45; }
.crtto-cta-offer { margin-top: 8px !important; font-size: .9375rem; line-height: 1.6; }
.crtto-cta-button { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 22px; border-radius: 10px; background: var(--crtto-coral); color: #fff; font-size: 1.1875rem; font-weight: 800; text-decoration: none; }
.crtto-cta-button:hover { background: var(--crtto-coral-hover); }
@media (max-width: 600px) {
  .crtto-cta { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 18px 22px 20px; }
  .crtto-cta-lockup { height: 44px; }
  .crtto-cta-button { justify-self: stretch; justify-content: center; }
}
@media (max-width: 374px) {
  .crtto-cta { padding: 20px 14px 20px 16px; }
  .crtto-cta-offer { font-size: .8125rem; }
}
.crtto-strip { display: flex; align-items: center; gap: 20px; padding: 16px 20px 16px 22px; border: 1px solid var(--line); border-left: 6px solid var(--crtto-coral); border-radius: 0 var(--radius) var(--radius) 0; background: #fff; }
.crtto-strip-lockup { flex: none; width: auto; height: 40px; }
.crtto-strip-text { flex: 1; margin: 0; color: var(--crtto-navy); font-size: .9375rem; line-height: 1.7; word-break: keep-all; overflow-wrap: normal; line-break: strict; }
.crtto-strip-text strong { font-weight: 800; }
.crtto-strip-link { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 16px; border: 2px solid var(--crtto-navy); border-radius: 10px; background: #fff; color: var(--crtto-navy); font-size: .9375rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.crtto-strip-link:hover { background: #e9ebf1; }
@media (max-width: 700px) {
  .crtto-strip { flex-wrap: wrap; gap: 12px; padding: 14px 14px 14px 16px; }
  .crtto-strip-text { flex-basis: 100%; }
  .crtto-strip-link { flex: 1 1 auto; }
}

/* ---- 7. 次に読む（記事末）・記事の一覧の行 ---- */
.related { margin-top: var(--sp-7); }
.post-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.post-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: start; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.post-row:first-child { padding-top: 0; }
.post-row a.row-link { text-decoration: none; }
.post-row a.row-link:hover .row-title { text-decoration: underline; text-underline-offset: 4px; }
.row-title { display: block; margin: 6px 0 0; font-size: 1.0625rem; font-weight: 800; line-height: 1.55; letter-spacing: .01em; }
.row-deck { margin: 6px 0 0; color: var(--ink-2); font-size: var(--fs-s); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-row .thumb { order: 2; }
@media (min-width: 768px) {
  .post-row { grid-template-columns: 200px minmax(0, 1fr); gap: var(--sp-5); padding: var(--sp-5) 0; }
  .post-row .thumb { order: 0; }
  .row-title { font-size: 1.1875rem; }
}
@media (max-width: 420px) {
  .post-row { grid-template-columns: minmax(0, 1fr) 88px; gap: var(--sp-3); }
  .row-deck { display: none; }
}
@media (max-width: 374px) {
  /* 狭い画面では一覧のサムネイルを外し、題に幅を回す（長いカタカナ語を途中で切らないため） */
  .post-row { grid-template-columns: minmax(0, 1fr); }
  .post-row .thumb { display: none; }
}

/* ---- 8. トップページ ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; margin-top: var(--sp-4); border-radius: 14px; background: var(--forest); color: #f5faee; }
.hero-media { aspect-ratio: 16 / 9; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 45%; }
.hero-copy { padding: 24px 22px 28px; }
.hero-kicker { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--lime); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; }
.hero-kicker span { padding: 2px 6px; border: 1px solid #d6fa5380; font: 700 var(--fs-xs)/1.3 var(--mono); letter-spacing: 0; }
.hero-title { margin: 14px 0 0; font-size: clamp(2rem, 1.3rem + 3.4vw, 3.5rem); font-weight: 900; line-height: 1.2; letter-spacing: -.01em; }
.hero-lead { margin: 14px 0 22px; font-size: var(--fs-body); line-height: 1.85; color: #e3ecdc; }
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 420px; }
  .hero-media { order: 2; aspect-ratio: auto; }
  .hero-copy { align-self: center; padding: 48px 48px 52px; }
  .hero-lead { font-size: var(--fs-lead); }
}

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: var(--sp-5) 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; height: 100%; padding: 14px 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.steps a:hover { border-color: var(--forest); }
.step-no { grid-row: span 2; color: #4f7a34; font: 800 var(--fs-xs)/1.9 var(--mono); }
.step-name { font-size: 1.0625rem; font-weight: 800; line-height: 1.6; }
.step-desc { color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.6; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .steps a { padding: 18px 18px 20px; }
  .step-desc { font-size: var(--fs-s); }
}

.home-section { margin-top: var(--sp-7); }
.home-crtto { margin-top: var(--sp-5); }
.latest-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
@media (min-width: 900px) { .latest-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.feature-card a { display: block; text-decoration: none; }
.feature-card .thumb { aspect-ratio: 16 / 10; }
.feature-card .thumb-type b { font-size: clamp(1rem, 3.4vw, 1.5rem); }
.feature-card .thumb-type i { font-size: clamp(1.25rem, 5vw, 2.5rem); }
.feature-card .meta { margin-top: var(--sp-4); }
.feature-title { display: block; margin: 8px 0 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); font-weight: 800; line-height: 1.5; }
.feature-card a:hover .feature-title { text-decoration: underline; text-underline-offset: 5px; }
.feature-deck { margin: 10px 0 0; color: var(--ink-2); font-size: var(--fs-s); line-height: 1.8; }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cats a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: var(--fs-s); font-weight: 700; text-decoration: none; }
.cats a:hover { border-color: var(--forest); }
.cats span { color: var(--ink-3); font-family: var(--mono); font-size: var(--fs-xs); }

.field-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-top: var(--sp-7); padding: 24px 24px 24px 26px; border-left: 6px solid #7a9c3c; border-radius: 0 var(--radius) var(--radius) 0; background: var(--lime-wash); }
.field-note h2 { margin: 0; font-size: var(--fs-h2); line-height: 1.45; }
.field-note p { margin: 6px 0 0; color: var(--ink-2); font-size: var(--fs-s); }
.button-dark { background: var(--forest); color: #fff; }
.button-dark:hover { background: #0f2a1e; }

/* ---- 9. フッター ---- */
.site-footer { margin-top: var(--sp-8); background: #142b21; color: #eef3e7; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-6); padding-block: 44px 28px; }
.site-footer .wordmark-accent { color: var(--lime); }
.footer-tagline { margin: 10px 0 0; color: #c3d1c3; font-size: var(--fs-s); }
.footer-crtto { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: #fff; font-size: var(--fs-s); font-weight: 700; text-decoration: none; }
.footer-crtto img { flex: none; width: auto; height: 28px; }
.footer-crtto-text { word-break: keep-all; }
.footer-crtto .nb { display: inline-block; }
.footer-crtto:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: start; max-width: 420px; margin: 0; padding: 0; list-style: none; }
.footer-links a { font-size: var(--fs-s); text-decoration: none; white-space: nowrap; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 16px 22px; border-top: 1px solid #82938366; color: #c3d1c3; font-size: var(--fs-xs); }
.footer-legal a { text-decoration: none; }
.footer-legal small { font-size: inherit; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print {
  .site-header, .site-footer, .toc, .crtto-cta, .related { display: none; }
  body { background: #fff; }
}

/* ---- 10. サイト版で足した部品（一覧・検索・固定ページ） ---- */
.header-search { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: inherit; }
.header-search:hover { border-color: var(--forest); }
.header-inner .global-nav { margin-left: auto; }
.wordmark { margin-right: 0; }
.header-inner { justify-content: space-between; }
@media (max-width: 960px) { .header-search { margin-left: auto; } }
.row-title-wrap, .feature-title-wrap { margin: 0; font-size: inherit; }
.archive-header { padding: var(--sp-5) 0 var(--sp-5); margin-bottom: var(--sp-5); border-bottom: 2px solid var(--ink); }
.archive-label { margin: 0; color: var(--ink-3); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; }
.archive-title { margin: 6px 0 0; font-size: var(--fs-title); line-height: 1.45; }
.archive-desc { margin: 8px 0 0; color: var(--ink-2); font-size: var(--fs-s); }
.archive-list { max-width: 880px; }
.empty-state { color: var(--ink-2); }
.pager { display: flex; justify-content: space-between; align-items: center; max-width: 880px; margin-top: var(--sp-5); font-weight: 700; }
.search-form { display: flex; gap: 8px; max-width: 560px; margin-bottom: var(--sp-4); }
.search-form input { flex: 1; min-width: 0; min-height: 48px; padding: 8px 14px; border: 1px solid #7a8a7d; border-radius: var(--radius); background: var(--surface); font: inherit; }
.search-form button { min-height: 48px; padding: 8px 18px; border: 0; border-radius: var(--radius); background: var(--forest); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.search-status { color: var(--ink-2); font-size: var(--fs-s); }
.search-row { grid-template-columns: minmax(0, 1fr) !important; }
.article-layout.is-page { grid-template-columns: minmax(0, 1fr); }
.article-layout.is-page .article-main { max-width: 760px; margin-inline: auto; width: 100%; }
.page-eyebrow { margin: 0; color: #486c42; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; }

/* WordPress の本文の HTML をそのまま使うページ（/crtto/）。WordPress の「追加 CSS」の特典の帯もここに移した */
.wp-body .aligncenter { margin-inline: auto; }
.wp-body figure { margin: 0; }
.wp-body .wp-block-image img { margin-inline: auto; }
.wp-body .has-small-font-size { font-size: var(--fs-s); }
.crtto-offer-band { margin: 1.5em 0; padding: 18px 20px; border-radius: 12px; border-left: 6px solid #F04A2E; background: #172240; color: #fff; text-align: center; font-size: 2.25rem; line-height: 1.45; letter-spacing: 0; word-break: keep-all; overflow-wrap: normal; line-break: strict; } /* 字間は WordPress のときと同じ（0） */
.crtto-offer-band strong { font-weight: 700; background: none; }
.crtto-offer-band .nb { display: inline-block; white-space: nowrap; } /* 句の中の空白でも改行させない（WordPress のときは「―」だけが1行になっていた） */
.crtto-offer-band .sub { display: block; margin-top: .2em; font-size: .6em; }
/* スマホは画面の幅に合わせて文字を小さくし、句「― 全プラン2027年2月末まで無料」（約15.2字分）を1行に収める
   （WordPress のときは 360px 前後で句が帯からはみ出し、どの幅でも「―」だけが1行になっていた） */
@media (max-width: 600px) { .crtto-offer-band { font-size: min(1.5rem, 5vw); padding: 16px 14px 16px 16px; } .crtto-offer-band .sub { font-size: max(13px, .75em); } }
.wp-body .sib-form { padding-inline: 0; }
.inquiry-form-missing { padding: 18px 20px; border: 2px dashed #7a8a7d; border-radius: var(--radius); background: var(--surface); }
.inquiry-privacy { color: var(--ink-2); font-size: var(--fs-s); }
