/* 伐採費用かんたん診断（2026-11-12 れのぼ「屋根修理ナビとデザイン合わせて」）。
   屋根Navi yane-area-pages/assets/css/simulator.css をそのまま写し、色だけ伐採Naviの緑（#1F5134・濃い緑 #173E27・薄い緑 #F2F7F3）に置き換えたもの。
   ↓ここから下は屋根Naviの元の注記もそのまま残している。 */
html { scrollbar-gutter: stable; }
/* カンタン概算見積もりシミュレーター
   — エリアページの一括見積もり(roof-repair-diagnosis)のブルーのデザインに統一。
   ティール #1F5134 基調 / 選択肢はティールグラデ / オレンジ #1F5134 ボタン / 青見出し #1F5134 / FAアイコン不使用。 */

.bm-sim2-sec { margin-bottom: 40px; }

.rs-wrap {
  font-family: inherit; color: #333; background: #fff;
  border: 1px solid #1F5134; border-radius: 10px; padding: 0 20px 24px;
}
.rs-wrap > * { box-sizing: border-box; }
/* CTA・戻る・結果見出しのアイコンは使わない(選択肢のアイコンは表示する)。i=旧Font Awesome / .yn-icon=SVG直埋め */
.rs-back > i, .rs-estimate__recap-title > i,
.rs-estimate__note > i, .rs-mitsumori-cta > i,
.rs-back > .yn-icon, .rs-estimate__recap-title > .yn-icon,
.rs-estimate__note > .yn-icon, .rs-mitsumori-cta > .yn-icon { display: none; }

