*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary-900: #0D4F4A;
  --primary-700: #13776E;
  --primary-500: #3FA396;
  --primary-50:  #E3F2EF;
  --accent-700:  #A8650F;
  --accent-600:  #C97B1D;
  --accent-50:   #FBF1E2;
  --marker-yellow: color-mix(in srgb, #FFE600 36%, transparent);
  --bg:      #FAF9F6;
  --surface: #FFFFFF;
  --text:    #2B3330;
  --muted:   #6B7672;
  --line:    #E5E1D7;
  --ok:      #2E7D4F;
  --warn:    #B45309;
  --danger:  #B3362B;
  --info:    #1D6FA5;
  --font-base: "Inter", "Noto Sans JP", system-ui, sans-serif;
  /* タイプスケール（2026-07 全面統一。36種の個別サイズを8段へ集約） */
  --fs-2xs: .72rem;   /* 11.5px 英字キッカー・装飾ラベル専用 */
  --fs-xs: .8rem;     /* 12.8px メタ・注記・パンくず・フッター */
  --fs-sm: .875rem;   /* 14px   カード本文・ナビ・ボタン・表・タグ */
  --fs-base: 1rem;    /* 16px   本文・リード */
  --fs-md: 1.125rem;  /* 18px   h3・カード見出し */
  --fs-lg: 1.45rem;   /* 23.2px 記事h2 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(13, 79, 74, .06);
  --shadow-md: 0 8px 24px rgba(13, 79, 74, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .22s;
  --content-max: 760px;  /* 記事本文カラムの最大幅（中央寄せ）。2026-07 可読性改善で 920px→760px */
  --prose-max: 760px;    /* 旧・長文段落の行長上限。--content-max と同値になったため実質不使用（本文は content-max で折り返す） */
}
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  font-weight: 400;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
code { overflow-wrap: anywhere; word-break: break-word; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 46px;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo img {
  display: block;
  width: auto;
  height: 48px;
}
.site-tagline {
  flex: 0 1 auto;
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary-900);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: block;
  padding: 21px 11px;
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-900);
  background: rgba(13, 79, 74, .05);
}
/* サイト内検索：ヘッダーの🔍ボタン＋オーバーレイ（既存トークンに合わせる）。
   ボタンは nav-links 内の先頭 li（.nav-search-item）に置き、右寄せメニューの先頭＝
   「カテゴリ」の左横に常に固定する（幅に依存せず崩れない）。 */
.nav-search-item { display: flex; align-items: center; margin-right: 6px; }
.nav-search-btn {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 12px;
  gap: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--primary-900);
  cursor: pointer;
}
.nav-search-btn:hover { border-color: var(--primary-500); }
.nav-search-label { font-size: var(--fs-xs); font-weight: 600; line-height: 1; }
/* バー常設の検索ボタンはモバイル専用（PCは nav-links 内の .nav-search-item を使う）。 */
.nav-search-bar { display: none; }
/* カテゴリ・ドロップダウン（メガメニュー）。トークン配色のみ・濃い影/グラデなし。 */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 21px 11px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.is-active,
.nav-dropdown-trigger[aria-expanded="true"] {
  color: var(--primary-900);
  background: rgba(13, 79, 74, .05);
}
.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform .18s var(--ease);
}
.nav-dropdown-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-dropdown-panel {
  /* sticky ヘッダー内の absolute は stacking trap でヒーロー背面に潜るため、
     デスクトップは fixed でビューポート基準に出す（top/right は JS が実測して指定）。 */
  position: fixed;
  top: 64px;
  right: 24px;
  z-index: 1000;
  width: min(440px, calc(100vw - 24px));
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.nav-dropdown-panel[hidden] { display: none; }
.nav-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 4px;
}
.nav-menu-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.nav-menu-item:hover { background: rgba(13, 79, 74, .05); }
.nav-menu-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-900);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.nav-menu-count {
  color: var(--accent-700);
  background: var(--accent-50);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: var(--fs-2xs);
  font-weight: 700;
  line-height: 1.6;
}
.nav-menu-blurb {
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.4;
}
.nav-menu-all {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--primary-900);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.nav-menu-all:hover { color: var(--accent-700); }
.nav-dropdown-trigger:focus-visible,
.nav-menu-item:focus-visible,
.nav-menu-all:focus-visible {
  outline: 2px solid var(--accent-700);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .nav-caret { transition: none; }
}
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 11vh 16px 16px;
  background: rgba(43, 51, 48, .45);
  backdrop-filter: blur(2px);
}
.search-overlay[hidden] { display: none; }
body.search-open { overflow: hidden; }
.search-panel {
  width: min(640px, 100%);
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px 13px 16px;
  border-bottom: 1px solid var(--line);
}
.search-box-icon { flex: 0 0 auto; color: var(--muted); }
.search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: var(--fs-base);
  padding: 6px 0;
  outline: none;
}
.search-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.search-close:hover { color: var(--text); background: rgba(13, 79, 74, .05); }
.search-results {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 58vh;
  overflow-y: auto;
}
.search-result {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.search-result:hover { background: var(--primary-50); }
.search-result-cat {
  display: inline-block;
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--accent-600);
  margin-bottom: 3px;
}
.search-result-title {
  display: block;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.search-result-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
}
.search-status {
  margin: 0;
  padding: 16px 18px;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.search-status[hidden] { display: none; }
.breadcrumb {
  padding: 14px 80px;
  color: var(--muted);
  font-size: var(--fs-xs);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-700); }
