/* ============================================================
   料金シミュレーター スタイル
   スマートフォン優先 / 大きめの文字とボタン
   ============================================================ */

:root {
  --c-text:       #1f2933;
  --c-text-sub:   #5c6b7a;
  --c-bg:         #ffffff;
  --c-surface:    #f5f8fa;
  --c-border:     #d3dde5;
  --c-brand:      #0f7b8a;
  --c-brand-dark: #0a5c68;
  --c-brand-soft: #e6f4f6;
  --c-accent:     #e8730c;
  --c-accent-dark:#c85f05;
  --radius:       14px;
  --shadow:       0 2px 10px rgba(31, 41, 51, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
               "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.sim {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ---------- ヘッダー ---------- */
.sim__header { text-align: center; margin-bottom: 20px; }

.sim__site {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 16px;
  background: var(--c-brand);
  border-radius: 99px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.sim__title {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--c-brand-dark);
}

.sim__lead {
  margin: 0;
  font-size: 15px;
  color: var(--c-text-sub);
}

/* ---------- 冒頭の注意書き ---------- */
.notice {
  margin: 0 0 22px;
  padding: 15px 17px;
  background: #fdf3e8;
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
  color: #8a4a02;
}

/* ---------- 進捗表示 ---------- */
.progress { margin-bottom: 22px; }

.progress__label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-brand);
  letter-spacing: 0.04em;
}

.progress__track {
  height: 6px;
  background: var(--c-border);
  border-radius: 99px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--c-brand);
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* ---------- 質問 ---------- */
.question {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.hint {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--c-text-sub);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 24px;
}

/* ---------- 選択肢ボタン ---------- */
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px 16px;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.option:hover { border-color: var(--c-brand); background: var(--c-brand-soft); }

.option:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 2px;
}

.option:active { transform: scale(0.99); }

.option__icon { font-size: 26px; line-height: 1; flex-shrink: 0; }

.option__body { flex: 1; min-width: 0; }

.option__label { display: block; font-size: 17px; font-weight: 700; line-height: 1.5; }

.option__note {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text-sub);
  line-height: 1.5;
}

.option__price {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-brand);
}

/* 割引になる選択肢は目立たせます */
.option__price--discount {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 10px;
  background: var(--c-accent);
  border-radius: 99px;
  color: #fff;
  font-size: 13px;
}

.option__arrow { color: var(--c-border); font-size: 20px; flex-shrink: 0; }

.option:hover .option__arrow { color: var(--c-brand); }

/* ---------- 分類のボタン ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.tab {
  min-height: 46px;
  padding: 9px 15px;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: 99px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text-sub);
  cursor: pointer;
  white-space: nowrap;
}

.tab:hover { border-color: var(--c-brand); color: var(--c-brand); }

.tab--on {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}

.tab--on:hover { background: var(--c-brand-dark); border-color: var(--c-brand-dark); color: #fff; }

/* ---------- 検索窓 ---------- */
.search { margin: 0 0 16px; }

.search__input {
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.search__input:focus {
  outline: none;
  border-color: var(--c-brand);
  background: var(--c-bg);
}

.search__input::placeholder { color: #93a3b1; }

/* ---------- 品目リスト ---------- */
.items { margin: 0 0 20px; }

.items__guide {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--c-text-sub);
}

.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--c-border);
}

.item--on { background: var(--c-brand-soft); }

.item__body { flex: 1; min-width: 0; }

.item__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.item__price {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-brand);
  line-height: 1.5;
}

.item__note {
  display: block;
  font-size: 12px;
  color: var(--c-text-sub);
  line-height: 1.5;
}

.item__quote {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 9px;
  background: #fdf3e8;
  border-radius: 99px;
  color: #8a4a02;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.item__toggle {
  flex-shrink: 0;
  min-height: 48px;
  padding: 8px 14px;
  background: var(--c-bg);
  border: 2px solid var(--c-brand);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-brand-dark);
  cursor: pointer;
  white-space: nowrap;
}

.item__toggle:hover { background: var(--c-brand-soft); }

.item__toggle--open {
  border-color: var(--c-border);
  color: var(--c-text-sub);
}

