/* 2025-08-30 18:32(UTC+09:00) */
/* === index.css ============================================== */

/* ---- モバイル用バッジ ---- */
.mobile-badges {
  display: none;
}

/* ================================================ */
/* 共通ハイライト                                    */
/* ================================================ */
.hl {
  background: #f0fffa;
  color: #009762;
  padding: 0 0.2em;
}
.hl-liability {
  background: #e9f4ff;
  color: #0057a4;
  padding: 0 0.2em;
}
.hl-golf {
  background: #fff8e5; /* 既存ゴルフブロックと同じ淡い黄色 */
  color: #c68a00; /* ゴルフ系アクセントカラー */
  padding: 0 0.2em;
}

/* ------------------------------------------------- */
/* 1. Layout – Plans                                 */
/* ------------------------------------------------- */
.plans {
  padding: 3rem 0;
  margin: 0;
}
.plans-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.plan-card {
  background: #fdffdf;
  border: 2px solid #117713;
  border-radius: 8px;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 0; /* gap: 0 で密着 */
  text-align: center;
}
.plan-card > header {
  margin-bottom: 2rem;
}
.plan-card h3 {
  font-size: 2rem;
  color: #ff0000;
  margin-bottom: 0.8rem;
}
.plan-card .btn-secondary {
  margin-top: 2rem;
}
.plan-price {
  font-size: 3.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.6;
  white-space: nowrap;
}
.plan-price.small {
  font-size: 1.8rem;
  font-weight: 400;
}
.plan-price strong {
  font-size: 4rem;
  line-height: 1.2;
}
.feature-group {
  --group-color: #009762;
  border: 1px solid var(--group-color, #009762);
  border-radius: 8px;
  padding: 1rem 0.8rem 0.8rem;
  margin: 0 0 2.6rem 0;
  background: #fff;
  padding-bottom: 0 !important;
}
.feature-group + .plan-plus {
  margin-top: 0;
}
.plan-card .feature-group {
  margin-bottom: 0 !important;
}
.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plan-features li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-left: 0;
  margin-bottom: 0.5rem;
}
.plan-features li:last-child {
  margin-bottom: 0 !important;
}
.feature-label {
  flex: 1 1 auto;
  text-align: left;
  line-height: 1.6;
  word-break: keep-all;
}
.amount {
  min-width: 6.5ch;
  text-align: right;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.6;
}
@media (max-width: 320px) {
  .feature-label {
    overflow-wrap: anywhere;
  }
}
.btn-secondary {
  font-size: 2rem;
  display: inline-block;
  padding: 1rem 2.4rem;
  border: 2px solid #117713;
  border-radius: 4px;
  font-weight: 700;
  color: #fff;
  background: #117713;
  transition: 0.2s;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #117713;
  color: #fff;
}
.plan-plus {
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: #e05a00;
  margin: 0;
  padding: 0;
}

/* ---- プラン内グループ色分け ---- */
.injury-cover {
  --group-color: #009762;
  background: #f0fffa;
}
.liability-cover {
  --group-color: #0057a4;
  background: #e9f4ff;
}
.golf-cover {
  --group-color: #c68a00;
  background: #fff8e5;
}
.group-title {
  margin: 0 0 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--group-color);
}
.golf-cover .group-title {
  color: var(--group-color);
}
.injury-cover-p {
  --group-color: #009762;
  background: #fff;
  font-size: 2rem;
  line-height: 1.6;
}

/* 2. Layout – Coverage */
.coverage-summary {
  background: #fff;
}
.coverage-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 1.6rem;
}
.coverage-title .title-hl {
  color: #009762;
}
.coverage-content {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 2fr 2fr;
}
@media (min-width: 769px) {
  .coverage-content {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "golf liability"
      "injury liability";
  }
  .golf-block {
    grid-area: golf;
  }
  .injury-block {
    grid-area: injury;
  }
  .liability {
    grid-area: liability;
  }
  .mobile-plus {
    display: none !important;
  }
}
@media (max-width: 800px) {
  .coverage-content {
    grid-template-columns: 1fr;
  }
  .coverage-badges {
    grid-template-columns: 1fr;
  }
  .coverage-badges .plus,
  .coverage-badges .badge.blue {
    display: none;
  }
  .mobile-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
  }
  .mobile-badges .badge {
    width: 100%;
    box-sizing: border-box;
  }
  .risk-images {
    flex-direction: column;
    align-items: center;
  }
  .coverage-content > .mobile-plus {
    justify-self: center;
    align-self: center;
    margin: 0;
  }
}
@media (min-width: 769px) {
  .coverage-badges .plus {
    display: none;
  }
}
.plus {
  font-size: 5rem;
  font-weight: 700;
  color: #e05a00;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem 0 4rem;
}
.badge {
  border: 2px solid #009762;
  border-radius: 24px;
  padding: 2rem 1rem;
  font-size: 2.5rem;
  font-weight: 500;
  color: #009762;
  background: #fff;
  text-align: center;
}
.badge.blue {
  border-color: #0057a4;
  color: #0057a4;
}
.badge.block-badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  border-radius: 24px;
  padding: 1.2rem 1rem;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
}
.badge.block-badge {
  border: 2px solid #c68a00;
  color: #c68a00;
  background: #fff;
}
.badge.green.block-badge {
  border: 2px solid #009762;
  color: #009762;
  background: #fff;
}
.badge.blue.block-badge {
  border: 2px solid #0057a4;
  color: #0057a4;
  background: #fff;
}

