@charset "UTF-8";

/* ページ全体 */
.main.simulator {
  padding: 80px 18px 100px;
  background-color: var(--bg-orange);
}

.sim-container {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: 48px 40px 64px;
  border-radius: 4px;
}

/* ページヘッダー */
.sim__page-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.sim__page-en {
  display: block;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--brand-orange);
  font-weight: 700;
  margin-bottom: 6px;
}

.sim__page-ja {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.sim__lead {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 8px;
  text-align: center;
}

.sim__lead-note {
  font-size: 12px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 16px;
  text-align: center;
  padding: 8px 12px;
  background: #f8f8f8;
  border-radius: 4px;
}

.sim__lead-strong {
  font-size: 15px;
  color: #222;
}

.sim__lead-accent {
  color: var(--brand-orange);
  font-weight: 700;
}

/* バッジ */
.sim-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  list-style: none;
  padding: 0;
}

.sim-badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  line-height: 1.3;
}

.sim-badge--yellow {
  background: #fff8cc;
  color: #7a6200;
  border: 1px solid #ffe600;
}

.sim-badge--green {
  background: #e8f8ee;
  color: #1a6b3a;
  border: 1px solid var(--brand-green, #2ecc71);
}

.sim-badge--orange {
  background: #fff3e8;
  color: var(--brand-orange);
  border: 1px solid var(--brand-orange);
}

/* フォームグリッド */
.sim-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .sim-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sim-field {
  margin-bottom: 0;
}

.sim-field--full {
  grid-column: 1 / -1;
}

.sim-field__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #222;
}

.sim-field__note {
  font-size: 11px;
  line-height: 1.5;
  color: #888;
  margin-bottom: 6px;
}

/* プルダウン共通 */
.sim-select {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #333;
}

.sim-select:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.sim-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #666;
  line-height: 1.5;
  padding: 8px 10px;
  background: #f8f8f8;
  border-radius: 4px;
}

/* 坪数（コンパクト） */
.sim-tsubo--compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-tsubo__range {
  width: 100%;
  accent-color: var(--brand-orange);
}

.sim-tsubo__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-tsubo__input {
  width: 64px;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.sim-tsubo__unit {
  font-size: 14px;
  font-weight: 600;
}

.sim-tsubo__sqm {
  font-size: 12px;
  color: #666;
  margin-left: auto;
}

/* 信頼訴求（フォーム下） */
.sim-trust {
  margin-top: 20px;
  padding: 14px 16px;
  background: #fff8f0;
  border-left: 3px solid var(--brand-orange);
  border-radius: 0 4px 4px 0;
}

.sim-trust__text {
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 4px;
}

.sim-trust__sub {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

/* エラー */
.sim-error {
  padding: 10px 14px;
  margin-top: 16px;
  background: #fff0f0;
  border: 1px solid #f44;
  border-radius: 4px;
  color: #c00;
  font-size: 13px;
  font-weight: 600;
}

/* 送信ボタン */
.sim-submit-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-top: 16px;
}

.sim-submit-wrapper::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}

.sim-submit-wrapper .cta-shine {
  z-index: 3;
  pointer-events: none;
}

.sim-submit-wrapper .cta-shine::after {
  animation: ctaShineSweep 3.6s ease-in-out infinite;
  animation-delay: 1.2s;
  opacity: 0.45;
}

.sim-submit {
  display: block;
  width: 100%;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, #ff9220 0%, var(--brand-orange) 55%, #e85a00 100%);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
  position: relative;
  z-index: 1;
}

.sim-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.45);
}

.sim-submit:active {
  transform: translateY(0);
}

.sim-submit-note {
  margin-top: 8px;
  font-size: 11px;
  color: #888;
  text-align: center;
}

/* 結果エリア */
#sim-result-peak {
  scroll-margin-top: 96px;
}

.sim-result {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid #eee;
}

.sim-result__section {
  margin-bottom: 24px;
}

