/* 料金シミュレーター（共通部品）。price-sim.js と組で使う */
.ps {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--sp-6, 2rem);
  align-items: start;
}
.ps__panel {
  background: #fff;
  border: 1px solid #c9d6ea;
  border-radius: 14px;
  padding: var(--sp-5, 1.5rem);
}
.ps__group {
  padding: var(--sp-3, 1rem) 0;
  border-top: 1px solid #e3eaf6;
}
.ps__group:first-child {
  border-top: 0;
  padding-top: 0;
}
.ps__group h3 {
  font-size: 1.05rem;
  margin: 0 0 var(--sp-3, 1rem);
}
.ps__row {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  padding: 0.35em 0;
}
.ps__row input {
  margin-top: 0.35em;
  flex: none;
}
.ps__row label {
  cursor: pointer;
  line-height: 1.5;
}
.ps__row small,
.ps__hint {
  display: block;
  color: var(--c-gray-600, #5b6472);
  font-size: 0.85em;
}
.ps__child {
  margin-left: 1.6em;
  padding-left: 0.8em;
  border-left: 4px solid #1e5fbe;
}
.ps__q {
  margin-top: 0.7em;
  font-weight: 700;
  color: var(--c-blue-deep, #12306b);
}
.ps__tag {
  display: inline-block;
  margin-right: 0.4em;
  padding: 0 0.55em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #e0912b;
  border-radius: 999px;
}
.ps__stepper {
  margin: 0.5em 0 0.9em;
}
.ps__steplabel {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3em;
}
.ps__stepctl {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-wrap: wrap;
}
.ps__stepbtn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #1e5fbe;
  background: #fff;
  color: #1e5fbe;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}
.ps__stepbtn:hover {
  background: #eef4fd;
}
.ps__stepbtn:disabled {
  opacity: 0.35;
  cursor: default;
}
.ps__stepctl input[type="number"] {
  width: 5.5em;
  height: 44px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-blue-deep, #12306b);
  border: 2px solid #c9d6ea;
  border-radius: 10px;
  -moz-appearance: textfield;
}
.ps__stepctl input[type="number"]::-webkit-outer-spin-button,
.ps__stepctl input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ps__stepunit {
  font-weight: 700;
}
.ps__stepper.is-off,
.ps__row.is-off,
.ps__q.is-off {
  opacity: 0.4;
  pointer-events: none;
}
.ps__result {
  background: #eef4fd;
  border: 2px solid #1e5fbe;
  border-radius: 14px;
  padding: var(--sp-5, 1.5rem);
  position: sticky;
  top: 90px;
}
.ps__total {
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-blue-deep, #12306b);
  line-height: 1.2;
}
.ps__total small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--c-gray-600, #5b6472);
}
.ps__lines {
  list-style: none;
  margin: var(--sp-3, 1rem) 0;
  padding: 0;
}
.ps__lines li {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.4em 0;
  border-top: 1px solid #c9d6ea;
}
.ps__lines li span:last-child {
  white-space: nowrap;
  font-weight: 700;
}
.ps__lines .is-sub {
  padding-left: 1.4em;
}
.ps__lines .is-discount span:last-child {
  color: #c0392b;
}
.ps__aside { margin: var(--sp-3, 1rem) 0 0; padding: .8em 1em; background: #fff8e6; border: 2px solid #e0912b; border-radius: 10px; font-size: .92rem; line-height: 1.7; }
.ps__aside p { margin: 0 0 .5em; }
.ps__aside p:last-child { margin-bottom: 0; }
.ps__msg {
  margin: var(--sp-3, 1rem) 0 0;
  padding: 0.7em 0.9em;
  background: #fff;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.7;
}
.ps__msg summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--c-blue-deep, #12306b);
}
.ps__msg[open] summary {
  margin-bottom: 0.5em;
}
.ps__init {
  margin-top: var(--sp-4, 1.2rem);
  padding-top: var(--sp-4, 1.2rem);
  border-top: 2px solid #1e5fbe;
}
.ps__init:empty {
  display: none;
}
.ps__init-head {
  font-weight: 700;
}
.ps__total--init {
  font-size: 1.5rem;
  margin-top: 0.2em;
}
.ps__cta {
  margin-top: var(--sp-4, 1.2rem);
}
.ps__ctanote {
  margin-top: 0.5em;
  font-size: 0.8rem;
  color: var(--c-gray-600, #5b6472);
}
.ps-note {
  margin-top: var(--sp-4, 1.2rem);
  font-size: 0.9rem;
  color: var(--c-gray-700, #3d4654);
  line-height: 1.7;
}
/* 料金メニューの詳細（表）を折りたたみで残す。AIや検索ロボットが読めるよう、中身はページに常に入れる */
.price-menu {
  margin-top: var(--sp-6, 2rem);
  border: 1px solid #c9d6ea;
  border-radius: 12px;
  background: #fff;
}
.price-menu > summary {
  cursor: pointer;
  padding: 1em 1.2em;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-blue-deep, #12306b);
  list-style: none;
}
.price-menu > summary::-webkit-details-marker {
  display: none;
}
.price-menu > summary::after {
  content: "＋";
  float: right;
  font-size: 1.3rem;
  color: #1e5fbe;
}
.price-menu[open] > summary::after {
  content: "−";
}
.price-menu__body {
  padding: 0 1.2em 1.2em;
}
.ps__initnote { margin: .6em 0 0; padding: .5em .8em; background: #fff8e6; border-left: 4px solid #e0912b; font-size: .88rem; line-height: 1.6; }
.ps__range:empty { display: none; }
.ps__range { display: block; margin-top: .3em; color: #8a4b00; font-size: .85rem; }
.ps__quote { margin: var(--sp-3, 1rem) 0 0; padding: .7em 1em; background: #fff; border: 2px dashed #1e5fbe; border-radius: 10px; font-size: .92rem; line-height: 1.7; }
.ps__quote ul { margin: .3em 0 0; padding-left: 1.2em; }
.ps__mini { display: none; }
.ps__panel :focus-visible, .ps__result :focus-visible { outline: 3px solid #e0912b; outline-offset: 2px; }
@media (max-width: 820px) {
  .ps {
    grid-template-columns: 1fr;
  }
  .ps__result {
    position: static;
    padding-bottom: calc(var(--sp-5, 1.5rem) + 84px); /* 画面下に固定されるお問い合わせボタンと重ならないように */
  }
  .ps__mini { display: block; position: sticky; top: var(--header-h, 72px); z-index: 5; background: #12306b; color: #fff; padding: .5em .9em; border-radius: 10px; font-size: .9rem; margin-bottom: var(--sp-3, 1rem); }
  .ps__mini strong { font-size: 1.15rem; }
  .ps__result { scroll-margin-top: calc(var(--header-h, 72px) + 64px); }
  .ps__mini a { color: #ffd98a; margin-left: .4em; }
}
