/* マンション修繕ラボ 共通スタイル（試作品 v2）
   デザイン方針: クラシック／ヴィンテージ
   ― 時を経て手入れされ価値を保つもの（ヴィンテージ）と、長く住み継ぐ建物（マンション）は通じる。
   生成りの紙地・セリフ体見出し・真鍮色の二重罫・マンション外観写真の透かしで質感を作る。 */
:root {
  --ink: #2e2a24;            /* 墨に近い温かみのある黒 */
  --ink-soft: #5c5546;
  --navy: #1e4356;           /* 基調の紺（深め） */
  --navy-dark: #14303f;
  --navy-soft: #e9e6da;
  --paper: #f7f2e7;          /* 生成りの紙地 */
  --paper-deep: #efe7d6;
  --card: #fffdf6;           /* カードの白（生成り寄り） */
  --sepia: #8a6d4b;
  --brass: #a8832f;          /* 真鍮色 */
  --brass-soft: #c9ab63;
  --moss: #3f5a46;           /* 深緑 */
  --line: #d5cbb4;
  --line-dark: #b3a888;
  --warn-bg: #fbf3df;
  --warn-line: #d9b96a;
  --note: #7a5a12;
  --serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "Noto Serif JP", "MS PMincho", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 18px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  /* 紙の質感: 生成りの地に、ごく薄い横罫と斑点のグラデーションを重ねる */
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(138, 109, 75, 0.055) 1px, transparent 1.4px),
    radial-gradient(rgba(30, 67, 86, 0.04) 1px, transparent 1.4px),
    linear-gradient(rgba(138, 109, 75, 0.028) 1px, transparent 1px);
  background-size: 26px 26px, 34px 34px, 100% 5px;
  background-position: 0 0, 9px 13px, 0 0;
  line-height: 1.85;
  font-size: 1rem;
}

a { color: var(--navy); }
a:hover { color: var(--navy-dark); }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー: 紺の帯＋真鍮の二重罫。帯の背景にはマンション外観写真を透かしとして敷き、
   その上に紺を半透明で重ねてサイト名の可読性を確保する */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: hidden;
  background: var(--navy-dark);
  border-bottom: 4px double var(--brass-soft);
  color: #f3eddd;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("mansion-hero.jpg") center 38% / cover no-repeat;
  opacity: 0.4;                 /* 写真は透かしとして薄く */
  filter: sepia(0.35) saturate(0.8);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 左（ロゴ側）を濃く、右へ行くほど写真が見える紺の重ね */
  background: linear-gradient(90deg, rgba(20, 48, 63, 0.9) 0%, rgba(20, 48, 63, 0.74) 55%, rgba(20, 48, 63, 0.58) 100%);
}
.site-header .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #f3eddd;
  text-decoration: none;
  letter-spacing: 0.06em;
}
.logo span { color: var(--brass-soft); }
.logo:hover { color: #fff; }
.site-nav a {
  margin-left: 20px;
  text-decoration: none;
  font-size: 0.92rem;
  color: #d9d2bd;
  letter-spacing: 0.03em;
}
.site-nav a:hover { color: #fff; text-decoration: underline; }

/* 見出し・セクション */
main section { padding: 42px 0 8px; }
h1 {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1.55;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
h2 {
  font-family: var(--serif);
  font-size: 1.42rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 3px double var(--brass);
  position: relative;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 64px;
  border-bottom: 3px double var(--navy);
}
h3 { font-family: var(--serif); font-size: 1.12rem; margin: 0 0 8px; letter-spacing: 0.03em; }
p { margin: 0 0 14px; }
.lead { font-size: 1.08rem; color: var(--ink-soft); }

/* 装飾罫（真鍮の菱形を中心に置いた区切り） */
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px auto 0;
  max-width: 420px;
  color: var(--brass);
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--brass-soft);
}
.ornament i {
  width: 8px; height: 8px;
  background: var(--brass);
  transform: rotate(45deg);
  display: block;
}

/* ヒーロー: マンション外観写真を透かしとして薄く敷く */
.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 50px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line-dark);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("mansion-hero.jpg") center 62% / cover no-repeat;
  opacity: 0.34;               /* 写真は透かしとして薄く */
  filter: sepia(0.35) saturate(0.82);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(247, 242, 231, 0.93) 30%, rgba(247, 242, 231, 0.72) 62%, rgba(247, 242, 231, 0.45) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-frame {
  border: 1px solid var(--brass);
  outline: 3px double var(--brass-soft);
  outline-offset: 5px;
  background: rgba(255, 253, 246, 0.55);
  padding: 30px 34px 24px;
}
.hero .kicker {
  font-family: var(--serif);
  letter-spacing: 0.32em;
  font-size: 0.82rem;
  color: var(--sepia);
  margin-bottom: 10px;
}
.hero h1 { margin-bottom: 10px; color: var(--navy-dark); font-size: 2.05rem; }
.hero h1 .nw { white-space: nowrap; }
.hero .sub {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--sepia);
  margin-bottom: 10px;
}

