/* デジリハ セルフサーブハブ — 公式サイト準拠のブランドトークン(ライト固定) */
:root {
  --teal: #28cec3;
  --teal-dark: #1cc2a7;
  --lime: #c3d600;
  --yellow: #e3ff00;
  --blue: #00d2ff;
  --text: #41474c;
  --text-light: #91abb8;
  --gray-1: #d8dee3;
  --gray-2: #ecf2f7;
  --bg: #f4f7fa;
  --white: #ffffff;
  /* 公式サイトの象徴: ティール→ライムの斜めグラデーション */
  --grad: linear-gradient(120deg, #28cec3 10%, #7eda8a 55%, #c3d600 100%);
  --grad-v: linear-gradient(180deg, #00d2ff, #c3d600);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--gray-2);
}
.header-inner { display: flex; align-items: baseline; gap: 10px; padding: 12px 20px; }
.logo { font-weight: 900; font-size: 20px; color: var(--teal); letter-spacing: .04em; }
.logo-img { height: 24px; width: auto; display: block; }
.header-inner { align-items: center; }
.qp-logo { height: 26px; width: auto; display: block; margin-left: auto; margin-bottom: 4px; }
.header-note { font-size: 12px; color: var(--text-light); }

/* hero */
.hero { background: linear-gradient(180deg, var(--bg), var(--white)); padding: 40px 0 32px; text-align: center; }
.hero-nav { text-align: left; }
/* 公式サイトのCTAバンド(グラデーション背景+白文字+白ピルボタン) */
.section.grad-band { background: var(--grad); }
.section.grad-band h2, .section.grad-band p { color: #fff; }
.section.grad-band h2::before { background: rgba(255,255,255,.7); }
.section.grad-band .next-card { background: transparent; box-shadow: none; text-align: center; padding: 0; }
.hero-thanks {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--text);
  background: var(--white); border: 1px solid var(--gray-1); border-radius: 999px;
  padding: 4px 14px; margin-bottom: 14px;
}
.hero h1 { font-size: 26px; font-weight: 900; line-height: 1.5; margin-bottom: 12px; }
.hero-lead { font-size: 14px; color: var(--text); margin-bottom: 22px; }
.hero-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hero-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--white); border: 2px solid var(--teal); border-radius: 14px;
  padding: 12px 6px; text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 13px; text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.hero-btn:active { transform: scale(.97); }
.hero-btn .num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff;
  font-size: 12px; display: grid; place-items: center; margin-bottom: 2px;
}
.hero-btn small { font-weight: 400; font-size: 11px; color: var(--text-light); }

