@charset "UTF-8";
/**
 * simulation4.css
 * メインカラー #eb6120 を直書き（:root 不使用 / assets_ver2準拠）
 */

/* ============================================================
 * レイアウト
 * ============================================================ */
.sim4 {
  background: #f6f4f0;
  padding: 48px 0 80px;
}
.sim4__inner {
  max-width: 880px;
  margin: 0 auto;
}

/* ============================================================
 * STEPインジケーター
 * ============================================================ */
.sim4__steps {
  display: flex;
  margin-bottom: 40px;
}

.sim4__step {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 4px;
  background: #e0ddd8;
  color: #999;
  text-align: center;
  position: relative;
  transition: background .2s, color .2s;
  /* ソーセージ型：最初と最後だけ半円 */
}

/* 最初のSTEP：左半円 */
.sim4__step:first-child {
  border-radius: 999px 0 0 999px;
  padding-left: 16px;
}

/* 最後のSTEP：右半円 */
.sim4__step:last-child {
  border-radius: 0 999px 999px 0;
  padding-right: 16px;
}

/* STEPの区切り線 */
.sim4__step + .sim4__step {
  border-left: 1px solid rgba(255,255,255,0.4);
}

.sim4__step.is-done {
  background: #f5c4a8;
  color: #fff;
}

.sim4__step.is-active {
  background: #eb6120;
  color: #fff;
}

.sim4__step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.sim4__step-num {
  margin-left: 2px;
  font-size: 14px;
}

.sim4__step-txt {
  font-size: 16px;
  font-weight: 700;
}

/* ============================================================
 * 設問セクション（1問ずつ表示）
 * ============================================================ */
.sim4__section {
  display: none;
}
.sim4__section.is-active {
  display: block;
}

/* STEP2〜4の「次へ」「戻る」ボタンを非表示（ラジオ選択で自動進行） */
.js-sim4-back {
  display: none;
}
#js-sim4-step2 .js-sim4-next,
#js-sim4-step3 .js-sim4-next {
  display: none;
}
.sim4__block {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}
.sim4__block-ttl {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f0ede8;
}
.sim4__block-step {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  padding: 6px 12px;
  background: #eb6120;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.sim4__block-step-num {
  margin-left: 3px;
  font-size: 18px;
}
.sim4__block-step-txt {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}
.sim4__box {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}
.sim4__step1-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.sim4__step1-left {
  flex: 1;
}
.sim4__step1-right {
  flex: 0 0 260px;
  max-width: 260px;
}
.sim4__desc {
  margin-bottom: 20px;
  color: #555;
}
.sim4__desc strong {
  color: #eb6120;
  font-weight: 700;
}

/* ============================================================
 * STEP1：坪入力
 * ============================================================ */
.sim4__tsubo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}
.sim4__tsubo label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sim4__tsubo input,
.sim4__tsubo select {
  width: 100px;
  padding: 10px 8px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  appearance: auto;
}
.sim4__tsubo input:focus,
.sim4__tsubo select:focus {
  outline: none;
  border-color: #eb6120;
}

/* ============================================================
 * ラジオカードUI
 * ============================================================ */
.sim4__radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sim4__radio-btn {
  display: block;
  cursor: pointer;
}
.sim4__radio-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.sim4__radio-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fafafa;
  border: 2px solid #ddd;
  border-radius: 10px;
  height: 100%;
  box-sizing: border-box;
  transition: border-color .2s, background .2s;
}
/* ラジオボタンの○を非表示 */
.sim4__radio-check {
  display: none;
}
.sim4__radio-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
/* 耐久年数（旧スタイル）は非表示 */
.sim4__radio-duration {
  display: none;
}
.sim4__radio-plan {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}
/* 耐久年数バッジ（右側） */
.sim4__radio-duration-badge {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #eb6120;
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  min-width: 72px;
}
.sim4__radio-duration-label {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  opacity: 0.9;
}
.sim4__radio-duration-val {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.sim4__radio-duration-val strong {
  font-weight: 700;
}
.sim4__radio-product {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: #444;
  line-height: 1.5;
}
.sim4__radio-product-label {
  display: inline-block;
  padding: 1px 7px;
  background: #eb6120;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.sim4__radio-btn:hover .sim4__radio-inner {
  border-color: #eb6120;
}
.sim4__radio-btn.is-checked .sim4__radio-inner {
  border-color: #eb6120;
  background: #fdf2ec;
}
/* ○のafter擬似要素も非表示 */
.sim4__radio-btn.is-checked .sim4__radio-check::after {
  display: none;
}

/* ============================================================
 * エラー表示
 * ============================================================ */
.sim4__error {
  margin-top: 12px;
  color: #d63b3b;
  font-size: 14px;
  font-weight: 700;
}

/* ============================================================
 * ナビゲーション（戻る／次へ）
 * ============================================================ */
.sim4__nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 56px;
}
.sim4__btn-next,
.sim4__btn-back {
  min-width: 200px;
  padding: 16px 28px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, background .2s;
  text-align: center;
}
.sim4__btn-next {
  background: #eb6120;
  color: #fff;
}
.sim4__btn-next:hover {
  opacity: .85;
}
.sim4__btn-back {
  background: #fff;
  color: #555;
  border: 2px solid #ccc;
}
.sim4__btn-back:hover {
  background: #f0f0f0;
}

