/* ============================================================
   NECグループ団体保険サイト（1分シミュレーション）の実測値に合わせた実装
   基調色 #08675A / 選択 #E8F4EF / 枠線 #C8C8C8 / 面 #F7F7F7 / 打消し #BF0C0C
   ============================================================ */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  min-width:320px;background:#fff;color:#333;
  font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  font-size:16px;font-weight:500;line-height:1.5;letter-spacing:.8px;
  -webkit-font-smoothing:antialiased;
  padding-bottom:212px; /* 追従フッターの実高(約200px)ぶん */
}
ul,ol{list-style:none}
button{font:inherit;background:none;border:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
select{font:inherit}
img,svg{vertical-align:top}

/* ---------- ヒーロー ---------- */
.headline__container{position:relative;padding:40px 0 0;background:#EDF7F1;text-align:center}
.headline__container .inner{
  max-width:1024px;margin:auto;display:flex;align-items:flex-end;justify-content:center;
}
.page_header_text{max-width:606px}
.headline__top-text-pc{position:relative;font-size:23px;font-weight:600;color:#08675A;line-height:1.5}
.headline__top-text-sp{display:none}
.headline__middle-text{margin-top:30px;font-size:28px;font-weight:600;line-height:1.5;letter-spacing:.01em;color:#333}
.headline__bottom-text{margin:16px 0 8px;font-size:42px;font-weight:600;line-height:1.5;letter-spacing:-1.5px;color:#333}
.page_header_image{flex:none;margin-left:24px}
.headline-family__img{width:202px;height:162px}

/* ---------- 概要テキスト ---------- */
.overview__container{max-width:1100px;margin:auto;padding-top:8px;text-align:center}
.overview__container .text{margin:27px 0 6px;font-size:16px;font-weight:500;line-height:1.5}
.overview__container .text.small{margin:0 0 27px;font-size:13px;font-weight:500;line-height:1.5}

/* ---------- シミュレーション本体 ---------- */
.simulation{position:relative;background:#fff}
/* 追従バーぶんの余白は body の padding-bottom 一箇所で持つ（ここで足すと二重になる） */
.estimate{max-width:1320px;margin:auto;padding:0 20px;background:#F7F7F7}
.estimate > .inner{max-width:964px;margin:auto;padding:50px 0}

.notice-band{
  background:#E8F4EF;font-size:20px;font-weight:700;line-height:1.5;
  padding:18px 20px;text-align:center;margin-bottom:30px;
}
/* 「NECオリジナル火災保険」バナーと同じ、黄色マーカーで強調する見せ方 */
.notice-band .mark{
  background:linear-gradient(transparent 58%,#FEFF00 58%);
  padding:0 4px;color:#08675A;
}
.notice-band .rate{font-size:32px;color:#08675A;letter-spacing:-.02em}
.notice-band .sub{display:block;margin-top:4px;font-size:13px;font-weight:500;color:#6F6F6F}

.step-contents{
  display:flex;background:#fff;border-radius:18px;min-height:185px;padding:24px;margin-bottom:30px;
}
.step-contents .left-area{width:20%;border-right:1px solid #C8C8C8;padding-right:20px}
.step-contents .left-info{display:flex;flex-flow:column;margin-bottom:12px}
.step-contents .left-info-title{
  display:flex;align-items:center;color:#08675A;
  font-size:16px;font-weight:700;letter-spacing:0;line-height:1.5;margin-bottom:8px;
}
.step-contents .left-info-title .step{margin-right:8px}
.step-contents .left-info-title .number{font-size:40px}
.step-contents .left-info-text{display:flex;flex-flow:column;flex:1;font-size:16px;font-weight:700;letter-spacing:0;line-height:1.5}
.step-contents .left-info-text .small{display:block;margin-top:4px;font-size:13px;font-weight:500;color:#6F6F6F}
.step-contents .right-area{width:80%;padding-left:26px;display:flex;align-items:center}

/* 選択ボタン（NECの .form-button 相当。JSフック維持のため .seg / .opt を使用） */
.seg{display:flex;flex-wrap:wrap;align-items:center;width:calc(100% + 12px)}
.seg label{display:block;width:calc(33.3333% - 12px);margin-right:12px;cursor:pointer;position:relative}
.seg input{position:absolute;left:0;width:1em;height:1em;opacity:0}
.seg .opt{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center;
  height:70px;padding:20px 18px;border:1px solid #C8C8C8;border-radius:10px;background:#fff;
  font-size:16px;font-weight:700;line-height:1.4;
  transition:background .2s ease-in-out,border-color .2s ease-in-out;
}
.seg input:checked + .opt{background:#E8F4EF;border-color:#08675A;box-shadow:0 0 12px #CBE7DC;user-select:none}
.seg input:focus-visible + .opt{outline:3px solid rgba(58,74,160,.35);outline-offset:2px}
.seg .opt b{display:block;width:100%;font-size:16px;font-weight:700;line-height:1.8}
.seg .opt small{display:block;width:100%;margin-top:2px;font-size:12px;font-weight:700;color:#6F6F6F;line-height:1.5}

/* 建物の種類（イラスト付きの縦長カード） */
.seg-type label{width:calc(33.3333% - 12px);margin-right:12px}
.seg-type .opt{height:206px;padding:18px 14px;align-content:center}
.seg-type .type-illust{display:block;width:135px;height:108px;margin:0 auto 10px}
.seg-type .opt b{margin-bottom:2px}

/* 築年数 */
.seg-age label{width:calc(33.3333% - 12px);margin-right:12px;margin-bottom:12px}
.seg-age .opt{height:54px;padding:8px;font-size:14px}

/* 延床面積 */
.seg-area label{width:calc(33.3333% - 12px);margin-right:12px;margin-bottom:12px}
.seg-area .opt{height:70px;padding:10px 8px;align-content:center}

/* 所在地 */
.select-wrap{position:relative;width:100%;max-width:308px}
.select-wrap::after{
  content:'';position:absolute;right:18px;top:50%;width:9px;height:9px;
  border-right:2px solid #08675A;border-bottom:2px solid #08675A;
  transform:translateY(-70%) rotate(45deg);pointer-events:none;
}
select{
  width:100%;height:70px;padding:0 44px 0 18px;appearance:none;
  border:1px solid #C8C8C8;border-radius:10px;background:#fff;
  font-size:16px;font-weight:700;color:#333;cursor:pointer;
}
select:hover{border-color:#08675A}
select:focus{outline:0;background:#E8F4EF;border-color:#08675A;box-shadow:0 0 12px #CBE7DC}

/* 選択内容の確認バンド（NECの .grade-text 相当） */
.grade-text{
  background:#E8F4EF;font-size:24px;font-weight:700;line-height:1.4;padding:20px;text-align:center;
}
.grade-text .sep{margin:0 6px;color:#08675A;font-weight:500}
.grade-text strong{font-weight:700;border-radius:4px}
.grade-text strong.bump{animation:bump .5s ease-out}
@keyframes bump{0%{background:#CBE7DC;box-shadow:0 0 0 5px #CBE7DC}100%{background:transparent;box-shadow:0 0 0 5px transparent}}
.grade-note{margin-top:10px;font-size:13px;font-weight:500;color:#6F6F6F;text-align:center}
/* 試算ボタンは廃止。条件を選ぶと結果が自動で更新される（先方要望・NEC自動車版と同じ挙動） */
#summaryPanel{margin-bottom:30px}

.errbox{
  display:none;margin:20px 0 0;padding:14px 18px;border:1px solid #BF0C0C;border-radius:10px;
  background:#fdf0ef;color:#BF0C0C;font-size:14px;font-weight:700;line-height:1.7;
}
.errbox.show{display:block}

/* ---------- 取得中 ---------- */
.loading{display:none;background:#fff;border-radius:18px;padding:36px 24px;margin-bottom:30px;text-align:center}
.loading.show{display:block}
.loader{position:relative;width:54px;height:54px;margin:0 auto 16px;border-radius:50%;border:4px solid #D9D9D9;border-top-color:#08675A;animation:spin .85s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.load-title{font-size:20px;font-weight:700;line-height:1.5}
.load-sub{max-width:640px;margin:6px auto 0;font-size:13px;font-weight:500;color:#6F6F6F;line-height:1.7}
.load-steps{max-width:660px;margin:28px auto 0;display:flex;justify-content:space-between;position:relative}
.load-steps::before{content:'';position:absolute;left:12%;right:12%;top:16px;height:2px;background:#D9D9D9}
.ls{position:relative;z-index:1;width:25%;font-size:12px;font-weight:500;color:#AFAFAF}
.ls .dot{
  width:34px;height:34px;margin:0 auto 8px;display:flex;align-items:center;justify-content:center;
  border:2px solid #D9D9D9;border-radius:50%;background:#fff;font-size:13px;font-weight:700;
}
.ls .dot .ic{display:none;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.ls.done,.ls.now{color:#333;font-weight:700}
.ls.done .dot{border-color:#0D7A4D;background:#0D7A4D;color:#fff}
.ls.done .dot .n{display:none}
.ls.done .dot .ic{display:block}
.ls.now .dot{border-color:#08675A;background:#E8F4EF;color:#08675A}
.elapsed{margin-top:16px;font-size:12px;font-weight:500;color:#6F6F6F}

/* ---------- 見積結果 ---------- */
.result{display:none;background:#fff;border-radius:18px;padding:24px;margin-bottom:30px}
.result.show{display:block}
.result-head{padding-bottom:16px;border-bottom:1px solid #C8C8C8}
.result-head h2{font-size:24px;font-weight:700;line-height:1.5;color:#333}
.result-head p{margin-top:2px;font-size:13px;font-weight:500;color:#6F6F6F}
/* 金額のすぐ上に「試算である」ことを明示する（見落とされない位置に置く） */
.trial-notice{
  display:flex;align-items:flex-start;gap:12px;margin-top:18px;padding:14px 16px;
  background:#FFF9E0;border:1px solid #E8C989;border-radius:10px;
}
.trial-notice .trial-chip{
  flex:none;padding:4px 12px;border-radius:6px;background:#8F6408;color:#fff;
  font-size:12px;font-weight:700;line-height:1.5;
}
.trial-notice p{font-size:12.5px;font-weight:500;line-height:1.8;color:#5C4A14}
.trial-notice strong{font-weight:700;color:#4A3A0A}
.result-conditions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 14px}
.result-conditions span{
  padding:6px 18px;border:1px solid #08675A;border-radius:10px;background:#E8F4EF;
  font-size:14px;font-weight:700;color:#333;
}
.res-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;align-items:stretch}
.res-col{position:relative;flex:1;display:flex;flex-flow:column;border:1px solid #C8C8C8;border-radius:10px;overflow:hidden}
.res-col.recommended{border-color:#08675A;box-shadow:0 0 12px #CBE7DC}
/* 「1年契約より年あたり約○円おトク」は5年契約カードの下に独立した箱で置く（先方要望: 合計金額の近く） */
.res-adv{
  grid-column:2;padding:12px 18px;border:1px solid #BF0C0C;border-radius:10px;
  background:#FDF1F1;color:#BF0C0C;font-size:14px;font-weight:700;line-height:1.5;text-align:center;
}
.res-col-h{padding:14px 18px;background:#F7F7F7;border-bottom:1px solid #C8C8C8}
.res-col.recommended .res-col-h{background:#08675A;border-bottom-color:#08675A}
.res-col-h strong{display:block;font-size:16px;font-weight:700}
.res-col-h small{display:block;font-size:11px;font-weight:500;color:#6F6F6F}
.res-col.recommended .res-col-h strong{color:#fff}
.res-col.recommended .res-col-h small{color:rgba(255,255,255,.8)}
.res-rows{display:flex;flex-flow:column;flex:1;padding:4px 18px 0}
.rr{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:11px 0;border-bottom:1px dashed #C8C8C8;font-size:13px;font-weight:500}
.rr .tag{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:10px;font-size:10px;font-weight:700}
.rr .tag.dc{background:#fdeaea;color:#BF0C0C}
.rr .tag.nd{background:#EFEFEF;color:#6F6F6F}
.rr .v{font-size:14px;font-weight:700;white-space:nowrap}
.rr .was{margin-right:8px;font-size:11px;font-weight:500;color:#AFAFAF;text-decoration:line-through}
.rr.sub{padding:8px 0;border-bottom:0}
.rr.sub .k,.rr.sub .v{font-size:11px;font-weight:500;color:#6F6F6F}
.rr.saving{padding:8px 0 12px;border-bottom:0}
.rr.saving .k,.rr.saving .v{font-size:12px;font-weight:700;color:#BF0C0C}
.rr.total{align-items:center;margin:auto -18px 0;padding:16px 18px;border:0;border-top:1px solid #C8C8C8;background:#F7F7F7}
.res-col.recommended .rr.total{background:#E8F4EF}
.rr.total .k{font-size:15px;font-weight:700}
.rr.total .v{font-size:30px;font-weight:700;color:#08675A;letter-spacing:-.02em}
/* 補償内容（保険金額等）: 先方要望で結果カードの上に置く */
.coverage{margin:0 0 16px;padding:16px 18px;border:1px solid #C8C8C8;border-radius:10px;background:#F7F7F7}
.coverage-h{font-size:15px;font-weight:700;line-height:1.5;color:#08675A}
.coverage-list{margin-top:8px}
.coverage-list li{position:relative;padding-left:14px;font-size:13px;font-weight:500;line-height:1.8}
.coverage-list li::before{content:'';position:absolute;top:.8em;left:2px;width:4px;height:4px;border-radius:50%;background:#707070}
.insured{display:flex;align-items:center;gap:12px;margin-top:10px;padding:10px 14px;border:1px solid #C8C8C8;border-radius:8px;background:#fff}
.insured b{display:block;font-size:11px;font-weight:700;color:#6F6F6F}
.insured span{display:block;font-size:14px;font-weight:700}
.result-notes{margin-top:16px}
.result-notes li{font-size:12px;font-weight:500;line-height:1.8;color:#6F6F6F}

/* ---------- 補償内容 / 試算条件 ---------- */
.compensation{max-width:720px;margin:0 auto 24px;padding:0 20px}
.compensation .inner{padding:50px 0 16px;background:#fff}
.compensation .title{position:relative;padding-bottom:18px;font-size:30px;font-weight:700;line-height:1.5;text-align:center}
.compensation .title::after{
  content:'';display:block;position:absolute;margin:auto;bottom:0;right:0;left:0;
  width:114px;height:4px;background:#08675A;
}
.compensation .caution-text{margin-top:14px;font-size:12px;font-weight:500;color:#6F6F6F;line-height:1.8}
.compensation .sec-2{margin-top:0}
.toggle-title{margin:32px 0 20px;font-size:16px;font-weight:400;line-height:1.7}
.toggle-inner{border:1px solid #C8C8C8}
.toggle-inner summary{position:relative;display:block;list-style:none;cursor:pointer;font-size:16px;font-weight:700;padding:12px 48px 12px 14px;text-align:left}
.toggle-inner summary::-webkit-details-marker{display:none}
.toggle-inner summary::before,.toggle-inner summary::after{
  content:'';position:absolute;display:block;margin:auto;top:0;right:18px;bottom:0;width:19px;height:2px;background:#6F6F6F;
}
.toggle-inner summary::after{transform:rotate(90deg);transition:opacity .2s ease-in-out}
.toggle-inner[open] summary::after{opacity:0}
.terms{position:relative;padding:16px 15px 18px}
.terms::before{content:'';display:block;position:absolute;background:#C8C8C8;top:0;left:15px;width:calc(100% - 30px);height:1px}
.terms-table{width:100%;border-collapse:collapse}
.terms-table th,.terms-table td{padding:9px 0;text-align:left;vertical-align:top;border-bottom:1px solid #EFEFEF}
.terms-table tr:last-child th,.terms-table tr:last-child td{border-bottom:0}
.terms-table th{width:38%;font-size:13px;font-weight:500;color:#6F6F6F}
.terms-table td{font-size:14px;font-weight:700}

/* ---------- 追従フッター（保険料バー） ---------- */
.fixed-footer{
  position:fixed;left:0;right:0;bottom:0;z-index:40;
  background:#E8F4EF;border-top:2px solid #08675A;color:#08675A;
}
.fixed-footer .wrap{max-width:1030px;margin:auto;display:flex;align-items:center;padding:16px 0 25px}
.fixed-footer .title{flex:none;padding-right:20px;font-size:24px;font-weight:700;line-height:1.75}
.box-inner{display:flex;align-items:center;flex:1}
.box{position:relative}
.box.is-normal{width:290px;max-width:290px;padding-right:60px}
.box.is-normal::after{
  content:'';display:block;position:absolute;margin:auto;top:0;bottom:0;right:16px;width:0;height:0;
  border-style:solid;border-width:18px 0 18px 18px;border-color:transparent transparent transparent #08675A;
}
.box.is-group{width:330px;max-width:330px;padding-right:24px}
.box-text{
  display:flex;flex-wrap:nowrap;align-items:flex-end;justify-content:center;
  height:60px;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #08675A;
}
.box-text > p{font-size:15px;line-height:1.5;text-align:center;white-space:nowrap}
.annual-differ-fee{display:inline-block;flex:none;margin-left:6px;font-size:12px;font-weight:700;line-height:1.5;white-space:nowrap}
.annual-differ-fee .bold{display:block;margin-top:-2px;line-height:1.2;text-align:left}
.annual-differ-fee .bold em{font-style:normal;color:#BF0C0C;font-size:20px}
.box-amount{display:flex;align-items:center;justify-content:center;height:48px;white-space:nowrap}
.amount{position:relative;font-size:32px;font-weight:700;line-height:48px;color:#BF0C0C;text-align:center}
.unit{margin-left:8px;padding-top:1px;font-size:15px;font-weight:500;line-height:1.5;color:#08675A}
/* 追従バーは「お申込み」専用。試算ボタンは入力欄の直下（.go-area）に置いている */
.buttons{width:250px;max-width:250px;flex:none;display:flex;flex-flow:column}
.buttons-title{margin-bottom:8px;font-size:15px;font-weight:700;line-height:1.5;text-align:center;color:#333}
.buttons-inner{display:flex}
.button-area{flex:1;display:flex;justify-content:center;min-width:0}
.button{
  display:flex;flex-flow:column;align-items:center;justify-content:center;
  width:100%;max-width:240px;min-height:100px;
  padding:12px 0;border:2px solid #08675A;border-radius:12px;text-align:center;text-decoration:none;
  background:#08675A;color:#fff;transition:background .15s;
}
.button:hover{background:#05504A;border-color:#05504A}
.button-text.bold{font-size:18px;font-weight:700;line-height:1.4;color:#fff;white-space:nowrap}
.pb-spin{display:none;width:20px;height:20px;border-radius:50%;border:2px solid #C8C8C8;border-top-color:#08675A;animation:spin .8s linear infinite}
/* 状態切替: 未見積は打消し線を出さない／取得中はスピナー */
.fixed-footer[data-state="done"] .amount.is-strike::before{
  content:'';display:block;position:absolute;background:#000;top:0;bottom:0;left:-6px;right:-6px;height:2px;margin:auto;
}
.fixed-footer[data-state="done"] .annual-differ-fee{display:inline-block}
.annual-differ-fee{display:none}
/* 未見積・取得中は金額が確定していないので赤字ではなくグレーで置く */
.fixed-footer[data-state="idle"] .amount,
.fixed-footer[data-state="loading"] .amount{color:#AFAFAF}
.fixed-footer[data-state="loading"] .box-amount .amount,
.fixed-footer[data-state="loading"] .box-amount .unit{display:none}
.fixed-footer[data-state="loading"] .pb-spin{display:block}

/* ---------- タブレット幅の追従フッター ----------
   PC版のバーは 保険料(92)+金額2枠(508)+ボタン(420)=約1030px を前提にしているため、
   1024px 未満ではボタンが画面外にはみ出す（position:fixed は横スクロールを生まないので
   無言で切れる）。1023px 以下ではSPと同じ「ボタン上段・金額下段2列」に組み替える。 */
@media(max-width:1023px){
  body{padding-bottom:236px}
  .fixed-footer .wrap{flex-flow:column;padding:12px 16px 14px}
  .fixed-footer .title{display:none}
  .box-inner{
    width:100%;display:grid;align-items:center;justify-items:center;
    grid-template-columns:auto auto;grid-template-areas:"btn btn" "normal group";row-gap:12px;
  }
  .box.is-normal{grid-area:normal}
  .box.is-group{grid-area:group}
  .buttons{grid-area:btn;width:100%;max-width:280px}
  .buttons-inner{justify-content:center}
  /* 縦に積む構成では金額まわりもPC寸法だとバーが高くなりすぎるので詰める */
  .box.is-normal::after{top:24px;right:12px;border-width:12px 0 12px 13px}
  .box-text{height:46px;margin-bottom:0;padding-bottom:6px}
  .box.is-group .box-text{flex-flow:column;align-items:center;padding-top:4px;padding-bottom:0}
  .box-text > p{font-size:11px}
  .annual-differ-fee{display:none;align-items:baseline;margin-left:6px;font-size:10px}
  .fixed-footer[data-state="done"] .annual-differ-fee{display:inline-flex}
  .annual-differ-fee .bold{line-height:1.5}
  .annual-differ-fee .bold em{font-size:13px}
  .box-amount{height:38px}
  .amount{font-size:24px;line-height:38px}
  .fixed-footer[data-state="done"] .amount.is-strike::before{left:-3px;right:-3px;height:1px}
  .unit{margin-left:4px;font-size:12px}
  .buttons-title{margin-bottom:6px;font-size:13px}
  .button{max-width:280px;min-height:64px;padding:8px 10px}
  .button-text.bold{font-size:15px}
}

/* ---------- スマートフォン ---------- */
@media(max-width:767px){
  body{padding-bottom:248px}
  .headline__container{padding:20px 0 0}
  .headline__container .inner{flex-flow:column;align-items:center;padding:0 16px}
  .page_header_text{max-width:100%}
  .headline__top-text-pc{display:none}
  .headline__top-text-sp{
    display:block;margin:0 auto;padding:4px 16px;border-radius:999px;
    background:#08675A;color:#fff;font-size:15px;font-weight:600;
  }
  .headline__middle-text{margin-top:16px;font-size:19px}
  .headline__bottom-text{margin:6px 0 0;font-size:27px;letter-spacing:-.5px}
  .page_header_image{margin:8px 0 0}
  .headline-family__img{width:140px;height:112px}
  .overview__container{padding:0 16px}
  .overview__container .text{margin:18px 0 6px;font-size:14px}
  .overview__container .text.small{margin:0 0 18px;font-size:11px;text-align:left}
  .estimate{padding:0 12px}
  .estimate > .inner{max-width:100%;padding:24px 0 30px}
  .notice-band{font-size:15px;padding:14px 12px;margin-bottom:20px}
  .notice-band .rate{font-size:26px}
  .notice-band .sub{font-size:11px}
  .step-contents{flex-flow:column;min-height:168px;padding:16px;margin-bottom:20px;border-radius:12px}
  .step-contents .left-area{width:100%;border-right:0;border-bottom:1px solid #C8C8C8;padding-right:0}
  .step-contents .left-info{flex-flow:row;margin-bottom:0}
  .step-contents .left-info-title{align-items:baseline;width:70px;margin-left:6px}
  .step-contents .left-info-title .step{font-size:13px;margin-right:6px}
  .step-contents .left-info-title .number{font-size:24px}
  .step-contents .left-info-text{flex-flow:column;padding-top:6px;margin:0 0 14px 14px}
  .step-contents .right-area{width:100%;padding-left:0;padding-top:18px}
  .seg{width:calc(100% + 10px)}
  .seg label{width:calc(50% - 10px);margin-right:10px;margin-bottom:10px}
  .seg .opt{height:58px;padding:8px 12px;font-size:13px}
  .seg .opt b{font-size:14px;line-height:1.5}
  .seg .opt small{font-size:10px}
  .seg-type label{width:100%;margin-right:0}
  .seg-type .opt{height:auto;min-height:96px;padding:12px 14px;flex-wrap:nowrap;justify-content:flex-start;text-align:left}
  .seg-type .type-illust{width:120px;height:96px;margin:0 8px 0 0}
  .seg-type .opt > span{display:block}
  .seg-age label,.seg-area label{width:calc(50% - 10px)}
  .seg-area .opt{height:62px}
  .select-wrap{max-width:100%}
  select{height:58px;font-size:14px}
  .grade-text{font-size:16px;padding:12px 10px;line-height:1.7}
  #summaryPanel{margin-bottom:20px}
  .grade-text .sep{margin:0 3px}
  .load-steps{flex-flow:column;max-width:260px;gap:10px}
  .load-steps::before{display:none}
  .ls{display:flex;align-items:center;gap:10px;width:100%;text-align:left}
  .ls .dot{margin:0;flex:none}
  .result{padding:16px;border-radius:12px}
  .result-head h2{font-size:18px}
  .res-grid{grid-template-columns:1fr;gap:14px}
  .res-adv{grid-column:auto;margin-top:-4px;font-size:13px}
  .rr.total .v{font-size:24px}
  .compensation{margin-bottom:16px}
  .compensation .inner{padding:32px 0 16px}
  .compensation .title{font-size:21px;padding-bottom:14px}
  .compensation .title::after{width:82px;height:3px}
  .toggle-inner summary{font-size:14px;padding:12px 44px 12px 10px}
  /* 組み替え自体は 1023px 以下で済ませてあるので、ここは狭幅向けの詰めだけ */
  .fixed-footer .wrap{padding:10px 12px 12px}
  .box-inner{row-gap:10px}
  .box.is-normal{width:auto;max-width:none;padding-right:38px}
  .box.is-group{width:auto;max-width:none;padding-right:0}
  .box-text > p{font-size:10px}
  .annual-differ-fee{margin-left:4px}
  .annual-differ-fee > span,.annual-differ-fee .bold{white-space:nowrap}
  .annual-differ-fee .bold em{font-size:12px}
  .amount{font-size:22px}
  .unit{font-size:11px}
  .buttons{max-width:100%}
  .button{max-width:none}
  .button-text.bold{font-size:15px}
}
/* ---------- 極小幅（iPhone SE 等 320px） ---------- */
@media(max-width:359px){
  .button-text.bold{font-size:14px}
  .box-text > p{font-size:9.5px}
  .annual-differ-fee{font-size:9px;margin-left:2px}
  .annual-differ-fee .bold em{font-size:11px}
  .box.is-normal{padding-right:28px}
  .box.is-normal::after{right:8px}
  .box-inner{column-gap:4px}
  .amount{font-size:19px}
  .unit{margin-left:2px;font-size:10px}
}

/* ---------- 画面の縦が短いとき（スマホ横向き等） ----------
   縦積みのままだとバーが画面の半分以上を占めるため、横1列の詰めた形に戻す。 */
@media(max-height:500px){
  body{padding-bottom:124px}
  .fixed-footer .wrap{flex-flow:row;align-items:center;gap:14px;padding:8px 14px}
  .box-inner{display:flex;justify-content:center;align-items:center;row-gap:0}
  .box.is-normal,.box.is-group{width:auto;max-width:none}
  .box.is-normal{padding-right:34px}
  .box.is-normal::after{top:0;right:10px;border-width:11px 0 11px 12px}
  .box-text{height:auto;margin-bottom:2px;padding-bottom:3px}
  .box-text > p{font-size:10px}
  .box.is-group .box-text{flex-flow:row;align-items:flex-end;padding-top:0}
  .annual-differ-fee .bold em{font-size:11px}
  .box-amount{height:28px}
  .amount{font-size:19px;line-height:28px}
  .unit{font-size:10px}
  .buttons{width:auto;max-width:none}
  .buttons-title{display:none}
  .buttons-inner{gap:8px}
  .button{min-height:48px;max-width:none;padding:6px 14px}
  .button-text.bold{margin-top:0;font-size:14px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* ---------- 配布版のための追加指定（build-dist.cjs） ---------- */
label.is-unavailable{opacity:.32;cursor:not-allowed}
label.is-unavailable .opt{background:#F7F7F7;border-color:#D9D9D9}