/* ---------- 作業を選ぶボタン（複数選択） ---------- */
.pick {
  flex-shrink: 0;
  min-width: 84px;
  min-height: 52px;
  padding: 8px 14px;
  background: var(--c-brand);
  border: 2px solid var(--c-brand);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.pick:hover { background: var(--c-brand-dark); border-color: var(--c-brand-dark); }

.pick--on {
  background: var(--c-bg);
  border-color: var(--c-brand);
  color: var(--c-brand-dark);
}

.pick--on::before { content: '✓ '; }

.pick--on:hover { background: var(--c-brand-soft); border-color: var(--c-brand); color: var(--c-brand-dark); }

/* ---------- サイズの選択 ---------- */
.sizes {
  margin: 0 0 4px;
  padding: 4px 12px;
  background: var(--c-surface);
  border-left: 3px solid var(--c-brand);
}

.size {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.size + .size { border-top: 1px solid var(--c-border); }

.size__body { flex: 1; min-width: 0; }

.size__name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.size__price {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-brand);
  line-height: 1.5;
}

/* ---------- 個数を増やすボタン ---------- */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.stepper__btn {
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text-sub);
  cursor: pointer;
  line-height: 1;
}

.stepper__btn:hover { border-color: var(--c-brand); color: var(--c-brand); }

.stepper__btn--plus {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}

.stepper__btn--plus:hover { background: var(--c-brand-dark); border-color: var(--c-brand-dark); color: #fff; }

.stepper__count {
  min-width: 24px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

/* ---------- 選んだ品目のまとめ ---------- */
.picked {
  margin: 0 0 20px;
  padding: 0 14px;
  background: var(--c-brand-soft);
  border-radius: var(--radius);
}

.picked:empty { display: none; }

.picked__title {
  margin: 0;
  padding: 14px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-brand-dark);
}

.picked__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(15, 123, 138, 0.18);
}

.picked__name { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.5; }

.picked__price { font-size: 14px; font-weight: 700; color: var(--c-brand-dark); white-space: nowrap; }

.picked__remove {
  flex-shrink: 0;
  min-height: 40px;
  padding: 6px 10px;
  background: none;
  border: 1px solid rgba(15, 123, 138, 0.35);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  color: var(--c-brand-dark);
  cursor: pointer;
  white-space: nowrap;
}

.picked__remove:hover { background: var(--c-bg); border-color: var(--c-brand); }

.picked__total {
  margin: 0;
  padding: 12px 0 0;
  border-top: 2px solid var(--c-brand);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-brand-dark);
  text-align: right;
}

.picked__note {
  margin: 6px 0 0;
  padding-bottom: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-text-sub);
  text-align: right;
}

.picked__total:last-child { padding-bottom: 14px; }

/* ---------- 次へ進むボタン ---------- */
.next {
  display: block;
  width: 100%;
  min-height: 62px;
  margin: 0 0 12px;
  padding: 14px 20px;
  background: var(--c-brand);
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}

.next:hover:not(:disabled) { background: var(--c-brand-dark); }

.next:disabled {
  background: var(--c-surface);
  color: #93a3b1;
  cursor: default;
}

/* ---------- 補足文 ---------- */
.rule,
.empty {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text-sub);
}

.empty {
  padding: 20px 4px;
  text-align: center;
}

/* ---------- 戻るボタン ---------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 8px 4px;
  background: none;
  border: none;
  font: inherit;
  font-size: 15px;
  color: var(--c-text-sub);
  cursor: pointer;
}

.back:hover { color: var(--c-brand); text-decoration: underline; }

/* ---------- 結果画面 ---------- */
.result {
  padding: 26px 20px;
  background: var(--c-brand-soft);
  border-radius: var(--radius);
  text-align: center;
}

.result__label {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-brand-dark);
}

.result__price {
  margin: 0;
  font-size: 27px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--c-brand-dark);
  letter-spacing: -0.02em;
}

.result__price .yen { font-size: 19px; font-weight: 700; }

.result__price .tilde { margin: 0 2px; font-size: 22px; }

.result__tax {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-brand-dark);
}

.result__notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: var(--c-bg);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  color: #8a4a02;
}

.result__message {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 700;
  color: var(--c-brand-dark);
}

