@charset "UTF-8";
/* =========================================
   料金シミュレーション（ホームページ制作・LP制作）
   既存の .price セクションの見た目に合わせる
   ========================================= */
.price-sim {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0;
  background: #000;
  border-bottom: 1px solid #333;
}
.price-sim_inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.price-sim_title {
  width: 100%;
  margin: 0 0 24px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 0 10px #f39800;
}
.price-sim_title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  margin: 15px auto 0;
  background: #f39800;
  box-shadow: 0 0 10px #f39800;
}
.price-sim_lead {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.8;
  color: #ccc;
}
.price-sim_noscript {
  text-align: center;
  font-size: 1.4rem;
  color: #ccc;
}
.price-sim_app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-height: 400px;
}

/* ---------- 入力側 ---------- */
.price-sim_group {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.price-sim_group:last-child {
  margin-bottom: 0;
}
.price-sim_legend {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0 0 0 12px;
  border-left: 3px solid #f39800;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}
.price-sim_scopes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.price-sim_scope {
  position: relative;
  display: block;
  cursor: pointer;
}
.price-sim_scope input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.price-sim_scope-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  box-sizing: border-box;
  padding: 14px 14px;
  background: rgba(14, 14, 14, 0.9);
  border: 1px solid #333;
  border-radius: 4px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.price-sim_scope-label {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}
.price-sim_scope-note {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #999;
}
.price-sim_scope input:checked + .price-sim_scope-body {
  border-color: #f39800;
  background: rgba(243, 152, 0, 0.08);
}
.price-sim_scope input:checked + .price-sim_scope-body .price-sim_scope-label {
  color: #f39800;
}
.price-sim_scope input:focus-visible + .price-sim_scope-body {
  outline: 2px solid #f39800;
  outline-offset: 2px;
}

.price-sim_items {
  border: 1px solid #333;
  border-radius: 4px;
  background: rgba(14, 14, 14, 0.9);
}
.price-sim_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid #262626;
}
.price-sim_item:last-child {
  border-bottom: 0;
}
.price-sim_item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.price-sim_item-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  cursor: pointer;
}
span.price-sim_item-name {
  cursor: default;
}
.price-sim_item-note {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #999;
}
.price-sim_item-price {
  font-size: 1.3rem;
  line-height: 1.5;
  color: #f39800;
}
.price-sim_item.is-na .price-sim_item-name,
.price-sim_item.is-na .price-sim_item-note {
  color: #666;
}
.price-sim_item.is-na .price-sim_item-price {
  color: #777;
}
.price-sim_item-ctrl {
  flex-shrink: 0;
}

.price-sim_stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.price-sim_step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: #000;
  border: 1px solid #444;
  border-radius: 2px;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.price-sim_step:disabled {
  color: #444;
  border-color: #2a2a2a;
  cursor: default;
}
.price-sim_num {
  width: 48px;
  height: 40px;
  padding: 0;
  box-sizing: border-box;
  background: #000;
  border: 1px solid #444;
  border-radius: 2px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}
.price-sim_num::-webkit-outer-spin-button,
.price-sim_num::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.price-sim_unit {
  font-size: 1.2rem;
  color: #999;
}
.price-sim_check {
  width: 24px;
  height: 24px;
  margin: 8px;
  accent-color: #f39800;
  cursor: pointer;
}
.price-sim_check:disabled {
  cursor: default;
}
.price-sim_fixed {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #444;
  border-radius: 20px;
  font-size: 1.2rem;
  color: #ccc;
  white-space: nowrap;
}
.price-sim_step:focus-visible,
.price-sim_num:focus-visible,
.price-sim_check:focus-visible,
.price-sim_cta:focus-visible {
  outline: 2px solid #f39800;
  outline-offset: 2px;
}

/* 入力中も合計が見える追従バー（結果パネルが横に並ばない幅のみ） */
.price-sim_bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid #f39800;
  border-radius: 4px;
}
.price-sim_bar-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ccc;
}
.price-sim_bar-total {
  font-family: "Montserrat", sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  color: #f39800;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 768px) {
  /* スマホの固定フッター（高さ70px）の上に出す */
  .price-sim_bar {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 960px) {
  .price-sim_bar {
    display: none;
  }
}

/* ---------- 結果側 ---------- */
.price-sim_result {
  align-self: start;
  padding: 24px 18px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid #f39800;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(243, 152, 0, 0.12);
}
.price-sim_result-head {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #ccc;
}
.price-sim_total {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.2;
  color: #f39800;
  text-shadow: 0 0 15px rgba(243, 152, 0, 0.4);
  font-variant-numeric: tabular-nums;
}
.price-sim_tax {
  margin: 6px 0 0;
  font-size: 1.4rem;
  color: #ddd;
  font-variant-numeric: tabular-nums;
}
.price-sim_breakdown {
  list-style: none;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed #333;
}
.price-sim_breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #ddd;
}
.price-sim_bd-amount {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.price-sim_notes {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed #333;
}
.price-sim_notes li {
  margin: 0 0 6px;
  padding-left: 1em;
  text-indent: -1em;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #999;
}
.price-sim_cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 20px;
  padding: 0 16px;
  box-sizing: border-box;
  background: #f39800;
  border: 1px solid #f39800;
  border-radius: 2px;
  color: #000;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
@media (any-hover: hover) {
  .price-sim_cta:hover {
    background: transparent;
    color: #f39800;
  }
  .price-sim_step:not(:disabled):hover {
    border-color: #f39800;
    color: #f39800;
  }
  .price-sim_scope:hover .price-sim_scope-body {
    border-color: #666;
  }
  .price-sim_scope input:checked + .price-sim_scope-body {
    border-color: #f39800;
  }
}

@media (min-width: 769px) {
  .price-sim_inner {
    padding: 0 20px;
  }
  .price-sim_lead {
    font-size: 1.6rem;
  }
  .price-sim_item {
    padding: 16px 20px;
  }
  .price-sim_result {
    padding: 32px 28px;
  }
  .price-sim_total {
    font-size: 4rem;
  }
}
@media (min-width: 960px) {
  .price-sim_app {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
  }
  .price-sim_result {
    position: sticky;
    top: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .price-sim_scope-body,
  .price-sim_step,
  .price-sim_cta {
    transition: none;
  }
}

/* 月額の項目（monthly: true）を初期費用と分けて表示する */
.price-sim_monthly {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  font-size: 1.6rem;
  font-weight: bold;
  color: #f39800;
}
