@charset "utf-8";
/* mitsumori-3_include.css */
/* 全体青背景 */
.mitsumori-2_wrapper {
 background-color: #0080ca;
 background-image: url("../img/mitsumori-2_bg.svg");
 background-repeat: repeat;
 background-position: center;
 padding: 50px 0;
}
.sim-wrapper {
 width: 95%;
 margin: 0 auto;
}
.mitsumori-2_ttl {
 max-width: 890px;
 margin: 0 auto;
 padding: 0;
 width: 90%;
}
/* 白いカード */
.sim-card {
 background: #fff;
 border-radius: 24px;
 padding: 40px 25px 30px;
 max-width: 920px;
 margin: 0 auto 25px;
 box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
@media (max-width:767px) {
 .sim-card {
  padding: 25px;
 }
}
.sim-question {
 font-size: clamp(20px, 4vw, 25px);
 font-weight: 600;
 margin-bottom: 26px;
 letter-spacing: .05em;
 position: relative;
 padding-left: 18px;
 margin-left: 10px;
}
@media (max-width:767px) {
 .sim-question {
  margin-bottom: 16px;
  letter-spacing: .02em
 }
}
/* 左の縦線 */
.sim-question::before {
 content: "";
 position: absolute;
 left: 0;
 top: 50%;
 transform: translateY(-50%);
 width: 5px; /* 線の太さ */
 height: 1.4em; /* 線の長さ（文字の高さくらい） */
 background: #0076c8; /* 好きな青に変更OK */
 border-radius: 999px; /* 角を丸くしてそれっぽく */
}
/* 選択肢エリア */
.sim-options {
 display: flex;
 gap: 12px;
}
.sim-options input[type="radio"] {
 display: none;
}
.sim-option {
 flex: 1;
 border-radius: 9999px;
 border: 2px solid #0076c8;
 padding: 15px 25px;
 display: flex;
 align-items: center;
 justify-content: left;
 gap: 12px;
 font-weight: 600;
 color: #004a8a;
 background: #ffffff;
 cursor: pointer;
 transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease, transform .1s ease;
}
@media (max-width:767px) {
 .sim-option {
  gap: 10px;
 }
}
/* 選択中の見た目 */
.sim-options input[type="radio"]:checked + .sim-option {
 border-color: transparent;
 /* ★黄色グラデーション */
 border: none;
 background: linear-gradient(90deg, #ffe86a 0%, #ffc800 100%);
 color: #004a8a;
 transform: translateY(1px);
}
.sim-icon {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 line-height: 1;
}
.sim-text {
 font-size: clamp(18px, 3vw, 20px);
}
/* プラン診断スタートボタン */
.sim-submit {
 display: block;
 margin: 30px auto 0;
 padding: 20px 120px;
 border-radius: 9999px;
 border: none;
 background: #FFD84D;
 color: #333;
 font-size: clamp(18px, 4vw, 23px);
 letter-spacing: .05em;
 font-weight: 700;
 cursor: pointer;
 transition: transform .1s ease;
}
@media (max-width:767px) {
 .sim-submit {
  padding: 15px;
  width: 86%;
 }
}
.sim-submit:hover {
  opacity: .8;
 transform: translateY(2px);
}
/* ご家族人数だけ 2×2 レイアウトにしたい */
.sim-options--grid {
 flex-wrap: wrap;
}
.sim-options--grid .sim-option {
 flex: 0 0 calc(50% - 6px); /* 2列 */
}
/* SPは1列にしたい場合 */
@media (max-width: 640px) {
 .sim-options--grid .sim-option {
  flex: 0 0 100%;
 }
}
/* スマホ */
@media (max-width: 640px) {
 .sim-options {
  flex-direction: column;
 }
}
/* 診断結果カード全体 */
.sim-result {
 max-width: 920px;
 margin: 60px auto 0;
 padding: 32px 20px 24px;
 border-radius: 24px;
 background: #f0fbff; /* うすい水色 */
 text-align: center;
 box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
 position: relative;
}
/* 上の「診断結果」リボン */
.sim-result::before {
 content: "診断結果";
 position: absolute;
 top: -30px;
 left: 50%;
 transform: translateX(-50%);
 padding: 10px 0 6px;
 border-radius: 999px;
 background: #00a7ff;
 color: #fff;
 font-weight: 700;
 font-size: clamp(25px, 3.5vw, 30px);
 letter-spacing: 0.12em;
 width: 100%;
 max-width: 280px;
}
@media (max-width:767px) {
 .sim-result::before {
  width: 60%;
  padding: 7px 0 6px;
 }
}
/* テキスト */
.result-total, .result-discount, .result-note {
 margin-bottom: 5px;
 font-size: clamp(20px, 2.6vw, 26px);
 line-height: 1.6;
 text-align: center;
 font-weight: bold;
}
@media (max-width:767px) {
.result-total, .result-discount, .result-note {
  margin-bottom: 5px;
}
}
.result-total {
 margin-top: 40px;
 line-height: 1.4;
 margin-bottom: 20px;
}
@media (max-width:767px) {
 .result-total {
  margin-top: 30px;
 }
}
.sim-money {
  display: block;
  font-size: clamp(23px, 4.2vw, 35px);
}
/* 金額をちょっと大きく・オレンジに */
#sim-total, #sim-discount {
 font-size: 40px;
 font-weight: 800;
 color: #ff7a00;
}
/* 注意書き */
.result-note {
 margin-bottom: 40px;
 font-size: clamp(10px, 1.2vw, 12px);
 color: #666;
}
@media (max-width:767px) {
  .result-note {
    margin-bottom: 30px;
  }
}

.sim-lead {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
}
/* 下の「申し込む」ボタン風 */
.sim-submit-secondary {
 position: relative;
 margin: 25px auto 20px;
 padding: 20px 80px;
 border-radius: 999px;
 border: none;
 font-size: clamp(18px, 4vw, 23px);
 font-weight: 700;
 color: #fff;
 cursor: pointer;
 background: #ff7a00;
 transition: transform 0.1s ease;
}
@media (max-width:767px) {
  .sim-submit-secondary {
    padding: 10px 50px;
    letter-spacing: 0.05em;
    line-height: 1.5;
  }
}
/* くの字矢印 */
.sim-submit-secondary::after{
  content:"";
  position:absolute;
  right: 26px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: translateY(-50%) rotate(45deg); /* ＞ になる */
  opacity: .95;
}
@media (max-width:767px){
  .sim-submit-secondary::after{
    right: 18px;
    width: 9px;
    height: 9px;
    border-top-width: 2px;
    border-right-width: 2px;
  }
}
.sim-submit-secondary:hover {
  opacity: .8;
  transform: translateY(2px);
}

@media (max-width:767px) {
.sim-submit-lead {
  display: block;
  font-size: 14px;
}
.sim-submit-main {
  display: block;
  font-size: 20px;
}
}

/* スマホ向け微調整 */
@media (max-width:767px) {
 .sim-result {
  margin-top: 60px;
  padding: 28px 16px 20px;
 }
 #sim-total, #sim-discount {
  font-size: 24px;
 }
}
/* 診断結果：ふわっと表示アニメーション用 */
.sim-result {
 opacity: 0;
 transform: translateY(16px);
 transition: opacity 0.6s ease, transform 0.6s ease;
}
/* 表示状態のときに付けるクラス */
.sim-result.is-visible {
 opacity: 1;
 transform: translateY(0);
}
/* 割引額の数字部分を安定させる */
.sim-number {
 display: inline-block;
 min-width: 8ch; /* だいたい 〜99,999円 くらいまで想定。必要に応じて増減OK */
 text-align: center;
 font-variant-numeric: tabular-nums; /* 対応フォントなら数字を等幅に */
 -moz-font-feature-settings: "tnum";
 font-feature-settings: "tnum";
 background-color: #fff;
 margin: 12px;
 border-radius: 10px;
 font-size: clamp(36px, 5vw, 60px)!important;
 padding: 8px 0;
}
@media (max-width:767px) {
  .sim-number {
    min-width: 7ch;
    margin: 6px;
    padding: 5px 0;
  }
}
.sim-input-list {
 list-style: none;
 padding: 0;
 margin: 0 auto 26px;
 max-width: 600px;
}
@media (max-width:767px) {
 .sim-input-list {
  margin: 0 auto;
 }
}
.sim-input-list li {
 margin-bottom: 30px;
 text-align: left;
}
@media (max-width:767px) {
  .sim-input-list li {
    margin-bottom: 20px;
  }
}
.sim-input-list label {
 display: block;
}
.sim-input-list p {
 margin: 0 0 4px;
 font-size: 16px;
  font-weight: bold;
}
.sim-required {
 display: inline-block;
 margin-right: 1em;
 padding: .4em 0.6em;
 font-size: 11px;
 color: #fff;
 background-color: #e53935;
 border-radius: 4px;
 line-height: 1;
 transform: translateY(-2px);
}
.sim-input-list input[type="text"], .sim-input-list input[type="tel"] {
 width: 100%;
 box-sizing: border-box;
 padding: 14px;
 border-radius: 6px;
 border: 1px solid #ccc;
 font-size: 16px;
}
@media (max-width:767px) {
 .sim-input-list input[type="text"], .sim-input-list input[type="tel"] {
  height: unset;
   padding: 12px;
 }
}
#error-message4 {
 display: none;
 font-size: clamp(9px, 2.9vw, 11px);
 line-height: 1.6;
 margin-top: 0;
 background: #ffed0d;
 color: #111;
 width: auto;
 padding: 4px 1em 3px 1em;
 text-align: left;
}
#error-message4:before {
 content: "\f06a";
 font-family: "Font Awesome 5 Free";
 font-weight: bold;
 color: #ff004b;
 font-size: 13px;
 display: inline-block;
 margin-right: 3px;
}
.sim-select {
 width: 100%;
 position: relative;
}
.sim-select select {
 width: 100%;
 box-sizing: border-box;
 padding: 15px 25px;
 border: 2px solid #0076c8;
 font-size: clamp(18px, 3vw, 20px);
 font-weight: 600;
 height: unset;
 color: #666;
 background-color: #fff;
 transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
 /* ▼ 矢印を自前にする（ブラウザ依存でOKなら省略可） */
 -webkit-appearance: none;
 appearance: none;
}
.sim-select select:hover {
 background-color: #0076c8 !important;
 color: #fff;
}
/* ▼を自作（今の青で表示） */
.sim-select::after{
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #0076c8; /* 通常色 */
  pointer-events: none;
}

