/* ==========================================================================
   EvalCompass — デザインシステム
   和モダン・エディトリアル: 紙の温かみ × 藍 × 朱
   ========================================================================== */

:root {
  /* 基調色 */
  --paper: #F7F4ED;
  --paper-2: #EFEAE0;
  --paper-3: #E7E1D4;
  --white: #FFFFFF;
  --ink: #23282E;
  --ink-soft: #59626E;
  --ink-faint: #8B93A0;
  --line: #DDD6C9;
  --line-soft: #E8E3D8;

  /* ブランド色 */
  --indigo: #1F3A5C;
  --indigo-deep: #16293F;
  --indigo-soft: #E3E9F0;
  --accent: #BE5A38;
  --accent-deep: #9E4527;
  --accent-soft: #F4E5DD;

  /* 意味色 */
  --ok: #2A7F62;
  --ok-soft: #E2EFE9;
  --warn: #B07A1E;
  --warn-soft: #F5ECD9;
  --no: #A8443C;
  --no-soft: #F3E2E0;

  /* タイポグラフィ */
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;

  /* 寸法 */
  --maxw: 1100px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(35, 40, 46, .05), 0 4px 16px rgba(35, 40, 46, .06);
  --shadow-lift: 0 2px 4px rgba(35, 40, 46, .07), 0 10px 28px rgba(35, 40, 46, .10);
}

