/* Asia/Tokyo, 2025-09-12 10:53(UTC+09:00) */
/* =========================================================
   amount.css – 家財「保険金額」ページ（完全版）
   ========================================================= */


/* ---------------------------------------------------------
   0) ページトークン（色・間隔・タイポ）
   --------------------------------------------------------- */
:root {
  --amt-green: var(--brand);
  --amt-green-soft: #e8f6ee;
  --amt-green-btn: var(--brand); /* あるいは var(--brand-strong) */
  --amt-red: var(--danger);
  --amt-orange: #ff6e00;
  --amt-border: var(--border);
  --amt-gray-bg: #f7f7f7;

  /* フォント（common 未定義時は流体で保険） */
  --amt-fs-base: var(--fs-base, clamp(1.6rem, 1.5rem + 0.3vw, 1.8rem));
  --amt-fs-lead: var(--fs-base, clamp(1.6rem, 1.5rem + 0.4vw, 1.9rem));

  --amt-radius: var(--radius, .5rem);
  --amt-gap: 1.6rem;
}


/* ---------------------------------------------------------
   1) セクションレイアウト（左右余白は内側コンテナに統一）
   --------------------------------------------------------- */
.amount-section {
  padding: 2rem 0 0;
  margin-block-start: 0;
  background: var(--clr-bg-section, var(--flow-bg));
}
.amount-section > .container {
  /* max-width / padding-inline は .container に任せる（common.css） */
  margin-inline: auto;     /* 中央寄せを維持 */
  margin-block-end: 1rem;  /* 下だけ余白 */
}
.amount-section .section-title { margin-top: 0; }


/* ---------------------------------------------------------
   2) タイポグラフィ
   --------------------------------------------------------- */
.amount-lead {
  font-size: var(--amt-fs-lead);
  line-height: 1.6;
  font-weight: 700;
  margin: 0 0 1.6rem;
  white-space: normal;
}
.caution {
  color: var(--amt-orange);
  font-size: var(--amt-fs-base);
  margin: 0 0 1.2rem;
}
.note-list {
  margin: 0 0 1.6rem;
  padding-left: 1.4em;
  font-size: var(--amt-fs-base);
  line-height: 1.6;
}
.note-list li { list-style: disc; }

/* 注釈（※1,※2…）の自動採番ブロック */
.amount-terms-paragraphs {
  counter-reset: note;
  font-size: var(--amt-fs-base);
  line-height: 1.4;
}
.amount-terms-paragraphs p {
  counter-increment: note;
  padding-left: 2.4em;
  text-indent: -2.4em;
  margin: 0 0 1rem;
}
.amount-terms-paragraphs p::before {
  content: "※" counter(note) "　";
  color: var(--amt-red);
}


/* ---------------------------------------------------------
   3) 右寄せ画像（他セクションで使用）
   --------------------------------------------------------- */
.amount-img-right {
  float: right;
  margin: 0 0 1rem 1.6rem;
  width: 220px;
  max-width: 45%;
  height: auto;
}
@media (max-width: 600px) {
  .amount-img-right {
    display: block;
    float: none;
    margin: 0 auto 1.6rem;
    width: 180px;
    max-width: 70%;
  }
}

/* --- SP時の回り込み（amount-intro 内のみ上書き） -----------------
   既定では SP で中央配置に切り替えているが、本セクションに限り
   画像を縮小しつつ右回り込みを維持する。 */
@media (max-width: 600px) {
  .amount-intro .amount-img-right {
    float: right;
    display: block;
    /* 上0.2 / 右0 / 下0.8 / 左1rem で本文が読みやすい余白に */
    margin: 0.2rem 0 0.8rem 1rem;
    /* 端末幅に応じて穏やかに縮む（120–180pxの範囲） */
    width: clamp(120px, 42vw, 180px);
    max-width: 48%;
    /* 回り込みの形状を滑らかに（非対応ブラウザは無視される） */
    shape-outside: margin-box;
  }
}


/* ---------------------------------------------------------
   4) 免責金額 UI（非インタラクティブな長方形）
   --------------------------------------------------------- */
.deductible-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--amt-border);
  padding: 1rem;
  background: #fff;
}
@media (max-width: 600px) {
  .deductible-box { grid-template-columns: 1fr; }
}
.deductible-label { font-weight: 700; }

.deductible-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.8rem;
  width: 100%;
}

/* 見た目だけの長方形。.deductible-btn が残っていても同じ見た目に */
.deductible-chip,
.deductible-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.8rem 0;
  font-size: var(--amt-fs-base);
  font-weight: 700;
  background: var(--amt-green-btn);
  color: #fff;
  /* 角丸をなくして完全な長方形にしたい場合は 0 に */
  border-radius: var(--amt-radius);
  /* ボタンらしさを消す */
  border: none;
  box-shadow: none;
  cursor: default;
  user-select: text;
  appearance: none;
}
/* 余計なボタン挙動を無効化（hover/active/focus 過多を避ける） */
.deductible-btn:hover,
.deductible-btn:active,
.deductible-btn:focus,
.deductible-chip:hover,
.deductible-chip:active,
.deductible-chip:focus {
  opacity: 1;
  outline: none;
}