.warn {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: #fdf3e8;
  border-left: 4px solid var(--c-accent);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #8a4a02;
}

/* ---------- 現地確認が必要なご依頼の目安 ---------- */
.estimate {
  margin: 0 0 16px;
  padding: 20px;
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
}

.estimate__title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  text-align: center;
}

.estimate__service {
  margin: 14px 0 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--c-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-brand-dark);
}

.estimate__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
}

.estimate__name { font-size: 15px; font-weight: 700; line-height: 1.5; }

.estimate__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-brand-dark);
  white-space: nowrap;
}

.estimate__note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text-sub);
  text-align: center;
}

.size__note {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-text-sub);
}

.warn--strong {
  margin-top: 16px;
  padding: 16px 18px;
  background: #fdf3e8;
  border: 2px solid var(--c-accent);
  border-left: 6px solid var(--c-accent);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.75;
}

.disclaimer {
  margin: 14px 0 24px;
  padding: 14px 16px;
  background: var(--c-surface);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text-sub);
}

/* ---------- 結果画面の補足 ---------- */
.notes {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.notes__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--c-border);
}

.notes__item::before {
  content: '✓';
  flex-shrink: 0;
  color: var(--c-brand);
  font-weight: 700;
}

.notes__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.notes__text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-text-sub);
}

/* ---------- 選択内容のふりかえり ---------- */
.summary {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-border);
}

.summary__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--c-border);
}

.summary__key {
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-sub);
}

.summary__value {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
}

/* ---------- 他の作業も一緒に頼むボタン ---------- */
.addmore {
  display: block;
  width: 100%;
  min-height: 62px;
  margin: 0 0 6px;
  padding: 14px 18px;
  background: var(--c-brand-soft);
  border: 2px dashed var(--c-brand);
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-brand-dark);
  cursor: pointer;
}

.addmore:hover { background: var(--c-bg); border-style: solid; }

.addmore__hint {
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-sub);
  text-align: center;
}

/* ---------- 内容をコピーするボタン ---------- */
.copy {
  display: block;
  width: 100%;
  min-height: 54px;
  margin: 0 0 14px;
  padding: 12px 16px;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text-sub);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.copy:hover { border-color: var(--c-brand); color: var(--c-brand); }

.copy--done {
  border-color: var(--c-brand);
  background: var(--c-brand-soft);
  color: var(--c-brand-dark);
}

/* ---------- 相談ボタン ---------- */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 66px;
  padding: 16px 20px;
  background: var(--c-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.cta:hover { background: var(--c-accent-dark); }

.cta:focus-visible { outline: 3px solid var(--c-accent-dark); outline-offset: 3px; }

/* 電話ボタン（枠線タイプ） */
.cta--phone {
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
  padding: 12px 20px;
  background: var(--c-bg);
  border: 2px solid var(--c-brand);
  box-shadow: none;
  color: var(--c-brand-dark);
}

.cta--phone:hover { background: var(--c-brand-soft); }

.cta--phone:focus-visible { outline: 3px solid var(--c-brand); }

.cta__phoneLabel { font-size: 15px; font-weight: 700; }

.cta__phoneNumber {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.cta__phoneHours {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-text-sub);
}

.cta__sub {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--c-text-sub);
  text-align: center;
}

/* ---------- デモ画面の相談ボタン（?mode=demo のときだけ） ---------- */
.demoCta {
  margin: 0 0 8px;
  padding: 18px 17px;
  background: var(--c-brand-soft);
  border: 2px solid var(--c-brand);
  border-radius: var(--radius);
  text-align: center;
}

.demoCta__heading {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-brand-dark);
}

.demoCta .cta { margin: 0; }

.result__back {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
}

.restart {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  padding: 12px;
  background: none;
  border: none;
  font: inherit;
  font-size: 15px;
  color: var(--c-text-sub);
  text-decoration: underline;
  cursor: pointer;
}

.restart:hover { color: var(--c-brand); }

/* ---------- パソコン向けの微調整 ---------- */
@media (min-width: 600px) {
  body { font-size: 17px; }
  .sim { padding: 32px 24px 48px; }
  .sim__title { font-size: 26px; }
  .result__price { font-size: 34px; }
}
