/* 2025-08-30 07:04(UTC+09:00) */
/* === hosho.css =============================================== */

/* 1. 変数 ------------------------------------------------------ */
:root {
  --coverage-icon-size: 200px;
}
@media (max-width: 600px) {
  :root {
    --coverage-icon-size: 200px;
  }
}

/* 2. coverage-item -------------------------------------------- */
.coverage-item {
  display: block;
  overflow: hidden;
  margin: 0;
}

/* 3. アイコンエリア ------------------------------------------- */
.coverage-icon {
  float: right;
  width: var(--coverage-icon-size);
  margin: 0;
  padding: 0.5rem 1rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.coverage-icon img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .coverage-icon {
    float: none;
    margin: 0;
  }
  .hide-sm {
    display: none !important;
  }
}

/* 4. テキスト -------------------------------------------------- */
.coverage-item h3 {
  font-size: 2rem;
  /* ▼上下の余白を常に同一に（従来の「下0.8rem」に合わせて上も0.8rem） */
  margin: 0.8rem 0;
  color: #0057a4;
}
.coverage-text strong {
  color: #a50000;
}
.coverage-text > ul:not(.footnotes) {
  list-style: disc outside;
  margin: 0.6rem 0 0.6rem 1.6em;
  padding-left: 0;
  text-indent: 0;
}

/* 4‑A. 見出し直後の上マージン打消し（兄弟間相殺で h3 の下 0.8rem を確実化） */
.coverage-item .coverage-text > h3 + * {
  margin-top: 0;
}

/* 5. ご注意ボックス ------------------------------------------- */
.notice {
  background: #fff9e5;
  border: 2px solid #ffd36b;
  border-radius: 8px;
  padding: 2rem 0;
  margin: 0;
}
.notice ul {
  list-style: disc outside;
  margin-left: 1.6em;
  padding-left: 0;
  text-indent: 0;
}

/* 6. 付帯サービス --------------------------------------------- */
.services ul {
  list-style: disc outside;
  margin: 0.6rem 0 0.6rem 1.6em;
  padding-left: 0;
}
.services .note {
  font-size: 1.6rem;
  color: #555;
  margin-top: 1rem;
}

/* 7. coverage セクション余白 ----------------------------------- */
#coverage-detail {
  padding: 0.8rem 0 0;
}
#coverage-detail .coverage-item:last-child {
  margin-bottom: 0;
}

/* 8. Hero セクションとの間隔 ---------------------------------- */
.hero {
  margin-bottom: 0.8rem;
}

/* 9. インデックスタブ ----------------------------------------- */
.index-tabs {
  border: 2px solid #0057a4;
  border-radius: 8px;
  overflow: hidden;
}
.tab-list {
  display: flex;
  border-bottom: 4px solid #0057a4;
}
/* hosho.css – タブボタン（iOS Edge 対策） */
.tab-button {
  flex: 1 1 50%;
  padding: 1rem 0.5rem;  
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.6;
  text-align: center;
  border: none;
  background: #f2f8ff;
  cursor: pointer;
}
@media (max-width: 600px) {
  .tab-button {
    font-size: 1.8rem;
  }
}
.tab-button[aria-selected="true"] {
  background: #0057a4;
  color: #fff;
}
[role="tabpanel"] {
  padding: 2rem 1.6rem;
}
.tab-list {
  border-bottom: 2px solid #0057a4;
}
#tab-pay > .section-title {
  margin-top: 2.4rem;
}

/* 10. 「支払わない場合」リスト ------------------------------- */
#tab-nopay li,
#tab-nopay li ul li {
  list-style: disc outside;
  margin-left: 1.6em;
  padding-left: 0;
  text-indent: 0;
}
#tab-nopay .coverage-item:first-child {
  margin-top: 2.4rem;
}

/* 10‑A. 「支払う場合」リスト — iPhoneで●が消える件の基準（PC/非iOS） */
#tab-pay .coverage-text > ul:not(.blue-bullets):not(.footnotes):not(.footnotes-hosho) > li {
  list-style: disc outside; /* ← UL が list-style:none でも LI 側で●を復元（iOSでは後段で上書き） */
}

/* 11. 青色マーカー付きリスト ---------------------------------- */
.blue-bullets {
  list-style: disc outside;
  margin: 0.6rem 0 0.6rem 1.6em;
  padding-left: 0;
}
.blue-bullets li {
  position: static;
  padding-left: 0;
  text-indent: 0;
}
.blue-bullets li::marker {
  color: #0057a4;
  font-size: 1rem;
}
.blue-bullets li::before {
  content: none;
}

/* 12. 脚注リスト（共通部は common.css に統合済み） ------------ */
.footnotes-hosho li {
  padding-left: 2.4em;
  text-indent: 0;
}
.footnotes-hosho li::marker {
  content: "";
}
.footnotes-hosho.start-at-1 {
  counter-reset: fn 0;
}