/* ホバー時に白 */
.sim-select:hover::after{
  border-top-color: #fff;
}
/* IE/旧Edge 対策（あれば） */
.sim-select select::-ms-expand{
  display: none;
}
.sim-select select option {
 font-size: clamp(16px, 2.4vw, 18px);
 background: #fff;
 color: #666;
}
/* 選択済み（クラス付与時）は黄色グラデーションで他のボタンと合わせる */
.sim-select.is-selected select {
 border-color: transparent;
 background-image: none; /* 矢印が邪魔なら消してOK */
 background: linear-gradient(90deg, #ffe86a 0%, #ffc800 100%);
 color: #004a8a;
 border: none;
}
#sim-total.is-highlight {
 animation: total-pop 2s ease;
}
@keyframes total-pop {
 0% {
  transform: scale(1);
  opacity: 0;
 }
 60% {
  transform: scale(1.08);
  opacity: 1;
 }
 100% {
  transform: scale(1);
  opacity: 1;
 }
}
.sim-error {
 display: none;
 margin: 0;
 color: #000;
 font-size: 11px !important;
 background: #FFED0D;
 border-radius: 3px;
 padding: 4px 1em 3px 1em;
 width: auto;
 text-align: left;
 line-height: 1.6;
 align-items: center;
}
.sim-error:before {
 content: "\f06a";
 font-family: "Font Awesome 5 Free";
 font-weight: bold;
 color: #ff004b;
 font-size: 13px;
 display: inline-block;
 margin-right: 3px;
}

