:root {
  --primary-color: #0b7074;       /* タイトル・アクセント用の深緑/ティール */
  --bar-active-color: #007799;    /* バーの進行色（青緑） */
  --bar-bg-color: #e5f1f4;        /* バーの背景色（薄い青緑） */
  --text-main: #333333;           /* メインテキスト色 */
  --text-sub: #666666;            /* 補足・説明テキスト色 */
  --border-color: #e0e0e0;        /* 通常枠線 */
  --divider-color: #e2e8f0;       /* カード下部の区切り線 */
  --faq-text: #222222;         /* 質問文のテキスト色 */
  --faq-sub-text: #555555;     /* 回答文のテキスト色 */
}

/* 全体ラッパー（2枚並び） */
.plans-container {
  display: flex;
  gap: 28px;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  align-items: stretch;
}

/* カード基本スタイル */
.plan-card {
  flex: 1;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* カード */
.plan-card {
  border: 1px solid var(--border-color);
}

/* ヘッダー */
.card-title {
  color: var(--primary-color);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0 0 32px 0;
  line-height: 1.5;
}

/* プラン項目リスト */
.plan-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 36px;
}

.plan-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* 左列：ラベル表示エリア */
.item-label {
  width: 110px;
  flex-shrink: 0;
}

.time-num {
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.time-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 2px;
}

.plan-tier-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.plan-tier-duration {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

/* 右列：バーおよび説明文 */
.item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6px;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background-color: var(--bar-bg-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--bar-active-color);
  border-radius: 4px;
}

.item-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.4;
  margin: 0;
}

/* カード下部（フッター） */
.card-footer {
  border-top: 1px solid var(--divider-color);
  padding-top: 20px;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.footer-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
  margin: 0;
}

/* レスポンシブ表示 */
@media (max-width: 768px) {
  .plans-container {
    flex-direction: column;
  }
}

/* 全体ラッパー */
.faq-section {
  padding: 0 0 60px 0;
  min-height: auto;
  box-sizing: border-box;
}

.faq-list {
  margin: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 各質問カード */
.faq-item {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

/* 質問バー（ボタン） */
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-align: left;
  outline: none;
}

/* 「Q」マーク */
.faq-q-mark {
  font-size: 20px;
  font-weight: 900;
  margin-right: 14px;
  font-family: Arial, sans-serif;
  line-height: 1;
}

/* 質問文テキスト */
.faq-q-text {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--faq-text);
  line-height: 1.5;
}

/* 回答アコーディオンアニメーション設定 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.faq-answer-inner {
  padding: 0 24px 22px 42px; /* 「Q」の文字のインデントに揃える */
}

.faq-answer-inner p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--faq-sub-text);
  margin: 0;
}

.support-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #ffffff;
  border: 1.5px dashed #a2d2d2; /* 破線ボーダー */
  border-radius: 8px;           /* 角丸 */
  padding: 24px 32px;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* テキスト部分 */
.support-box-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-box-title {
  font-size: 16px;
  font-weight: 700;
  color: #0b7074; /* タイトル色 */
  margin: 0;
  line-height: 1.4;
}

.support-box-desc {
  font-size: 13.5px;
  color: #444444; /* 説明文の色 */
  margin: 0;
  line-height: 1.6;
}

/* スマホ表示対応 */
@media (max-width: 600px) {
  .support-box {
    align-items: flex-start;
    padding: 16px 20px;
    gap: 14px;
  }
}

.media-container {
  display: flex;
  align-items: flex-start; /* 上下の中央揃え */
  gap: 24px;           /* 画像とテキストの間の余白 */
}

.media-image {
  width: 50%;         /* 画面幅に応じて45%サイズで柔軟に伸縮 */
  max-width: 480px;   /* ただし画面が広すぎても480px以上には拡大しない */
  height: auto;  
}

.flow-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* --- スマホ向け（768px以下で縦並びに変更） --- */
@media screen and (max-width: 768px) {
  .media-container {
    flex-direction: column; /* 縦並びにする */
    gap: 20px;              /* テキストと画像の間の余白を調整 */
  }

  .media-image {
    width: 100%;            /* 画面いっぱいに広げる */
    max-width: 100%;        /* 最大幅制限を解除または中央寄せ */
  }

  /* テキスト側も幅100%で均等に広げる */
  .section-lead {
    width: 100%;
  }
}

/* 各ステップのブロック */
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 160px;
}

/* タイトルテキスト */
.flow-title {
  font-size: 16px;
  font-weight: 800;
  color: #0b595c; /* 濃い青緑 */
  margin: 0 0 10px 0;
  line-height: 1.3;
}

/* 説明テキスト */
.flow-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #666666;
  margin: 0;
}

/* 全体コンテナ */
.confidence-container {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: #ffffff; /* 白い背景 */
  border: 2px solid #e0e0e0;
  border-radius: 12px;       /* 角丸 */
  padding: 32px 36px;        /* カードの内側余白 */
}

/* 左側：大見出し */
.confidence-heading {
  font-size: 22px;
  font-weight: 800;
  color: #0b595c; /* 濃い青緑 */
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 右側：3項目横並びラッパー */
.confidence-list {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex: 1;
}

/* 各項目 */
.confidence-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

/* バッジ共通設定 */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

/* 1. 確認済み（淡い青緑背景 / 濃い青緑文字） */
.badge.-confirmed {
  background-color: #e0f2f1;
  color: #0b7074;
}

/* 2. 推定（淡い黄・ベージュ背景 / 茶・黄土文字） */
.badge.-estimated {
  background-color: #fcf1d6;
  color: #a8721c;
}

/* 3. 要確認（淡いピンク・赤背景 / 濃い赤文字） */
.badge.-need-check {
  background-color: #fbe6e5;
  color: #b5382b;
}

/* 説明文 */
.confidence-desc {
  font-size: 14px;
  color: #222222;
  line-height: 1.6;
  margin: 0;
}

/* -------------------------------------
   スマホ対応
------------------------------------- */
@media (max-width: 768px) {
  .confidence-container {
    flex-direction: column;
    gap: 24px;
  }

  .confidence-list {
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .confidence-item {
    gap: 8px;
  }
}