/* ============================================================
 * 見積り結果エリア
 * ============================================================ */
.sim4__result {
  margin-top: 40px;
}
.sim4__result-inner {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}
.sim4__result-ttl,
.sim4__thanks-result-ttl {
  font-size: 36px;
  font-weight: 700;
  color: #eb6120;
  text-align: center;
  margin-bottom: 8px;
}
.sim4__result-note,
.sim4__thanks-result-note {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-bottom: 24px;
}

.sim4__result-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.sim4__result-price-label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
.sim4__result-price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.sim4__result-price-num {
  font-size: 36px;
  font-weight: 700;
  color: #eb6120;
}
.sim4__result-price-unit {
  font-size: 13px;
  font-weight: 700;
  color: #eb6120;
}

.sim4__result-info,
.sim4__result-output,
.sim4__result-total {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 15px;
}
.sim4__result-info th,
.sim4__result-info td,
.sim4__result-output th,
.sim4__result-output td,
.sim4__result-total th,
.sim4__result-total td {
  border: 1px solid #e0ddd8;
  padding: 12px 16px;
}
.sim4__result-info th,
.sim4__result-output th,
.sim4__result-total th {
  background: #f6f4f0;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  width: 40%;
}
.sim4__result-info td,
.sim4__result-output td,
.sim4__result-total td {
  text-align: right;
}
.sim4__result-output-head th,
.sim4__result-total-head th {
  background: #555 !important;
  color: #fff;
  text-align: center !important;
  width: auto !important;
}
.sim4__result-all th,
.sim4__result-all td {
  background: #fdf2ec;
  color: #eb6120;
  font-weight: 700;
  font-size: 17px;
}
.sim4__result-txt {
  margin-top: 16px;
  font-size: 14px;
  color: #555;
  text-align: center;
  line-height: 1.8;
}

/* ============================================================
 * CF7フォームエリア
 * ============================================================ */
.sim4__contact {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 2px solid #f0ede8;
}
.sim4__contact-ttl {
  font-size: 25px;
  font-weight: 700;
  color: #333;
  text-align: left;
  line-height: 1.6;
  margin-bottom: 12px;
}
.sim4__contact-desc {
  font-size: 12px;
  color: #555;
  line-height: 1.8;
  text-align: left;
  margin-bottom: 30px;
}
.sim4__contact-head {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 30px;
}
.sim4__contact-head-left {
  flex: 1;
}
.sim4__contact-head-left .sim4__contact-ttl {
  margin-bottom: 12px;
}
.sim4__contact-head-left .sim4__contact-desc {
  margin-bottom: 0;
}
.sim4__contact-head-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.sim4__contact-head-right img {
  height: 100%;
  max-height: 240px;
  width: auto;
  object-fit: contain;
}

@media screen and (max-width: 767px) {
  .sim4__contact-desc {
    display: none;
  }
  .sim4__contact-ttl {
    font-size: 18px;
  }
  .sim4__contact-head {
    flex-direction: row;
    position: relative;
    overflow: visible;
  }
  .sim4__contact-head-left {
    flex: 1;
    padding-right: 110px;
  }
  .sim4__contact-head-right {
    display: flex;
    position: absolute;
    right: -20px;
    top: 0;
    width: 120px;
  }
  .sim4__contact-head-right img {
    width: 120px;
    height: auto;
    max-height: none;
    transform: rotate(5deg);
  }
}
.pc-only {
  display: inline;
}
@media screen and (max-width: 767px) {
  .pc-only {
    display: none;
  }
}
.sim4-field {
  margin-bottom: 18px;
}
.sim4-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}
.sim4-field .req {
  color: #d63b3b;
  margin-left: 4px;
}
.sim4-field input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}
.sim4-field input:focus {
  outline: none;
  border-color: #eb6120;
}
.sim4-field-note {
  font-size: 12px;
  color: #555;
  margin-top: 4px;
  margin-bottom: 0;
}
.sim4-submit {
  margin-top: 24px;
  text-align: center;
}
.sim4-submit input[type="submit"] {
  min-width: 260px;
  padding: 16px 32px;
  background: #eb6120;
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}
.sim4-submit input[type="submit"]:hover {
  opacity: .85;
}

/* ============================================================
 * 完了（thanks）ページ
 * ============================================================ */
.sim4__thanks {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 48px 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
}
.sim4__thanks-head {
  text-align: center;
  margin-bottom: 40px;
}
.sim4__thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  background: #eb6120;
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  line-height: 1;
}
.sim4__thanks-ttl {
  font-size: 26px;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}
.sim4__thanks-lead {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
}
.sim4__thanks-result {
  margin-bottom: 32px;
}
.sim4__thanks-btn {
  text-align: center;
}
.sim4__btn-top {
  display: inline-block;
  min-width: 260px;
  padding: 16px 32px;
  background: #eb6120;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s;
}
.sim4__btn-top:hover {
  opacity: .85;
}