/* ページヒーロー（シミュレーター等の下層ページ） */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 32px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line-dark);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("mansion-hero.jpg") center 30% / cover no-repeat;
  opacity: 0.22;
  filter: sepia(0.35) saturate(0.82);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(247, 242, 231, 0.94) 35%, rgba(247, 242, 231, 0.78) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .kicker {
  font-family: var(--serif);
  letter-spacing: 0.32em;
  font-size: 0.8rem;
  color: var(--sepia);
  margin-bottom: 8px;
}
.page-hero h1 { color: var(--navy-dark); margin-bottom: 10px; }

/* セクションの背景帯: コンテナ幅を超えて帯を敷き、章の区切りを明確にする
   （情報量の多い類似サイトが背景色の切り替えで章を作っていることからの学び） */
.band {
  background: var(--paper-deep);
  box-shadow: 0 0 0 100vmax var(--paper-deep);
  clip-path: inset(0 -100vmax);
  padding-top: 48px;
  padding-bottom: 36px;
}

/* 写真の帯: セクション間にマンション外観写真を細く挟み、質感と区切りを両立させる */
.photo-band {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: 110px;
  margin-top: 36px;
  background: url("mansion-hero.jpg") center 45% / cover no-repeat;
  filter: sepia(0.35) saturate(0.85);
  border-top: 4px double var(--brass);
  border-bottom: 4px double var(--brass);
}
/* 別カット（バルコニー側外観）を使う帯 */
.photo-band.facade {
  background-image: url("mansion-facade.jpg");
  background-position: center 58%;
}

/* 下層ページのヒーロー別カット（エントランスのアプローチ） */
.page-hero.entrance::before {
  background-image: url("mansion-entrance.jpg");
  background-position: center 68%;
}

/* 静かな導線リンク: セクションの区切りで、押しつけずに次の行動を示す */
.quiet-cta { text-align: center; margin: 20px 0 6px; }
.quiet-cta a {
  font-family: var(--serif);
  color: var(--sepia);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-soft);
  padding-bottom: 2px;
  letter-spacing: 0.04em;
}
.quiet-cta a:hover { color: var(--navy-dark); border-bottom-color: var(--navy); }

/* キーボード操作時のフォーカス表示（読みやすさ・操作のしやすさのため） */
a:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}
::selection { background: #e9dcb2; }

/* カード */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 16px;
}
.card {
  border: 1px solid var(--line-dark);
  border-top: 4px double var(--brass);
  border-radius: 3px;
  padding: 22px 20px;
  background: var(--card);
  box-shadow: 0 2px 6px rgba(62, 50, 30, 0.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 6px 16px rgba(62, 50, 30, 0.14); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 10px; }
.badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: 2px;
  background: var(--moss);
  color: #fff;
  margin-bottom: 10px;
}
.badge.soon { background: #93876c; }

/* ボタン */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 3px;
  font-size: 1.05rem;
  border: none;
  border-bottom: 3px solid var(--brass);
  cursor: pointer;
  letter-spacing: 0.04em;
}
.btn:hover { background: var(--navy-dark); color: #fff; }
.btn.disabled {
  background: #a99f88;
  border-bottom-color: #8a8069;
  cursor: not-allowed;
  pointer-events: none;
}

/* お悩みリスト */
.worries { list-style: none; padding: 0; margin: 0 0 16px; }
.worries li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sepia);
  border-radius: 3px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