/* タイトル帯(一括見積もりの form-title と同じ薄ティールのグラデ＋同じ文字組み) */
.rs-titlebar {
  background: linear-gradient(to bottom, #F2F7F3, #E3EDE6);
  margin: 0 -20px 12px; padding: 14px 20px; border-radius: 9px 9px 0 0;
  text-align: center;
}
.rs-title-text {
  display: inline-block; font-weight: bold; color: #333; line-height: 1.5;
  -webkit-text-stroke: 5px #fff; paint-order: stroke fill;
}
.rs-title-text .t-strong { font-size: clamp(20px, 5vw, 28px); }
.rs-title-text .t-accent { font-size: clamp(26px, 7vw, 36px); }
.rs-title-text .t-sub    { font-size: clamp(15px, 4vw, 20px); }
.rs-title-text .t-orange { color: #1F5134; }
.rs-title-text .t-marker { background: linear-gradient(transparent 55%, #ffff6f 55%); padding: 0 4px; }
.rs-subhead { text-align: center; color: #666; font-size: 13.5px; margin: 0 0 18px; }

/* プログレスバー */
.rs-progress { display: flex; align-items: flex-start; justify-content: center; margin-bottom: 22px; }
.rs-progress__step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.rs-progress__circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: #e0e0e0; color: #999; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s, transform .3s;
}
.rs-progress__label { font-size: 10.5px; color: #999; white-space: nowrap; transition: color .3s; }
.rs-progress__line { flex: 1; height: 3px; background: #e0e0e0; min-width: 10px; max-width: 56px; margin-top: 15px; transition: background .3s; }
.rs-progress__step.is-active .rs-progress__circle { background: #1F5134; color: #fff; transform: scale(1.1); }
.rs-progress__step.is-active .rs-progress__label { color: #173E27; font-weight: 700; }
.rs-progress__step.is-done .rs-progress__circle { background: #1F5134; color: #fff; font-size: 0; }
.rs-progress__step.is-done .rs-progress__circle::before { content: '✓'; font-size: 15px; }
.rs-progress__step.is-done + .rs-progress__line { background: linear-gradient(90deg, #1F5134, #173E27); }

/* ステップ */
.rs-step { display: none; animation: rsFadeIn .3s ease; }
.rs-step.is-active { display: block; }
@keyframes rsFadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.rs-step__title { font-size: clamp(18px, 3vw, 22px); color: #1F5134; font-weight: bold; text-align: center; margin: 0 0 8px; line-height: 1.4; }
.rs-step__sub { text-align: center; color: #666; font-size: 14px; margin: 0 0 18px; }

/* 選択カード(一括見積もりの .option と同じ。選択でティールグラデ) */
.rs-cards { display: grid; gap: 12px; margin-bottom: 16px; }
.rs-cards--3col { grid-template-columns: repeat(3, 1fr); }
.rs-cards--2col { grid-template-columns: repeat(2, 1fr); }
.rs-card {
  padding: 15px 12px; border: 2px solid #e0e0e0; border-radius: 12px; background: #fff;
  cursor: pointer; text-align: center; font-family: inherit; font-size: 14px; font-weight: 600; color: #333; line-height: 1.4;
  transition: border-color .2s, transform .15s, box-shadow .2s, background .2s, color .2s;
}
.rs-card span { display: block; }
.rs-card > i, .rs-card > .yn-icon { display: block; font-size: 30px; color: #1F5134; margin-bottom: 8px; transition: transform .2s, color .2s; }
.rs-card > .yn-icon { margin-left: auto; margin-right: auto; }
.rs-card:hover > i, .rs-card:hover > .yn-icon { transform: scale(1.1); }
.rs-card.is-selected > i, .rs-card.is-selected > .yn-icon { color: #fff; }
.rs-card:hover { border-color: #1F5134; transform: translateY(-2px); box-shadow: 0 3px 10px rgba(31,81,52,.15); }
.rs-card.is-selected {
  border-color: #1F5134; background: linear-gradient(135deg, #1F5134, #173E27); color: #fff;
  transform: translateY(-1px) scale(1.02); box-shadow: 0 3px 10px rgba(31,81,52,.25);
}

/* 戻る */
.rs-back { display: inline-block; background: none; border: none; color: #6c757d; font-size: 13px; cursor: pointer; padding: 4px 2px; font-family: inherit; }
.rs-back:hover { color: #1F5134; text-decoration: underline; }

/* 概算結果 */
.rs-estimate { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 640px) { .rs-estimate { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.rs-estimate__recap, .rs-estimate__figures { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 12px; padding: 18px; }
.rs-estimate__recap-title { font-size: 13px; font-weight: 700; color: #1F5134; margin: 0 0 10px; }
.rs-estimate__recap-list { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.6; }
.rs-estimate__recap-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #e0e0e0; }
.rs-estimate__recap-list li:last-child { border-bottom: none; padding-bottom: 0; }
.rs-estimate__k { color: #888; flex-shrink: 0; }
.rs-estimate__v { font-weight: 700; color: #333; text-align: right; }
.rs-estimate__label { font-size: 13px; color: #666; margin: 0 0 12px; font-weight: 700; }
.rs-estimate__dual { display: flex; flex-direction: column; gap: 10px; }
.rs-estimate__dual-row { display: flex; align-items: center; gap: 10px; }
.rs-estimate__dual-badge { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 4px; white-space: nowrap; color: #fff; }
.rs-estimate__dual-badge--partial { background: #1F5134; }
.rs-estimate__dual-badge--extensive { background: #1F5134; }
.rs-estimate__range { font-size: clamp(17px, 3vw, 22px); font-weight: 800; color: #D93025; margin: 0; } /* 2026-11-12 れのぼ「目安は赤文字で」 */
.rs-estimate__visit { font-size: 13px; color: #1F5134; margin: 12px 0 0; }
.rs-estimate__visit > i, .rs-estimate__visit > .yn-icon { color: #1F5134; margin-right: 4px; }
.rs-estimate__visit > strong { color: #1F5134; font-weight: 700; }
.rs-estimate__note { font-size: 12px; color: #777; margin: 10px 0 0; line-height: 1.6; }

/* CTAボタン直下の下矢印(ボタン→画像への視線誘導) */
.rs-cta-arrow { text-align: center; color: #1F5134; font-size: 22px; line-height: 1; margin: -2px 0 8px; }

/* キャッシュバックのキャンペーンバナー(CTAボタン＋下矢印の下) */
.rs-cashback { margin: 0 0 12px; text-align: center; }
.rs-cashback img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 0 auto; }

/* キャンペーンの注意書き(赤系ボックス) */
.rs-cashback-note {
  font-size: 12.5px; line-height: 1.7; color: #c0282d;
  background: #fdeaea; border: 1px solid #f3c0c2; border-radius: 6px;
  padding: 10px 12px; margin: 0 0 12px;
}

/* /mitsumori への誘導CTA(一括見積もりの btn-submit-orange と同じオレンジ) */
.rs-form-lead { text-align: center; margin: 4px 0 12px; }
.rs-form-lead__title { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: #1F5134; }
.rs-form-lead__text { font-size: 13px; color: #666; margin: 0; line-height: 1.7; }
.rs-mitsumori-cta {
  display: block; width: auto; max-width: 360px; text-align: center; background: #F37E00; color: #fff !important;
  font-weight: 700; font-size: 16px; text-decoration: none; padding: 15px 24px; border-radius: 8px;
  margin: 0 auto 12px; box-shadow: 0 3px 10px rgba(243,126,0,.25); transition: background .15s;
}
.rs-mitsumori-cta:hover { background: #E06D00; text-decoration: none; } /* 2026-11-12 れのぼ「ボタンはオレンジ」＝屋根Naviと同じ色 */

@media (max-width: 600px) {
  .rs-wrap { padding: 0 14px 18px; }
  .rs-titlebar { margin: 0 -14px 10px; }
  .rs-cards--3col { grid-template-columns: repeat(2, 1fr); }
  .rs-estimate__dual-row { flex-wrap: wrap; }
  /* プログレスバーを中央に詰める(横に広がりすぎないよう小さく) */
  .rs-progress { margin-bottom: 18px; }
  .rs-progress__step { gap: 4px; }
  .rs-progress__circle { width: 25px; height: 25px; font-size: 11px; }
  .rs-progress__step.is-done .rs-progress__circle::before { font-size: 12px; }
  .rs-progress__label { font-size: 9px; }
  .rs-progress__line { min-width: 5px; max-width: 22px; margin-top: 12px; }
}

/* ---- 伐採Naviで足した分（屋根Naviの area.css の .yn-icon と同じ大きさのアイコン・見出しをh2にしたことの打ち消し） ---- */
.rs-card > .bm-ic { display: block; width: 1em; height: 1em; font-size: 30px; color: #1F5134; margin: 0 auto 8px; transition: transform .2s, color .2s; }
.rs-card:hover > .bm-ic { transform: scale(1.1); }
.rs-card.is-selected > .bm-ic { color: #fff; }
.rs-card__note { font-size: 11px; font-weight: 400; margin-top: 3px; opacity: .85; }
.rs-titlebar h2.rs-title-text { margin: 0; padding: 0; border: 0; background: none; font-size: 16px; }
.rs-titlebar h2.rs-title-text::before, .rs-titlebar h2.rs-title-text::after { content: none; display: none; }
.rs-subhead strong { color: #1F5134; }
.rs-form-lead__text { color: #1F5134 !important; font-weight: 700; }
button.rs-mitsumori-cta { border: 0; cursor: pointer; font-family: inherit; width: 100%; }
.rs-estimate__dual-row { flex-wrap: wrap; }
.rs-estimate__lines { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; color: #555; line-height: 1.7; }
.rs-estimate__range--none { font-size: 16px; }
.rs-progress__step[hidden], .rs-progress__line[hidden] { display: none; }
.rs-step[data-q="q1"] .rs-back { display: none; }
/* 選択肢の文字が1〜2文字だけ次の行に落ちないように、行の長さをそろえる（文言は変えない） */
#bm-sim .rs-card span { text-wrap: balance; }

/* 2026-11-12 れのぼ「選択している部分は色を変えて。緑ばかりだとつまらない。薄いオレンジか薄い水色」＝選んだカードを薄いオレンジに */
#bm-sim .rs-card.is-selected { border-color: #E8A15A; background: #FFF1E2; color: #202723; box-shadow: 0 3px 10px rgba(232, 161, 90, .28); }
#bm-sim .rs-card.is-selected > .bm-ic, #bm-sim .rs-card.is-selected > i, #bm-sim .rs-card.is-selected > .yn-icon { color: #D9822B; }
/* 2026-11-12 幹の太さの札＝「直径◯cm」と「腕くらい」を2行に分ける（データの note の改行をそのまま出す。改行の無い札は前と同じ） */
#bm-sim .rs-card__note { white-space: pre-line; }
