@charset "UTF-8";
/* =========================================
   料金シミュレーション /simulation/
   画面の型：左に固定の見出し・番号つきステップ・概算金額、右にセクション。
   罫線 #CCC／面 #F2F2F2／文字 #222／角丸 5px／金額の色は --sim-accent 1か所。
   SP（860px以下）は画面下に白グラデの金額バー。
   2026-09-22
========================================= */

.sim {
  --sim-text: #222222;
  --sim-line: #cccccc;
  --sim-face: #f2f2f2;
  --sim-accent: #b19058;   /* 概算金額の色。#222 にすれば黒になる */
  --sim-header: 72px;      /* 固定ヘッダーの高さ */
  position: relative;
  padding: calc(var(--sim-header) + 48px) clamp(24px, 7.2vw, 104px) 0;
  color: var(--sim-text);
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.02em;
}
.sim a { color: inherit; text-decoration: none; }
.sim-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* ---------- 出し分け（display を持つ要素に [hidden] が負けないように） ---------- */
.sim [hidden] { display: none !important; }

/* ---------- 左：見出し・ステップ・概算 ---------- */
.sim-menu {
  position: sticky;
  top: calc(var(--sim-header) + 40px);
  display: flex;
  flex-direction: column;
  width: 308px;
  flex-shrink: 0;
  min-height: calc(100vh - var(--sim-header) - 40px - 48px);
}
.sim-title {
  margin: 0 0 36px;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;   /* 左カラム幅より長いが、右の一覧はこれより下から始まるので重ならない */
  color: var(--sim-text);
}
.sim-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: num;
  z-index: 0;
}
.sim-steps::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 16px;
  width: 1px;
  background: var(--sim-line);
  z-index: -1;
}
.sim-steps li { margin: 0 0 24px; counter-increment: num; }
.sim-steps li:last-child { margin-bottom: 0; }
.sim-steps a {
  position: relative;
  display: block;
  padding-left: 48px;
  font-size: 12.5px;
  line-height: 31px;
  color: var(--sim-line);
  transition: color .2s ease;
}
.sim-steps a::before,
.sim-steps a::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 31px; height: 31px;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}
.sim-steps a::before { border: 1px solid var(--sim-line); transition: border-color .2s ease; }
.sim-steps a::after {
  content: counter(num);
  background: none;
  font-size: 12px;
  line-height: 31px;
  text-align: center;
  color: var(--sim-line);
  transition: color .2s ease;
}
.sim-steps a.is-current,
.sim-steps a:hover { color: var(--sim-text); }
.sim-steps a.is-current::before,
.sim-steps a:hover::before { border-color: var(--sim-text); }
.sim-steps a.is-current::after,
.sim-steps a:hover::after { color: var(--sim-text); }

.sim-menu-wrap { margin-top: auto; padding-top: 48px; width: 100%; }
.sim-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  line-height: 1;
}
.sim-total .heading { font-size: 13px; line-height: 1; padding-bottom: 4px; }
.sim-total .total { font-size: 15px; line-height: 1; white-space: nowrap; }
.sim-total .total .price {
  display: inline-block;
  margin-right: 8px;
  font-size: 36px;
  line-height: 1;
  color: var(--sim-accent);
}
.sim-tax,
.sim-monthly {
  display: block;
  margin: 6px 0 0auto;
  margin-left: auto;
  width: fit-content;
  font-size: 12px;
  line-height: 1.5;
  color: #646464;
}
.sim-tax .price,
.sim-monthly .price { display: inline-block; margin: 0 4px; font-size: 13px; color: var(--sim-text); }
.sim-ask-note {
  margin: 8px 0 0;
  text-align: right;
  font-size: 12px;
  color: #646464;
}
.sim-order-button {
  position: relative;
  display: block;
  margin-top: 24px;
  padding: 36px 56px 36px 24px;
  background: var(--sim-text);
  border: 1px solid var(--sim-text);
  border-radius: 5px;
  transition: background .2s ease-in-out;
}
.sim-order-button span {
  display: inline-block;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  transition: color .2s ease-in-out;
}
.sim-order-button::after {
  content: '';
  position: absolute;
  top: 50%; right: 20px;
  width: 20px; height: 20px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='1.2'%3E%3Cpath d='M2 10h15M12 5l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background .2s ease-in-out;
}
.sim-order-button:hover { background: #fff; }
.sim-order-button:hover span { color: var(--sim-text); }
.sim-order-button:hover::after {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23222' stroke-width='1.2'%3E%3Cpath d='M2 10h15M12 5l5 5-5 5'/%3E%3C/svg%3E");
}
.sim-detail-link {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #646464;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 右：セクション ---------- */
.sim-list { width: 66%; margin: 0 0 80px; padding-top: 46px; }
/* テーマの section 既定（上下 --section-py）を打ち消す。間隔はこのファイルで持つ */
.sim .sim-section { padding: 0; margin: 0; }
.sim-h {
  margin: 0 0 60px;
  padding-top: 48px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--sim-text);
  border-top: 1px solid var(--sim-line);
}
.sim-section { scroll-margin-top: calc(var(--sim-header) + 24px); }
.sim-wrap { margin-bottom: 80px; padding-left: 48px; }
.sim-section .sim-wrap:last-child { margin-bottom: 120px; }
.sim-heading { display: block; margin-bottom: 0; font-size: 15px; line-height: 1.2; color: var(--sim-text); }
.sim-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #646464;
}
.sim-note a { text-decoration: underline; text-underline-offset: 3px; }

