/* ===== ベース ===== */
#accident-calc{
  max-width: 980px;
  margin: 0 auto;
  border: 2px solid #111;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  background:#fff;
}

/* タイトル（黒ピル） */
#accident-calc .simulator__head{ text-align:center; }
#accident-calc .simulator__title{
  display:inline-block;
  margin:-24px auto 14px;
  padding:10px 18px;
  background:#111; color:#fff; border-radius:18px;
  line-height:1.3; font-weight:700;
}

/* 最上段の「※…」だけ中央寄せ */
#accident-calc .simulator__subtitle--top{
  text-align:center; display:block;
  font-size:13px; line-height:1.6; color:#111;
  margin-bottom: 8px;
}

/* セクション見出し（通院開始日/終了日/実治療日数） */
#accident-calc .item-title{
  font-size:17px;          /* 要望：17px */
  font-weight:700;
  margin: 18px 0 4px;
  color:#111;
}

/* 見出しの下の注記（※…）は左寄せのまま */
#accident-calc .item-note{
  font-size:13px; line-height:1.6; color:#111;
  margin-bottom:8px;
}

/* ===== 入力欄 ===== */
#accident-calc input[type="date"],
#accident-calc input[type="number"]{
  width:100%; box-sizing:border-box;
  padding:14px 48px 14px 14px;  /* 右側にアイコン分の余白を確保（基本値） */
  border:1px solid #ccc; border-radius:8px;
  font-size:16px; background:#fff;
}

/* カレンダーをさらに右へ：dp--wide を付けた date にだけ適用 */
#accident-calc .dp--wide{ padding-right: 96px !important; }

/* WebKit系（Chrome/Safari/Edge）で右へ寄せ＆少し拡大 */
#accident-calc .dp--wide::-webkit-calendar-picker-indicator{
  transform: translateX(42px) scale(1.22) !important;
  margin-right: -2px !important;
  cursor:pointer;
}

/* 狭い端末でのはみ出し抑制 */
@media (max-width: 360px){
  #accident-calc .dp--wide{ padding-right: 84px !important; }
  #accident-calc .dp--wide::-webkit-calendar-picker-indicator{
    transform: translateX(34px) scale(1.2) !important;
  }
}

/* ===== ボタン ===== */
#accident-calc .submit{
  display:block; width:100%;
  padding:16px; border:none; border-radius:14px;
  background:#ED726D; color:#fff; font-weight:700; font-size:18px;
  cursor:pointer; transition:.2s ease;
  box-shadow: 0 4px 14px rgba(237,114,109,.25);
  margin-top: 10px;
}
#accident-calc .submit:hover{ filter:brightness(1.05); }
#accident-calc .submit:disabled{ opacity:.45; cursor:default; }

/* ===== 結果表示 ===== */
#accident-calc .results{ display:none; margin-top:18px; }
#accident-calc .results.is-visible{ display:block !important; }

#accident-calc .cards{ display:flex; gap:16px; align-items:stretch; flex-wrap:wrap; }
#accident-calc .cards .card{
  flex:1 1 300px; border:1px solid #e6e6e6; border-radius:12px; padding:16px;
  background:#fff; box-sizing:border-box;
}
#accident-calc .cards .card h4{ margin:0 0 6px; color:#111; }

/* 金額の強調色（PC/SP共通の指定） */
#accident-calc .amount{ font-size:28px; font-weight:800; color:#E91E63; line-height:1.2; }

/* 期間表記を少し太く大きめに（「31日（通院期間）」） */
#accident-calc .result-term{ font-weight:700; font-size:16px; }

/* SP：候補の長文を1行表示に（はみ出し時は省略） */
@media (max-width: 767px){
  #accident-calc .result-jibai-detail{
    white-space: nowrap; overflow:hidden; text-overflow:ellipsis;
  }
}

/* ====== accident-calc ローカル上書き ====== */

/* 大見出し（黒ピル）は従来のまま */
#accident-calc .simulator__title { /* 触らない */ }

/* 小見出し（通院開始日/通院終了日/実治療…）を通常見出しに戻す */
#accident-calc h2.item-title,
#accident-calc .cards .card .card-title{
  background: transparent !important;
  color: #111 !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 18px 0 8px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

