/* ============================================
   CARBON CHAIN — Design System
   ============================================ */

:root {
  --green-900: #0b3d2e;
  --green-800: #0e5a45;
  --green-700: #157a5c;
  --green-100: #e3f2ec;
  --green-50: #f2f9f6;
  --lime: #b5e048;
  --ink: #1a2421;
  --ink-70: #43524c;
  --ink-50: #6b7a74;
  --line: #dde5e1;
  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --amber: #d97706;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(11, 61, 46, 0.08);
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden属性はdisplay指定を持つ要素にも常に勝たせる */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.brand .logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--green-900);
}

.brand .logo em {
  font-style: normal;
  color: var(--green-700);
}

.brand .tagline {
  font-size: 0.7rem;
  color: var(--ink-50);
  display: none;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.global-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-70);
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.global-nav a:hover { background: var(--green-50); color: var(--green-800); }
.global-nav a.active { color: var(--green-800); background: var(--green-100); }

.nav-cta {
  background: var(--green-800);
  color: #fff !important;
  border-radius: 999px;
  padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--green-900) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease;
  text-align: center;
}

.btn-primary { background: var(--lime); color: var(--green-900); }
.btn-primary:hover { transform: translateY(-2px); background: #c4ec5c; }
.btn-outline {
  background: transparent;
  color: var(--green-800);
  border: 2px solid var(--green-800);
}
.btn-outline:hover { background: var(--green-50); }
.btn-dark { background: var(--green-800); color: #fff; }
.btn-dark:hover { background: var(--green-900); }
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, #14684f 100%);
  color: #fff;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 224, 72, 0.18) 0%, transparent 70%);
}

.hero .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--lime);
  border: 1px solid rgba(181, 224, 72, 0.5);
  border-radius: 999px;
  padding: 4px 16px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}

.hero h1 .accent { color: var(--lime); }

.hero .lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-bottom: 40px;
}

.hero .lead strong { color: #fff; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 12px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--green-900); color: #fff; }

.section-head { margin-bottom: 40px; }
.section-head .en {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--green-700);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.section.dark .section-head .en { color: var(--lime); }

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.4;
}

.section-head .desc { color: var(--ink-50); margin-top: 12px; max-width: 640px; }
.section.dark .section-head .desc { color: rgba(255,255,255,0.7); }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.card p { font-size: 0.875rem; color: var(--ink-50); }

.card .card-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--green-700);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

/* ---------- Article cards ---------- */
.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.article-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

.thumb-why { background: linear-gradient(135deg, #0e5a45, #157a5c); }
.thumb-how { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.thumb-real { background: linear-gradient(135deg, #b45309, #d97706); }

.article-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.article-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.tag-why { background: var(--green-100); color: var(--green-800); }
.tag-how { background: #dbeafe; color: #1d4ed8; }
.tag-real { background: #fef3c7; color: #b45309; }
.tag-cat { background: var(--bg-soft); color: var(--ink-50); border: 1px solid var(--line); }
.tag-soon { background: #f3f4f6; color: #9ca3af; }

.article-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.55; }
.article-body .excerpt { font-size: 0.83rem; color: var(--ink-50); flex: 1; }
.article-body .date { font-size: 0.75rem; color: var(--ink-50); }

/* ---------- Steps (journey) ---------- */
.journey {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.journey .step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.journey .step .n {
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 800;
}

.journey .arrow { align-self: center; color: var(--green-700); font-weight: 800; }

/* ---------- Levels ---------- */
.levels { display: grid; gap: 16px; }

.level-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 18px 24px;
  align-items: center;
}

.level-row .lv { font-weight: 800; color: var(--lime); font-size: 0.9rem; }
.level-row .desc-txt { font-size: 0.95rem; color: rgba(255,255,255,0.85); }

@media (max-width: 600px) {
  .level-row { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Filters / forms ---------- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  align-items: center;
}

.filter-bar select,
.filter-bar input[type="search"] {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.filter-bar input[type="search"] { min-width: 240px; flex: 1; }

.chip {
  font-size: 0.83rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-70);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover { border-color: var(--green-700); color: var(--green-800); }
.chip.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table.db {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 900px;
}

table.db th {
  background: var(--green-50);
  color: var(--green-900);
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--green-100);
  white-space: nowrap;
}

table.db td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.db tr:last-child td { border-bottom: none; }
table.db tr:hover td { background: var(--green-50); }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.badge-yes { background: var(--green-100); color: var(--green-800); }
.badge-no { background: #f3f4f6; color: #9ca3af; }
.badge-partial { background: #fef3c7; color: #b45309; }

/* ---------- Diagnosis ---------- */
.quiz-box {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.progress-track {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 32px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-700), var(--lime));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.q-count { font-size: 0.8rem; font-weight: 700; color: var(--green-700); margin-bottom: 8px; }
.q-text { font-size: 1.2rem; font-weight: 700; line-height: 1.6; margin-bottom: 28px; }

.q-options { display: grid; gap: 12px; }

.q-option {
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 16px 20px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.6;
}

.q-option:hover { border-color: var(--green-700); background: var(--green-50); }

.result-level {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--green-800);
  line-height: 1.1;
}

.result-level small { font-size: 0.4em; color: var(--ink-50); font-weight: 700; }

.meter {
  display: flex;
  gap: 6px;
  margin: 24px 0 32px;
}

.meter span {
  flex: 1;
  height: 14px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.meter span.on { background: linear-gradient(90deg, var(--green-700), var(--lime)); border-color: transparent; }

.result-block { margin-bottom: 28px; }
.result-block h4 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--green-700);
  margin-bottom: 8px;
}
.result-block ol { padding-left: 1.4em; }
.result-block li { margin-bottom: 6px; }

/* ---------- Article page ---------- */
.article-header { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.5; margin: 16px 0; }

.article-content { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.article-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 48px 0 20px;
  padding-left: 16px;
  border-left: 4px solid var(--green-700);
  line-height: 1.5;
}
.article-content h3 { font-size: 1.1rem; font-weight: 700; margin: 32px 0 12px; }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 20px 1.5em; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--lime);
  background: var(--green-50);
  padding: 16px 24px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
  font-weight: 600;
}
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 0.9rem; }
.article-content th { background: var(--green-50); text-align: left; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 14px; }
.article-content .note {
  font-size: 0.8rem;
  color: var(--ink-50);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 40px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: #fff;
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 800; line-height: 1.5; }
.cta-band p { color: rgba(255,255,255,0.75); margin-top: 8px; font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 32px;
  margin-top: 0;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .logo { font-weight: 800; font-size: 1.2rem; color: #fff; display: block; margin-bottom: 8px; }
.site-footer .logo em { font-style: normal; color: var(--lime); }
.site-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--lime); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: var(--green-50);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; line-height: 1.4; }
.page-hero .desc { color: var(--ink-50); margin-top: 12px; max-width: 680px; }

.empty-msg { text-align: center; color: var(--ink-50); padding: 48px 0; }

/* ============================================
   企業GHGデータベース(database.html)
   ============================================ */

/* ---------- KPI stat tiles ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.stat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.stat-label { font-size: 0.78rem; font-weight: 700; color: var(--ink-50); margin-bottom: 6px; }
.stat-value { font-size: 1.9rem; font-weight: 700; line-height: 1.2; color: var(--ink); }
.stat-value small { font-size: 0.55em; font-weight: 700; color: var(--ink-50); margin-left: 2px; }
.stat-sub { font-size: 0.75rem; color: var(--ink-50); margin-top: 4px; }

/* ---------- Chart cards ---------- */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .chart-grid { grid-template-columns: 1fr; } }

.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px 20px;
  min-width: 0;
}
.chart-card-wide { grid-column: 1 / -1; }
.chart-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.chart-card .chart-desc { font-size: 0.8rem; color: var(--ink-50); margin-bottom: 14px; }

.viz-svg { width: 100%; height: auto; display: block; }
.viz-hit { outline: none; cursor: default; }
.viz-hit:hover path, .viz-hit:hover rect:not([fill="transparent"]) { opacity: 0.85; }
.viz-hit:focus-visible rect[fill="transparent"] { stroke: var(--green-700); stroke-width: 2; }

.viz-cat-label { font-size: 11.5px; fill: var(--ink-70); font-family: var(--font-sans); }
.viz-val-label { font-size: 11px; fill: var(--ink-50); font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.viz-seg-label { font-size: 10.5px; font-weight: 700; font-family: var(--font-sans); pointer-events: none; }

.viz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--ink-70);
  margin-bottom: 12px;
}
.viz-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}

.viz-table-toggle { margin-top: 8px; font-size: 0.78rem; }
.viz-table-toggle summary { color: var(--ink-50); cursor: pointer; font-weight: 600; }
.viz-data-table { min-width: 0 !important; font-size: 0.78rem !important; }
.viz-data-table td, .viz-data-table th { padding: 8px 12px !important; }

/* ---------- Tooltip ---------- */
.viz-tip {
  position: fixed;
  z-index: 500;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(11, 61, 46, 0.16);
  padding: 10px 14px;
  font-size: 0.8rem;
  pointer-events: none;
  max-width: 300px;
}
.viz-tip-title { font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.viz-tip-row { display: flex; align-items: center; gap: 7px; margin-top: 3px; white-space: nowrap; }
.viz-tip-row strong { font-variant-numeric: tabular-nums; }
.viz-tip-label { color: var(--ink-50); font-size: 0.72rem; }
.viz-tip-key { width: 12px; height: 3px; border-radius: 2px; display: inline-block; flex: none; }

/* ---------- テーブル拡張 ---------- */
.db-section-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 16px; }
.db-section-title span { font-size: 0.75rem; font-weight: 600; color: var(--ink-50); margin-left: 10px; }

table.db-main { min-width: 1080px; }
table.db-main td.num, table.db-main th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.db-main th .th-sort {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-weight: 700;
}
table.db-main th .th-sort:hover { color: var(--green-700); }
table.db-main th.sorted { background: var(--green-100); }

.data-tr { cursor: pointer; }
.data-tr:focus-visible { outline: 2px solid var(--green-700); outline-offset: -2px; }
.data-tr.open td { background: var(--green-50); border-bottom: none; }
.tr-caret { color: var(--green-700); font-size: 0.7rem; margin-right: 8px; display: inline-block; width: 12px; }

.detail-tr td {
  background: var(--green-50);
  white-space: normal !important;
  padding: 8px 24px 28px !important;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  max-width: 980px;
}
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; gap: 24px; } }
.detail-grid h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green-700);
  margin-bottom: 10px;
}
.mini-stack {
  display: flex;
  gap: 2px;
  height: 18px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--bg-soft);
}
.mini-seg { display: block; height: 100%; min-width: 2px; }