/* ---------- リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid rgba(190, 90, 56, .5); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--indigo); color: var(--white); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.45; margin: 0 0 .6em; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 237, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px; min-height: 64px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.brand .name small { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 500; color: var(--ink-faint); letter-spacing: .22em; text-transform: uppercase; line-height: 1.2; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.site-nav a {
  font-size: .88rem; font-weight: 500; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 99px; line-height: 1.4;
}
.site-nav a:hover { color: var(--indigo); background: var(--indigo-soft); }
.site-nav a.active { color: var(--white); background: var(--indigo); }

/* ---------- フッター ---------- */
.site-footer {
  margin-top: 96px; padding: 48px 0 56px;
  background: var(--indigo-deep); color: #C8D2DE;
  font-size: .85rem; line-height: 1.9;
}
.site-footer a { color: #E8EDF3; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }
.site-footer .cols { display: flex; gap: 48px; flex-wrap: wrap; }
.site-footer .cols > div { flex: 1 1 240px; }
.site-footer h3 { font-size: .95rem; color: #fff; font-family: var(--font-body); font-weight: 700; }
.site-footer .copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); color: #91A0B2; }

/* ---------- ヒーロー ---------- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; color: var(--accent);
  margin-bottom: 18px;
}
.hero .kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700; color: var(--ink); margin-bottom: .5em;
}
.hero h1 .em { color: var(--indigo); }
.hero .lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero-art { text-align: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 320px; margin: 0 auto; } }

.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.stat-chip {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 18px; box-shadow: var(--shadow);
}
.stat-chip .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--indigo); line-height: 1.2; }
.stat-chip .label { font-size: .75rem; color: var(--ink-soft); }

.hero-search { margin-top: 30px; display: flex; gap: 10px; max-width: 560px; }
.hero-search input {
  flex: 1; font: inherit; padding: 13px 18px;
  border: 1.5px solid var(--line); border-radius: 99px; background: var(--white);
}
.hero-search input:focus { border-color: var(--indigo); outline: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer;
  padding: 12px 26px; border-radius: 99px; border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  line-height: 1.4; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-primary { background: var(--indigo); color: var(--white) !important; }
.btn-primary:hover { background: var(--indigo-deep); }
.btn-accent { background: var(--accent); color: var(--white) !important; }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--indigo) !important; border-color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo-soft); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* ---------- セクション ---------- */
.section { padding: 56px 0 8px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 {
  font-size: 1.6rem; margin: 0; padding-left: 16px;
  border-left: 5px solid var(--accent);
}
.section-head .sub { color: var(--ink-faint); font-size: .85rem; letter-spacing: .08em; }
.section-head .more { margin-left: auto; font-size: .88rem; font-weight: 700; }

/* ---------- カテゴリカード ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 16px; }
.category-card {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px 18px; box-shadow: var(--shadow);
  border-top: 4px solid var(--cat-color, var(--indigo));
  transition: transform .14s ease, box-shadow .14s ease;
  color: var(--ink);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.category-card .cat-name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; }
.category-card .cat-en { font-size: .7rem; color: var(--ink-faint); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.category-card .cat-desc { font-size: .84rem; color: var(--ink-soft); line-height: 1.75; margin: 0; }
.category-card .cat-count { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--cat-color, var(--indigo)); }

/* ---------- 手法カード ---------- */
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.method-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); color: var(--ink);
  transition: transform .14s ease, box-shadow .14s ease;
  position: relative;
}
.method-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.method-card .m-cat {
  align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  color: var(--white); background: var(--cat-color, var(--indigo));
  padding: 3px 11px; border-radius: 99px;
}
.method-card .m-name { font-family: var(--font-display); font-size: 1.13rem; font-weight: 700; line-height: 1.5; }
.method-card .m-en { font-size: .74rem; color: var(--ink-faint); letter-spacing: .06em; margin-top: 2px; }
.method-card .m-summary {
  font-size: .85rem; color: var(--ink-soft); line-height: 1.75; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.method-card .m-meta { margin-top: auto; display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; border-top: 1px dashed var(--line-soft); }

.meta-item { font-size: .74rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 5px; }
.meta-item .dots { color: var(--accent); letter-spacing: 2px; font-size: .8rem; }
.meta-item .dots .off { color: var(--line); }

/* ---------- フィルタバー ---------- */
.filter-bar {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.filter-bar input[type="search"] {
  font: inherit; width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper);
}
.filter-bar input[type="search"]:focus { border-color: var(--indigo); outline: none; background: var(--white); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip-row .row-label { font-size: .78rem; font-weight: 700; color: var(--ink-faint); margin-right: 4px; }
.chip {
  font: inherit; font-size: .8rem; font-weight: 500; cursor: pointer;
  padding: 5px 14px; border-radius: 99px; line-height: 1.5;
  background: var(--paper-2); color: var(--ink-soft); border: 1px solid transparent;
}
.chip:hover { background: var(--paper-3); }
.chip.on { background: var(--indigo); color: var(--white); font-weight: 700; }
.chip.on:hover { background: var(--indigo-deep); }
.result-count { font-size: .82rem; color: var(--ink-faint); margin-bottom: 14px; }

/* ---------- 手法詳細 ---------- */
.breadcrumb { font-size: .8rem; color: var(--ink-faint); padding: 22px 0 0; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb .sep { margin: 0 8px; color: var(--line); }

.method-hero { padding: 22px 0 6px; }
.method-hero .m-cat-line { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.method-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 4px; }
.method-hero .m-en { font-size: .95rem; color: var(--ink-faint); letter-spacing: .05em; }
.method-hero .m-aka { font-size: .82rem; color: var(--ink-faint); margin-top: 6px; }
.method-hero .lead {
  margin-top: 18px; font-size: 1.02rem; line-height: 2;
  padding: 18px 22px; background: var(--white); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; box-shadow: var(--shadow);
}
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.badge {
  font-size: .78rem; background: var(--white); border: 1px solid var(--line);
  border-radius: 99px; padding: 6px 14px; color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: center;
}
.badge b { color: var(--ink); font-weight: 700; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; align-items: start; padding-top: 28px; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-main h2 {
  font-size: 1.32rem; margin: 2.2em 0 .8em; padding-left: 14px;
  border-left: 5px solid var(--accent);
}
.detail-main h2:first-child { margin-top: .4em; }
.detail-main .desc p { margin-bottom: 1.2em; }

.diagram-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 10px 0 6px; box-shadow: var(--shadow); text-align: center;
}
.diagram-box figcaption { font-size: .76rem; color: var(--ink-faint); margin-top: 10px; }

.callout { border-radius: var(--radius); padding: 18px 22px; margin: 14px 0; }
.callout h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.callout ul { margin: 0; padding-left: 1.3em; }
.callout li { margin-bottom: 6px; font-size: .92rem; }
.callout li:last-child { margin-bottom: 0; }
.callout-ok { background: var(--ok-soft); } .callout-ok h3 { color: var(--ok); }
.callout-no { background: var(--no-soft); } .callout-no h3 { color: var(--no); }
.callout-warn { background: var(--warn-soft); } .callout-warn h3 { color: var(--warn); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* ステップ・タイムライン */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  position: relative; padding: 0 0 26px 56px; counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--indigo); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li::after {
  content: ""; position: absolute; left: 18.5px; top: 42px; bottom: 4px;
  width: 1.5px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps .st-title { font-weight: 700; font-size: 1rem; margin-bottom: 2px; }
.steps .st-detail { font-size: .9rem; color: var(--ink-soft); line-height: 1.85; }

/* サイドバー */
.detail-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
.side-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.side-box h3 { font-family: var(--font-body); font-size: .85rem; font-weight: 700; color: var(--ink-faint); letter-spacing: .1em; margin-bottom: 12px; }
.side-box ul { margin: 0; padding-left: 1.2em; font-size: .88rem; }
.side-box li { margin-bottom: 6px; }
.side-box .ref-item { font-size: .82rem; color: var(--ink-soft); margin-bottom: 10px; line-height: 1.7; }
.side-box .ref-item b { color: var(--ink); font-weight: 500; }
.related-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.related-chips a {
  font-size: .8rem; background: var(--indigo-soft); color: var(--indigo);
  border-radius: 99px; padding: 5px 13px; font-weight: 500;
}
.related-chips a:hover { background: var(--indigo); color: var(--white); }
.ws-cta { text-align: center; background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 100%); border: none; color: #C9D4E2; }
.ws-cta h3 { color: #fff; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .02em; }
.ws-cta p { font-size: .8rem; margin-bottom: 14px; }

/* ---------- ウィザード ---------- */
.wizard-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 38px; max-width: 760px; margin: 0 auto;
}
@media (max-width: 640px) { .wizard-panel { padding: 24px 20px; } }
.wizard-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.wizard-progress .seg { flex: 1; height: 5px; border-radius: 99px; background: var(--paper-3); }
.wizard-progress .seg.done { background: var(--accent); }
.wizard-q h2 { font-size: 1.3rem; margin-bottom: 6px; }
.wizard-q .q-note { font-size: .85rem; color: var(--ink-faint); margin-bottom: 22px; }
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
  font: inherit; text-align: left; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; transition: border-color .12s, background .12s;
}
.option-btn:hover { border-color: var(--indigo); background: var(--indigo-soft); }
.option-btn .o-title { font-weight: 700; font-size: .96rem; }
.option-btn .o-desc { font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }
.wizard-back { margin-top: 22px; font-size: .85rem; }
.wizard-skip { display:block; margin-top: 14px; font-size: .83rem; color: var(--ink-faint); background:none; border:none; cursor:pointer; text-decoration: underline; text-underline-offset: 3px; }
.wizard-skip:hover { color: var(--accent); }

.result-card {
  display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 14px; color: var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
.result-card .rank { font-family: var(--font-display); color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .1em; }
.result-card .score-bar { height: 6px; border-radius: 99px; background: var(--paper-3); margin-top: 10px; overflow: hidden; }
.result-card .score-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo), var(--accent)); border-radius: 99px; }

/* ---------- プロセスガイド ---------- */
.process-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 30px; margin-bottom: 20px;
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
}
@media (max-width: 640px) { .process-step { grid-template-columns: 1fr; } }
.process-step .p-num {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--indigo); color: var(--white);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.process-step h2 { font-size: 1.25rem; margin-bottom: 4px; }
.process-step .p-goal { font-size: .88rem; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.process-step h4 { font-family: var(--font-body); font-size: .82rem; font-weight: 700; color: var(--ink-faint); letter-spacing: .08em; margin: 14px 0 6px; }
.process-step ul { margin: 0; font-size: .9rem; }
.process-step .p-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ---------- 比較 ---------- */
.compare-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.compare-controls select {
  font: inherit; font-size: .9rem; padding: 10px 14px; min-width: 220px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
}
.compare-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.compare-table { border-collapse: collapse; width: 100%; min-width: 720px; }
.compare-table th, .compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: .88rem; text-align: left; }
.compare-table thead th { background: var(--indigo); color: var(--white); font-family: var(--font-display); font-size: 1rem; }
.compare-table tbody th { width: 130px; background: var(--paper-2); font-weight: 700; font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.compare-table ul { margin: 0; padding-left: 1.2em; }

/* ---------- 用語集 ---------- */
.glossary-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 22px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.glossary-item .g-term { font-weight: 700; font-size: 1.02rem; }
.glossary-item .g-en { font-size: .78rem; color: var(--ink-faint); margin-left: 10px; letter-spacing: .04em; }
.glossary-item .g-def { font-size: .88rem; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.85; }
.glossary-item .g-rel { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.glossary-item .g-rel a { font-size: .76rem; background: var(--indigo-soft); color: var(--indigo); border-radius: 99px; padding: 3px 11px; }

/* ---------- ワークシート ---------- */
.ws-paper {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 48px 52px; max-width: 880px; margin: 0 auto;
}
@media (max-width: 640px) { .ws-paper { padding: 28px 22px; } }
.ws-paper .ws-brand { font-size: .68rem; letter-spacing: .2em; color: var(--ink-faint); text-transform: uppercase; margin-bottom: 6px; }
.ws-paper h1 { font-size: 1.65rem; border-bottom: 3px solid var(--indigo); padding-bottom: 12px; margin-bottom: 10px; }
.ws-paper .ws-method { font-size: .85rem; color: var(--ink-soft); margin-bottom: 4px; }
.ws-paper .ws-intro { font-size: .9rem; color: var(--ink-soft); background: var(--paper); border-radius: var(--radius-sm); padding: 12px 18px; margin: 16px 0 28px; }
.ws-section { margin-bottom: 34px; break-inside: avoid; }
.ws-section h2 {
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 700;
  background: var(--indigo); color: var(--white);
  padding: 8px 16px; border-radius: 6px; margin-bottom: 4px;
}
.ws-section .ws-instruction { font-size: .82rem; color: var(--ink-soft); margin: 8px 2px 14px; }
.ws-field { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.ws-field label { font-size: .88rem; font-weight: 700; white-space: nowrap; }
.ws-field .fill { flex: 1; border-bottom: 1.5px solid var(--ink-soft); min-height: 30px; padding: 2px 8px; font-size: .92rem; }
table.ws-table { width: 100%; border-collapse: collapse; }
.ws-table th { background: var(--paper-2); font-size: .8rem; padding: 8px 10px; border: 1.5px solid var(--ink-soft); }
.ws-table td { border: 1.5px solid var(--ink-soft); height: 52px; padding: 6px 10px; font-size: .9rem; vertical-align: top; }
.ws-lines .fill-area { border: 1.5px solid var(--ink-soft); border-radius: 4px; padding: 8px 12px; font-size: .92rem; line-height: 34px;
  background-image: repeating-linear-gradient(transparent, transparent 33px, var(--line) 33px, var(--line) 34px); min-height: 70px; }
.ws-check { list-style: none; padding: 0; margin: 0; }
.ws-check li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 10px; }
.ws-check li::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid var(--ink-soft); border-radius: 4px; margin-top: 5px; }
.ws-toolbar { max-width: 880px; margin: 0 auto 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ws-toolbar .note { font-size: .8rem; color: var(--ink-faint); }
[contenteditable="true"]:focus { outline: 2px dashed rgba(31,58,92,.4); outline-offset: 2px; }

/* ワークシート一覧 */
.ws-index-item {
  display: flex; align-items: center; gap: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 22px; margin-bottom: 10px; box-shadow: var(--shadow); color: var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.ws-index-item:hover { transform: translateX(4px); box-shadow: var(--shadow-lift); color: var(--ink); }
.ws-index-item .ws-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--indigo-soft); display: flex; align-items: center; justify-content: center; color: var(--indigo); }
.ws-index-item .t { font-weight: 700; font-size: .96rem; }
.ws-index-item .m { font-size: .78rem; color: var(--ink-faint); }
.ws-index-item .arrow { margin-left: auto; color: var(--ink-faint); }

/* ---------- 汎用 ---------- */
.page-title { padding: 52px 0 10px; }
.page-title h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page-title .lead { color: var(--ink-soft); max-width: 720px; }
.empty-note { text-align: center; color: var(--ink-faint); padding: 60px 0; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: .76rem; color: var(--ink-soft); background: var(--paper-2); padding: 3px 12px; border-radius: 99px; }

.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 26px; color: var(--ink);
  transition: transform .14s, box-shadow .14s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: var(--ink); }
.feature-card .f-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.08rem; }
.feature-card p { font-size: .85rem; color: var(--ink-soft); margin: 0; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; padding-left: 14px; border-left: 5px solid var(--accent); }
.prose ol li, .prose ul li { margin-bottom: .5em; }
.prose code { background: var(--paper-2); border-radius: 4px; padding: 2px 8px; font-size: .85em; }

/* ---------- 印刷 ---------- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .ws-toolbar, .no-print { display: none !important; }
  .ws-paper { border: none; box-shadow: none; padding: 0; max-width: none; }
  .ws-section { page-break-inside: avoid; }
  .ws-section h2 { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; }
}