/* 小見出し下の※は左寄せのまま */
#accident-calc h2.item-title > .simulator__subtitle-inline{
  display:block !important;
  margin-top:4px !important;
  text-align:left !important;
  font-size:13px !important;
  color:#111 !important;
}

/* トップの※だけ中央寄せにしたい場合（クラス is-top を使う） */
#accident-calc .simulator__subtitle-inline.is-top{
  text-align:center !important;
}

/* 入力欄：カレンダーを右端に寄せる（WebKit系） */
#accident-calc input[type="date"]{
  position: relative !important;
  padding-right: 50px !important; /* アイコン分の余白 */
}
#accident-calc input[type="date"]::-webkit-calendar-picker-indicator{
  position: absolute !important;
  right: 16px !important;          /* さらに右へ寄せたい場合は数値を増やす */
  transform: scale(1.25) !important;
  opacity: .85 !important;
  cursor: pointer !important;
}

/* 結果カードの見出し色も黒で統一（念のため） */
#accident-calc .cards .card h2 { color:#111 !important; }

/* 金額サイズを強制的に大きく（SP/PC） */
#accident-calc#accident-calc .results .cards .card .amount.result-jibai,
#accident-calc#accident-calc .results .cards .card .amount.result-lawyer{
  font-size: 30px !important;   /* ←ここを好みで上げてOK（例: 32px, 34px） */
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #E91E63 !important;
  display: block !important;
}

/* PCはもう少し大きく */
@media (min-width: 1024px){
  #accident-calc#accident-calc .results .cards .card .amount.result-jibai,
  #accident-calc#accident-calc .results .cards .card .amount.result-lawyer{
    font-size: 34px !important;
  }
}

/* ====== Accident Calc: 最終スタイル上書き  ====== */

/* 見出し（通院開始日/通院終了日/実治療(施術)日数）— SP既定: 17px, 太字にしない, 左寄せ */
#accident-calc .item-title{
  font-size: 17px;          /* ←SPでのご指定 */
  font-weight: 400;         /* ←太字にしない */
  line-height: 1.35;
  text-align: left;
  margin: 14px 0 6px;
  color: #111;
}
/* 見出し直下の「※…」は左寄せのまま（上段の注意書きだけセンターにする） */
#accident-calc .item-title .simulator__subtitle-inline{
  display:block;
  margin-top:6px;
  font-size: 13px;
  font-weight: 400;
  color:#111;
  text-align:left;
}
/* 上段の注意書き（タイトルのすぐ下の※…）はセンター */
#accident-calc .simulator__head .simulator__subtitle-inline{
  text-align:center;
}

/* PCでは見出しサイズを H2 相当（~2.8rem≒28px）に拡大、でもH2タグは使わない */
@media (min-width: 768px){
  #accident-calc .item-title{
    font-size: 28px;        /* ←PCで大きく（目次には出ない） */
    font-weight: 400;
    margin: 18px 0 8px;
  }
}

/* 入力欄 — 右側にアイコンの余白を確保して、どのテーマでも潰れないように */
#accident-calc input[type="date"],
#accident-calc input[type="number"]{
  width: 100%;
  box-sizing: border-box;
  padding: 12px 48px 12px 12px;   /* ←右にアイコン分の余白 */
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.2;
  background: #fff;
}

/* ---------- カレンダーアイコン（WebKit系：Chrome/Edge/Safari/Android） ---------- */
#accident-calc input[type="date"]{
  position: relative;              /* 基準 */
}
#accident-calc input[type="date"]::-webkit-calendar-picker-indicator{
  position: absolute !important;
  right: 12px !important;          /* 右寄せ固定 */
  top: 50% !important;
  transform: translateY(-50%) scale(0.95);  /* ちょい小さめ & 垂直中央 */
  opacity: .9;
  cursor: pointer;
}
/* SPはさらに小さめ */
@media (max-width: 767.98px){
  #accident-calc input[type="date"]::-webkit-calendar-picker-indicator{
    transform: translateY(-50%) scale(0.82);
    right: 10px !important;
  }
}

/* Firefox用：アイコンの実サイズ変更は不可のため、視認性だけ整える */
@-moz-document url-prefix(){
  #accident-calc input[type="date"]{
    padding-right: 44px; /* 右側の確保だけ行う */
  }
}