.detail-table { border-collapse: collapse; font-size: 0.82rem; margin: 6px 0 14px; }
.detail-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-70);
  padding: 4px 20px 4px 0;
  background: none;
  border: none;
  white-space: nowrap;
}
.detail-table td {
  text-align: right;
  padding: 4px 0;
  border: none;
  font-variant-numeric: tabular-nums;
}
.detail-meta { font-size: 0.8rem; color: var(--ink-70); line-height: 2; }
.detail-meta a { color: var(--green-700); font-weight: 700; text-decoration: underline; }

.cat-row {
  display: grid;
  grid-template-columns: 200px 1fr 90px;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 0.78rem;
}
/* 狭い画面では名前を1行に逃がし、バーを全幅で見せる
   (3列のままだとラベルが切れ、バーが数十pxまで潰れる) */
@media (max-width: 700px) {
  .cat-row {
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
    margin-bottom: 13px;
  }
  .cat-name { grid-area: 1 / 1 / 2 / 2; white-space: normal; overflow: visible; }
  .cat-val { grid-area: 1 / 2 / 2 / 3; }
  .cat-track { grid-area: 2 / 1 / 3 / 3; height: 10px; }
}
.cat-name { color: var(--ink-70); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-track { background: var(--v3-band); border-radius: 4px; height: 12px; overflow: hidden; }
.cat-track span { display: block; height: 100%; background: #12795B; border-radius: 0 4px 4px 0; min-width: 2px; }
.cat-val { text-align: right; color: var(--ink-50); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 全国排出事業者データ(温対法)セクション */
.reg-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-700);
  text-decoration: underline;
}
#registry .chart-card { background: #fff; }
#registry .stat-tile { background: #fff; }

/* Scope3比率メーター(同系ラムプのトラック) */
.share-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.share-meter {
  flex: 1;
  height: 10px;
  background: var(--v3-band);
  border-radius: 4px;
  overflow: hidden;
  min-width: 56px;
}
.share-meter span { display: block; height: 100%; background: #12795B; border-radius: 0 4px 4px 0; }
.share-num { font-size: 0.75rem; color: var(--ink-70); font-variant-numeric: tabular-nums; width: 44px; text-align: right; }

@media (min-width: 720px) {
  .brand .tagline { display: inline; }
}

/* ============================================
   CARBON CHAIN — DBプロダクトUI
   ============================================ */

/* ---------- アプリヘッダー(ダーク) ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.app-header .header-inner { height: 60px; }
.logo-app { color: #fff !important; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; }
.logo-app em { font-style: normal; color: var(--lime); }
.tagline-app { color: rgba(255, 255, 255, 0.55) !important; }
.nav-app a { color: rgba(255, 255, 255, 0.75); }
.nav-app a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-app a.active { background: rgba(181, 224, 72, 0.15); color: var(--lime); }

/* ---------- 検索ヒーロー ---------- */
.search-hero {
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-800) 85%);
  color: #fff;
  padding: 56px 0 48px;
}
.search-hero h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 10px;
}
.search-hero .hero-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 28px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.search-hero .hero-sub strong { color: var(--lime); font-size: 1.05rem; margin-right: 2px; }
.hero-search input[type="search"] {
  width: 100%;
  max-width: 640px;
  font-family: inherit;
  font-size: 1.05rem;
  padding: 16px 22px;
  border: none;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.hero-search input:focus { outline: 3px solid var(--lime); }
@media (max-width: 600px) { .sp-br { display: none; } }

/* ---------- メインセクション ---------- */
.db-main-section { padding: 32px 0 72px; background: var(--bg-soft); min-height: 60vh; }

/* データセット切替タブ */
.seg-control {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}
.seg-tab {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-70);
  background: none;
  border: none;
  border-radius: 9px;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.seg-tab:hover { background: var(--green-50); }
.seg-tab.active { background: var(--green-800); color: #fff; }
.seg-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 2px 9px;
  font-variant-numeric: tabular-nums;
}
.seg-tab.active .seg-count { background: rgba(255, 255, 255, 0.2); }

/* フィルタ行 */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter-row[hidden] { display: none; }
.filter-row select {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.filter-note { font-size: 0.8rem; color: var(--ink-50); }

.db-summary { font-size: 0.82rem; color: var(--ink-50); margin-bottom: 14px; }

/* ---------- リストテーブル ---------- */
.db-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.list-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.list-table th {
  background: #fff;
  color: var(--ink-50);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: left;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.list-table th.num, .list-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.th-unit { font-weight: 600; margin-left: 3px; }
.mini-legend { font-weight: 600; margin-left: 6px; }
.mini-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin: 0 2px 0 6px; vertical-align: -1px; }

.list-table td { padding: 14px 18px; border-bottom: 1px solid var(--bg-soft); vertical-align: middle; }
.list-table tr:last-child td { border-bottom: none; }
.list-row { cursor: pointer; transition: background 0.1s ease; }
.list-row:hover td { background: var(--green-50); }
.list-row:focus-visible { outline: 2px solid var(--green-700); outline-offset: -2px; }
.row-plain { cursor: default; }
.row-plain:hover td { background: #fff; }

.cell-name strong { font-size: 0.95rem; }
.cell-sub { display: block; font-size: 0.75rem; color: var(--ink-50); margin-top: 2px; }
.cell-strong { font-weight: 700; white-space: nowrap; }
.cell-rank { color: var(--ink-50); font-size: 0.85rem; width: 44px; }
.cell-ind { font-size: 0.82rem; color: var(--ink-70); }
.cell-comp { width: 150px; }
.row-stack {
  display: flex;
  gap: 1px;
  height: 10px;
  width: 130px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
}
.row-stack span { display: block; height: 100%; min-width: 1px; }

.data-note { font-size: 0.78rem; color: var(--ink-50); margin-top: 20px; line-height: 1.9; }
.data-note a { color: var(--green-700); font-weight: 700; }

@media (max-width: 720px) {
  .cell-comp, .th-comp { display: none; }
  .list-table td, .list-table th { padding: 12px 12px; }
}

/* ---------- 企業詳細ページ ---------- */
.company-head {
  background: var(--green-50);
  border-bottom: 1px solid var(--line);
  padding: 32px 0 28px;
}
.crumb { font-size: 0.82rem; margin-bottom: 12px; }
.crumb a { color: var(--green-700); font-weight: 700; }
.company-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; line-height: 1.4; }
.company-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.badge-ind { background: #fff; color: var(--ink-70); border: 1px solid var(--line); }

.stat-tile .stat-label .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}
.stat-tile .stat-label small { font-weight: 600; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.panel h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 16px; }
.panel h3 strong { color: var(--green-800); }

.comp-bar {
  display: flex;
  gap: 2px;
  height: 26px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 12px;
}
.comp-seg { display: block; height: 100%; min-width: 2px; }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .panel-grid { grid-template-columns: 1fr; } }

.fact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 20px;
}
.fact-box h3 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--green-700);
  margin-bottom: 10px;
}
.fact-box p { font-size: 0.9rem; line-height: 1.9; }
.fact-box a { color: var(--green-700); font-weight: 700; text-decoration: underline; }
.fine { font-size: 0.78rem; color: var(--ink-50); margin-top: 8px; }