/* ============================================================
 * レスポンシブ
 * ============================================================ */
@media screen and (max-width: 767px) {
  .sim4 {
    padding: 32px 0 64px;
  }
  .sim4-field label {
    font-size: 16px;
  }
  .sim4__result-ttl,
  .sim4__thanks-result-ttl {
    font-size: 30px;
  }
  .sim4__result-price-num {
    font-size: 32px;
  }
  .sim4__radio-group {
    grid-template-columns: 1fr;
  }
  .sim4__radio-duration-badge {
    min-width: 64px;
    padding: 5px 8px;
  }
  .sim4__radio-duration-label {
    font-size: 9px;
  }
  .sim4__radio-duration-val {
    font-size: 12px;
  }
  .sim4__radio-plan {
    font-size: 15px;
  }
  .sim4__step1-inner {
    flex-direction: column;
  }
  .sim4__step1-right {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
  .sim4__steps {
    margin-bottom: 28px;
  }
  .sim4__step {
    padding: 8px 2px;
  }
  .sim4__step:first-child {
    padding-left: 10px;
  }
  .sim4__step:last-child {
    padding-right: 10px;
  }
  .sim4__step-label {
    font-size: 9px;
  }
  .sim4__step-num {
    font-size: 12px;
  }
  .sim4__step-txt {
    font-size: 14px;
  }
  .sim4__block,
  .sim4__result-inner {
    padding: 20px 16px;
    border-radius: 10px;
  }
  .sim4__block-ttl {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .sim4__block-step-txt {
    font-size: 22px;
  }
  .sim4__nav {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .sim4__btn-next,
  .sim4__btn-back {
    width: 100%;
    min-width: 0;
  }
  .sim4__result-info th,
  .sim4__result-output th,
  .sim4__result-total th {
    width: 42%;
    padding: 10px 12px;
  }
  .sim4__result-info td,
  .sim4__result-output td,
  .sim4__result-total td {
    padding: 10px 12px;
  }
  .sim4__thanks {
    padding: 32px 18px;
  }
  .sim4__thanks-ttl {
    font-size: 22px;
  }
}

/* PCのみ／SPのみ改行制御（テーマ既存の sp と整合） */
.sim4 br.sp {
  display: none;
}
@media screen and (max-width: 767px) {
  .sim4 br.sp {
    display: inline;
  }
}

/* =====================================================
 * sim4 メインビジュアル
 * ===================================================== */
.sim4-mv {
  width: 100%;
  line-height: 0;
  position: relative;
}
.sim4-mv img {
  width: 100%;
  height: auto;
  display: block;
}
.sim4-mv-btn-wrap {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}
.sim4-mv-btn {
  display: inline-block;
  padding: 24px 48px;
  background: #eb6120;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 999px;
  border: 3px solid #FFF;
  box-shadow: 0 6px 16px rgba(235, 97, 32, 0.45);
  text-decoration: none;
  transition: opacity .2s;
}
.sim4-mv-btn:hover {
  opacity: .85;
}

@media screen and (max-width: 767px) {
  .sim4-mv-btn {
    font-size: 16px;
    padding: 16px 36px;
  }
}

/* =====================================================
 * コスト比較モーダル
 * ===================================================== */
.sim4-popup-trigger {
  color: #eb6120;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  margin-left: 4px;
}
.sim4-popup-trigger:hover {
  text-decoration: underline;
}

.sim4-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.sim4-modal-overlay.is-open {
  display: flex;
}
.sim4-modal-inner {
  position: relative;
  max-width: 560px;
  width: 90%;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
}
.sim4-modal-inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.sim4-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sim4-modal-close:hover {
  background: #eb6120;
}

.sim4__thanks-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}
.sim4__btn-retry {
  display: inline-block;
  min-width: 260px;
  padding: 16px 32px;
  background: #eb6120;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: opacity .2s;
}
.sim4__btn-retry:hover {
  opacity: .85;
}
.sim4__thanks-bnr {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 480px;
}
.sim4__thanks-bnr-link {
  display: block;
}
.sim4__thanks-bnr-link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ============================================================
 * 旧テーマ（protimes_new）互換対応
 * style.css の `a:link { display: block; }` が詳細度で勝ってしまい、
 * ボタン類が意図せずブロック要素化・フル幅表示になるため、
 * .sim4 配下限定でスコープを付けて上書きする（style.css自体は変更しない）。
 * ============================================================ */
.sim4-mv .sim4-mv-btn {
  display: inline-block;
}
.sim4 .sim4__btn-top {
  display: inline-block;
}
.sim4 .sim4__btn-retry {
  display: inline-block;
}
.sim4 .sim4-popup-trigger {
  display: inline;
}

/* ============================================================
 * 旧テーマ（protimes_new）互換対応：左右余白
 * protimes2025では l-inner クラス（共通レイアウトの左右余白）を
 * 併用する前提だったが、旧テーマには l-inner 自体が存在しないため、
 * .sim4__inner 側だけで左右余白を完結させる。
 * ============================================================ */
.sim4__inner {
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
@media screen and (min-width: 768px) {
  .sim4__inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}