/* 共通：ラジオ／チェックの見た目（input は隠し、span の疑似要素で描く） */
.sim-list label input { position: absolute; opacity: 0; width: 0; height: 0; }
.sim-list label > span {
  position: relative;
  display: inline-block;
  padding-left: 33px;
  font-size: 13px;
  line-height: 1.5;
}
.sim-list label > span::before,
.sim-list label > span::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
}
.sim-list label > span::before { left: 0; width: 24px; height: 24px; background: var(--sim-face); }
.sim-list label > span::after { left: 7.5px; width: 9px; height: 9px; }
.sim-list label input:checked + svg + span::after,
.sim-list label input:checked + span::after { background: var(--sim-text); }
.sim-list label input:focus-visible + span::before,
.sim-list label input:focus-visible + svg + span::before { outline: 2px solid var(--sim-text); outline-offset: 2px; }

/* 01 基本メニュー：枠カード */
.sim-basic label {
  position: relative;
  display: block;
  cursor: pointer;
}
.sim-basic label svg,
.sim-basic label > span { position: relative; z-index: 1; }
.sim-basic label i {
  position: absolute;
  inset: 0;
  display: block;
  border: 1px solid var(--sim-line);
  border-radius: 5px;
  z-index: 0;
  transition: border-color .2s ease;
}
.sim-basic label input:checked ~ i,
.sim-basic label:hover i { border-color: var(--sim-text); }
.sim-triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.sim-triple label { padding: 20px; }
.sim-triple label svg {
  display: block;
  margin: 48px auto;
  width: auto;
  height: 42px;
}
.sim-triple label > span { padding-left: 42px; }
.sim-triple label > span::before { width: 31px; height: 31px; }
.sim-triple label > span::after { left: 9.5px; width: 12px; height: 12px; }
.sim-double {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.sim-double label { padding: 16px 20px; }

/* 02・04・05 詳細：グレーの見出し列を持つ表 */
.sim-detail ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--sim-line);
}
.sim-detail ul li {
  position: relative;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--sim-line);
}
.sim-detail ul li .name {
  display: block;
  flex-shrink: 0;
  padding: 25px 30px;
  width: 185px;
  box-sizing: border-box;
  font-size: 13px;
  line-height: 1.5;
  background: var(--sim-face);
}
.sim-detail ul li .items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 40px;
  padding: 20px;
  flex: 1;
  min-width: 0;
}
.sim-detail ul li .items label { cursor: pointer; }
.sim-detail ul li .items .hint,
.sim-detail ul li .items .text {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.6;
  color: #646464;
}
.sim-detail ul li .items .text { font-size: 13px; color: var(--sim-text); }
.sim-detail .select_wrap { position: relative; }
.sim-detail .select_wrap::after {
  content: '';
  position: absolute;
  top: 50%; right: 0;
  width: 8px; height: 8px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' fill='none' stroke='%23222' stroke-width='1'%3E%3Cpath d='M1 2.5l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.sim-detail .select_wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 16px 10px 0;
  width: 160px;
  font-family: inherit;
  font-size: 13px;
  color: var(--sim-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.sim-detail .select_wrap select:focus-visible { outline: 2px solid var(--sim-text); outline-offset: 2px; }

/* 03〜07 オプション：グレーのピル（2列） */
.sim-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 30px;
  margin-top: 16px;
}
.sim-pills label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--sim-face);
  border-radius: 5px;
  cursor: pointer;
}
.sim-pills label > span { flex: 1; min-width: 0; }
.sim-pills label > span::before { background: #fff; }
.sim-pills label em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 12px;
  line-height: 1;
  color: #646464;
  white-space: nowrap;
}
/* チェックボックス型（四角） */
.sim-square label > span::before {
  border-radius: 2px;
  width: 22px; height: 22px;
  left: 1px;
}
.sim-square label > span::after {
  left: 8px;
  width: 6px; height: 11px;
  border-radius: 0;
  border-right: 2px solid var(--sim-text);
  border-bottom: 2px solid var(--sim-text);
  background: none !important;
  transform: translateY(-60%) rotate(45deg) scale(0);
  transition: transform .15s ease;
}
.sim-square label input:checked + span::after { transform: translateY(-60%) rotate(45deg) scale(1); }