.cat-val small { color: var(--ink-50); margin-left: 4px; }

/* ============================================
   TANSO ブランドテーマ v1.0 (2026.08)
   ブランド仕様(TANSO ブランド仕様.dc.html)に基づく上書きレイヤー。
   紙 #F2F1EC / インク #14251E / 朱 #A8442A / 罫 #CFCCC3
   角丸・影は全廃。データ色(Scope1/2/3)は変更しない。
   ============================================ */

:root {
  /* 旧トークンをTANSOパレットへ再割当(レガシー規則の一括再着色) */
  --green-900: #14251E;
  --green-800: #14251E;
  --green-700: #A8442A;
  --green-100: #E7E5DE;
  --green-50: #ECEAE4;
  --lime: #A8442A;
  --ink: #14251E;
  --ink-70: #43524c;
  --ink-50: #55635d;
  --line: #CFCCC3;
  --bg: #F2F1EC;
  --bg-soft: #ECEAE4;
  --amber: #A8442A;
  --radius: 0;
  --shadow: none;
  /* TANSO追加トークン */
  --paper: #F2F1EC;
  --shu: #A8442A;
  --rule: #CFCCC3;
  --rule-soft: #E7E5DE;
  --font-latin: "Archivo", "Hiragino Sans", sans-serif;
  --font-mincho: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
}

/* 角丸・影の全廃 */
* { border-radius: 0 !important; box-shadow: none !important; }

body { background: var(--paper); }

/* ---------- ロゴ(TANS + 朱の円) ---------- */
.logo-tanso {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--ink);
  line-height: 1;
}
.logo-dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50% !important;
  background: var(--shu);
  display: inline-block;
  margin-left: 0.05em;
  margin-right: 0.2em;
}
.brand-sep { width: 1px; height: 18px; background: var(--rule); display: inline-block; }
.logo-kanji {
  font-family: var(--font-mincho);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  color: #4a5b53;
  line-height: 1;
}
.brand { display: flex; align-items: center; gap: 14px; }

/* ---------- ヘッダー: 紙色地 + 下罫 ---------- */
.app-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.app-header .header-inner { height: 64px; }
.nav-app a {
  font-family: var(--font-latin);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4a5b53;
  padding: 4px 0 6px;
  margin: 0 10px;
  border-bottom: 2px solid transparent;
  border-radius: 0 !important;
  white-space: nowrap;
}
.nav-app a:hover { background: none; color: var(--ink); }
.nav-app a.active {
  background: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--shu);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid var(--rule);
  padding-left: 20px;
  margin-left: 10px;
  font-family: var(--font-latin);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}