/* stepper */
.stepper {
  display: flex; gap: 4px; list-style: none; margin-top: 6px;
  justify-content: space-between;
}
.stepper li {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--text-light); flex: 1;
}
.stepper .dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gray-2); color: var(--text-light); font-size: 13px;
}
.stepper li.current { color: var(--teal-dark); }
.stepper li.current .dot { background: var(--grad); color: #fff; }
.stepper li.done { color: var(--teal-dark); }
.stepper li.done .dot { background: #d9f7f3; color: var(--teal-dark); }

/* 段階ロック */
.locked-note { display: none; }
.section.locked [data-locked-note] {
  display: block; background: var(--gray-2); border-radius: 12px;
  padding: 14px 16px; font-size: 13px; font-weight: 700; color: var(--text-light);
}
.section.locked .stage-body { display: none; }
.step-badge {
  display: inline-block; background: var(--grad); color: #fff; font-size: 11px;
  font-weight: 900; border-radius: 999px; padding: 3px 12px; margin-right: 8px;
  vertical-align: middle; letter-spacing: .06em;
}
.step-next { margin-top: 18px; }
.step-next-hint { font-size: 12px; color: var(--text-light); margin-top: 8px; text-align: center; }
.step-next-hint a { color: var(--text-light); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* アンケートのチップ */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  border: 1.5px solid var(--gray-1); border-radius: 999px; padding: 8px 14px;
  background: var(--white); color: var(--text); transition: all .15s;
}
.chip.on { border-color: transparent; background: var(--grad); color: #fff; }
.sim-step textarea, .sim-step input[type="text"], .sim-step input[type="tel"], .sim-step input[type="email"] {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  border: 1.5px solid var(--gray-1); border-radius: 10px; padding: 10px 12px; background: var(--white);
}
.req {
  font-size: 10px; font-weight: 900; color: #fff; background: #f08c7d;
  border-radius: 4px; padding: 1px 6px; vertical-align: middle; margin-left: 6px;
}
.optional-known { display: none; }

/* 見積書 */
.quote-doc { margin-top: 20px; }
.quote-paper {
  background: var(--white); border: 1px solid var(--gray-1); border-radius: 4px;
  padding: 28px 24px; box-shadow: 0 6px 24px rgba(65,71,76,.10);
}
.qp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.qp-head h3 { font-size: 22px; font-weight: 900; letter-spacing: .2em; }
.qp-approx { font-size: 12px; letter-spacing: 0; color: var(--text-light); font-weight: 700; }
.qp-meta { font-size: 11px; color: var(--text-light); text-align: right; line-height: 1.7; }
.qp-to { font-size: 16px; font-weight: 700; border-bottom: 2px solid var(--text); display: inline-block; padding-bottom: 2px; margin-bottom: 4px; }
.qp-office { font-size: 13px; font-weight: 500; }
.qp-from { font-size: 12px; color: var(--text-light); text-align: right; margin-bottom: 14px; }
.quote-paper h4 { font-size: 13px; margin: 14px 0 6px; color: var(--teal-dark); }
.qp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qp-table td { border-bottom: 1px solid var(--gray-2); padding: 7px 4px; }
.qp-table .num { text-align: right; white-space: nowrap; font-weight: 700; }
.qp-table .total td { border-top: 2px solid var(--text); border-bottom: none; font-weight: 900; font-size: 14px; }
.qp-note { font-size: 11px; color: var(--text-light); margin-top: 14px; line-height: 1.7; }
.qp-seller {
  font-size: 11px; font-weight: 700; color: var(--text);
  background: var(--gray-2); border-radius: 999px; padding: 2px 10px; margin-left: 6px;
  vertical-align: middle;
}
.qp-grand { margin-top: 10px; }
.qp-lease {
  font-size: 12px; background: var(--gray-2); border-radius: 8px;
  padding: 8px 10px; margin-top: 8px; line-height: 1.7;
}
.qp-grand .total td { border-top: 3px double var(--text); }
.seller-tag { font-size: 11px; color: var(--text-light); font-weight: 500; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; justify-content: flex-end; }

@media print {
  body * { visibility: hidden; }
  .quote-paper, .quote-paper * { visibility: visible; }
  .quote-paper { position: absolute; left: 0; top: 0; width: 100%; border: none; box-shadow: none; }
  .site-header, .sticky-cta { display: none; }
}

/* sections */
.section { padding: 48px 0; }
.section.alt { background: var(--bg); }
/* 公式サイト準拠: 見出しは中央揃え+上に細い縦グラデーションバー */
.section h2 {
  font-size: 21px; font-weight: 900; margin-bottom: 10px; text-align: center;
}
.section h2::before {
  content: ""; display: block; width: 3px; height: 36px;
  margin: 0 auto 14px; background: var(--grad-v);
}
.marker { background: none; padding: 0; }
.section-lead { font-size: 14px; color: var(--text); margin-bottom: 22px; text-align: center; }

/* video */
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: var(--gray-2);
  box-shadow: 0 6px 24px rgba(65,71,76,.12);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.slides-toggle { margin-top: 18px; }
.slides-toggle summary {
  cursor: pointer; font-weight: 700; font-size: 14px; color: var(--teal-dark);
  padding: 10px 0; list-style-position: inside;
}
.slide-viewer { background: var(--bg); border-radius: 14px; padding: 14px; }
.slide-viewer img { width: 100%; border-radius: 8px; border: 1px solid var(--gray-1); display: block; }
.slide-cap { font-size: 13px; margin: 10px 2px; min-height: 3.2em; }
.slide-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slide-count { font-size: 12px; color: var(--text-light); white-space: nowrap; }

/* buttons */
.btn {
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  border-radius: 999px; padding: 11px 20px; border: 2px solid var(--teal);
  transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
/* 公式サイト準拠: 主ボタンはティール→ライムのグラデーションピル */
.btn.primary { background: var(--grad); color: #fff; border: none; padding: 13px 22px; }
.btn.primary:hover { opacity: .88; }
.btn.ghost { background: var(--white); color: var(--teal-dark); }
.btn.on-grad { background: var(--white); color: var(--teal-dark); border: none; padding: 13px 22px; }
.btn.xl { width: 100%; padding: 15px; font-size: 15px; margin-top: 12px; }

/* simulator */
.sim-card {
  background: var(--white); border-radius: 24px; padding: 24px 18px;
  box-shadow: 0 6px 24px rgba(65,71,76,.08);
}
.sim-step { margin-bottom: 22px; }
.sim-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.sim-step select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  padding: 10px 12px; border: 1.5px solid var(--gray-1); border-radius: 10px; background: var(--white);
}
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-list { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1.5px solid var(--gray-1); border-radius: 12px; padding: 12px;
  cursor: pointer; background: var(--white); transition: border-color .15s, background .15s;
}
.choice input { margin-top: 4px; accent-color: var(--teal); }
.choice.selected { border-color: var(--teal); background: #f0fdfb; }
.choice .c-label { font-size: 14px; font-weight: 700; }
.choice .c-price { font-size: 13px; color: var(--teal-dark); font-weight: 700; }
.choice .c-note { font-size: 12px; color: var(--text-light); }
.choice-grid .choice { flex-direction: column; gap: 4px; }
.yearly-toggle { display: block; margin-top: 10px; font-size: 13px; font-weight: 500; }
.yearly-toggle input { accent-color: var(--teal); }

.sim-result { border-top: 2px dashed var(--gray-1); padding-top: 16px; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.result-row span { font-size: 13px; }
.result-row strong { font-size: 18px; font-weight: 900; }
.result-row.big strong { font-size: 26px; color: var(--teal-dark); }
.result-note { font-size: 12px; color: var(--text-light); margin-top: 8px; }
.result-note.subsidy { background: var(--gray-2); border-radius: 10px; padding: 10px 12px; color: var(--text); }

/* docs */
.doc-grid { display: grid; gap: 10px; }
.doc-card {
  display: block; text-decoration: none; color: var(--text);
  border: 1.5px solid var(--gray-1); border-radius: 12px; padding: 14px 16px;
  transition: border-color .15s, background .15s;
}
.doc-card:hover { border-color: var(--teal); background: #f0fdfb; }
.doc-card .d-title { font-weight: 700; font-size: 14px; color: var(--teal-dark); }
.doc-card .d-desc { font-size: 12px; color: var(--text-light); }

/* next cards */
.next-grid { display: grid; gap: 12px; }
.next-card {
  background: var(--white); border-radius: 16px; padding: 20px 18px;
  box-shadow: 0 4px 18px rgba(65,71,76,.08);
}
.next-card h3 { font-size: 16px; margin-bottom: 6px; }
.next-card p { font-size: 13px; margin-bottom: 12px; }

/* modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(65,71,76,.5);
  display: grid; place-items: center; padding: 20px;
}
.modal-box {
  background: var(--white); border-radius: 18px; padding: 24px 20px;
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
}
.modal-box h3 { font-size: 17px; margin-bottom: 6px; }
.modal-box p { font-size: 13px; margin-bottom: 12px; }
.modal-quote {
  background: var(--bg); border-radius: 10px; padding: 10px 12px;
  font-size: 12px; white-space: pre-wrap; margin-bottom: 12px;
}
.modal-box label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.modal-box input, .modal-box textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  border: 1.5px solid var(--gray-1); border-radius: 10px; padding: 10px 12px; margin-top: 4px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.modal-status { font-size: 13px; font-weight: 700; color: var(--teal-dark); min-height: 1.5em; margin-top: 8px; }

/* sticky CTA */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; gap: 10px; justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); border-top: 1px solid var(--gray-2);
}
.sticky-cta .btn { flex: 1; max-width: 220px; }
main { padding-bottom: 70px; }

/* footer */
.site-footer { background: var(--gray-2); padding: 28px 0 90px; font-size: 12px; color: var(--text-light); }
.site-footer a { color: var(--text-light); }

@media (min-width: 640px) {
  .hero h1 { font-size: 32px; }
  .next-grid { grid-template-columns: repeat(3, 1fr); }
  .doc-grid { grid-template-columns: 1fr 1fr; }
}