/* Golf block */
.golf-block {
  --risk-border: #c68a00;
  background: #fff8e5;
  border: 2px solid #c68a00;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.golf-block h3 {
  background: #c68a00;
  color: #fff;
  border-radius: 4px;
  padding: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}
.golf-block > .badge,
.liability > .badge,
.injury-block > .badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  border-radius: 24px;
  padding: 1.2rem 1rem;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
}
.golf-block > .badge {
  border: 2px solid #c68a00;
  color: #c68a00;
  background: #fff;
}
.liability > .badge:not(.blue) {
  border: 2px solid #009762;
  color: #009762;
  background: #fff;
}
.risk-desc {
  font-size: 1.7rem;
  margin: 1rem 0 0.3rem;
  text-align: left;
}
.golf-risk-wrap {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}
@media (min-width: 769px) {
  .golf-risk-wrap {
    flex-wrap: nowrap;
  }
  .golf-item {
    flex: 0 1 48%;
  }
}

/* Injury block */
.injury-block {
  background: #f0fffa;
  border: 2px solid #009762;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  --risk-border: #009762;
}
.injury-block h3 {
  background: #009762;
  color: #fff;
  border-radius: 4px;
  padding: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}
.injury-block h3 + .p-midsize {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Liability block */
.liability {
  background: #e9f4ff;
  border: 2px solid #0057a4;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  --risk-border: #0057a4;
}
.liability h3 {
  text-align: center;
  margin: 0;
}
.liability h3 .opt {
  background: #c50f0f;
  color: #fff;
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-size: 2rem;
}
.liability h3 + .p-midsize {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* 共通画像リスト */
.risk-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.risk-item {
  width: 200px;
  max-width: 200px;
  padding: 1.5rem;
  border: 2px solid var(--risk-border, #333);
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.risk-item img {
  width: auto;
  height: auto;
  object-fit: contain;
}
.risk-item figcaption {
  margin-top: 0.6rem;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}

/* モバイル用「＋」サイン */
.mobile-plus {
  display: none;
}
@media (max-width: 800px) {
  .mobile-plus {
    display: block;
  }
}

/* ------------------------------------------------- */
/* 3. Components – Negotiation Box                   */
/* ------------------------------------------------- */
.negotiation-box {
  border: 2px solid #2172c4;
  border-radius: 8px;
  padding: 2rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
  font-size: 1.8rem;
}
.negotiation-box h4 {
  background: #2172c4;
  color: #fff;
  border-radius: 4px;
  padding: 0.4rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}
.negotiation-box h5 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
}
.negotiation-list {
  margin-left: 1.6em;
  list-style: disc outside;
  font-size: 1.6rem;
  line-height: 1.6;
}
.negotiation-list li {
  margin-bottom: 0.4rem;
  font-size: 1.8rem;
}
.negotiation-illust {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

/* ------------------------------------------------- */
/* 4. Components – Misc.                             */
/* ------------------------------------------------- */
.opt {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 2rem;
  color: #fff;
  background: #ff0000;
  border-radius: 4px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}
.opt-green {
  color: #117713;
  display: inline-block;
  white-space: nowrap;
}
.opt-red {
  color: #ff0000;
  display: inline-block;
  white-space: nowrap;
  font-weight: 500;
}

/* ------------------------------------------------- */
/* 5. Family Example                                 */
/* ------------------------------------------------- */
.family-example {
  background: #fff;
  padding: 0 0 4rem;
  margin: 0;
}
.family-lead {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 2.4rem;
}
.family-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
.family-card {
  background: #fdffdf;
  border: 2px solid #117713;
  border-radius: 8px;
  padding: 1.6rem 2rem;
  text-align: center;
  width: 280px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.family-card .contract-label {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 0.8rem;
  line-height: 1.2;
}
.family-card h3 {
  font-size: 2.5rem;
  padding: 1rem 1rem;
  color: #ff0000;
  margin: 0 0 0.8rem;
}
.family-card h4 {
  font-size: 1.6rem;
  padding: 2rem 1rem;
  color: #0057a4;
  margin: 0 0 0.8rem;
}
.family-card .desc {
  font-weight: 700;
  margin: 0 0 0.8rem;
}
.family-card .price {
  font-size: 2.4rem;

  /* ── オプション・バッジ ─────────────────── */
  .opt {
    display: inline-block;
    padding: 0 0.5em;
    margin-left: 0.6em;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffd700; /* 黄文字 */
    border: 2px solid #ff0000; /* 赤枠 */
    border-radius: 4px;
    line-height: 1.4;
  }
  font-weight: 700;
  margin: 0;
}
.family-card .price strong {
  font-size: 3.2rem;
  line-height: 1.2;
}
.family-total {
  margin-top: 4rem;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
}
.family-total .total-num {
  font-size: 4rem;
  line-height: 1.2;
  font-weight: 700;
}

/* ------------------------------------------------- */
/* 6. Responsive Tweaks                              */
/* ------------------------------------------------- */

/* 1024px 以下 */
@media (max-width: 1024px) {
  .plan-price {
    font-size: 2.6rem;
    line-height: 1.3;
    font-weight: 500;
    white-space: normal;
    word-break: keep-all;
  }
}

/* 800px 以下 */
@media (max-width: 800px) {
  .plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  .coverage-content {
    grid-template-columns: 1fr;
  }
  .coverage-badges {
    grid-template-columns: 1fr;
  }
  .coverage-badges .plus,
  .coverage-badges .badge.blue {
    display: none;
  }
  .mobile-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
  }
  .mobile-badges .badge {
    width: 100%;
    box-sizing: border-box;
  }
  .risk-images {
    flex-direction: column;
    align-items: center;
  }
  .coverage-content > .mobile-plus {
    justify-self: center; /* 横方向センター */
    align-self: center; /* 縦方向センター（保険） */
    margin: 0; /* 上下左右余白なし */
  }
}

/* 700px 以下 */
@media (max-width: 700px) {
  .family-total .total-num {
    font-size: 3rem;
  }
  .family-cards {
    flex-direction: column;
    align-items: center;
  }
  .family-cards .plus {
    margin: 0.8rem 0;
  }
  .family-card {
    width: 200px;
    padding: 2rem;
    height: auto;
  }
}

/* 480px 以下（モバイル） */
@media (max-width: 480px) {
  /* プランカード調整 */
  .plans-grid {
    gap: 1rem;
  }
  .plan-card {
    padding: 2rem;
  }
  .plan-card h3 {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 1rem;
  }
  .plan-card > header {
    margin-bottom: 2rem; /* 適宜調整 (例: 0.8rem〜1.2rem) */
  }
  .plan-price strong {
    font-size: 3rem; /* モバイル用に縮小 */
  }

  /* feature-group 余白調整 */
  .feature-group {
    padding: 1rem 1rem 0.8rem;
    margin-bottom: 0;
  }

  /* ボタン拡大 */
  .btn-secondary {
    font-size: 3rem;
    padding: 2rem 2.4rem; /* サイズ差分のみ指定 */
  }

  /* risk-item 横並び（画像 → 文字） */
  .risk-item {
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: none;
    padding: 0.5rem;
  }
  .risk-item img {
    flex: 0 0 60px;
    max-width: 90px;
    height: auto;
    margin-right: 2em;
  }
  .risk-item figcaption {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1.6rem;
    text-align: left;
  }
}

/* ------------------------------------------------- */
/* 7. Micro Tweaks                                   */
/* ------------------------------------------------- */
.injury-block h3 + .p-midsize,
.liability h3 + .p-midsize {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* ------------------------------------------------- */
/* Golf block 追加                                   */
/* ------------------------------------------------- */
.golf-block {
  --risk-border: #c68a00;
  background: #fff8e5;
  border: 2px solid #c68a00;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.golf-block h3 {
  background: #c68a00;
  color: #fff;
  border-radius: 4px;
  padding: 0.8rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}
/* 追加説明文（枠の上） */
.risk-desc {
  font-size: 1.7rem;
  margin: 1rem 0 0.3rem;
  text-align: left;
}
/* モバイル用「＋」サイン */
.mobile-plus {
  display: none;
}
@media (max-width: 800px) {
  .mobile-plus {
    display: block;
  }
}

/* ------------------------------------------------- */
/* Coverage レイアウト再定義（横幅800px以上）         */
/* ------------------------------------------------- */
@media (min-width: 769px) {
  .coverage-content {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "golf liability"
      "injury liability";
  }
  .golf-block {
    grid-area: golf;
  }
  .injury-block {
    grid-area: injury;
  }
  .liability {
    grid-area: liability;
  }
  /* 「＋」サインは PC では非表示 */
  .mobile-plus {
    display: none !important;
  }
}

/* ①  PC 幅ではバッジ行の「＋」を消す  ------------------------- */
@media (min-width: 769px) {
  .coverage-badges .plus {
    display: none;
  }
}

/* ②  Golfブロック内 2 枠を確実に横並び                     */
.golf-risk-wrap {
  display: flex;
  gap: 1rem;
  justify-content: space-between; /* ←左右いっぱいに配置 */
  flex-wrap: wrap; /* モバイルでは自動改行 */
}
@media (min-width: 769px) {
  .golf-risk-wrap {
    flex-wrap: nowrap;
  } /* PC 幅は改行させない */
  .golf-item {
    flex: 0 1 48%;
  } /* 2 枠で 100% をほぼ占有 */
}

/* ③  モバイル時のみ「＋」を見せる ---------------------------- */
.mobile-plus {
  display: none;
}
@media (max-width: 800px) {
  .mobile-plus {
    display: block;
  }
}

/* 各ブロック先頭のバッジをブロック幅いっぱいに広げる */
.golf-block > .badge,
.liability > .badge,
.injury-block > .badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  border-radius: 24px;
  padding: 1.2rem 1rem;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
}

/* 色分け（既存 .blue だけ流用） */
.golf-block > .badge {
  border: 2px solid #c68a00;
  color: #c68a00;
  background: #fff;
}
.liability > .badge:not(.blue) {
  border: 2px solid #009762;
  color: #009762;
  background: #fff;
}
/* .blue は既存定義のまま width:100% になる */

/* coverage-badges 行を削除したため不要な余白をリセット */
.coverage-title {
  margin-bottom: 1.6rem;
}

/* h3 をバッジと同じデザインで */
.badge.block-badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  border-radius: 24px;
  padding: 1.2rem 1rem;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
}

/* ゴルフ */
.badge.block-badge {
  border: 2px solid #c68a00;
  color: #c68a00;
  background: #fff;
}
/* ケガ用 */
.badge.green.block-badge {
  border: 2px solid #009762;
  color: #009762;
  background: #fff;
}
/* 個人賠償責任用 */
.badge.blue.block-badge {
  border: 2px solid #0057a4;
  color: #0057a4;
  background: #fff;
}

/* ── オプション ── */
.opt {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 2rem;
  color: #ffffff;
  background: #ff0000;
  border-radius: 4px;
  line-height: 1.4;
  text-align: center;
}
/* ------------------------------------------------- */
/* Coverage  注意書き Callout                        */
/* ------------------------------------------------- */
.coverage-caution {
  background: #fff8e5; /* ゴルフ系の淡い黄色で統一        */
  border-left: 6px solid #c68a00; /* ゴルフ補償と同系色のライン       */
  padding: 1.6rem 1.6rem 1.6rem 2rem;
  margin: 2.4rem 0 0; /* 上だけ余白／下は既存余白に任せる */
  font-size: 1.7rem;
  line-height: 1.6;
}
.caution-heading {
  margin: 0 0 0.8rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: #c50f0f; /* 目立つ赤見出し                   */
}
.caution-list {
  margin: 0;
  padding-left: 1.2em;
  list-style: disc outside;
}
.caution-list li {
  margin-bottom: 0.6rem;
}
/* negotiation.svg の共通スタイル */
.negotiation-illust {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
}

.golf-cover .plan-features .feature-label {
  min-width: 0;            /* Flex 子要素の縮小を許可（既定の auto を打ち消し） */
  overflow-wrap: anywhere; /* 日本語ラベルを必要時にどこでも改行可能に */
  word-break: normal;      /* 既存の keep-all を打ち消し */
}