/* 送信ボタンは既存サイズのまま（必要ならここで調整） */
#accident-calc .submit{
  display:block;
  margin: 16px auto 0;
  border-radius: 14px;
}

/* 結果枠の表示を強制（テーマのdisplay:noneに負けないように） */
#accident-calc .results{ display:none; margin-top: 18px; }
#accident-calc .results.is-visible{ display:block !important; }

/* 結果カードは左寄せ、金額大きく＆色指定 */
#accident-calc .cards .card{ text-align:left; }
#accident-calc .amount{
  color: #E91E63;
  font-weight: 800;
  font-size: 22px;                 /* SP基準 */
  line-height: 1.25;
}
@media (min-width:768px){
  #accident-calc .amount{
    font-size: 30px;               /* PCでもう少し大きく */
  }
}

/* 青っぽく見えた見出しカラーを黒で統一（カード内の h4 等） */
#accident-calc .cards .card h4,
#accident-calc .results,
#accident-calc .results .muted,
#accident-calc .results .term{
  color:#111;
}

/* タイトルの黒ピルはそのまま。必要ならここで微調整 */
#accident-calc .simulator__title{
  display:inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background:#111; color:#fff;
  line-height:1.1; font-weight:800;
}

/* ===== PC：タイトル(黒ピル)を「通院開始日」と同じ大きさに ===== */
@media (min-width: 1024px){
  #accident-calc .simulator__title{
    font-size: 2.8rem;      /* 見出し(H2想定)と同等 */
    line-height: 1.15;
    padding: 12px 24px;
  }
  /* セクション見出しも揃えておきたい場合は ↓ を有効化
  #accident-calc .item-title{ font-size: 2.8rem; }
  */
}

/* ===== SP：結果カード内の見出しを「※ 自賠責基準の慰謝料」と同程度に ===== */
@media (max-width: 767px){
  #accident-calc .cards .card h4{
    font-size: 14px;        /* 目安：下の注記と同等 */
    font-weight: 700;
    margin: 0 0 6px;
    text-align: left;
  }
  /* 候補行が折り切れるよう少しだけ文字を小さくして折返し許可 */
  #accident-calc .result-jibai-detail{
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;      /* 1行固定を解除 */
    word-break: keep-all;     /* 日本語の分割を控えめに */
  }
}

/* PC/共通：結果カード内の金額を少し大きく（左寄せのまま） */
#accident-calc .cards .card .amount{
  font-size: 1.9rem;          /* ほんの少しアップ */
  font-weight: 800;
  color: #E91E63;             /* ご指定色 */
  text-align: left;
}

/* ======== SP 専用の強制上書き（～767px）======== */
@media (max-width: 767px){
  /* 小見出し：通院開始日／通院終了日／実治療(施術)日数 */
  #accident-calc .simulator__content .item-title{
    font-size: 17px !important;
    font-weight: 500 !important;   /* 太字にならないように */
    margin: 18px 0 6px !important;
    line-height: 1.35 !important;
  }
  /* 小見出しの注記（※…） */
  #accident-calc .simulator__content .item-title .muted{
    font-size: 13px !important;
    font-weight: 400 !important;
  }

  /* 入力欄：アイコンのサイズと位置（少し小さく & もっと右） */
  #accident-calc input[type="date"]{
    padding-right: 38px !important; /* 右にアイコン分の余白 */
  }
  #accident-calc input[type="date"]::-webkit-calendar-picker-indicator{
    width: 18px !important;
    height: 18px !important;
    right: 10px !important;
    transform: scale(0.9) !important;
    opacity: .85 !important;
  }

  /* 結果カード：見出しを「※ 自賠責基準の慰謝料」と同じくらいに */
  #accident-calc .results .cards .card h4{
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #111 !important;
    text-align: left !important; /* 念のため左寄せ固定 */
    margin: 0 0 4px !important;
  }

  /* 金額は少し大きめ＆色は据え置き */
  #accident-calc .results .amount{
    font-size: 22px !important;
    line-height: 1.25 !important;
  }

  /* 自賠責「候補：…」が折り返しにくいように字間を少しだけ詰める */
  #accident-calc .result-jibai-detail{
    letter-spacing: 0 !important;
  }
}