@charset "utf-8";

/* simulation.css */

/* シミュレーション全体の枠 */
#tel-check-form_sim {
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  position: relative;  /* ★追加 */
}

/* =========================
   ローディングオーバーレイ
   ========================= */
#tel-check-form_sim .sim-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.6);
  /*background: rgba(255,255,255,0.85);*/
  backdrop-filter: blur(3px); /* 強すぎない程度 */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 20;
  opacity: 0;               /* ここ追加 */
  pointer-events: none;     /* クリック抜けるように */
  transition: opacity .25s ease; /* フェード */
}

#tel-check-form_sim .sim-loading-overlay.is-active {
  opacity: 1;               /* ここだけON */
  pointer-events: auto;
}

#tel-check-form_sim .sim-loading-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid #ffe0a3;
  border-top-color: #e53935;
  animation: simSpin 0.8s linear infinite;
  margin-bottom: 10px;
}

#tel-check-form_sim .sim-loading-text {
  font-size: 14px;
  color: #555;
}

/* ぐるぐる回転 */
@keyframes simSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


/* ステップ切替 */
#tel-check-form_sim .sim-step {
  animation: simFade 0.25s ease;
}

@keyframes simFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* タイトル */
#tel-check-form_sim .sim-title {
  font-size: clamp(18px, 2.4vw, 22px);
  margin-bottom: 20px;
  text-align: center;
}

/* 画像カードのグリッド */
/*
#tel-check-form_sim .sim-options {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
*/
#tel-check-form_sim .sim-options {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px;
    display: grid;
    gap: 16px;

    /* 固定幅 */
    grid-template-columns: repeat(auto-fit, 220px);

    /* 行全体を中央寄せ */
    justify-content: center;

    /* 新しい行に流す */
    grid-auto-flow: row;
}


/*#tel-check-form_sim .sim-step-3 .sim-options {
  margin: 0 0 10px;
}*/

/* STEP2だけはflexで、2段目も中央寄せにする */


/* 1つのカードの幅（PC） */



#tel-check-form_sim .sim-option {
  display: block;
  cursor: pointer;
}

#tel-check-form_sim .sim-option input[type="radio"] {
  display: none;
}

#tel-check-form_sim .sim-option__card {
  border-radius: 14px;
  border: 2px solid #e0e0e0;
  background: #fafafa;
  padding: 10px 10px 12px;
  text-align: center;
  transition: all 0.15s ease;
}

#tel-check-form_sim .sim-option__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 8px;
}

#tel-check-form_sim .sim-option__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#tel-check-form_sim .sim-option__label {
  font-size: 17px;
}

#tel-check-form_sim .sim-note {
  display: block;
  text-align: center;
  margin-bottom: 30px;
}

#tel-check-form_sim .sim-option__card:hover {
  border-color: #37a6da;
  box-shadow: 0 0 0 3px rgba(55,166,218,0.15);
  transform: translateY(-1px);
}

#tel-check-form_sim .sim-option input[type="radio"]:checked + .sim-option__card {
  border-color: #37a6da;
  background: #e9f7fd;
  box-shadow: 0 0 0 3px rgba(55,166,218,0.25);
}

/* ボタン */
#tel-check-form_sim .sim-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

/* ボタン共通 */
#tel-check-form_sim .sim-btn {
  min-width: 140px;
  padding: 10px 32px;  /* 右側少し広めに */
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;  /* 矢印配置用 */
  overflow: hidden;
}

/* ▶ 右向きくの字矢印（次へ／送信ボタン用） */
#tel-check-form_sim .sim-btn-next::after,
#tel-check-form_sim .sim-btn-submit::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-50%) rotate(-45deg);
}


/* 前に戻る：サブボタン */
#tel-check-form_sim .sim-btn-prev {
  background: #fff;
  color: #666;
  border: 1px solid #d0d0d0;
  box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}

/* 次へ・結果を見る：メインCTAボタン */
#tel-check-form_sim .sim-btn-next {
  background: #e53935;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 0 #c62828;
  position: relative;
  padding-right: 32px;   /* 矢印分少し右側に余白 */
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}


/* 結果・入力エリア（共通） */
#tel-check-form_sim .sim-result {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.7;
}

#tel-check-form_sim .sim-step-5 .sim-title {
  font-size: clamp(20px, 2.6vw, 24px);
  margin-bottom: 30px;
  letter-spacing: 0.08em;
}

/* 結果ボックス */
#tel-check-form_sim .sim-step-5 .sim-result {
  max-width: 610px;
  margin: 0 auto 30px;
  padding: 18px 20px 20px;
  background: #fff7e0;
  border-radius: 14px;
  border: 1px solid #ffe0a3;
  font-size: clamp(16px, 3.8vw, 20px);
}
@media (max-width:767px) {
  #tel-check-form_sim .sim-step-5 .sim-result {
    line-height: 1.4;
    padding: 18px 10px 20px;
  }
  
#tel-check-form_sim .sim-option__label {
  font-size: 13px;
}
}

/* 「大幅な電気代の削減が可能です！」を強調 */
#tel-check-form_sim .sim-step-5 .sim-result_big {
  display: inline-block;
  font-size: clamp(22px, 3.1vw, 30px);
  font-weight: 800;
  color: #e53935;
  padding: .1em .7em;
  background: linear-gradient(transparent 55%, #ffe9a7 0%);
  border-radius: 6px;
  margin-bottom: .6em;
}
@media (max-width:767px) {
  #tel-check-form_sim .sim-step-5 .sim-result_big {
    margin-top: .3em;
  }
}