/* 注意文内のインライン表示（従来どおり） */
.deductible-inline {
  display: inline-block;
  background: var(--amt-green-btn);
  color: #fff;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: var(--amt-radius);
  margin-right: 0.4rem;
  line-height: 1.6;
  white-space: nowrap;
}


/* ---------------------------------------------------------
   5) 注意行（⚠）
   --------------------------------------------------------- */
.triangle-note {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: 1.4rem 0;
  background: var(--amt-green-soft);
  border-left: 6px solid var(--amt-green);
  padding: 0.8rem 1rem;
  border-radius: 0 var(--amt-radius) var(--amt-radius) 0;
}
.triangle-icon {
  color: #ffc105;
  font-size: clamp(1.8rem, 1.6rem + 0.6vw, 2.2rem);
  line-height: 1.2;
  margin: 0.2rem 0.4rem 0 0;
}
.triangle-text {
  margin: 0;
  font-size: var(--amt-fs-base);
  line-height: 1.6;
}


/* ---------------------------------------------------------
   6) 評価表（再調達価額）
   --------------------------------------------------------- */
.valuation-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: var(--amt-fs-base);
  text-align: center;
  table-layout: fixed;
  border: 1px solid var(--amt-border);
  background: #fff;
}
.valuation-table th,
.valuation-table td {
  border: 1px solid var(--amt-border);
  padding: 0.6rem;
}
.valuation-table thead th {
  background: var(--amt-green);
  color: #fff;
  font-weight: 500;
}
.valuation-table thead th:not(:last-child) { border-right: 1px solid #fff; }
.valuation-table tbody tr:nth-child(even) { background: #f0fffa; }
.valuation-table th img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto 0.4rem;
}
@media (max-width: 600px) {
  .valuation-table th img { height: 50px; }
}
.corner-cell .corner-top { display: inline-block; }
.head-blue  { background: #2974DD !important; }
.head-green { background: #A56824 !important; }
.head-pink  { background: #BC4F8B !important; }


/* ---------------------------------------------------------
   7) カード（他セクション：明記物件など）
   --------------------------------------------------------- */
.flex-two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--amt-gap);
  margin-top: 2rem;
}
.flex-two-column.uneven { grid-template-columns: 1fr 1.5fr; }
@media (max-width: 600px) {
  .flex-two-column.uneven { grid-template-columns: 1fr; }
}
.card {
  padding: 1.2rem;
  border: 1px solid var(--amt-border);
  border-radius: var(--amt-radius);
  background: #fefefe;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.card.good { background: #fdeee9; }
.card.bad  { background: #fff6fb; }
.card-ttl {
  font-size: var(--amt-fs-base);
  margin: 0;
  font-weight: 700;
  text-align: center;
}
.card.good .card-ttl {
  background: #B15E53;
  color: #fff;
  padding: 1rem;
  border-radius: var(--amt-radius) var(--amt-radius) 0 0;
}
.card.bad .card-ttl {
  background: #565656;
  color: #fff;
  padding: 1rem;
  border-radius: var(--amt-radius) var(--amt-radius) 0 0;
}
.card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card li {
  flex: 0 1 120px;
  text-align: center;
  font-size: var(--amt-fs-base);
}
.card img {
  width: 64px;
  height: auto;
  margin: 0 auto 0.2rem;
}


/* ---------------------------------------------------------
   8) 支払対象外などの注記ボックス
   --------------------------------------------------------- */
.no-pay {
  margin: 1.6rem 0;
  background: var(--amt-gray-bg);
  padding: 1rem;
  border-left: 8px solid #f57b63;
  font-size: var(--amt-fs-base);
  line-height: 1.6;
}


/* ---------------------------------------------------------
   9) 参考注釈（このページ内ブロック微調整）
   --------------------------------------------------------- */
.reference-notes { margin-top: 1rem; }
.annotation-paragraphs p { margin: 0.2rem 0; }


/* ---------------------------------------------------------
   10) モバイル微調整
   --------------------------------------------------------- */
@media (max-width: 600px) {
  .amount-lead,
  .deductible-chip,
  .deductible-btn {
    font-size: var(--amt-fs-base);
  }

  /* 免責金額チップの上下余白を圧縮（左右は元から0） */
  .deductible-chip,
  .deductible-btn {
    padding: 0.5rem 0; /* was 0.8rem 0 */
    line-height: 1.25;
  }
}