.sim-result__heading {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

.sim-summary {
  background: #f8f8f8;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.9;
}

.sim-summary p {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.sim-result__section--peak {
  margin-bottom: 20px;
}

.sim-market {
  text-align: center;
  padding: 24px 16px 16px;
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  border: 2px solid var(--brand-orange);
  border-radius: 4px 4px 0 0;
  border-bottom: none;
}

.sim-savings__text {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  line-height: 1.6;
  text-align: center;
  padding: 12px 16px;
  background: #fff8f0;
  border-left: 2px solid var(--brand-orange);
  border-right: 2px solid var(--brand-orange);
}

.sim-savings__text strong {
  color: var(--brand-orange);
}

.sim-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.sim-cta-btns .cta-btn {
  max-width: 520px;
  width: 100%;
}

.sim-cta-btns--primary {
  padding: 16px;
  background: #fff8f0;
  border: 2px solid var(--brand-orange);
  border-top: 1px dashed #ffc899;
  border-radius: 0 0 4px 4px;
}

.sim-cta-btns--secondary {
  margin-bottom: 24px;
  padding: 20px 16px;
  background: #f8f8f8;
  border-radius: 4px;
}

.sim-cta-btns__lead {
  font-size: 14px;
  text-align: center;
  color: #444;
  margin-bottom: 4px;
  width: 100%;
}

.sim-market__label {
  font-size: 13px;
  font-weight: 700;
  color: #666;
  margin-bottom: 6px;
}

.sim-market__total {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 4px;
}

.sim-market__tsubo {
  font-size: 12px;
  color: #666;
}

.sim-cases__lead {
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.sim-cases .price-cases {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.sim-cases .sim-price-case {
  overflow: hidden;
}

.sim-cases .sim-price-case--link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.sim-cases .sim-price-case--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.18);
}

.sim-cases .sim-price-case--link:focus-visible {
  outline: 2px solid rgba(232, 93, 4, 0.65);
  outline-offset: 2px;
}

.sim-cases .sim-price-case:not(.sim-price-case--link) {
  cursor: default;
}

.sim-price-case--rich .sim-price-case__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.sim-cases .sim-price-case__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 200px;
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
  flex-shrink: 0;
}

.sim-cases .sim-price-case__thumb {
  display: block;
  width: 100%;
  height: 100%;
  max-block-size: none;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .sim-cases .sim-price-case__media {
    max-height: 220px;
  }
}

.sim-cases .sim-price-case__info {
  flex: 1;
  min-width: 0;
}

.sim-cases .price-case__name {
  margin: 0 0 4px;
  line-height: 1.5;
}

.sim-cases .price-case__bar {
  margin-bottom: 10px;
}

.sim-cases .sim-price-case__meta {
  font-size: 11px;
  color: #888;
  margin: 0;
  line-height: 1.4;
}

.sim-price-case__link-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-orange);
  text-align: right;
}

.sim-cases .sim-price-case--link:hover .sim-price-case__link-hint {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .sim-submit-wrapper .cta-shine::after {
    animation: none !important;
  }
}

.sim-disclaimer {
  font-size: 11px;
  line-height: 1.7;
  color: #888;
}

.sim-disclaimer p {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
}

.sim-reset {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--brand-orange);
  background: #fff;
  border: 2px solid var(--brand-orange);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.sim-reset:hover {
  background: #fff8f0;
}

@media screen and (max-width: 768px) {
  .main.simulator {
    padding: 40px 0 60px;
  }

  .sim-container {
    padding: 36px 20px 56px;
    border-radius: 0;
  }

  .sim__page-ja {
    font-size: 22px;
    line-height: 1.4;
  }

  .sim-market__total {
    font-size: 22px;
    line-height: 1.35;
  }

  .sim-cases .price-case__other-val {
    font-size: 18px;
  }

  .sim-cases .price-case__ours-val {
    font-size: 20px;
  }
}