/* 理念: 背景に写真の透かしをうっすら重ねる */
.philosophy {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: 26px 28px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(62, 50, 30, 0.08);
}
.philosophy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("mansion-hero.jpg") right center / cover no-repeat;
  opacity: 0.07;               /* 透かし */
  filter: sepia(0.4) saturate(0.8);
  pointer-events: none;
}
.philosophy > * { position: relative; }
.philosophy .core {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: 0.03em;
}
.philosophy .vintage-note {
  border-left: 3px solid var(--brass);
  padding-left: 14px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item dt { font-weight: 700; margin-bottom: 6px; }
.faq-item dd { margin: 0; color: var(--ink-soft); }
dl.faq { margin: 0 0 16px; }

/* フォーム */
.form-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.form-table th, .form-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.form-table th { width: 46%; font-weight: 600; }
.form-table .unit { color: var(--ink-soft); font-size: 0.9rem; }
.req {
  color: #fff; background: #a34a38;
  font-size: 0.75rem; padding: 1px 8px; border-radius: 999px; margin-left: 6px;
}
.opt {
  color: var(--ink-soft); background: var(--paper-deep);
  font-size: 0.75rem; padding: 1px 8px; border-radius: 999px; margin-left: 6px;
}
input[type="text"], input[type="email"], input[type="number"] {
  width: 100%;
  max-width: 300px;
  font-size: 1.05rem;
  padding: 10px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: #fffef9;
  color: var(--ink);
}
textarea {
  width: 100%;
  max-width: 560px;
  font-size: 1.05rem;
  padding: 10px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: #fffef9;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
}
select {
  font-size: 1.05rem;
  padding: 10px 12px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  background: #fffef9;
  color: var(--ink);
}
input::placeholder { color: #a3987f; }
.hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; }

.alert {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--note);
  border-radius: 3px;
  padding: 12px 16px;
  margin: 14px 0;
  display: none;
}
.error {
  background: #f9ece7;
  border: 1px solid #cf9a86;
  color: #8c2f2f;
  border-radius: 3px;
  padding: 12px 16px;
  margin: 14px 0;
  display: none;
}

/* 結果 */
.result-box {
  border: 1px solid var(--brass);
  outline: 3px double var(--brass-soft);
  outline-offset: 4px;
  border-radius: 3px;
  padding: 26px;
  margin: 24px 0;
  display: none;
  background: var(--card);
}
.result-box h2 { border-bottom-color: var(--brass); }
.result-main {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.result-main .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-dark);
}
.result-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.result-table th, .result-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
.result-table th { background: var(--paper-deep); width: 52%; font-weight: 600; }
.result-table td { text-align: right; font-variant-numeric: tabular-nums; }
.note-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 14px;
}
.note-box p:last-child { margin-bottom: 0; }

/* メール登録（ダミー） */
.mail-box {
  border: 1px dashed var(--sepia);
  border-radius: 3px;
  padding: 22px;
  margin: 20px 0;
  background: #fffdf4;
}
.dummy-note { font-size: 0.82rem; color: var(--note); }

/* 法定ページ（特商法表記・プライバシーポリシー等） */
.law-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.law-table th, .law-table td {
  padding: 12px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.law-table th { background: var(--paper-deep); width: 34%; font-weight: 600; }
.legal-body h3 { margin-top: 28px; }
.legal-body p, .legal-body li { color: var(--ink); }
.placeholder {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--note);
  border-radius: 3px;
  padding: 1px 8px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.draft-note {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  color: var(--note);
  border-radius: 3px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.92rem;
}

/* フッター: 紺の帯＋真鍮罫 */
.site-footer {
  border-top: 4px double var(--brass-soft);
  margin-top: 60px;
  padding: 30px 0 38px;
  background: var(--navy-dark);
  font-size: 0.9rem;
  color: #cfc7ae;
}
.site-footer nav { margin-bottom: 12px; }
.site-footer nav a { margin-right: 18px; color: #d9d2bd; text-decoration: none; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.prototype-tag {
  display: inline-block;
  font-size: 0.78rem;
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--note);
  border-radius: 3px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: middle;
  font-family: var(--sans);
  letter-spacing: 0;
}

/* スマホ対応 */
@media (max-width: 640px) {
  html { font-size: 17px; }
  h1 { font-size: 1.55rem; }
  .hero h1 { font-size: 1.62rem; }
  h2 { font-size: 1.25rem; }
  .hero { padding: 38px 0 34px; }
  .hero-frame { padding: 22px 20px 16px; }
  .form-table th, .form-table td { display: block; width: 100%; border-bottom: none; padding: 6px 0; }
  .form-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  input[type="text"], input[type="email"], input[type="number"] { max-width: 100%; }
  .site-nav a { margin-left: 12px; }
  .result-main .num { font-size: 1.7rem; }
}