/* ガイドテキスト */
#tel-check-form_sim .sim-result_guide {
  display: inline-block;
}

/* 入力リストは真ん中寄せ */
#tel-check-form_sim .sim-input-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 26px;
  max-width: 380px;
}

/* 送信ボタンをメインCTAっぽく */
#tel-check-form_sim .sim-btn-submit {
  background: #e53935;
  color: #fff;
}

#tel-check-form_sim .sim-btn-next:hover,
#tel-check-form_sim .sim-btn-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}


/* STEP5 のボタンは少し余白をあける */
#tel-check-form_sim .sim-step-5 .sim-buttons {
  margin-top: 16px;
}


#tel-check-form_sim .sim-input-list li {
  margin-bottom: 12px;
}

#tel-check-form_sim .sim-input-list p {
  margin: 0 0 4px;
  font-size: 15px;
}

#tel-check-form_sim .sim-input-list input[type="text"],
#tel-check-form_sim .sim-input-list input[type="tel"],
#tel-check-form_sim .sim-input-list input[type="email"],
#tel-check-form_sim .sim-input-list input[type="text"] {
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

#tel-check-form_sim .sim-required {
  display: inline-block;
  margin-left: 1em;
  padding: .4em 0.6em;
  font-size: 11px;
  color: #fff;
  background-color: #e53935;
  border-radius: 4px;
  line-height: 1;
  transform: translateY(-1px);
}

#tel-check-form_sim .sim-input-list label {
  display: block;
}

/* SP */
@media (max-width: 640px) {
  #tel-check-form_sim {
    padding: 20px 12px 30px;/*16px 12px;*/
    margin: 0 10px 24px;
  }
}
@media (max-width: 640px) {
  #tel-check-form_sim .sim-options {
    display: grid;
    grid-template-columns: repeat(2, 46%);
    gap: 20px;
    justify-content: center;
  }

  #tel-check-form_sim .sim-options li {
    width: 100%;
  }
}


#tel-check-form_sim .sim-error {
  display: none;
  color: #dd2723;
  text-align: center;
  font-size: 13px;
  margin: 0 0 8px;
}

/* =========================
   シミュレーション見出し
   ========================= */
.step-title.type-card {
  margin-bottom: 2em;
  display: flex;
  align-items: center;
  gap: 0.8em;
  justify-content: center;
}

/*.step-title.type-card .step-no {
  background: #ff7d1e;
  color: #fff;
  padding: 0.3em .7em;
  border-radius: 5px;
}*/

.step-title.type-card .step-txt {
  font-size: 2.3rem;/*2rem*/
}
span.qus {
    color: #e53935;
    font-family: 'Roboto';
}
/* SP */
@media (max-width: 640px) {
  .step-title.type-card .step-txt {
    font-size: 2rem;
}
}
/* =========================
   シミュレーション結果 見出し
   ========================= */
#tel-check-form_sim .sim-heading {
  position: relative;
  font-size: clamp(20px, 2.6vw, 24px);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-bottom: .5em;
  margin-bottom: 1.8em;
}

/* 下にグラデーションの短いライン */
#tel-check-form_sim .sim-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 140px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb74d, #e53935);
}


/* 左にスライドしながらフェードアウト（次へ） */
@keyframes simSlideFadeLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

/* 右にスライドしながらフェードアウト（戻る） */
@keyframes simSlideFadeRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* 退場中のステップ（次へ） */
#tel-check-form_sim .sim-leave-left {
  animation: simSlideFadeLeft 0.25s ease forwards !important;
}

/* 退場中のステップ（戻る） */
#tel-check-form_sim .sim-leave-right {
  animation: simSlideFadeRight 0.25s ease forwards !important;
}

/* 結果ステップのふんわり表示 */
#tel-check-form_sim .sim-step-result-in {
  animation: simResultIn 0.7s ease-out;
}

@keyframes simResultIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ステップバー全体 */
.sim-progress {
  --progress: 0; /* 0〜1 を JS から入れる */
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 320px;
  margin: 0 auto 18px;
  padding: 0;
}

/* 背景ライン（グレー） */
.sim-progress::before {
  content: "";
  position: absolute;
  left: 17px;/* 丸い数字の1/2 */
  right: 17px;/* 丸い数字の1/2 */
  top: 50%;
  height: 4px;
  background: #eee;
  transform: translateY(-50%);
  z-index: 0;
}

/* 手前の塗りつぶしライン（オレンジ） */
.sim-progress::after {
  content: "";
  position: absolute;
  left: 17px;/* 丸い数字の1/2 */
  top: 50%;
  height: 4px;
  background: #ff7d1e;
  transform: translateY(-50%);
  z-index: 1;
  width: calc((100% - 24px) * var(--progress));
  transition: width .6s ease;
}

/* 丸い数字 */
.sim-progress__step {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #555;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 現在のステップ */
.sim-progress__step.is-active {
  border-color: #ff7d1e;
  background: #ff7d1e;
  color: #fff;
}

/* 通過済みステップ（必要なら） */
.sim-progress__step.is-done {
  border-color: #ff7d1e;
  background: #ff7d1e;
  color: #fff;
}