/* 内訳 */
.sim-table-wrap { overflow-x: auto; }
.sim-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--sim-line);
}
.sim-table th,
.sim-table td {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--sim-line);
}
.sim-table .qty { width: 100px; color: #646464; white-space: nowrap; }
.sim-table .amt { width: 160px; text-align: right; white-space: nowrap; }
.sim-table .sim-row-head th { padding: 12px 20px; background: var(--sim-face); font-size: 12px; }
.sim-table .sim-row-empty td { padding: 32px 20px; text-align: center; color: #646464; }
.sim-table tfoot .sim-sub th,
.sim-table tfoot .sim-sub td { color: #646464; font-size: 12px; padding: 12px 20px; }
.sim-table tfoot .sim-grand th,
.sim-table tfoot .sim-grand td { padding: 22px 20px; font-size: 15px; }
.sim-table tfoot .sim-grand td strong { font-size: 24px; font-weight: 400; color: var(--sim-accent); }
.sim-table tfoot .sim-tax th,
.sim-table tfoot .sim-tax td { font-size: 12px; color: #646464; padding: 12px 20px; }
.sim-table tfoot .sim-monthly-row th,
.sim-table tfoot .sim-monthly-row td { font-size: 13px; }
.sim-result-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}
.sim-result-actions .sim-order-button { margin-top: 0; padding: 24px 56px 24px 24px; min-width: 260px; }
.sim-reset {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  color: #646464;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* 諸注意 */
.sim-attention {
  padding: 48px;
  border: 1px solid var(--sim-line);
  border-radius: 5px;
}
.sim-attention .heading { display: inline-block; font-size: 15px; line-height: 1.5; }
.sim-attention ul { list-style: none; margin: 16px 0 0; padding: 0; width: 80%; }
.sim-attention ul li { position: relative; padding-left: 12px; }
.sim-attention ul li::before {
  content: '';
  position: absolute;
  top: 10px; left: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #646464;
}
.sim-attention ul li span { display: block; font-size: 13px; line-height: 1.9; }
.sim-attention a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- このページでは追従UIを出さない（金額バーと重なる） ---------- */
body.is-simulation .float-cta,
body.is-simulation .chat-widget { display: none !important; }

/* ---------- 画面の高さが低いとき：ステップの間隔を詰める ---------- */
@media (min-width: 861px) and (max-height: 820px) {
  .sim-steps li { margin-bottom: 12px; }
  .sim-title { margin-bottom: 20px; }
  .sim-menu-wrap { padding-top: 24px; }
}

/* ---------- SP ---------- */
@media only screen and (max-width: 860px) {
  .sim { padding: calc(var(--sim-header) + 32px) 0 0; }
  .sim-inner { display: block; }

  .sim-menu {
    position: static;
    display: block;
    width: auto;
    min-height: 0;
  }
  .sim-title { padding: 0 20px; margin-bottom: 0; font-size: 26px; }
  .sim-steps { display: none; }

  /* 概算は画面下に固定 */
  .sim-menu-wrap {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 20px 48px calc(12px + env(safe-area-inset-bottom, 0px)) 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 50%, #fff 100%);
    z-index: 95;
  }
  .sim-menu-wrap .sim-order-button,
  .sim-menu-wrap .sim-detail-link { display: none; }
  .sim-total .heading { font-size: 11px; }
  .sim-total .total .price { font-size: 30px; }
  .sim-tax, .sim-monthly { margin-top: 0; }
  .sim-ask-note { margin-top: 2px; }
  body.is-simulation { padding-bottom: 96px; }

  .sim-list { width: 100%; margin-bottom: 40px; padding-top: 0; }
  .sim-title { white-space: normal; }
  .sim-list::before {
    content: '';
    display: block;
    margin: 32px 0 48px auto;
    width: calc(100% - 20px);
    height: 1px;
    background: var(--sim-line);
  }
  .sim-h {
    margin: 0 0 35px 20px;
    padding-top: 0;
    font-size: 20px;
    border-top: 0;
  }
  .sim-section + .sim-section .sim-h {
    margin-top: 0;
  }
  .sim-section + .sim-section::before {
    content: '';
    display: block;
    margin: 0 0 48px auto;
    width: calc(100% - 20px);
    height: 1px;
    background: var(--sim-line);
  }
  .sim-wrap { margin-bottom: 60px; padding: 0 20px 0 48px; }
  .sim-section .sim-wrap:last-child { margin-bottom: 60px; }

  .sim-list label > span { padding-left: 30px; font-size: 12px; }
  .sim-triple,
  .sim-double { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .sim-triple { margin-top: 0; }
  .sim-triple label { padding: 16px 20px; }
  .sim-triple label svg {
    position: absolute;
    top: 50%; right: 20px;
    margin: 0;
    height: 24px;
    transform: translateY(-50%);
  }
  .sim-triple label > span { padding-left: 33px; }
  .sim-triple label > span::before { width: 24px; height: 24px; }
  .sim-triple label > span::after { left: 7.5px; width: 9px; height: 9px; }

  .sim-detail ul li .name { padding: 25px 12px; width: 120px; font-size: 12px; }
  .sim-detail ul li .items { display: block; padding: 20px; }
  .sim-detail ul li .items label { display: block; width: fit-content; margin-bottom: 8px; }
  .sim-detail ul li .items label:last-of-type { margin-bottom: 0; }
  .sim-detail ul li .items .hint { margin-top: 8px; }
  .sim-detail .select_wrap { display: block; width: 100%; }
  .sim-detail .select_wrap select { width: 100%; font-size: 12px; }

  .sim-pills { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .sim-pills label { padding: 16px 20px; }

  .sim-table { table-layout: fixed; }   /* 金額の列が右にはみ出さないよう、列幅を固定で配る */
  .sim-table th, .sim-table td { padding: 12px 10px; font-size: 12px; }
  .sim-table th:first-child { width: auto; }
  .sim-table .qty { width: 58px; padding-left: 0; padding-right: 0; font-size: 11px; }
  .sim-table .amt { width: 96px; padding-right: 10px; font-size: 12px; }
  .sim-table tfoot .sim-sub th, .sim-table tfoot .sim-tax th { padding-left: 10px; }
  .sim-table tfoot .sim-grand td strong { font-size: 20px; }
  .sim-result-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .sim-result-actions .sim-order-button { padding: 30px 56px 30px 20px; min-width: 0; }
  .sim-reset { text-align: center; }

  .sim-attention { margin: 0 20px 24px; padding: 35px 20px; }
  .sim-attention .heading { display: block; }
  .sim-attention ul { margin-top: 12px; width: 100%; }
  .sim-attention ul li::before { top: 9px; }
  .sim-attention ul li span { font-size: 12px; }
}