/* 印刷時（理事会での紙配布を想定）: 透かし写真は印刷しない */
@media print {
  .site-nav, .mail-box, .btn, .photo-band, .quiet-cta { display: none; }
  .site-header { position: static; }
  .hero::before, .page-hero::before, .philosophy::before, .site-header::before, .site-header::after { display: none; }
  .hero, .page-hero { background: #fff; }
  .hero-frame { background: #fff; }
  .site-header, .site-footer { background: #fff; color: #000; }
  .logo, .site-footer, .site-footer nav a { color: #000; }
  body { font-size: 12pt; background: #fff; }
}

/* 劣化セルフチェック（check.html） */
.check-group {
  background: var(--card);
  border: 1px solid var(--line-dark);
  border-top: 4px double var(--brass);
  border-radius: 3px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(62, 50, 30, 0.08);
}
.check-group h3 { margin-bottom: 6px; }
.check-group .group-note { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 10px; }
.check-items { list-style: none; padding: 0; margin: 0; }
.check-items li { border-bottom: 1px solid var(--line); }
.check-items li:last-child { border-bottom: none; }
.check-items label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 4px;
  cursor: pointer;
  line-height: 1.7;
}
.check-items input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 5px;
  flex: none;
  accent-color: var(--navy);
  cursor: pointer;
}
.check-result-list { margin: 0 0 6px; padding-left: 1.2em; }
.check-result-list li { margin-bottom: 4px; }
.check-actions { margin-top: 18px; }
.check-actions .btn { margin-right: 12px; }

@media print {
  /* チェック結果は印刷して理事会で共有できるようにする */
  .check-result { display: block !important; }
  .check-actions { display: none; }
  .check-group { box-shadow: none; break-inside: avoid; }
}

/* ===== 総会決議要件チェッカー（resolution.html）／設備の修繕周期めやす表（cycles.html）用 ===== */
/* 選択肢リスト（ラジオボタン版。チェックリストの見た目を流用） */
.check-items input[type="radio"] {
  width: 22px;
  height: 22px;
  margin-top: 5px;
  flex: none;
  accent-color: var(--navy);
  cursor: pointer;
}

/* 一覧表（周期表など、数値でない情報を並べる表） */
.data-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.data-table th, .data-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.data-table thead th { background: var(--navy); color: #fff; font-weight: 600; text-align: left; }
.data-table tbody th { background: var(--paper-deep); font-weight: 600; width: 30%; }
.data-table td .sub { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-top: 2px; }

/* 状態チップ（周期との位置関係など） */
.chip {
  display: inline-block;
  font-size: 0.82rem;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip-before { background: var(--paper-deep); color: var(--ink-soft); border: 1px solid var(--line-dark); }
.chip-now { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--note); font-weight: 700; }
.chip-past { background: #a34a38; color: #fff; font-weight: 700; }

/* 築年数などの簡易フォーム */
.inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.inline-form input[type="number"] { max-width: 140px; }
.inline-form .unit { color: var(--ink-soft); }

@media print {
  .no-print { display: none !important; }
  .data-table { font-size: 10.5pt; }
  .chip { border: 1px solid #000; background: #fff; color: #000; }
}

/* ===== 簡易長期修繕計画ツール（plan.html）用 ===== */
.result-table td.left { text-align: left; }
.verdict-line { font-family: var(--serif); font-size: 1.12rem; }
.verdict {
  display: inline-block;
  font-weight: 700;
  padding: 2px 14px;
  border-radius: 3px;
  white-space: nowrap;
}
.verdict.v-ok { background: var(--moss); color: #fff; }
.verdict.v-mid { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--note); }
.verdict.v-low { background: #a34a38; color: #fff; }

/* 目安との位置を示すメーター */
.meter {
  position: relative;
  height: 26px;
  background: var(--paper-deep);
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  margin: 36px 0 34px;
}
.meter-zone { position: absolute; top: 0; bottom: 0; }
.meter-zone.zone-low { background: rgba(163, 74, 56, 0.32); border-radius: 3px 0 0 3px; }
.meter-zone.zone-mid { background: rgba(217, 185, 106, 0.45); }
.meter-zone.zone-ok { background: rgba(63, 90, 70, 0.32); border-radius: 0 3px 3px 0; }
.meter-tick {
  position: absolute;
  top: -4px; bottom: -4px;
  width: 0;
  border-left: 2px solid var(--ink-soft);
}
.meter-tick span {
  position: absolute;
  top: -25px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.meter-marker {
  position: absolute;
  top: -7px; bottom: -7px;
  width: 0;
  border-left: 3px solid var(--navy-dark);
}
.meter-marker span {
  position: absolute;
  bottom: -27px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-dark);
  white-space: nowrap;
}

/* 30年計画表 */
.plan-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 0.94rem;
}
.plan-table th, .plan-table td {
  border: 1px solid var(--line);
  padding: 7px 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.plan-table thead th {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-weight: 600;
}
.plan-table td.left, .plan-table th.left { text-align: left; }
.plan-table tr.repair-year { background: var(--warn-bg); }
.plan-table td.neg { color: #8c2f2f; font-weight: 700; }

@media print {
  .plan-table { font-size: 9pt; }
  .plan-table th, .plan-table td { padding: 4px 6px; }
  .meter { margin: 32px 0 36px; }
  .verdict { background: #fff; color: #000; border: 1px solid #000; }
}