.breadcrumb-back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 12px 6px 8px;
  border: 1px solid color-mix(in srgb, var(--primary-900), transparent 86%);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-900) !important;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.breadcrumb-back span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-900);
  line-height: 1;
}
.breadcrumb-back:hover {
  border-color: var(--primary-500);
  color: var(--primary-900) !important;
  box-shadow: var(--shadow-md);
  transform: translateX(-2px);
}
.article-fixed-back { display: none; }
.scroll-nav {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface), transparent 45%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid color-mix(in srgb, var(--primary-900), transparent 88%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s var(--ease), visibility .18s var(--ease);
}
.scroll-nav.is-visible {
  opacity: 1;
  visibility: visible;
}
.scroll-nav-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--primary-900);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background .18s var(--ease), opacity .18s var(--ease);
}
.scroll-nav-btn + .scroll-nav-btn { border-top: 1px solid color-mix(in srgb, var(--primary-900), transparent 88%); }
.scroll-nav-btn:not(:disabled):hover { background: color-mix(in srgb, var(--primary-900), transparent 90%); }
.scroll-nav-btn:disabled { opacity: .3; cursor: default; }
@media (min-width: 1200px) {
  .article-fixed-back {
    position: fixed;
    left: calc(50% - var(--content-max) / 2 - 136px);
    top: 91px;
    z-index: 72;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    white-space: nowrap;
    padding: 8px 13px 8px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary-900) !important;
    font-size: var(--fs-xs);
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      border-color .2s var(--ease),
      box-shadow .2s var(--ease),
      transform .2s var(--ease),
      opacity .2s var(--ease),
      visibility .2s var(--ease);
  }
  .article-fixed-back span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary-900);
    line-height: 1;
  }
  body.toc-in-article .article-fixed-back {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .article-fixed-back:hover {
    border-color: var(--primary-500);
    color: var(--primary-900) !important;
    transform: translateX(-2px);
  }
  body.page-article .scroll-nav {
    left: calc(50% - var(--content-max) / 2 - 64px);
    transition:
      opacity .2s var(--ease),
      visibility .2s var(--ease);
  }
  body.page-article .scroll-nav.is-visible {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  body.page-article.toc-in-article .scroll-nav.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
@media (max-width: 768px) {
  .scroll-nav { left: 14px; top: auto; bottom: 18px; transform: none; }
  .scroll-nav-btn { width: 40px; height: 40px; font-size: 1.15rem; }
}
.page-hero,
.hero {
  background: var(--primary-900);
  color: var(--bg);
  padding: 66px 80px 56px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  gap: 44px;
  align-items: center;
}
.eyebrow,
.section-kicker,
.card-kicker,
.label {
  color: var(--accent-700);
  font-size: var(--fs-2xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}
.hero .eyebrow,
.page-hero .eyebrow { color: var(--accent-600); margin-bottom: 13px; }
.hero .eyebrow { font-size: var(--fs-xs); }
h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.42;
  letter-spacing: .03em;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.6rem, 5.2vw, 1.95rem); margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(1.5rem, 2.5vw + 0.4rem, 2.4rem); }
.hero .btn-row { margin-top: 24px; }
h1 span { display: inline; }
/* ヒーロー見出し：H1は主コピー（その処理…）。サブコピー（経理…ここで解決。）は従サイズ。
   PCはサブを1〜2行、モバイルは意味単位で折り返し、助詞・記号が単独で折り返す崩れを防ぐ。 */
.hero-subhead {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  line-height: 1.5;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
  margin-bottom: 16px;
}
.hero-subhead .gc-hl-b { white-space: nowrap; }  /* 「「これ、どうする？」を、」を割らない */
.hero-subhead .gc-hl-c { display: block; }       /* 「ここで解決。」を必ず改行（PC・モバイル共通で2行） */
/* 狭幅の汎用ルール span{display:block} が内側のマーカー span まで block化し
   質問句と助詞を分断するのを打ち消す（マーカーは常にインライン）。 */
.hero-subhead .gc-hero-mark { display: inline; }
.hero h1 .gc-h1-b { white-space: nowrap; }       /* 「まず確認。」を割らない */
@media (max-width: 768px) {
  .hero h1 .gc-h1-b { display: block; } /* モバイル: 「その処理…前に」／「まず確認。」で改行 */
}
/* ヒーロー見出し「すぐ使える」の手書き風アンバーマーカー（縁が揺らいだ一筆・左→右へ1回スイープ） */
.gc-hero-mark { position: relative; isolation: isolate; }
.gc-hero-mark::before {
  content: ""; position: absolute; z-index: -1;
  left: -.08em; right: -.08em; bottom: .03em; height: .34em;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 40' preserveAspectRatio='none'><path d='M5,21 C42,13 92,11 150,13 C212,15 262,12 296,18 C300,24 297,33 291,35 C238,30 178,33 128,32 C78,31 34,35 8,33 C1,30 1,25 5,21 Z' fill='%23C97B1D'/></svg>") no-repeat;
  background-size: 100% 100%;
  clip-path: inset(0 100% 0 0);
  animation: gc-hero-mark-sweep .7s ease-out .25s forwards;
}
@keyframes gc-hero-mark-sweep {
  to { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .gc-hero-mark::before { animation: none; clip-path: inset(0 0 0 0); }
}
/* ===== ヒーロー2カラム化＋右ビジュアル（カオス→秩序 / Formatting Grid）===== */
.hero {
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary-50) 55%, var(--primary-500) 45%) 0%, var(--primary-50) 45%, color-mix(in srgb, var(--primary-50) 55%, #fff) 75%, #fff 100%);
  color: var(--text);
}
.hero .lead { color: var(--muted); }
.hero-copy { min-width: 0; }
.hero-visual { position: relative; height: 380px; min-width: 0; }
.hv-chaos, .hv-order { position: absolute; inset: 0; }
.hv-svg { width: 100%; height: 100%; display: block; }
/* フェーズ1：カオス層を線画で1つずつ「描く」（stroke-dashoffset手書き演出） */
.hv-chaos { opacity: .92; clip-path: inset(0 0 0 0); animation: hv-chaos-hide 2.4s linear 2.55s forwards; }
.hv-chaos .c-stroke {
  fill: none; stroke: var(--primary-700); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: hv-draw .85s ease-out var(--dd, 0s) forwards;
}
.hv-chaos .c-stroke.thin { stroke-width: 1.4; stroke: var(--primary-500); }
.hv-chaos .c-stamp { stroke: var(--accent-600); stroke-width: 1.8; }
.hv-chaos .c-cell { stroke: var(--accent-600); stroke-width: 1.8; }
.hv-chaos .c-label { fill: var(--primary-700); font-weight: 700; text-anchor: middle; opacity: 0; animation: hv-label-in .8s ease-out var(--dd, 0s) forwards; }
@keyframes hv-label-in { to { opacity: 1; } }
.hv-chaos .hv-rcpt { transform-box: fill-box; transform-origin: center; animation: hv-float 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
/* フェーズ3：3枚以上の秩序カードへ変容（左→右にリビール・teal/amberトークン） */
.hv-order { clip-path: inset(0 100% 0 0); animation: hv-order-reveal 2.4s linear 2.55s forwards; }
.hv-order .k-card { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.hv-order .k-head { fill: var(--primary-700); }
.hv-order .k-sub { fill: var(--line); }
.hv-order .k-bar { fill: var(--primary-500); }
.hv-order .k-bar-accent { fill: var(--accent-600); }
.hv-order .k-track { fill: var(--primary-50); }
.hv-order .k-fill { fill: var(--primary-500); }
.hv-order .k-chip { fill: var(--accent-600); }
.hv-order .k-val { fill: var(--primary-700); }
.hv-order .k-area { fill: var(--primary-50); }
.hv-order .k-line { fill: none; stroke: var(--primary-700); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hv-order .k-check { fill: none; stroke: var(--accent-600); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hv-order .k-box { fill: none; stroke: var(--primary-500); stroke-width: 1.6; }
.hv-order .k-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.hv-order .k-axis { fill: none; stroke: var(--line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hv-order .k-dot { fill: var(--surface); stroke: var(--primary-700); stroke-width: 2; }
.hv-order .k-up { fill: var(--accent-600); }
.hv-order .k-divider { stroke: var(--line); stroke-width: 1; }
.hv-order .k-ring { fill: none; stroke: var(--primary-500); stroke-width: 1.6; }
.hv-order .k-tick { stroke: var(--line); stroke-width: 1.4; stroke-linecap: round; }
/* 秩序層：カラフルな詳細グラフ用パレット（塗り k-f* / 線 k-t*） */
.hv-order .k-f1 { fill: var(--primary-500); }
.hv-order .k-f2 { fill: #2E8FE6; }
.hv-order .k-f3 { fill: #36B37E; }
.hv-order .k-f4 { fill: var(--accent-600); }
.hv-order .k-f5 { fill: #7C6FE0; }
.hv-order .k-t1 { fill: none; stroke: var(--primary-500); }
.hv-order .k-t2 { fill: none; stroke: #2E8FE6; }
.hv-order .k-t3 { fill: none; stroke: #36B37E; }
.hv-order .k-t4 { fill: none; stroke: var(--accent-600); }
.hv-order .k-t5 { fill: none; stroke: #7C6FE0; }
.hv-order .k-seg { fill: none; stroke-width: 13; }
.hv-order .k-trend { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
/* フェーズ2：スキャナー光（ブルー #2E8FE6・左→右に1回・完了後は確実に非可視） */
.hv-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; opacity: 0; pointer-events: none; animation: hv-scan-move 2.4s linear 2.55s forwards; }
.hv-scan::before {
  content: ""; position: absolute; top: 8%; bottom: 8%; left: 0; width: 3px;
  background: #2E8FE6; border-radius: 3px;
  box-shadow: 0 0 9px 2px rgba(46, 143, 230, .6);
}
/* 最終フェーズ：右ビジュアル中央へ締めのコピーをフェードイン（装飾／aria-hidden配下・見出しではない） */
.hv-caption {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  margin: 0; width: max-content; max-width: 90%; text-align: center; white-space: nowrap;
  font-weight: 700; font-size: 1.2rem; line-height: 1.4; letter-spacing: .02em;
  color: var(--accent-600);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  padding: 10px 18px; border-radius: 12px;
  box-shadow: 0 4px 18px rgba(13, 79, 74, .14);
  opacity: 0; animation: hv-caption-in .55s ease-out 5.5s forwards;
}
.hv-caption span { white-space: nowrap; }
@keyframes hv-caption-in {
  from { opacity: 0; transform: translate(-50%, -42%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes hv-draw { to { stroke-dashoffset: 0; } }
@keyframes hv-chaos-hide { to { clip-path: inset(0 0 0 100%); } }
@keyframes hv-order-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes hv-scan-move {
  0% { transform: translateX(0); opacity: 0; visibility: visible; }
  8% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; visibility: hidden; }
}
@keyframes hv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
/* アクセシビリティ：モーション低減時は描画・走査・フロートを無効化し、整列後カード（3枚以上）を即表示 */
@media (prefers-reduced-motion: reduce) {
  .hv-chaos, .hv-scan { display: none; }
  .hv-order { clip-path: none; animation: none; }
  .hv-rcpt { animation: none; }
  .hv-caption { opacity: 1; animation: none; }
}
/* モバイル（≤768px）：右ビジュアルは非表示、背景は縦方向の薄いティントにフォールバック */
@media (max-width: 768px) {
  .hero { background: linear-gradient(180deg, var(--primary-50) 0%, #fff 70%); }
  .hero-visual { display: none; }
}
/* ===== 法改正スケジュール（TOP・時系列タイムライン）===== */
.law-schedule .law-timeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.law-item { display: grid; grid-template-columns: 88px 56px 1fr; gap: 4px 16px; align-items: start; position: relative; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.law-item:hover { transform: translateY(-3px); border-color: var(--primary-500); box-shadow: var(--shadow-md); z-index: 1; }
.law-item:hover .law-link { color: var(--accent-700); text-decoration: underline; }
.law-link::after { content: ""; position: absolute; inset: 0; }
.law-date { font-weight: 700; color: var(--primary-900); font-size: var(--fs-sm); white-space: nowrap; padding-top: 3px; }
.law-cat { display: inline-flex; align-items: center; justify-content: center; align-self: start; font-size: var(--fs-2xs); font-weight: 700; color: #fff; padding: 3px 0; border-radius: 999px; }
.law-cat--keiri { background: var(--primary-700); }
.law-cat--roumu { background: var(--info); }
.law-cat--houmu { background: var(--accent-700); }
.law-cat--dx { background: var(--ok); }
.law-title { font-size: var(--fs-base); font-weight: 700; margin: 0; }
.law-text { font-size: var(--fs-sm); color: var(--muted); line-height: 1.75; margin: 0; }
.law-body-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 3px; }
.law-body-head .law-title { flex: 1 1 auto; min-width: 0; }
.law-body-head .law-link { flex: 0 0 auto; white-space: nowrap; }
.law-link { font-size: var(--fs-sm); font-weight: 600; color: var(--primary-700); text-decoration: none; }
.law-link:hover { color: var(--accent-700); text-decoration: underline; }
.law-ongoing { margin: 18px 0 0; font-size: var(--fs-sm); color: var(--text); line-height: 1.7; }
.law-ongoing a, .law-note a { color: var(--primary-700); }
.law-note { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }
.law-asof { display: inline-block; margin-left: 12px; font-size: var(--fs-2xs); font-weight: 600; color: var(--muted); vertical-align: middle; white-space: nowrap; }
@media (max-width: 768px) {
  .law-item { grid-template-columns: auto 1fr; gap: 6px 12px; }
  .law-cat { justify-self: start; padding: 3px 10px; }
  .law-body { grid-column: 1 / -1; }
}
.lead {
  max-width: 820px;
  color: rgba(250, 249, 246, .72);
  font-size: var(--fs-base);
  line-height: 2;
}
.lead span { display: inline; }
.hero-panel {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 24px;
}
.hero > *,
.page-hero > *,
.section > *,
.content-layout > * { min-width: 0; }
.hero-panel h2 {
  font-size: var(--fs-md);
  font-weight: 600;
  margin: 10px 0 15px;
}
.hero-panel .card-text { color: rgba(250, 249, 246, .78); }
.hero-tool-links { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-tool-links a { color: rgba(250, 249, 246, .9); text-decoration: none; font-size: var(--fs-sm); }
.hero-tool-links a:hover { text-decoration: underline; }
.filter-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.filter,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, .58);
  color: var(--muted);
  font-size: var(--fs-xs);
  text-decoration: none;
}
.filter:hover,
.tag:hover { color: var(--accent-700); border-color: var(--accent-600); background: #fff; }
.section { padding: 60px 80px; }
.section.tight { padding-top: 46px; }
.section.alt { background: var(--primary-50); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: clamp(1.42rem, 2.3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--primary-900);
  margin-top: 5px;
}
.section-lead {
  color: var(--muted);
  max-width: 760px;
  font-size: var(--fs-sm);
  line-height: 1.9;
  margin-top: 8px;
}
.view {
  color: var(--muted);
  font-size: var(--fs-xs);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
.view:hover { color: var(--accent-700); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.related-grid { grid-template-columns: repeat(auto-fit, minmax(max(160px, (100% - 48px) / 4), 1fr)); }
.card,
.article-card,
.template-card,
.tool-card,
.info-box,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
a.card,
a.article-card,
a.template-card,
a.tool-card {
  color: var(--text);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
a.card:hover,
a.article-card:hover,
a.template-card:hover,
a.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
}
a.card:hover .card-title,
a.article-card:hover .card-title,
a.template-card:hover .card-title,
a.tool-card:hover .card-title { color: var(--primary-700); }
/* 非クリックの情報カード（div.card）は、クリック可能な a.card（白面＋枠＋hover浮き）と
   明確に分けるため、枠線・角丸・面背景を外し、左アクセントバー＋テキストのみのフラットな
   注記として表示する（タップできる箱に見せない／hover・ポインタを持たない）。 */
div.card {
  background: transparent;
  border: none;
  border-left: 3px solid var(--accent-600);
  border-radius: 0;
  padding: 4px 0 4px 16px;
  cursor: default;
}
/* 課題カード（ツール導入「まず何を楽にしたいか」）の見出しは、減らしたい作業＝負担を
   表すため、--danger を少し淡くした赤で表示する（クリック挙動・hover は a.card のまま）。 */
.task-grid .card-title { color: color-mix(in srgb, var(--danger) 82%, #fff); }
/* 「向いている会社の目安」は非クリックの情報パネル。a.card/info-box の白面カードと分け、
   枠を外したフラット表示にし、良い点（社名）を --ok で強調する。 */
.fit-guide { background: transparent; border: none; border-left: 3px solid var(--ok); border-radius: 0; padding: 4px 0 4px 16px; }
/* ・を廃止して左アクセント線との被りを解消。各項目は社名見出し＋「向いている会社／良くなる点」の行で構成。 */
.fit-guide ul { list-style: none; margin: 12px 0 6px; padding-left: 0; }
.fit-guide li { margin-bottom: 16px; }
.fit-guide li:last-child { margin-bottom: 0; }
.fit-name { display: block; font-weight: 700; margin-bottom: 4px; }
.fit-row { display: block; font-size: var(--fs-sm); line-height: 1.7; }
.fit-label { display: inline-block; min-width: 6.5em; color: var(--muted); font-weight: 700; font-size: var(--fs-xs); }
.fit-guide mark { background: linear-gradient(transparent 55%, var(--marker-yellow) 55%); color: inherit; }
.card-title {
  color: var(--primary-900);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.55;
  margin: 8px 0 8px;
}
.card-text {
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.8;
}
.article-card,
.template-card,
.tool-card { display: flex; flex-direction: column; gap: 11px; }

/* 注目記事カルーセル（トップ・2026-07）。scroll-snap＋js/carousel.js（自動送り5秒・矢印・ドット・一時停止）。
   自動送りは hover/フォーカス中と prefers-reduced-motion で停止する。 */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
  margin: -6px; /* カードhoverの浮き上がり影の見切れ防止 */
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > .article-card,
.carousel-track > .card { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary-900);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.carousel-btn:hover { border-color: var(--primary-500); box-shadow: var(--shadow-sm); }
.carousel-dots { display: flex; gap: 10px; }
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background var(--dur) var(--ease);
}
.carousel-dot[aria-current="true"] { background: var(--primary-700); }

/* カテゴリ色（上ボーダー）。basics/management/gadget は 2026-07 に専用クラスへ分離 */
.article-card.cat-accounting,
.card.cat-accounting { border-top: 3px solid var(--primary-700); }
.article-card.cat-basics,
.card.cat-basics { border-top: 3px solid var(--primary-500); }
.article-card.cat-management,
.card.cat-management { border-top: 3px solid var(--accent-700); }
.article-card.cat-hr,
.card.cat-hr { border-top: 3px solid var(--info); }
.article-card.cat-legal,
.card.cat-legal { border-top: 3px solid var(--primary-900); }
.article-card.cat-ai,
.card.cat-ai { border-top: 3px solid var(--accent-600); }
.article-card.cat-workspace,
.card.cat-workspace { border-top: 3px solid var(--ok); }
.article-card.cat-gadget,
.card.cat-gadget { border-top: 3px solid var(--muted); }

/* カテゴリチップ（アイコン＋カテゴリ名）。cat-* クラスを持つ記事カードへCSSのみで自動付与（2026-07）。
   アイコンは自作SVGのdata URI（第三者ロゴ不使用）。新カテゴリ追加時はこの2ブロックに追記する。 */
.article-card[class*="cat-"]::before,
.card[class*="cat-"]::before {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 20px;
  margin-bottom: 10px;
  padding-left: 26px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 19px 19px;
}
.article-card.cat-accounting::before,
.card.cat-accounting::before { content: "会計・経理"; color: var(--primary-700); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2313776E' d='M3 1h10a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm1 2v2h8V3H4zm0 4v2h2V7H4zm3 0v2h2V7H7zm3 0v2h2V7h-2zM4 11v2h2v-2H4zm3 0v2h2v-2H7zm3 0v2h2v-2h-2z'/%3E%3C/svg%3E"); }
.article-card.cat-basics::before,
.card.cat-basics::before { content: "簿記・実務基礎"; color: var(--primary-500); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%233FA396' d='M11.7 1.3a1 1 0 0 1 1.4 0l1.6 1.6a1 1 0 0 1 0 1.4L6 13H3v-3l8.7-8.7zM4.5 11.5v.9h.9l7.2-7.2-.9-.9-7.2 7.2zM2 14.5h12V16H2v-1.5z'/%3E%3C/svg%3E"); }
.article-card.cat-management::before,
.card.cat-management::before { content: "経営管理"; color: var(--accent-700); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23A8650F' d='M2 13.5h2.5V8H2v5.5zm4.3 0h2.5V4.5H6.3v9zm4.4 0h2.5V1.5h-2.5v12zM1 15h14v1H1v-1z'/%3E%3C/svg%3E"); }
.article-card.cat-hr::before,
.card.cat-hr::before { content: "人事・労務"; color: var(--info); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231D6FA5' d='M8 8a3.2 3.2 0 1 0 0-6.4A3.2 3.2 0 0 0 8 8zm-6.2 7a6.2 6.2 0 0 1 12.4 0H1.8z'/%3E%3C/svg%3E"); }
.article-card.cat-legal::before,
.card.cat-legal::before { content: "総務・法務"; color: var(--primary-900); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230D4F4A' d='M8 .8l6 2.2v4.1c0 4-2.5 6.9-6 8.1-3.5-1.2-6-4.1-6-8.1V3L8 .8zM7 10.3 4.7 8 3.6 9.1l3.4 3.4 5.4-5.4-1.1-1.1L7 10.3z'/%3E%3C/svg%3E"); }
.article-card.cat-ai::before,
.card.cat-ai::before { content: "AI・DX"; color: var(--accent-600); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23C97B1D' d='M8 .5l1.7 4.8L14.5 7l-4.8 1.7L8 13.5 6.3 8.7 1.5 7l4.8-1.7L8 .5zm5 9.5.7 1.8 1.8.7-1.8.7-.7 1.8-.7-1.8-1.8-.7 1.8-.7.7-1.8z'/%3E%3C/svg%3E"); }
.article-card.cat-workspace::before,
.card.cat-workspace::before { content: "Google Workspace"; color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232E7D4F' d='M2 2h5.3v5.3H2V2zm6.7 0H14v5.3H8.7V2zM2 8.7h5.3V14H2V8.7zm6.7 0H14V14H8.7V8.7z'/%3E%3C/svg%3E"); }
.article-card.cat-gadget::before,
.card.cat-gadget::before { content: "仕事道具"; color: var(--muted); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236B7672' d='M8 1a5 5 0 0 1 5 5v4A5 5 0 0 1 3 10V6a5 5 0 0 1 5-5zm-.75 2.4v3h1.5v-3h-1.5z'/%3E%3C/svg%3E"); }
.article-meta,
.meta {
  color: var(--muted);
  font-size: var(--fs-2xs);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.article-content > .btn-row,
.article-content .comparison-wrap + .btn-row {
  margin-top: 16px;
  margin-bottom: 28px;
}
.article-content .info-box .btn-row,
.article-content .subtle-cta .btn-row,
.article-content .inline-template-cta .btn-row {
  margin-top: 16px;
}
.article-content .info-box p + .btn,
.article-content .subtle-cta p + .btn,
.toc-card .info-box p + .btn {
  margin-top: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: .02em;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn.primary {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: #fff;
}
.btn.primary:hover { background: var(--primary-900); }
.btn.cta,
.affiliate-link {
  background: var(--accent-600);
  border-color: var(--accent-600);
  color: #fff;
}
.btn.cta:hover,
.affiliate-link:hover { background: var(--accent-700); color: #fff; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--primary-700);
}
.btn.secondary:hover { border-color: var(--primary-500); color: var(--primary-900); }
.disclaimer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .62);
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.85;
  padding: 15px 17px;
  overflow-wrap: anywhere;
}
.pr-note { border: none; background: none; padding: 0; margin: 10px 0 0; font-size: var(--fs-xs); color: var(--muted); text-wrap: pretty; }
.content-layout {
  max-width: calc(var(--content-max) + 160px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, var(--content-max));
  justify-content: center;
  gap: 0;
  padding: 52px 80px 76px;
}
.article-content {
  color: var(--text);
  min-width: 0;
  width: 100%;
  max-width: var(--content-max);
  order: 1;
  --bleed: 0px;
}
.article-content > p,
.article-content li {
  font-size: var(--fs-base);
  line-height: 2;
  max-width: none; /* 本文もカラム幅(content-max 760px)で折り返し、図・表と右端をそろえる。--prose-max は現在未適用 */
}
.article-content > p { margin-bottom: 18px; }
/* 注記（.pr-note）は .article-content>p の font-size(1rem) を詳細度で打ち消すため .78rem に復元する。
   max-width:none は本文の行長上限を撤廃したため冗長だが、font-size 復元のためルールは残す。 */
.article-content > .pr-note { max-width: none; font-size: var(--fs-xs); }
.article-content h2 {
  color: var(--primary-900);
  font-size: var(--fs-lg);
  line-height: 1.55;
  font-weight: 700;
  margin: 42px 0 14px;
}
.article-content h2::before {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary-500);
  margin-bottom: 12px;
}
.article-content h3 {
  color: var(--primary-900);
  font-size: var(--fs-md);
  line-height: 1.55;
  font-weight: 600;
  margin: 28px 0 10px;
}
.article-content ul,
.article-content ol { padding-left: 1.3em; margin: 12px 0 22px; }
/* 本文段落の強調語を半透明イエローの蛍光ペン風マーカーで視認性アップ（太字は維持） */
.article-content p strong {
  background-image: linear-gradient(transparent 55%, var(--marker-yellow) 55%);
  background-repeat: no-repeat;
}
/* 注意喚起・ツールUI系ボックス内の強調はマーカー対象外（本文の素の段落のみに効かせる） */
.note-box p strong, .info-box p strong, .subtle-cta p strong,
.pr-note p strong, .calc-note p strong, .calc-result p strong,
.dashboard-card p strong, .question-card p strong,
.answer-row p strong, .tool-intro-panel p strong {
  background-image: none;
}
.summary-list {
  display: grid;
  gap: 7px;
  padding-left: 1.1em;
}
.dictionary-article .note-box,
.dictionary-article .warning-box,
.dictionary-article .checklist-box,
.dictionary-article .subtle-cta {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-600);
  background: var(--accent-50);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 20px 0 26px;
}
.dictionary-article .checklist-box {
  background: var(--primary-50);
  border-left-color: var(--primary-900);
}
.dictionary-article .subtle-cta {
  background: #fff;
  border-left-color: var(--warn);
}
.dictionary-article .note-box p,
.dictionary-article .warning-box p,
.dictionary-article .checklist-box p,
.dictionary-article .subtle-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}
.check-list {
  list-style: none;
  padding-left: 0 !important;
  display: grid;
  gap: 9px;
}
.check-list li {
  position: relative;
  padding-left: 26px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-600);
  border-radius: 3px;
  background: #fff;
}
/* デスク周りガジェット 商品カード（既存 .card / .check-list / .btn.cta を土台に拡張） */
.product-grid { gap: 18px; }
.product-card { display: flex; flex-direction: column; gap: 12px; }
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 240px;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.product-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-media.is-compact img { max-width: 70%; max-height: 70%; }
.product-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-900);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 700;
  border-radius: 999px;
}
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-type,
.product-brand {
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: .02em;
  padding: 3px 10px;
  border-radius: 999px;
}
.product-type { background: var(--primary-50); color: var(--primary-900); }
.product-brand { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.product-card .card-title { margin-top: 0; margin-bottom: 0; }
.product-model { font-size: var(--fs-2xs); color: var(--muted); margin: 0; letter-spacing: .02em; }
.product-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.product-price-note { font-size: var(--fs-2xs); color: var(--muted); }
/* 画像は楽天商品リンク。リンクが枠いっぱいに画像を中央配置 */
.product-media a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
/* 何がラクになるか／良かった点・気になる点／向き不向き */
.product-benefit { font-size: var(--fs-xs); color: var(--text); line-height: 1.85; margin: 0; }
.product-evals { display: grid; gap: 10px; }
.product-eval-label { font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .02em; margin: 0 0 4px; }
.product-pros .product-eval-label { color: var(--ok); }
.product-cons .product-eval-label { color: var(--warn); }
.product-evals ul { list-style: none; padding-left: 0 !important; margin: 0; display: grid; gap: 5px; }
.product-evals li { position: relative; padding-left: 20px; font-size: var(--fs-xs); line-height: 1.65; color: var(--text); }
.product-pros li::before { content: "○"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.product-cons li::before { content: "△"; position: absolute; left: 0; color: var(--warn); font-weight: 700; }
.product-fit, .product-unfit { font-size: var(--fs-xs); line-height: 1.7; color: var(--muted); margin: 0; }
.product-fit-label, .product-unfit-label { font-weight: 700; color: var(--primary-900); margin-right: 6px; }
.product-foot .btn { flex: 1 1 130px; }
/* 参考レビュー枠 */
.product-reviews { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--primary-50); border-radius: var(--radius-sm); }
.product-reviews-title { font-size: var(--fs-2xs); font-weight: 700; color: var(--primary-900); letter-spacing: .02em; margin: 0; }
.product-review { font-size: var(--fs-xs); color: var(--text); line-height: 1.7; margin: 0; }
.product-review .stars { color: var(--accent-600); font-weight: 700; margin-right: 6px; white-space: nowrap; }
/* 上部のカテゴリメニュー（チップ） */
.product-cat-menu { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.product-cat-menu a {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-decoration: none;
  color: var(--primary-900);
  background: var(--primary-50);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.product-cat-menu a:hover { border-color: var(--primary-500); background: var(--surface); }
/* 商品グループの見出し */
.product-cat-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 30px 0 12px;
  font-size: var(--fs-md);
  color: var(--primary-900);
  scroll-margin-top: 84px;
}
.product-cat-title::before {
  content: "";
  width: 4px;
  height: 1.05em;
  background: var(--accent-600);
  border-radius: 2px;
}
@media (max-width: 768px) {
  /* 縦一列。画像は型番の下に控えめサイズで表示 */
  .product-grid { grid-template-columns: 1fr; }
  .product-media { max-width: 200px; }
}

.step-list {
  list-style: none;
  counter-reset: step;
  padding-left: 0 !important;
  display: grid;
  gap: 12px;
}
.step-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "badge title"
    "badge desc";
  align-items: start;
  column-gap: 12px;
  row-gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}
.step-list li::before {
  content: counter(step);
  grid-area: badge;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary-900);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.step-list strong {
  display: block;
  grid-area: title;
  color: var(--primary-900);
  margin-bottom: 3px;
}
.step-list span {
  display: block;
  grid-area: desc;
  color: var(--muted);
  line-height: 1.8;
}
/* 記事内の3社比較表（2026-07）: table-layout autoだと内容の長い列が幅を独占し、
   比較軸・freee列が数文字ごとに折り返す縦長セルになるため、列配分を固定する。
   比較軸=90px・ベンダー3列=残り幅の均等割り。product.html側の表には適用しない。 */
.article-content .compare-table { table-layout: fixed; }
.article-content .compare-table th { white-space: normal; } /* 均等割り列内で見出しを折返し可に */
.article-content .compare-table th:first-child { width: 180px; }
.article-content .compare-table th:last-child,
.article-content .compare-table td:last-child { width: auto; min-width: 0; } /* CTA列ルール（width:1%/min176px）は記事内では無効化 */
/* 目次サイドバーと共存する帯域では、表の列を狭めず横スクロールさせる（縦長セル防止） */
@media (min-width: 769px) and (max-width: 1300px) {
  .article-content .compare-table { min-width: 920px; }
}
.comparison-table.compact-table {
  min-width: calc(var(--content-max) - 2px); /* wrap枠線分を差し引く（2026-07統一） */
}
.compact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 28px;
}
.tool-article .insight-grid,
.management-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 28px;
}
.management-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* =========================================================================
   ツール型記事 コンポーネントキット（流用リファレンス）
   articles/depreciation.html を完成サンプルとし、下記クラスを他記事へ
   そのままコピーして同じUIを再現できます。既に9記事で共有済みの命名です。
   ※記事ルートは <article class="article-content dictionary-article tool-article"> 配下。

   1. ダッシュボード（このページでできること）
      <section class="tool-dashboard"><div class="dashboard-grid">
        <a class="dashboard-card" href="#..."><span class="dashboard-icon">01</span>
          <strong>見出し</strong><span>説明</span></a> …4枚
      </div></section>
      （ファーストビューの導入＋ショートカット: .tool-intro-panel > .shortcut-row > a.btn.secondary）

   2. ステップ図（流れ）  ＝ 仕様の step-flow / step-card
      <div class="process-flow"><div class="flow-step"><span>1</span>
        <strong>見出し</strong><p>短い説明</p></div> …</div>
      （PC4列・矢印付き、≤1120pxで1列。8枚まで自動でコネクタ表示）

   3. 分岐フローチャート（判断）  ＝ 仕様の decision-flow / decision-card
      <div class="decision-flow branching-flow"><div class="branch-row">
        <div class="question-card"><span class="branch-label">Q1</span><strong>質問</strong>
          <div class="answer-row"><span>Yes</span><b>結果</b></div>
          <div class="answer-row muted"><span>No</span><b>結果</b></div></div> …Q4まで
      </div><div class="decision-outcomes"><div>…</div>
        <div class="caution"><strong>税理士へ確認</strong><span>…</span></div></div></div>

   4. 概算計算ツール  ＝ 仕様の calc-tool / calc-input-card / calc-result-card
      <section class="calc-tool">
        <div class="calc-panel calc-input-card"><div class="calc-form">…label…</div>
          <div class="calc-actions">…btn…</div></div>
        <div class="calc-panel calc-result" aria-live="polite">…</div>
      </section>
      （PC左右2カラム、≤1120pxで縦積み。結果は .calc-result-grid / .large-result）

   5. タスク型チェックリスト  ＝ 仕様の task-checklist / task-progress
      <div class="interactive-checklist"><div class="checklist-head">…
        <button class="btn secondary">すべてチェックを外す</button></div>
        <div class="check-progress"><span>0 / N 完了</span><div><span></span></div></div>
        <div class="task-list"><label><input type="checkbox"><span>…</span></label> …</div></div>

   6. 台帳サンプル（PC表／スマホカード）
      <div class="comparison-wrap ledger-wrap"><table class="comparison-table ledger-table">…</table></div>
      <div class="ledger-card-list"><div class="ledger-card">…</div> …</div>（≤1120pxで表→カード切替）

   7. CTA各種
      テンプレ導線 .inline-template-cta（仕様 template-cta）
      会計ソフト比較の控えめCTA .info-box.subtle-cta（仕様 subtle-affiliate-cta、1〜2箇所まで）

   8. 注意ボックス
      通常: .note-box  ／  強調(赤): .warning-box（= .note-box.danger）

   命名メモ: 仕様の step-flow/decision-card 等は上の既存名に対応（命名は流用可とのことなので
   共有実績のある既存名を正とし、本コメントで対応を明示）。新規の warning-box のみ追加済み。
   ========================================================================= */
.tool-intro-panel,
.tool-dashboard {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, var(--primary-50));
  padding: 20px;
  margin: 18px 0 26px;
}
.tool-intro-panel p:not(.section-kicker) {
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 14px;
}
.shortcut-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.dashboard-card {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  display: grid;
  align-content: start;
  gap: 9px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.dashboard-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-600);
  box-shadow: var(--shadow-md);
}
.dashboard-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-900);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-2xs);
}
.dashboard-card strong {
  color: var(--primary-900);
  font-size: var(--fs-base);
  line-height: 1.45;
}
.dashboard-card span:last-child {
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.7;
}
.insight-card,
.management-card,
.example-card,
.example-box,
.calc-tool,
.interactive-checklist {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}
.insight-card {
  background: var(--primary-50);
}
.insight-card strong,
.management-card h3 {
  display: block;
  color: var(--primary-900);
  font-weight: 600;
  margin-bottom: 7px;
}
.insight-card span,
.management-card li {
  color: var(--muted);
  line-height: 1.8;
}
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 32px;
}
.flow-step {
  position: relative;
  min-width: 0;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, var(--primary-50));
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}
.flow-step:not(:nth-child(4n))::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--accent-600);
}
.flow-step:not(:nth-child(4n))::before {
  content: "";
  position: absolute;
  right: -15px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--accent-600);
  border-right: 2px solid var(--accent-600);
  transform: rotate(45deg);
}
.flow-step span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary-900);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: 10px;
}
.flow-step strong,
.decision-node strong {
  display: block;
  color: var(--primary-900);
  font-weight: 600;
  line-height: 1.5;
}
.flow-step p,
.decision-node span {
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.75;
  margin-top: 6px;
}
.decision-flow {
  display: grid;
  gap: 14px;
  margin: 18px 0 32px;
}
.compact-note { padding: 14px 16px; margin: 14px 0 18px; }
.branching-flow {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--primary-50);
  padding: 18px;
}
.branch-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.question-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 10px;
  overflow-wrap: anywhere;
}
.question-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--accent-600);
}
.branch-label {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-50);
  color: var(--accent-700);
  font-weight: 700;
  font-size: var(--fs-2xs);
}
.question-card strong,
.decision-outcomes strong {
  color: var(--primary-900);
  line-height: 1.5;
}
.answer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: var(--primary-50);
  padding: 8px 9px;
}
.answer-row span {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary-900);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.answer-row b {
  color: var(--text);
  font-size: var(--fs-xs);
  line-height: 1.55;
}
.answer-row.muted { background: #fff8ec; }
.answer-row.muted span { background: var(--accent-600); }
.decision-outcomes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.decision-outcomes div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 13px;
}
.decision-outcomes span {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.65;
  margin-top: 5px;
}
.decision-outcomes .caution {
  background: var(--accent-50);
  border-color: var(--accent-600);
}
.decision-branch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.decision-node {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}
.decision-node.start {
  background: var(--primary-900);
  color: #fff;
}
.decision-node.start strong,
.decision-node.start span { color: #fff; }
.decision-node.caution {
  background: var(--accent-50);
  border-color: var(--accent-600);
}
.calc-tool {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 18px;
  background: var(--primary-50);
  margin: 18px 0 32px;
}
.calc-tool > label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--primary-900);
  font-weight: 700;
}
.calc-tool > label select,
.calc-tool > label textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 12px 11px;
  font: inherit;
}
.calc-tool > label textarea { resize: vertical; }
.calc-tool > .btn { justify-self: start; }
.calc-tool > .result-card {
  grid-column: 1 / -1;
  min-width: 0;
}
.calc-tool > .result-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.prompt-generator-tool {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  max-width: 860px;
}
.prompt-generator-tool > label,
.prompt-generator-tool > .result-card {
  grid-column: 1 / -1;
}
.calc-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.tool-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.tool-card-head h3 {
  color: var(--primary-900);
  font-size: var(--fs-base);
  margin: 0;
}
.calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-content: start;
}
.calc-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--primary-900);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.calc-form input,
.calc-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 12px 11px;
  font: inherit;
}
.calc-form button {
  grid-column: 1 / -1;
  width: fit-content;
}
.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.calc-actions .btn { min-height: 40px; }
.calc-result {
  min-height: 206px;
  border-style: solid;
}
.calc-result.result-shown {
  animation: gc-result-fade .3s ease;
}
@keyframes gc-result-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.calc-result .calc-headline {
  font-size: 1.4em;
  font-weight: 700;
}
.calc-placeholder,
.calc-error,
.calc-note {
  color: var(--muted);
  line-height: 1.85;
  margin: 0;
}
.calc-error {
  color: var(--accent-700);
  font-weight: 700;
  border: 1px solid var(--accent-600);
  border-radius: 8px;
  background: var(--accent-50);
  padding: 12px;
}
.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.calc-result-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--primary-50);
  padding: 12px;
}
.calc-result-grid span {
  display: block;
  color: var(--muted);
  font-size: var(--fs-2xs);
  margin-bottom: 6px;
}
.calc-result-grid strong {
  color: var(--primary-900);
  font-size: 1.28rem;
}
.input-confirmation {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin-bottom: 12px;
}
.input-confirmation strong {
  color: var(--primary-900);
  font-size: var(--fs-xs);
}
.input-confirmation span {
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.7;
}
.example-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  background: var(--primary-50);
  margin: 18px 0 32px;
}
.example-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.example-card p:last-child,
.example-card ul:last-child { margin-bottom: 0; }
.large-result {
  color: var(--accent-700);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
}
.journal-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}
.journal-box p:last-child,
.journal-box ul:last-child { margin-bottom: 0; }
.comparison-table.ledger-table { min-width: 1120px; }
.ledger-card-list {
  display: none;
  gap: 12px;
  margin: 14px 0;
}
.ledger-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 5px;
}
.ledger-card strong { color: var(--primary-900); }
.ledger-card span {
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.6;
}
.inline-template-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--accent-50);
  padding: 14px 16px;
  margin: 14px 0 32px;
}
.inline-template-cta h3 {
  color: var(--primary-900);
  font-weight: 700;
  font-size: var(--fs-sm);
  margin: 0 0 4px;
}
.inline-template-cta p {
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.75;
  margin: 0;
}
.interactive-checklist {
  display: grid;
  gap: 10px;
  background: var(--primary-50);
  margin: 18px 0 32px;
}
.checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.checklist-head h3 {
  color: var(--primary-900);
  font-size: var(--fs-base);
  margin: 0;
}
.task-list {
  display: grid;
  gap: 10px;
}
.interactive-checklist label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--text);
  line-height: 1.7;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.interactive-checklist label.is-checked {
  background: #f7fbf9;
  border-color: var(--primary-500);
}
.interactive-checklist label.is-checked span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.interactive-checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-900);
  margin-top: 4px;
}
.check-progress {
  display: grid;
  gap: 8px;
  color: var(--primary-900);
  font-weight: 700;
  font-size: var(--fs-base);
  margin: 4px 0 8px;
}
.check-progress div {
  height: 10px;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--line);
}
.check-progress span span,
#check-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-600);
  transition: width .2s ease;
}
.checklist-done {
  margin: 0;
  color: var(--ok);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.toc-card {
  position: static;
  align-self: start;
  display: grid;
  gap: 16px;
  order: 2;
}
.toc-card .info-box { background: var(--primary-50); }
.toc-list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.toc-list a {
  display: block;
  color: var(--muted);
  font-size: var(--fs-xs);
  line-height: 1.55;
  text-decoration: none;
  border-left: 2px solid var(--line);
  padding-left: 10px;
}
.toc-list a:hover { color: var(--primary-900); border-color: var(--accent-600); }
.toc-list a.toc-active {
  color: var(--primary-900);
  border-color: var(--accent-600);
  font-weight: 600;
}
.article-content h2,
.article-content h3 { scroll-margin-top: 84px; }
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  z-index: 60;
}
.side-shortcuts {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.side-shortcuts .btn {
  width: 100%;
  min-height: 38px;
}
.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
/* 幅広ブロック（台帳・比較表・計算ツール）は本文カラム内で横スクロールさせる。
   本文カラムの左張り出しは使わない。 */
.article-content .comparison-wrap,
.article-content .calc-tool,
.article-content .bleed {
  margin-left: 0;
}
.comparison-table,
.compare-table {
  width: 100%;
  min-width: calc(var(--content-max) - 2px); /* 本文カラムに一致（.comparison-wrap の枠線2px分を差し引く）。2026-07 に 920px 固定から変更 */
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.comparison-table th,
.comparison-table td,
.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px /* 14px→12px: フォント14px化での758px超過を吸収（2026-07） */;
  text-align: left;
  vertical-align: top;
}
.comparison-table th,
.compare-table th {
  background: var(--primary-50);
  color: var(--primary-900);
  font-weight: 700;
  white-space: nowrap;
}
.comparison-table tr:last-child td,
.compare-table tr:last-child td { border-bottom: 0; }
.comparison-table tbody tr:nth-child(even),
.compare-table tbody tr:nth-child(even) { background: rgba(19, 119, 110, .04); }
/* Google Workspace 記事の Microsoft 365 比較表：比較軸（先頭列）の短い見出しを折り返さない */
#ms-compare td:first-child { white-space: nowrap; }
/* CTA列（全比較表で最終列）の幅とボタンサイズをカテゴリ横断で統一し、折返しを防ぐ。
   width:1% で最終列を最小幅（min-width=176px）に固定し、行数の少ない表でも列が広がって
   ボタンが伸びるのを防ぐ（全カテゴリでボタン寸法を揃える）。 */
.compare-table th:last-child,
.compare-table td:last-child { width: 1%; min-width: 176px; }
.compare-table td:last-child .btn { width: 100%; white-space: nowrap; padding-left: 12px; padding-right: 12px; }
.faq-list { display: grid; gap: 12px; margin-bottom: 24px; }
.faq-item h3 {
  color: var(--primary-900);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 7px;
}
.faq-item p { color: var(--muted); font-size: var(--fs-xs); line-height: 1.85; }
.site-footer {
  background: var(--primary-900);
  color: var(--bg);
  padding: 50px 80px 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-desc {
  color: rgba(250, 249, 246, .58);
  font-size: var(--fs-xs);
  line-height: 1.9;
  max-width: 440px;
  margin-top: 10px;
}
.footer-heading {
  color: var(--accent-600);
  font-size: var(--fs-2xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 13px;
}
.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}
.footer-links a {
  color: rgba(250, 249, 246, .64);
  font-size: var(--fs-xs);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent-600); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(250, 249, 246, .38);
  font-size: var(--fs-2xs);
  padding-top: 22px;
}
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-28 { margin-top: 28px; }

@media (max-width: 1199px) {
  body.page-article .scroll-nav {
    left: 14px;
    top: auto;
    bottom: 18px;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .hero,
  .content-layout { grid-template-columns: 1fr; }
  body.page-article .scroll-nav {
    left: 14px;
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-track > .article-card,
  .carousel-track > .card { flex-basis: calc((100% - 16px) / 2); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch-row,
  .decision-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-cards { grid-template-columns: 1fr; }
  .process-flow,
  .decision-branch,
  .tool-article .insight-grid,
  .management-cards,
  .calc-tool { grid-template-columns: 1fr; }
  .question-card:not(:last-child)::after,
  .flow-step:not(:nth-child(4n))::before,
  .flow-step:not(:nth-child(4n))::after { display: none; }
  .toc-card { position: static; order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-content { --bleed: 0px; } /* 1カラムでは張り出しを無効化（overflow-x:auto がフォールバック） */
}
@media (max-width: 768px) {
  .nav {
    min-height: 62px;
    padding: 8px 16px;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    overflow: visible;
  }
  .logo img { height: 40px; }
  .site-tagline { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
    margin-left: 0;
  }
  /* モバイル: 検索はバーに常設（.nav-search-bar）。ドロップダウン内の .nav-search-item は隠す。 */
  .nav-search-item { display: none; }
  .nav-search-bar {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    min-width: 0;
    overflow: hidden;
    max-height: 0;
    padding: 0 16px;
    border-bottom: 1px solid transparent;
    background: rgba(250, 249, 246, .98);
    box-shadow: var(--shadow-sm);
    transition: max-height .18s var(--ease), padding .18s var(--ease), border-color .18s var(--ease);
    scrollbar-width: none;
  }
  .nav-links.is-open {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding-top: 8px;
    padding-bottom: 10px;
    border-bottom-color: var(--line);
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    padding: 10px 8px;
    border-radius: var(--radius-sm);
  }
  /* ドロップダウンはハンバーガー内でアコーディオンとして縦積み（絶対配置を解除）。 */
  .nav-dropdown { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
  }
  .nav-dropdown-panel {
    position: static;
    width: auto;
    margin-top: 0;
    padding: 2px 0 6px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav-menu-grid { grid-template-columns: 1fr; gap: 2px; }
  .nav-menu-item { padding: 9px 10px; }
  .nav-menu-all { margin-top: 6px; padding-top: 8px; text-align: left; }
  .breadcrumb,
  .page-hero,
  .hero,
  .section,
  .content-layout,
  .site-footer { padding-left: 22px; padding-right: 22px; }
  .breadcrumb {
    align-items: flex-start;
    gap: 10px;
  }
  .breadcrumb ol { flex: 1 1 100%; }
  body, main, .site-header, .breadcrumb, .page-hero, .hero, .section, .site-footer { max-width: 100vw; }
  .page-hero,
  .hero,
  .section { padding-top: 42px; padding-bottom: 42px; }
  h1 {
    font-size: 1.32rem;
    line-height: 1.6;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: break-all;
    max-width: calc(100vw - 44px);
  }
  h1 span { display: block; }
  .lead {
    max-width: calc(100vw - 44px);
    font-size: var(--fs-base);
    line-height: 1.9;
    word-break: break-all;
  }
  .lead span { display: block; }
  .meta span,
  .toc-card .card-text { word-break: break-all; }
  .page-hero, .hero { overflow: visible; }
  p, li, h2, h3, .lead, .pr-note, .card-title, .card-text, .toc-card { overflow-wrap: anywhere; }
  .section-head,
  .footer-bottom { display: block; }
  .view,
  .filter-row { margin-top: 12px; }
  .grid-4,
  .grid-3,
  .grid-2,
  .related-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .dashboard-grid,
  .branch-row,
  .decision-outcomes,
  .example-box { grid-template-columns: 1fr; }
  .tool-intro-panel,
  .tool-dashboard,
  .branching-flow,
  .calc-tool,
  .interactive-checklist { padding: 15px; }
  .dashboard-card { min-height: auto; }
  .shortcut-row .btn,
  .calc-actions .btn,
  .inline-template-cta .btn,
  .checklist-head .btn { width: 100%; }
  /* 仕事道具カードの Amazon/楽天 ボタンは狭幅で縦積み・同幅にそろえる（崩れ防止）。 */
  .product-foot .btn { flex: 1 1 100%; width: 100%; }
  .tool-card-head,
  .checklist-head,
  .inline-template-cta { display: grid; }
  .content-layout { padding-top: 38px; padding-bottom: 52px; }
  .carousel-track > .article-card,
  .carousel-track > .card { flex-basis: 86%; }
  .comparison-table.compact-table { min-width: 680px; }
  .ledger-wrap { display: none; }
  .ledger-card-list { display: grid; }
  .calc-form,
  .calc-result-grid { grid-template-columns: 1fr; }
  .calc-form button { width: 100%; justify-content: center; }
  .calc-tool > .btn { width: 100%; justify-self: stretch; }
  .flow-step { min-height: auto; }
  .interactive-checklist label { grid-template-columns: 20px minmax(0, 1fr); }
  .step-list li { grid-template-columns: 34px minmax(0, 1fr); padding: 13px 12px; }
  .dictionary-article .note-box,
  .dictionary-article .checklist-box,
  .dictionary-article .subtle-cta { padding: 16px 14px; }
}

.floating-toc-toggle,
.floating-toc-backdrop {
  display: none;
}

@media (min-width: 1200px) {
  body.has-floating-toc .toc-card {
    position: fixed;
    top: 144px;
    left: calc(50% + var(--content-max) / 2 + 12px);
    right: auto;
    bottom: 24px;
    z-index: 70;
    width: min(380px, calc(50% - var(--content-max) / 2 - 24px));
    max-height: calc(100vh - 168px);
    display: block;
    overflow-y: auto;
    padding: 18px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity .2s var(--ease),
      visibility .2s var(--ease);
  }
  body.toc-panel-open .toc-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  body.has-floating-toc .toc-card:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
  }
  body.has-floating-toc .toc-card .info-box {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  body.has-floating-toc .toc-card .info-box + .info-box {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  body.has-floating-toc .toc-list {
    gap: 7px;
  }
  body.has-floating-toc .toc-list a {
    font-size: var(--fs-xs);
  }
  .floating-toc-toggle {
    position: fixed;
    left: calc(50% + var(--content-max) / 2 + 12px);
    top: 91px;
    z-index: 72;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 13px 8px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary-900);
    font-family: inherit;
    font-size: var(--fs-xs);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      border-color .2s var(--ease),
      box-shadow .2s var(--ease),
      transform .2s var(--ease),
      opacity .2s var(--ease),
      visibility .2s var(--ease);
  }
  body.toc-in-article .floating-toc-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .floating-toc-toggle:hover {
    border-color: var(--primary-500);
    transform: translateX(-2px);
  }
  .floating-toc-toggle[aria-expanded="true"] {
    border-color: var(--accent-600);
  }
  .floating-toc-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary-900);
    font-size: var(--fs-2xs);
    line-height: 1;
    letter-spacing: 0;
  }
  img.floating-toc-mark {
    background: transparent;
    border-radius: 0;
    object-fit: contain;
  }
  .floating-toc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 68;
    background: transparent;
  }
  body.toc-panel-open .floating-toc-backdrop {
    display: block;
  }
}

@media (max-width: 1199px) {
  /* モバイル/タブレット：右下FAB＋ボトムシートのオーバーレイ */
  .floating-toc-toggle {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 72;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 9px 16px 9px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary-900);
    font-family: inherit;
    font-size: var(--fs-sm);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity .2s var(--ease),
      visibility .2s var(--ease);
  }
  body.toc-in-article .floating-toc-toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .floating-toc-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary-900);
    font-size: var(--fs-2xs);
    line-height: 1;
  }
  img.floating-toc-mark {
    background: transparent;
    border-radius: 0;
    object-fit: contain;
  }
  body.has-floating-toc .toc-card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 71;
    width: auto;
    max-width: 100%;
    max-height: 78vh;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 20px calc(80px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition:
      opacity .22s var(--ease),
      visibility .22s var(--ease),
      transform .22s var(--ease);
  }
  body.toc-panel-open .toc-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  body.has-floating-toc .toc-card:focus {
    outline: none;
  }
  body.has-floating-toc .toc-card .info-box {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  body.has-floating-toc .toc-card .info-box + .info-box {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .floating-toc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(15, 23, 23, .45);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity .22s var(--ease),
      visibility .22s var(--ease);
  }
  body.toc-panel-open .floating-toc-backdrop {
    opacity: 1;
    visibility: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.has-floating-toc .toc-card,
  .floating-toc-backdrop,
  .floating-toc-toggle,
  .article-fixed-back {
    transition: none;
  }
}

.num { font-variant-numeric: tabular-nums; }

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  a.card, a.article-card, a.template-card, a.tool-card, .btn, .breadcrumb-back, .article-fixed-back, .nav-links, .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after, .scroll-nav, .scroll-nav-btn, .law-item { transition: none; }
  a.card:hover, a.article-card:hover, a.template-card:hover, a.tool-card:hover,
  .btn:hover, .btn:active, .article-fixed-back:hover, .law-item:hover { transform: none; }
  #reading-progress { display: none; }
  .calc-result.result-shown { animation: none; }
}

/* ---- ツール型記事の図解（インラインSVG）---- */
.svg-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 18px;
  margin: 18px 0 32px;
}
.svg-figure svg { width: 100%; height: auto; display: block; }
.svg-figure figcaption { color: var(--muted); font-size: var(--fs-xs); line-height: 1.8; margin-top: 10px; }
.svg-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: var(--fs-xs); color: var(--muted); }
.svg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.svg-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
/* Google Workspace 紹介プログラム 公式デジタルボタンCTA */
.gws-referral-cta { text-align: center; margin: 14px 0 4px; }
.gws-referral-button { display: inline-block; min-height: 42px; }
.gws-referral-button img { display: block; max-width: 280px; width: 100%; height: auto; margin: 0 auto; }
.gws-referral-note { margin-top: .5rem; font-size: var(--fs-sm); color: var(--muted); }
.result-ok { color: var(--ok); font-weight: 700; }
.result-warn { color: var(--warn); font-weight: 700; }
.result-ng { color: var(--danger); font-weight: 700; }
ul.result-ng li { color: var(--danger); }
.dictionary-article .note-box.danger,
.dictionary-article .warning-box { border-left-color: var(--danger); background: #FCEEEC; }
.calc-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 12px 11px;
  font: inherit;
  resize: vertical;
}