.lang-switch b { color: var(--ink); font-weight: 700; }
.lang-switch span { color: var(--rule); }
.lang-switch em { color: #8a938e; font-style: normal; font-weight: 500; cursor: default; }

/* ---------- ヒーロー: 紙色・罫の構成 ---------- */
.search-hero {
  background: var(--paper);
  color: var(--ink);
  padding: 54px 0 46px;
}
.kicker-en {
  font-family: var(--font-latin);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--shu);
  margin-bottom: 18px;
}
.search-hero h1 {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}
.hero-lead {
  font-size: 0.95rem;
  color: #4a5b53;
  max-width: 660px;
  margin-bottom: 30px;
}
.stat-strip {
  display: flex;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: 720px;
}
.stat-cell { flex: 1; padding: 16px 20px 14px; border-right: 1px solid var(--rule); }
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-latin);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat-cap { font-size: 0.74rem; color: #55635d; margin-top: 2px; }
.hero-search { margin-top: 26px; display: flex; max-width: 660px; }
.hero-search input[type="search"] {
  flex: 1;
  max-width: none;
  font-family: inherit;
  font-size: 0.98rem;
  padding: 15px 20px;
  border: 1px solid var(--ink);
  border-right: none;
  background: #fff;
  color: var(--ink);
}
.hero-search input:focus { outline: 2px solid var(--shu); outline-offset: -1px; }
.hero-search .search-btn {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 0 28px;
  cursor: pointer;
}

/* ---------- 本体 ---------- */
.db-main-section { background: var(--paper); }

/* タブ: 1pxインク枠 */
.seg-control { background: none; border: 1px solid var(--ink); padding: 0; gap: 0; }
.seg-tab {
  font-size: 0.86rem;
  font-weight: 700;
  color: #4a5b53;
  padding: 11px 22px;
  border-left: 1px solid var(--ink);
}
.seg-tab:first-child { border-left: none; }
.seg-tab:hover { background: var(--rule-soft); }
.seg-tab.active { background: var(--ink); color: var(--paper); }
.seg-count {
  font-family: var(--font-latin);
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: none;
  padding: 0;
  color: #55635d;
}
.seg-tab.active .seg-count { background: none; color: var(--rule); }

.filter-row select {
  border: 1px solid var(--rule);
  background: #fff;
}

/* テーブル: 上下端インク罫・行罫は淡色 */
.db-list { background: none; border: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.list-table th {
  font-family: var(--font-latin);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #55635d;
  background: none;
  border-bottom: 1px solid var(--rule);
}
.list-table td { border-bottom: 1px solid var(--rule-soft); }
.list-row:hover td { background: #fff; }
.cell-strong, .list-table td.num { font-family: var(--font-latin); }
.row-stack { background: var(--paper); }

/* タグ: 塗りをやめ1px枠 */
.badge { border-radius: 0 !important; padding: 2px 10px; font-weight: 700; }
.badge-yes { background: none; border: 1px solid var(--ink); color: var(--ink); }
.badge-partial { background: none; border: 1px solid var(--shu); color: var(--shu); }
.badge-no { background: none; border: 1px solid var(--rule); color: #55635d; }
.badge-ind { background: none; border: 1px solid var(--rule); color: #43524c; }

/* ボタン */
.btn { border-radius: 0 !important; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #0d1813; transform: none; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--rule-soft); }
.btn-dark { background: var(--ink); color: var(--paper); }

/* KPIタイル・パネル・チャートカード */
.stat-tile, .panel, .fact-box, .chart-card { background: #fff; border: 1px solid var(--rule); }
.stat-tile .stat-value { font-family: var(--font-latin); font-weight: 600; }
.viz-tip { border: 1px solid var(--ink); background: #fff; }
.share-meter { background: var(--rule-soft); }
.cat-track { background: var(--rule-soft); }

/* フッター: インク地 + ロゴ列 */
.site-footer { background: var(--ink); color: rgba(242, 241, 236, 0.72); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(242, 241, 236, 0.18);
}
.footer-brand .logo-tanso { color: var(--paper); }
.footer-brand .brand-sep { background: rgba(242, 241, 236, 0.3); height: 16px; }
.footer-brand .logo-kanji { color: rgba(242, 241, 236, 0.72); font-size: 0.8rem; }
.site-footer .footer-bottom { font-size: 0.75rem; color: rgba(242, 241, 236, 0.55); border-top: none; padding-top: 0; }
.site-footer a:hover { color: var(--paper); }

/* サブページヒーロー・企業詳細ヘッダー */
.page-hero, .company-head { background: var(--paper); border-bottom: 1px solid var(--rule); }

/* 数値の等幅化(仕様: 数値は必ず等幅) */
.viz-val-label, .cat-val, .share-num, .detail-table td { font-family: var(--font-latin); }

/* ---------- KV: インク地ヒーロー(色アリ版) ----------
   ブランド仕様書自身のヘッダー帯(インク地+朱)を踏襲。
   右にロゴシンボル(朱の円+基準線)、下端にScopeデータ3色の罫。 */
.search-hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 56px;
  overflow: hidden;
}
.search-hero .container { position: relative; z-index: 1; }
.search-hero h1 { color: var(--paper); }
.hero-lead { color: rgba(242, 241, 236, 0.75); }
.stat-strip { border-top-color: rgba(242, 241, 236, 0.28); border-bottom-color: rgba(242, 241, 236, 0.28); }
.stat-cell { border-right-color: rgba(242, 241, 236, 0.28); }
.stat-num { color: var(--paper); }
.stat-cap { color: rgba(242, 241, 236, 0.6); }
.hero-search input[type="search"] { border-color: #fff; }
.hero-search input:focus { outline-color: var(--shu); }
.hero-search .search-btn { background: var(--shu); border-color: var(--shu); color: #fff; }
.hero-search .search-btn:hover { background: #8a361f; }

/* ---------- 分析ページ: 仕様書のセクション文法(番号+見出し+罫) ---------- */
.an-hero { padding: 56px 0 48px; }
.an-section { }
.an-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 56px 0 20px;
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
}
.an-num {
  font-family: var(--font-latin);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--shu);
}
.an-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.an-note { font-size: 0.85rem; color: #55635d; }
.an-body {
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.an-body .viz-svg { max-width: 880px; }
.an-body .viz-legend { margin-bottom: 20px; }
.viz-table-toggle { margin-top: 20px; }
.viz-table-toggle summary {
  font-family: var(--font-latin);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #55635d;
}
.viz-table-toggle summary:hover { color: var(--shu); }
.viz-data-table { border-top: 1px solid var(--ink) !important; }
.an-body .table-wrap { border: none; background: none; max-width: 880px; }

/* ---------- 分析ページ: 章立てチップ・2カラム ---------- */
.an-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding: 24px 0 8px;
  border-bottom: 1px solid var(--rule);
}
.an-chips a {
  font-size: 0.82rem;
  font-weight: 700;
  color: #43524c;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.an-chips a:hover { color: var(--ink); border-bottom-color: var(--shu); }
.an-section { scroll-margin-top: 84px; }
.an-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 56px;
  align-items: start;
}
@media (max-width: 960px) { .an-duo { grid-template-columns: 1fr; } }
.an-sub { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.an-sub h3 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 0; }
.an-sub span { font-size: 0.78rem; color: #55635d; }
.an-duo .viz-svg { max-width: none; }
.an-duo .table-wrap { max-width: none; }

/* ---------- Journal: 入門(basic)タイプ ---------- */
.tag-basic { background: none; border: 1px solid var(--shu); color: var(--shu); }
.thumb-basic { background: var(--ink); color: var(--paper); }
.thumb-basic::after { content: ""; display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50% !important; background: var(--shu); margin-left: 0.15em; }
.tag { border-radius: 0 !important; }
.tag-why { background: none; border: 1px solid var(--rule); color: #43524c; }
.tag-how { background: none; border: 1px solid var(--rule); color: #43524c; }
.tag-real { background: none; border: 1px solid var(--rule); color: #43524c; }
.tag-cat { background: none; border: 1px solid var(--rule); color: #55635d; }
.thumb-why { background: #2d3f38; }
.thumb-how { background: #3d4a44; }
.thumb-real { background: #55635d; }

/* ---------- Journal: 記事別サムネイル(連番+キーワード) ---------- */
.article-thumb {
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  height: 132px;
  padding: 14px 18px 16px;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-align: left;
}
.thumb-basic::after { content: none; }
.thumb-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-latin);
}
.thumb-series {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}
.thumb-basic .thumb-series::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50% !important;
  background: var(--shu);
  margin-left: 0.45em;
  vertical-align: baseline;
}
.thumb-no {
  font-family: var(--font-latin);
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}
.thumb-basic .thumb-no { color: var(--shu); opacity: 1; }
.thumb-key {
  font-family: var(--font-latin);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* ---------- Journal: サムネイル廃止・エディトリアルカード ---------- */
.article-thumb { display: none; }
.article-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
}
.article-card:hover {
  transform: none;
  box-shadow: none !important;
  border-color: var(--ink);
}
.article-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.article-body { padding: 18px 20px 22px; gap: 12px; }
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft, #E7E5DE);
}
.card-series {
  font-family: var(--font-latin);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #43524c;
}
.card-series b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--shu);
  margin-left: 0.35em;
}
.card-basic .card-series { color: var(--ink); }
.card-basic .card-series::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50% !important;
  background: var(--shu);
  margin-right: 0.5em;
  vertical-align: baseline;
}
.card-date {
  font-family: var(--font-latin);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: #55635d;
  white-space: nowrap;
}
.article-card .article-meta { margin-top: auto; }
.article-card .article-body .date { display: none; }

/* ---------- Journal: WORDシリーズ ---------- */
.tag-word { background: none; border: 1px solid var(--rule); color: #43524c; }
.card-word .card-series { color: var(--ink); }
.card-word .card-series::before {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  background: var(--ink);
  margin-right: 0.5em;
  vertical-align: baseline;
}

/* ---------- Readiness: 結果画面のおすすめ記事 ---------- */
.result-reads { margin-top: 14px; }
.result-reads .article-card h3 { font-size: 0.95rem; }
.result-reads .article-card .excerpt { display: none; }
@media (max-width: 780px) { .result-reads { grid-template-columns: 1fr; } }

/* ---------- Tools: ベンダーディレクトリ ---------- */
.vendor-card { display: flex; flex-direction: column; }
.vendor-card .vendor-actions { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.pr-badge {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 1px 6px;
  background: var(--shu);
  color: var(--paper);
}
.vendor-open { border: 1px dashed var(--rule); background: none; }
.plan-table { width: 100%; border-collapse: collapse; }
.plan-table th, .plan-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule-soft, #E7E5DE); font-size: 0.9rem; }
.plan-table th { font-size: 0.78rem; letter-spacing: 0.08em; color: #55635d; border-bottom: 1px solid var(--ink); }

/* ---------- 無料ツールページ ---------- */
.tool-lead { font-size: 1rem; line-height: 1.9; margin-bottom: 24px; }
.tool-note { font-size: 0.82rem; color: #55635d; line-height: 1.9; margin-top: 20px; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chips .chip { text-decoration: none; }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 28px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field span { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.calc-field small { font-weight: 400; color: #55635d; font-family: var(--font-latin); }
.calc-field input, .tb-input {
  border: 1px solid var(--rule); background: #fff; padding: 10px 12px;
  font-size: 1rem; font-family: var(--font-latin); font-variant-numeric: tabular-nums;
}
.calc-field input:focus, .tb-input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.calc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.calc-kpi { border: 1px solid var(--rule); border-top: 2px solid var(--ink); background: #fff; padding: 16px 18px; }
.calc-kpi b { display: block; font-family: var(--font-latin); font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.calc-kpi span { font-size: 0.75rem; color: #55635d; }
.calc-kpi-total { border-top-color: var(--shu); }
.calc-kpi-total b { color: var(--shu); }
.tool-alert { margin-top: 18px; padding: 12px 16px; border: 1px solid var(--shu); font-size: 0.85rem; line-height: 1.8; }
.tb-input { min-width: 280px; }

/* ---------- About: お問い合わせフォーム ---------- */
.contact-form { max-width: 780px; display: flex; flex-direction: column; gap: 18px; }
.cform-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact-form select, .contact-form textarea {
  border: 1px solid var(--rule); background: #fff; padding: 10px 12px; font-size: 0.95rem; font-family: inherit;
}
.contact-form select:focus, .contact-form textarea:focus, .contact-form input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.contact-form textarea { resize: vertical; line-height: 1.8; }
.req { font-style: normal; font-size: 0.62rem; font-weight: 700; color: var(--paper); background: var(--shu); padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.cform-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cform-note { font-size: 0.75rem; color: #55635d; line-height: 1.7; max-width: 480px; }

/* ---------- About: ウィジェット起動 ---------- */
.contact-launch { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* ---------- About: フォーム送信結果 ---------- */
.cform-result { font-size: 0.88rem; padding: 12px 16px; }
.cform-result.ok { border: 1px solid var(--ink); }
.cform-result.ng { border: 1px solid var(--shu); color: var(--shu); }
.zf-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }

/* ---------- 定義リスト型テーブル(縦見出し・About運営者情報など) ---------- */
.def-table {
  width: 100%;
  max-width: 860px;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  background: none;
}
.def-table th, .def-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--rule-soft, #E7E5DE);
  background: none;
}
.def-table th {
  width: 170px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #55635d;
  padding-top: 21px;
  white-space: nowrap;
}
.def-table td { font-size: 0.92rem; color: var(--ink); line-height: 1.9; }
.def-table a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.table-wrap:has(.def-table) { border: none; background: none; }

/* ============================================
   TANSO v3 — 全ページ設計(TANSO 全ページ設計.dc.html準拠)
   型: 1台帳(DB) 2論説(Analysis) 3誌面(Journal/Article)
       4対話(Readiness/Tools) 5文書(About)
   ============================================ */

:root {
  --v3-band: #E7E5DE;      /* 一段濃い地(対話型・交互バンド) */
  --v3-hairline: #E7E5DE;  /* 行罫 */
  --v3-accent-bg: #FBF8F4; /* 網掛け行 */
}

/* ---------- 共通: ヘッダー(器) ---------- */
.app-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.app-header .header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-tanso { font-family: var(--font-latin); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.2em; color: var(--ink); display: flex; align-items: center; }
.logo-dot { width: 0.6em; height: 0.6em; border-radius: 50% !important; background: var(--shu); display: inline-block; margin-left: 0.05em; margin-right: 0.2em; }
.brand-sep { width: 1px; height: 18px; background: var(--rule); display: inline-block; margin: 0 14px; }
.logo-kanji { font-family: var(--font-mincho); font-size: 0.82rem; letter-spacing: 0.24em; color: #4a5b53; }
.nav-app { display: flex; align-items: center; gap: 26px; }
.nav-app a { font-family: var(--font-latin); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #4a5b53; white-space: nowrap; border-bottom: 2px solid transparent; padding-bottom: 3px; }
.nav-app a:hover { color: var(--ink); }
.nav-app a.active { font-weight: 600; color: var(--ink); border-bottom-color: var(--shu); }
.lang-switch { display: flex; align-items: center; gap: 6px; border-left: 1px solid var(--rule); padding-left: 22px; font-family: var(--font-latin); font-size: 0.74rem; letter-spacing: 0.08em; }
.lang-switch b, .lang-switch em { border-bottom: none; padding-bottom: 0; color: #8a938e; font-weight: 500; }
.lang-switch b.active, .lang-switch em.active { color: var(--ink); font-weight: 700; border-bottom: none; }

/* ---------- 共通: インクヒーロー ---------- */
.search-hero { background: var(--ink); color: var(--paper); border-bottom: none; padding: 60px 0 56px; }
.search-hero .kicker-en, .kicker-en { font-family: var(--font-latin); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--shu); margin-bottom: 22px; }
.search-hero h1 { font-size: 3rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.01em; color: var(--paper); margin-bottom: 20px; }
.search-hero .hero-lead, .hero-lead { font-size: 1rem; color: rgba(242,241,236,0.72); max-width: 760px; margin-bottom: 0; }

/* ---------- Database: 2カラムヒーロー ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr 420px; gap: 56px; }
.hero-grid .hero-main { padding: 4px 0; }
.hero-grid h1 { font-size: 3.4rem; line-height: 1.24; margin-bottom: 22px; }
.hero-grid .hero-lead { margin-bottom: 36px; max-width: 560px; }
.hero-stats { border-left: 1px solid rgba(242,241,236,0.18); padding-left: 44px; display: flex; flex-direction: column; justify-content: center; }
.hero-stats .stat-cell { padding: 20px 0; border-bottom: 1px solid rgba(242,241,236,0.18); border-right: none; }
.hero-stats .stat-cell:first-child { padding-top: 0; }
.hero-stats .stat-cell:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stats .stat-num { font-family: var(--font-latin); font-size: 3rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--paper); }
.hero-stats .stat-cap { font-size: 0.8rem; color: rgba(242,241,236,0.6); margin-top: 6px; font-weight: 400; }
.hero-search { margin-top: 0; display: flex; max-width: 620px; }
.hero-search input[type="search"] { flex: 1; min-width: 0; font-family: inherit; font-size: 0.95rem; padding: 16px 18px; text-overflow: ellipsis; border: 1px solid var(--paper); border-right: none; background: transparent; color: var(--paper); }
.hero-search input[type="search"]::placeholder { color: rgba(242,241,236,0.45); }
.hero-search input[type="search"]:focus { outline: 2px solid var(--shu); outline-offset: -1px; }
.hero-search .search-btn { font-family: var(--font-latin); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; background: var(--paper); color: var(--ink); border: 1px solid var(--paper); padding: 0 30px; cursor: pointer; }
.hero-search .search-btn:hover { background: var(--shu); border-color: var(--shu); color: var(--paper); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-stats { border-left: none; padding-left: 0; } .hero-grid h1 { font-size: 2.4rem; } }

/* ---------- 共通: セクション帯・見出し ---------- */
.db-main-section, .section { background: #fff; }
.section.soft { background: var(--v3-band); }
.an-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.an-num { font-family: var(--font-latin); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; color: var(--shu); background: none; border: none; padding: 0; }
.an-head h2 { font-size: 1.5rem; font-weight: 700; margin: 0; letter-spacing: 0.02em; color: var(--ink); }
.an-note { font-size: 0.82rem; color: #55635d; margin-left: auto; }

/* ---------- Database: セグメント切替・フィルタ ---------- */
.seg-control { display: inline-flex; border: 1px solid var(--ink); background: none; }
.seg-tab { font-family: inherit; font-size: 0.86rem; font-weight: 700; color: #4a5b53; background: none; border: none; border-left: 1px solid var(--ink); padding: 12px 22px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.seg-tab:first-child { border-left: none; }
.seg-tab:hover { background: var(--paper); }
.seg-tab.active { background: var(--ink); color: var(--paper); }
.seg-count { font-family: var(--font-latin); font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums; color: #55635d; background: none; padding: 0; }
.seg-tab.active .seg-count { color: var(--rule); }
.filter-row select { font-family: inherit; font-size: 0.85rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); padding: 10px 14px; }
.db-summary { font-size: 0.8rem; color: #55635d; }

/* ---------- Database: 台帳テーブル ---------- */
.db-list { border-top: none; border-bottom: none; }
.list-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; border-top: 1px solid var(--ink); }
.list-table th { font-family: var(--font-latin); color: #55635d; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-align: left; padding: 14px 14px 11px; border-bottom: 1px solid var(--rule); white-space: nowrap; background: none; }
.list-table th:first-child { padding-left: 0; }
.list-table th.num, .list-table td.num { text-align: right; }
.list-table td { padding: 15px 14px; border-bottom: 1px solid var(--v3-hairline); vertical-align: middle; background: none; }
.list-table td:first-child { padding-left: 0; }
.list-table .list-row { cursor: pointer; }
.list-table .list-row:hover { background: var(--paper); }
.list-table .list-row.row-plain { cursor: default; }
.list-table .cell-name strong { font-size: 1rem; font-weight: 700; color: var(--ink); }
.list-table .cell-sub { display: block; font-size: 0.75rem; color: #55635d; margin-top: 2px; font-weight: 400; }
.list-table .cell-strong { font-family: var(--font-latin); font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.list-table .cell-strong small { font-size: 0.72rem; color: #55635d; margin-left: 3px; font-weight: 400; }
.list-table .cell-pct { font-family: var(--font-latin); font-variant-numeric: tabular-nums; }
.list-table .cell-rank { font-family: var(--font-latin); font-variant-numeric: tabular-nums; color: #55635d; }
.list-table .th-unit { font-size: 0.62rem; letter-spacing: 0.06em; }
.list-table .reg-link { color: var(--shu); text-decoration: underline; text-underline-offset: 3px; }
.list-legend { display: none; }
.mini-legend { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 0.66rem; letter-spacing: 0.04em; text-transform: none; font-weight: 500; }
.mini-legend i { width: 12px; height: 8px; display: inline-block; }
.mixbar { display: flex; height: 9px; width: 180px; background: var(--paper); }
.mixbar span { display: block; height: 100%; }
.mixbar .s1 { background: #A8442A; }
.mixbar .s2 { background: #C9982E; }
.mixbar .s3 { background: #12795B; flex: 1; }
.th-legend { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 0.66rem; letter-spacing: 0.04em; text-transform: none; font-weight: 500; }
.th-legend i { width: 12px; height: 8px; display: inline-block; }
.badge { border-radius: 0 !important; font-size: 0.72rem; font-weight: 700; padding: 2px 10px; white-space: nowrap; }
.badge-yes { background: none; border: 1px solid var(--ink); color: var(--ink); }
.badge-no { background: none; border: 1px solid var(--rule); color: #55635d; }
.badge-partial { background: none; border: 1px solid var(--rule); color: #55635d; }
#db-more { font-family: var(--font-latin); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; background: none; color: var(--ink); border: 1px solid var(--ink); padding: 13px 34px; cursor: pointer; }
#db-more:hover { background: var(--ink); color: var(--paper); }
.data-note { font-size: 0.8rem; color: #55635d; padding-top: 22px; border-top: 1px solid var(--rule); max-width: 980px; }

/* ---------- CTA帯 ---------- */
.cta-band { background: var(--v3-band); color: var(--ink); border: none; border-radius: 0; padding: 44px 40px; }
.cta-band h2 { color: var(--ink); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; }
.cta-band p { color: #4a5b53; }
.cta-band .btn-primary, .btn-primary { font-family: var(--font-latin); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; background: var(--ink); color: var(--paper); border: none; border-radius: 0; padding: 15px 30px; }
.cta-band .btn-primary:hover, .btn-primary:hover { background: var(--shu); color: var(--paper); }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: rgba(242,241,236,0.72); padding: 44px 0 36px; }
.footer-brand { display: flex; align-items: center; gap: 0; margin-bottom: 22px; }
.footer-brand .logo-tanso { color: var(--paper); font-size: 1.05rem; }
.footer-brand .brand-sep { background: rgba(242,241,236,0.3); height: 16px; }
.footer-brand .logo-kanji { color: var(--paper); }
.footer-bottom { font-size: 0.75rem; color: rgba(242,241,236,0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: inherit; }

/* ---------- 型2: 論説(Analysis) ---------- */
.an-chips { background: var(--paper); border-bottom: 1px solid var(--rule); display: flex; gap: 0; padding: 0; margin: 0; }
.an-chips a { font-family: var(--font-latin); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.1em; color: #4a5b53; padding: 16px 22px 14px; border-bottom: 2px solid transparent; background: none; border-radius: 0; }
.an-chips a:hover { color: var(--ink); }
.an-chips a.active { font-weight: 600; color: var(--ink); border-bottom-color: var(--shu); }
.an-section { padding: 40px 0 24px; }
.an-section:first-child { padding-top: 56px; }
.an-body { padding-top: 22px; }
.an-sub { display: flex; align-items: baseline; gap: 14px; margin: 22px 0 6px; }
.an-sub h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.an-sub span { font-size: 0.8rem; color: #55635d; }
.viz-table-toggle { font-size: 0.78rem; color: #55635d; }

/* ---------- 型3: 誌面(Journal / Article) ---------- */
.article-card { background: none; border: none; border-right: 1px solid var(--v3-hairline); border-bottom: 1px solid var(--v3-hairline); border-top: none; padding: 0; }
.article-card:hover { background: var(--paper); border-color: var(--v3-hairline); }
.article-card:hover h3 { text-decoration: none; }
.grid-3 { gap: 0; }
.article-body { padding: 28px; gap: 0; }
.card-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; padding-bottom: 0; border-bottom: none; }
.card-series { font-family: var(--font-latin); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--shu); }
.card-series::before, .card-basic .card-series::before, .card-word .card-series::before { content: none !important; }
.card-series b { color: var(--shu); margin-left: 0.25em; }
.card-date { font-size: 0.72rem; color: #55635d; font-family: var(--font-latin); }
.article-card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.6; margin: 0 0 8px; }
.article-card .excerpt { font-size: 0.85rem; color: #55635d; margin: 0; }
.article-card .article-meta { margin-top: 14px; }
.article-card .tag-cat { border: 1px solid var(--rule); color: #55635d; font-size: 0.7rem; }

/* 記事本文: 誌面型 */
.article-header { background: #fff; border-bottom: none; padding: 44px 0 0; }
.article-header h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.42; letter-spacing: 0.01em; }
#article-container { background: #fff; }
.article-content { background: none; max-width: 1120px; margin: 0 auto; padding: 44px 24px 80px; }
.article-content > * { max-width: 780px; }
.article-content > .table-wrap, .article-content > table { max-width: 100%; }
.article-content h2 { font-size: 1.3rem; font-weight: 700; line-height: 1.7; margin: 34px 0 14px; border-left: none; padding-left: 0; }
.article-content p { font-size: 1rem; line-height: 2.1; }
.article-content blockquote { border-left: 2px solid var(--shu); background: none; padding: 4px 0 4px 16px; font-size: 0.95rem; }
.article-content .note { border-top: 1px solid var(--rule); border-left: none; background: none; padding: 18px 0 0; font-size: 0.8rem; color: #55635d; margin-top: 36px; }

/* ---------- 型4: 対話(Readiness / Tools) ---------- */
.quiz-box { background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: 0; max-width: 900px; margin: 0 auto; }
.quiz-box > div, .quiz-box > .progress-track { }
.q-count { font-family: var(--font-latin); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #55635d; padding: 20px 32px 0; margin: 0; }
.q-text { font-size: 1.45rem; font-weight: 700; line-height: 1.6; letter-spacing: 0.01em; padding: 0 32px; margin: 20px 0 30px; }
.q-options { display: flex; flex-direction: column; gap: 12px; padding: 0 32px 36px; }
.q-option { font-family: inherit; text-align: left; font-size: 0.98rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 0; padding: 18px 22px; cursor: pointer; }
.q-option:hover { border-color: var(--ink); background: var(--paper); border-left: 4px solid var(--shu); padding-left: 19px; }
.progress-track { height: 4px; background: var(--rule); border-radius: 0; margin: 0; }
.progress-fill { background: var(--shu); border-radius: 0; }
.result-level { font-family: var(--font-latin); font-size: 3.2rem; font-weight: 600; color: var(--shu); padding: 0 32px; }
.result-block { padding: 0 32px; }
.result-block h4 { font-family: var(--font-latin); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--shu); }
.meter { padding: 0 32px; }
.meter span { border-radius: 0 !important; background: var(--rule); }
.meter span.on { background: var(--ink); }
.calc-field input, .contact-form select, .contact-form textarea, .tb-input, .filter-row select { border-color: var(--rule); }
.calc-kpi { border: 1px solid var(--rule); border-top: 1px solid var(--ink); background: var(--paper); }

/* ---------- 型5: 文書(About) ---------- */
.def-table { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.def-table th { border-bottom: 1px solid var(--rule); font-weight: 700; color: var(--ink); font-size: 0.9rem; letter-spacing: normal; }
.def-table td { border-bottom: 1px solid var(--rule); color: #4a5b53; }
.def-table tr:last-child th, .def-table tr:last-child td { border-bottom: none; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 0; box-shadow: none; padding: 28px; }
.card:hover { border-color: var(--ink); }
.card-num { font-family: var(--font-latin); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--shu); background: none; padding: 0; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin: 12px 0 10px; }
.card p { font-size: 0.85rem; color: #4a5b53; margin: 0; }

/* ---------- 企業ページ ---------- */
.company-hero { background: var(--ink); color: var(--paper); padding: 40px 0 48px; }
.company-hero h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.24; color: var(--paper); margin: 0 0 12px; }
.kpi-strip { background: var(--paper); border-bottom: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.kpi-strip .container { display: flex; }
.kpi-cell { flex: 1; padding: 26px 0 24px 36px; border-right: 1px solid var(--rule); }
.kpi-cell:first-child { padding-left: 0; }
.kpi-cell:last-child { border-right: none; }
.kpi-label { font-family: var(--font-latin); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #55635d; display: flex; align-items: center; gap: 10px; }
.kpi-label i { width: 20px; height: 9px; display: inline-block; }
.kpi-value { font-family: var(--font-latin); font-size: 1.9rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 10px; }
.kpi-sub { font-size: 0.76rem; color: #55635d; margin-top: 4px; }
.source-note { border-left: 2px solid var(--shu); padding-left: 16px; }
.source-note .src-label { font-family: var(--font-latin); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--shu); margin-bottom: 12px; }

/* ---------- Readiness: 開始画面(対話型) ---------- */
.quiz-start { padding: 40px 32px 44px; }
.quiz-start .q-count { padding: 0; margin: 0 0 18px; }
.quiz-start h2 { font-size: 1.6rem; font-weight: 700; line-height: 1.6; letter-spacing: 0.01em; margin: 0 0 16px; color: var(--ink); }
.quiz-start .quiz-lead { font-size: 0.92rem; color: #4a5b53; line-height: 1.9; margin: 0 0 30px; max-width: 620px; }
.quiz-start .btn-primary { display: inline-block; }
/* 結果画面: ボックス内の左右paddingを統一 */
.quiz-box .progress-track { margin: 0; }
.quiz-box > p, .quiz-box > div:not(.progress-track):not(.quiz-start) { padding-left: 32px; padding-right: 32px; }
.quiz-box .q-count { padding-top: 22px; }
.result-intro { font-size: 0.9rem; color: #55635d; margin: 0 0 6px; }
.result-level { margin: 0; padding-left: 32px; }
.result-label { font-weight: 700; color: var(--ink); margin: 6px 0 0; }
.meter { display: flex; gap: 6px; margin: 20px 0 8px; }
.meter span { flex: 1; height: 6px; display: block; }
.result-block { margin-top: 28px; }
.result-block h4 { margin: 0 0 10px; }
.result-block ol, .result-block p { margin: 0; }
.result-block ol { padding-left: 1.4em; }
.quiz-box .result-reads { padding: 0; margin-top: 14px; }
.quiz-box .btn { margin-bottom: 8px; }
.quiz-box > p:last-child { padding-bottom: 26px; }

/* ---------- 企業ページ: 脱炭素の取り組み / 関連会社 ---------- */
.init-list { display: flex; flex-direction: column; }
.init-item { padding: 18px 0; border-bottom: 1px solid var(--v3-hairline); }
.init-item:last-child { border-bottom: none; padding-bottom: 0; }
.init-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.init-tag {
  font-family: var(--font-latin); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--shu);
  border: 1px solid var(--shu); padding: 2px 8px; white-space: nowrap;
}
.init-title { font-size: 1rem; font-weight: 700; color: var(--ink); }
.init-year {
  font-family: var(--font-latin); font-size: 0.76rem; font-variant-numeric: tabular-nums;
  color: #55635d; margin-left: auto; white-space: nowrap;
}
.init-detail { font-size: 0.9rem; color: #4a5b53; line-height: 1.9; margin: 8px 0 0; }
.init-src { margin: 8px 0 0; font-size: 0.78rem; }
.init-src a { color: var(--shu); text-decoration: underline; text-underline-offset: 3px; }

.rel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.rel-item { padding: 16px 0; border-bottom: 1px solid var(--v3-hairline); }
.rel-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rel-name { font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.rel-name a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rel-name a:hover { color: var(--shu); }
.rel-tag { font-size: 0.72rem; color: #55635d; border: 1px solid var(--rule); padding: 2px 8px; white-space: nowrap; }
.rel-note { font-size: 0.84rem; color: #4a5b53; margin: 6px 0 0; }
@media (max-width: 780px) { .rel-list { grid-template-columns: 1fr; } }

/* ============================================================
   モバイル対応
   ・ヘッダー: 収まらないナビをドロワーに切り替える
   ・台帳テーブル: 行をカードに組み替える(横スクロールを避ける)
   ・チャート: 縮小して潰すのではなく、読める大きさのまま横スクロール
   ============================================================ */

/* ---------- ヘッダー: ナビの詰めとドロワー ---------- */
.nav-toggle { display: none; }

@media (max-width: 1060px) {
  .nav-app { gap: 18px; }
  .lang-switch { padding-left: 16px; }
}

@media (max-width: 900px) {
  .app-header { position: relative; z-index: 40; }
  .app-header .header-inner { height: 58px; gap: 12px; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0 10px;
    background: none;
    border: none;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .nav-toggle span:nth-child(1) { width: 22px; }
  .nav-toggle span:nth-child(2) { width: 22px; }
  .nav-toggle span:nth-child(3) { width: 14px; }
  .nav-toggle:focus-visible { outline: 2px solid var(--shu); outline-offset: 2px; }

  /* 開いているときは×印に */
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { width: 22px; transform: translateY(-6.5px) rotate(-45deg); }

  .nav-app {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 8px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 14px 28px rgba(20, 37, 30, 0.12);
  }
  body.nav-open .nav-app { display: flex; }

  .nav-app a {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    padding: 14px 24px;
    border-bottom: none;
    color: #4a5b53;
  }
  .nav-app a.active {
    border-bottom: none;
    color: var(--ink);
    background: var(--v3-accent-bg);
    box-shadow: inset 3px 0 0 var(--shu);
  }

  .lang-switch {
    border-left: none;
    border-top: 1px solid var(--rule);
    margin-top: 6px;
    padding: 16px 24px 6px;
    font-size: 0.78rem;
  }
  .lang-switch b, .lang-switch em { padding: 4px 2px; }
}

/* ---------- 見出し・余白 ---------- */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .search-hero { padding: 40px 0 38px; }
  .search-hero h1, .hero-grid h1 { font-size: 2rem; line-height: 1.32; }
  .search-hero .hero-lead, .hero-lead { font-size: 0.94rem; }
  .company-hero { padding: 30px 0 36px; }
  .company-hero h1 { font-size: 1.9rem; }
  .hero-stats .stat-num { font-size: 2.4rem; }
  .an-head h2 { font-size: 1.2rem; }
  .an-head { flex-wrap: wrap; gap: 8px 14px; }
  .an-note { margin-left: 0; width: 100%; }
  .section-head { margin-bottom: 28px; }
  .card { padding: 22px; }
}

@media (max-width: 480px) {
  .search-hero h1, .hero-grid h1 { font-size: 1.75rem; }
  .company-hero h1 { font-size: 1.6rem; }
}

/* ---------- 検索・フィルタ ---------- */
@media (max-width: 720px) {
  /* iOSは16px未満の入力欄でズームするため、実寸で指定する */
  .hero-search input[type="search"] { font-size: 16px; padding: 14px 14px; }
  .hero-search .search-btn { padding: 0 18px; font-size: 0.72rem; }

  .seg-control { display: flex; width: 100%; }
  .seg-tab { flex: 1; justify-content: center; padding: 12px 10px; font-size: 0.78rem; gap: 6px; }

  /* 1fr は minmax(auto,1fr) なので、長いplaceholderを持つ入力欄が列を押し広げる。
     等幅で割るには下限を0にする必要がある。 */
  .filter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .filter-row select, .filter-row input { width: 100%; min-width: 0; font-size: 16px; padding: 11px 12px; }
  .filter-row select#f-sort, .filter-row .filter-note { grid-column: 1 / -1; }
  /* ツールの入力欄は文言が長いので縦に積む */
  #tool-root .filter-row { grid-template-columns: minmax(0, 1fr); }

  /* iOSは16px未満の入力欄でズームするため、実寸で揃える */
  .calc-field input, .tb-input, .contact-form input,
  .contact-form select, .contact-form textarea { font-size: 16px; }
}

/* ---------- 台帳テーブル → カード ----------
   8列を横スクロールさせると読めないので、1行を1枚のカードに組み替える。
   セルの位置は grid-area で明示する(自動配置だと数値が縦に分かれてしまう)。 */
@media (max-width: 720px) {
  .list-table { display: block; border-top: none; }
  .list-table thead { display: none; }
  .list-table tbody { display: block; }
  .list-table td { display: block; padding: 0; border-bottom: none; }
  .list-table td:first-child { padding-left: 0; }

  .list-table .list-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    padding: 16px;
    margin-bottom: 10px;
    border: 1px solid var(--rule);
    background: #fff;
  }
  .list-table .list-row:hover { background: #fff; }

  .list-table .list-row .cell-name {
    grid-area: 1 / 1 / 2 / 3;
    margin-bottom: 14px;
  }
  .list-table .list-row .cell-name strong { font-size: 1.02rem; }

  /* 見出し行が無くなるぶん、数値そのものにラベルを添える */
  .list-table .list-row td.cell-strong::before,
  .list-table .list-row td.cell-pct::before {
    display: block;
    font-family: var(--font-latin);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #55635d;
    margin-bottom: 4px;
  }
  .list-table .list-row td.cell-strong::before { content: "合計"; }
  .list-table .list-row td.cell-pct::before { content: "Scope3"; }
  html[lang="en"] .list-table .list-row td.cell-strong::before { content: "Total"; }

  .list-table .list-row td.cell-strong { grid-area: 2 / 1 / 3 / 2; text-align: left; }
  .list-table .list-row td.cell-pct {
    grid-area: 2 / 2 / 3 / 3;
    text-align: right;
    font-size: 1.05rem;
    font-weight: 600;
  }
  .list-table .list-row .cell-comp { grid-area: 3 / 1 / 4 / 3; margin-top: 14px; }
  .list-table .list-row .mixbar { width: 100%; }

  /* 見出し行と一緒に凡例も隠れてしまうので、リストの先頭に出し直す */
  .list-legend {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 0.72rem;
    color: #55635d;
    margin: 0 0 12px;
  }
  .list-legend i { width: 12px; height: 8px; display: inline-block; margin-left: 9px; }
  .list-legend i:first-child { margin-left: 0; }
  .list-table .list-row > td:last-child { grid-area: 4 / 1 / 5 / 3; margin-top: 14px; }

  /* 全国データ(温対法)は列構成が違うので個別に組む */
  .list-table:has(.cell-rank) .list-row { grid-template-columns: auto 1fr auto; }
  .list-table:has(.cell-rank) .list-row .cell-rank {
    grid-area: 1 / 1 / 2 / 2;
    font-size: 0.78rem;
    text-align: left;
    padding-right: 10px;
  }
  .list-table:has(.cell-rank) .list-row .cell-name { grid-area: 1 / 2 / 2 / 4; margin-bottom: 12px; }
  .list-table:has(.cell-rank) .list-row .cell-ind {
    grid-area: 2 / 1 / 3 / 3;
    align-self: end;
    font-size: 0.82rem;
    color: #55635d;
  }
  .list-table:has(.cell-rank) .list-row td.cell-strong { grid-area: 2 / 3 / 3 / 4; text-align: right; }
  .list-table:has(.cell-rank) .list-row td.cell-strong::before { content: "排出量"; }
  html[lang="en"] .list-table:has(.cell-rank) .list-row td.cell-strong::before { content: "Emissions"; }
  .list-table:has(.cell-rank) .list-row > td:last-child { grid-area: 3 / 1 / 4 / 4; margin-top: 12px; }
}

/* ---------- 企業ページ: KPI ---------- */
@media (max-width: 720px) {
  .kpi-strip .container { display: grid; grid-template-columns: 1fr 1fr; }
  .kpi-cell {
    padding: 18px 0 16px 18px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .kpi-cell:nth-child(2n) { border-right: none; }
  .kpi-cell:nth-child(2n + 1) { padding-left: 0; }
  .kpi-cell:nth-last-child(-n + 2) { border-bottom: none; padding-bottom: 0; }
  .kpi-value { font-size: 1.5rem; }
  .kpi-label { font-size: 0.64rem; gap: 7px; }
  .kpi-label i { width: 14px; height: 8px; }
}

/* ---------- チャート: 縮小せず横スクロール ---------- */
/* グリッドの子は既定で min-width:auto のため、中身の実寸まで広がってしまう。
   0を明示しないと overflow-x:auto が効かず、ページ全体が横に伸びる。 */
.an-duo > *, .grid > * { min-width: 0; }
.viz-scroll, .table-wrap { min-width: 0; max-width: 100%; }
@media (max-width: 720px) {
  .viz-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* スクロールできることが分かるように右端をぼかす */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  }
  .viz-scroll .viz-svg { min-width: 560px; }

  /* 縦積みに切り替えたチャートは全幅で収まるので、
     スクロールも右端のぼかしも不要(残すと切れているように見える) */
  .viz-scroll:has(.viz-narrow) {
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .viz-scroll .viz-narrow { min-width: 0; }
  .viz-narrow .viz-cat-label { font-size: 12px; }
  .viz-narrow .viz-val-label { font-size: 11.5px; fill: var(--ink); font-weight: 600; }

  .an-body { padding: 26px 0 30px; }
}

/* ---------- 記事・その他 ---------- */
@media (max-width: 720px) {
  .article-content { font-size: 0.95rem; }
  /* 記事内の表は列を詰めると単語が途中で折れる。
     読める列幅を保ったまま、表だけを横スクロールさせる。 */
  .article-content .table-wrap { border: none; border-radius: 0; background: none; }
  .article-content .table-wrap table { min-width: 460px; margin-bottom: 0; font-size: 0.85rem; }
  .article-content .table-wrap { margin-bottom: 24px; }
  .article-content th, .article-content td { padding: 9px 12px; }
  .article-content h2 { font-size: 1.25rem; }
  .article-content h3 { font-size: 1.05rem; }
  .an-chips { gap: 4px 18px; }
  .an-chips a { font-size: 0.78rem; }
  .quiz-start { padding: 28px 22px 32px; }
  .quiz-start h2 { font-size: 1.3rem; }
}

/* タップ領域の下限を確保する(推奨44px)。
   タッチ対応のPCで見た目が変わらないよう、狭い画面に限定する。 */
@media (pointer: coarse) and (max-width: 900px) {
  .nav-app a, .seg-tab, .viz-table-toggle summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .lang-switch b, .lang-switch em { padding: 10px 6px; }
  .btn, .btn-primary { min-height: 44px; }
}