/* 13. タブ2 左右余白調整 -------------------------------------- */
#tab-nopay .coverage-item {
  margin-left: 0;
  margin-right: 0;
}
.footnotes-hosho li {
  padding-left: 2.4em !important;
}
@media (max-width: 600px) {
  .coverage-item .coverage-icon {
    padding-top: 0;
  }
  .coverage-item p:last-child {
    margin-bottom: 0;
  }
}
#notice-70plus {
  margin-top: 2.4rem;
}
@media (max-width: 600px) {
  /* 「支払う場合」タブ内：先頭が coverage-text（＝アイコン無し）の項目だけに上余白を足す
     ※ 累積反映：1.8rem → 1.0rem */
  #tab-pay .coverage-item + .coverage-item > .coverage-text:first-child {
    padding-top: 1rem;
  }
}

/* 14. coverage-item内のリスト余白調整 ------------------------- */
/* 1) 通常のULは左余白をゼロ（上下は現状どおり） */
.coverage-item .coverage-text > ul:not(.blue-bullets):not(.footnotes):not(.footnotes-hosho) {
  margin: 0.6rem 0;  /* 上下は従来と同等 */
  padding-left: 0;
}

/* 「支払わない場合」タブのトップレベルULは、liに乗っている左マージンを相殺 */
#tab-nopay .coverage-item .coverage-text > ul > li {
  margin-left: 0;
}

/* 2) 青マーカー付き（ネストの）リストは、左インデントを「少しだけ」増やす */
.blue-bullets {
  margin-left: 2.0em; /* 既存 1.6em → 2.0em に微増 */
}

/* 「支払わない場合」タブ全体の li 左マージンが .blue-bullets 内にも波及するため抑止 */
#tab-nopay .blue-bullets li {
  margin-left: 0;
}

/* coverage-item 内の通常UL：左詰め + 黒丸（●）を確実に表示 */
.coverage-item .coverage-text > ul:not(.blue-bullets):not(.footnotes):not(.footnotes-hosho) {
  margin: 0.6rem 0;       /* 左マージンは付けない */
  padding-left: 0;        /* 左詰め維持 */
  list-style: disc outside;/* outside→inside で overflow でも消えない */
}

/* タブ2（支払わない）のトップレベル UL 直下の li に付く左マージンを相殺（左詰め維持） */
#tab-nopay .coverage-item .coverage-text > ul:not(.blue-bullets) > li {
  margin-left: 0;
}

/* ご要望どおり .blue-bullets は少しだけ左インデントを深くする */
.blue-bullets { 
  margin-left: 2em; /* 既定 1.6em → 2.0em に微増 */
}
/* タブ2の全体 li 左マージンが波及するのを防止 */
#tab-nopay .blue-bullets li {
  margin-left: 0;
}

/* === bullets wrap fix (2行目が●の下に潜らないように) ======= */
/* 1) coverage本文の通常ULは「outside」に戻す（左詰めは維持） */
.coverage-item .coverage-text > ul:not(.blue-bullets):not(.footnotes):not(.footnotes-hosho) {
  margin: 0.6rem 0;      /* 左0のまま（= 左詰め） */
  padding-left: 0;       /* 左詰め維持 */
  list-style: disc outside; /* ← inside から outside に戻す */
}

/* 2) タブ2で inside を強制していた指定を打ち消す（左詰めは維持） */
#tab-nopay .coverage-item .coverage-text > ul:not(.blue-bullets) > li {
  list-style-position: outside; /* ← inside の上書き */
  margin-left: 0;               /* 左詰め維持 */
}

/* 3) マーカーのクリップ防止（すでに末尾に入っていればこのままでOK） */
.coverage-item {
  overflow: visible;  /* 既存の overflow: hidden を上書き */
  display: flow-root; /* フロートの囲い込み。レイアウトは従来どおり */
}

/* === bullets left gutter (match tabpanel right padding) ====== */
/* タブ内の coverage 本文にある “通常UL” の左側に 1.6rem の内側余白を付与 */
.index-tabs [role="tabpanel"] .coverage-text > ul:not(.blue-bullets):not(.footnotes):not(.footnotes-hosho) {
  list-style: disc outside; /* 折返しはこれまで通り（●の下に文字が入らない） */
  margin: 0.6rem 0;         /* 上下は従来どおり */
  padding-left: 1.6rem;     /* ← 左側の余白を追加（右と同程度に） */
}

/* タブ2で li に付与されている左マージンをトップレベルに限って相殺しておく */
#tab-nopay .coverage-item .coverage-text > ul:not(.blue-bullets) > li {
  margin-left: 0;
}