/* ---- 消費税（複数税率）計算ツールの明細行（how-to-write-invoice）---- */
.tax-rows { display: grid; gap: 10px; }
.tax-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.tax-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--primary-900);
  font-size: var(--fs-2xs);
  font-weight: 700;
}
.tax-row input,
.tax-row select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 11px 10px;
  font: inherit;
}
.tax-row-remove {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  cursor: pointer;
}
.tax-row-remove:hover { color: var(--danger); border-color: var(--danger); }
@media (max-width: 768px) {
  .tax-row { grid-template-columns: 1fr 1fr; }
  .tax-row .tax-amount-cell { grid-column: 1 / -1; }
  .tax-row-remove { grid-column: 1 / -1; min-height: 40px; }
}

/* ---- 著者情報（E-E-A-T）: バイライン＋著者ボックス ---- */
/* バイラインはダークな page-hero 上。lead と同じ明色トーンを流用（新トークンなし） */
.byline { color: rgba(250, 249, 246, .72); font-size: var(--fs-xs); margin-top: 14px; }
/* 著者ボックスは .note-box を流用。最小の余白・文字サイズ調整のみ */
.dictionary-article .author-box .author-role {
  color: var(--accent-700); font-size: var(--fs-2xs); letter-spacing: .18em;
  text-transform: uppercase; font-weight: 700; margin: 0 0 4px;
}
.dictionary-article .author-box .author-name {
  color: var(--primary-900); font-weight: 700; font-size: var(--fs-base); margin: 0 0 8px;
}
.dictionary-article .author-box .author-desc { margin: 0 0 10px; }
.dictionary-article .author-link { margin: 18px 0 0; }
.dictionary-article .author-link a { color: var(--primary-700); font-weight: 700; }
/* about.html のプロフィール（記事外） */
.author-profile .author-name { color: var(--primary-900); font-weight: 700; font-size: var(--fs-base); margin: 6px 0 18px; }
.author-profile h3 {
  display: block;
  margin: 0 0 16px;
  padding-top: 6px;
}
.author-profile .author-name + h3 { padding-top: 6px; }
.author-profile h3 + p { margin-top: 0; }
.author-profile p:not(.author-name) { margin-left: 1em; }
.author-profile ul { margin: 10px 0 26px 2.2em; padding: 0; }
.author-profile p { margin-bottom: 18px; }
.author-profile li { margin: 7px 0; line-height: 1.8; }
.author-profile hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px 0 0;
}
.author-profile hr + h3 {
  padding-top: 6px;
}
.author-profile blockquote {
  border-left: 4px solid var(--primary-700);
  background: var(--surface-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  margin: 18px 0 0 1em;
  padding: 14px 16px;
  line-height: 1.8;
}
.author-profile .author-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 8px;
}
.author-profile .author-head-text { flex: 0 1 auto; min-width: 0; }
.author-profile .author-head-text h2 { margin: 0; }
.author-profile .author-head .author-name { margin: 6px 0 0; }
.author-photo {
  flex: 0 0 auto;
  width: 160px;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}
@media (max-width: 768px) {
  .author-profile .author-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .author-photo { width: 132px; align-self: center; }
}

.template-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  margin: 14px 0;
  overflow: hidden;
}
.template-preview table {
  border-collapse: collapse;
  font-size: var(--fs-xs);
  width: 100%;
}
.template-preview td {
  border-bottom: 1px solid var(--line);
  padding: 7px 9px;
}
.template-preview tr:first-child td {
  background: var(--primary-900);
  color: #fff;
  font-weight: 700;
}
.template-preview tr:last-child td { border-bottom: 0; }
.license-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.license-list li {
  background: var(--accent-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--primary-900);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 6px 9px;
}

/* ---- お問い合わせフォーム（専用クラス。calc系の流用を廃止） ---- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}
.contact-aside,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 24px;
}
.contact-aside .section-title { margin: 6px 0 14px; }
.contact-aside .contact-intro { color: var(--muted); line-height: 1.9; margin: 0 0 22px; }
.contact-info-list { display: grid; gap: 18px; }
.contact-info-list > div > .label { margin: 0 0 4px; }
.contact-info-list p { margin: 0; }
.contact-info-list .info-multi { line-height: 1.95; }
.contact-form .card-title { margin: 0 0 6px; }
.contact-required-note { color: var(--muted); font-size: var(--fs-sm); margin: 0 0 18px; }
.contact-form label {
  display: block;
  color: var(--primary-900);
  font-weight: 700;
  font-size: var(--fs-sm);
  margin-bottom: 18px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-700);
  box-shadow: 0 0 0 3px var(--primary-50);
}
.contact-form .consent-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-weight: 400;
}
.contact-form .consent-label input { width: auto; margin-top: 3px; }
.contact-form .consent-label small { color: var(--muted); }
.contact-form #contact-status { margin: 14px 0 0; }
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ---- 印刷用テンプレート（/templates/*-print.html）---- */
.print-body { background: var(--bg); }
.print-sheet { max-width: 820px; margin: 0 auto; padding: 36px 26px 56px; }
.print-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.print-head .logo img { height: 36px; }
.print-sheet h1 { font-size: 1.5rem; line-height: 1.45; margin-bottom: 10px; }
.print-meta { color: var(--muted); font-size: var(--fs-xs); margin-bottom: 16px; }
.print-note {
  border: 1px solid var(--accent-600); border-left-width: 4px;
  background: var(--accent-50); color: var(--warn);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: var(--fs-xs); line-height: 1.8; margin-bottom: 20px;
}
.print-h2 { color: var(--primary-900); font-size: var(--fs-base); font-weight: 700; margin: 22px 0 10px; }
.print-foot {
  margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: var(--fs-2xs);
}
.print-ledger { font-size: var(--fs-2xs); }
.print-ledger th, .print-ledger td { padding: 7px 8px; }
.prompt-card {
  border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); padding: 16px; margin: 14px 0;
}
.prompt-card h3 { color: var(--primary-900); font-size: var(--fs-base); font-weight: 600; margin-bottom: 8px; }
.prompt-card pre {
  white-space: pre-wrap; word-break: break-word;
  background: var(--primary-50); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: var(--fs-xs); line-height: 1.7;
  font-family: "Inter", "Noto Sans JP", monospace;
}
.prompt-card .copy-btn { margin-top: 10px; }
.copied { color: var(--ok); font-size: var(--fs-xs); margin-left: 10px; }

@media print {
  @page { size: A4 portrait; margin: 13mm; }
  html { scroll-behavior: auto; }
  body, .print-body { background: #fff; }
  .no-print { display: none !important; }
  .print-sheet { max-width: 100%; margin: 0; padding: 0; }
  .print-head { margin-bottom: 12px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .comparison-wrap { overflow: visible; border: 0; }
  .article-content { --bleed: 0px; } /* 印刷では張り出しを無効化（紙幅からはみ出さない） */
  .comparison-table { min-width: 0 !important; }
  .print-ledger { font-size: 7.6pt; }
  .print-ledger th, .print-ledger td { padding: 4px 5px; }
  .check-list li, tr, .prompt-card, .faq-item, .print-note { break-inside: avoid; }
  .print-sheet h1 { font-size: 16pt; }
}
