/* L.S.Bank 版で足したもの：電話・LINE、FVの特長、選ばれる理由、メーカー、支払い方法、お客様の声。
   色と余白は design.css のトークンに合わせる。 */

/* ヘッダーの電話 */
.header-tel { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; color: var(--navy-deep); font-size: 18px; font-weight: 800; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.header-tel small { order: -1; margin-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }

/* FV直下の特長3つ */
.fv-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 16px 20px 0; list-style: none; background: #fff; }
.fv-points li { padding: 12px 6px; border: 2px solid var(--navy); border-radius: var(--radius); text-align: center; line-height: 1.4; }
.fv-points strong { display: block; color: var(--navy-deep); font-size: 19px; }
.fv-points small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

/* 電話・LINEボタン */
.contact-btns { display: grid; gap: 10px; margin-top: 14px; }
.btn--tel, .btn--line { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 8px; color: #fff; font-size: 18px; font-weight: 800; text-decoration: none; line-height: 1.35; text-align: left; }
.btn--tel { background: var(--navy); box-shadow: 0 4px 0 var(--navy-deep); }
.btn--tel:hover { background: var(--navy-deep); }
.btn--line { background: #06c755; box-shadow: 0 4px 0 #04913e; }
.btn--tel small, .btn--line small { display: block; font-size: 12px; font-weight: 500; opacity: .92; }
.contact-btns__icon { flex: 0 0 auto; font-size: 22px; }
.btn--line .contact-btns__icon { padding: 2px 6px; border-radius: 6px; background: #fff; color: #06c755; font-size: 12px; font-weight: 900; }
.sec--last .contact-btns { margin-top: 14px; }

/* 追従バーの電話 */
.sticky__tel { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; min-height: 48px; border-radius: 8px; background: var(--navy); color: #fff; text-decoration: none; line-height: 1.1; }
.sticky__tel span { font-size: 18px; }
.sticky__tel small { font-size: 12px; font-weight: 700; }

/* 選ばれる理由 */
.sec--reasons { background: #fff; }
.reasons { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.reason { display: flex; align-items: flex-start; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.reason__no { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 16px; font-weight: 800; }
.reason h3 { margin: 0 0 4px; color: var(--navy-deep); font-size: 19px; }
.reason p { margin: 0; font-size: 16px; }
.makers { margin-top: 28px; padding: 20px; border: 2px solid var(--navy-soft); border-radius: var(--radius); }
.makers__label { margin: 0 0 10px; color: var(--navy); font-size: 15px; font-weight: 700; text-align: center; }
.makers__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.makers__list li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy-deep); font-size: 15px; font-weight: 700; }
.after-box { margin-top: 20px; padding: 20px; border: 1px solid #f0d2b4; border-radius: var(--radius); background: #fff8f1; }
.after-box h3 { margin: 0 0 6px; color: var(--navy-deep); font-size: 19px; }
.after-box p { margin: 0; font-size: 16px; }

/* 支払い方法 */
.pay-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.pay-list li { padding: 16px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.pay-list strong { display: block; color: var(--navy-deep); font-size: 18px; }
.pay-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* お客様の声 */
.sec--voice { background: #f7f9fb; }
.voices { display: grid; gap: 14px; margin: 0 0 16px; padding: 0; list-style: none; }
.voice { padding: 20px; border: 1px solid #eadfc1; border-radius: var(--radius); background: #fff; }
.voice__meta { margin: 0 0 8px; color: var(--navy); font-size: 14px; font-weight: 700; }
.voice__meta span { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: var(--navy-soft); font-size: 12px; }
.voice__body { margin: 0; font-size: 16px; }
.voice__body::before { content: "「"; }
.voice__body::after { content: "」"; }

@media (max-width: 600px) {
  .header-tel { font-size: 15px; }
  .fv-points { padding-inline: 14px; gap: 6px; }
  .fv-points strong { font-size: 16px; }
  .pay-list { grid-template-columns: 1fr; }
  .btn--tel, .btn--line { font-size: 16px; }
}
@media (max-width: 360px) {
  .header-tel small { display: none; }
}

/* lp.css の .voices（準備中の破線枠）を打ち消す */
.sec--voice .voices { padding: 0; border: 0; text-align: left; }

/* LP内の施工写真プレビュー：2枚を横並び */
.page--lp .sec--works { padding: 0; border: 0; margin-bottom: 20px; }
.page--lp .works { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; border: 0; background: none; text-align: left; }
.page--lp .work { margin: 0; }
.page--lp .work img { aspect-ratio: 4 / 3; object-fit: cover; }
.page--lp .work__body { font-size: 13px; }
@media (max-width: 600px) { .page--lp .works { grid-template-columns: 1fr; } }

/* ---------- ブランド（lsbank.co.jp のロゴ：オレンジの太陽＋青の蓄電池） ---------- */
.mhead { border-top: 4px solid transparent; border-image: linear-gradient(90deg, #ff6b00, #ffb800 55%, #2f78c4) 1; }
.brand__mark { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 0; background: none; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; }
.brand__type { display: block; width: 120px; height: auto; }
.brand small { font-size: 12px; letter-spacing: .04em; }
.reading-progress span { background: #ff8a00; box-shadow: none; }
.fv-points li { border-color: #c9dbef; background: #f5f9fd; }
.fv-points strong::before { content: ""; display: block; width: 22px; height: 3px; margin: 0 auto 6px; border-radius: 2px; background: #ff8a00; }
/* 白い文字はオレンジの上でコントラストが足りない（2.5:1）。濃い紺にして 5.7:1 */
.reason__no { background: #ff8a00; color: var(--navy-deep); }
.foot__logo { display: block; width: 120px; height: auto; margin-bottom: 8px; }

/* ---------- スマホ：2〜3列の表は横スクロールさせず、画面幅に収める ---------- */
@media (max-width: 560px) {
  .tbl-scroll .tbl--rate, .tbl-scroll .tbl--estimate { min-width: 0; }
  .tbl--rate, .tbl--estimate { font-size: 14px; }
  .tbl--rate th, .tbl--rate td, .tbl--estimate th, .tbl--estimate td { padding: 10px 8px; }
  .tbl--estimate thead th { white-space: normal; }
  .tbl--estimate tbody th { font-size: 13px; white-space: nowrap; }
  .tbl--estimate td { word-break: keep-all; overflow-wrap: anywhere; }
}

/* ---------- レビュー対応（2026-11-09） ---------- */
/* キーボード用：本文へ移動 */
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--navy-deep); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip-link:focus { transform: none; outline: 3px solid #ffb800; }

/* 日本語の改行：文節で折り返し、見出しは行の長さをそろえる */
h1, h2, h3, .story-turn, .discovery-end, .fv__proof, .cta-box__eyebrow, figcaption { word-break: auto-phrase; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
summary, th { word-break: auto-phrase; }
.fv-voice figcaption { text-wrap: wrap; }
/* FAQの＋/−は行数に関係なく縦中央に置く */
.faq summary::after { top: 50%; transform: translateY(-50%); }

/* 最小の文字サイズは12px */
.mhead__pr, .mhead__note, .header-link { font-size: 12px; }
.fv__visual small, .btn__badge, .panel__fig::before, .fv__proof sup { font-size: 12px; }

/* FVの信頼の一行と、お客様の声の抜粋 */
.fv-trust { margin: 0; padding: 12px 20px 0; background: #fff; color: var(--navy-deep); font-size: 14px; font-weight: 700; text-align: center; }
.fv-trust span { margin: 0 6px; color: var(--line); }
.fv-voice { margin: 0 20px 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.fv-voice blockquote { margin: 0; color: var(--navy-deep); font-size: 16px; font-weight: 700; }
.fv-voice blockquote::before { content: "「"; }
.fv-voice blockquote::after { content: "」"; }
.fv-voice figcaption { margin-top: 4px; color: var(--muted); font-size: 13px; }
.fv-voice a { margin-left: 8px; color: var(--navy); font-weight: 700; }

/* 片側だけの太線の囲みをやめ、全周の細い枠にそろえる */
.prep-box { border: 1px solid #c9dbef; border-radius: var(--radius); }

@media (max-width: 600px) {
  .fv-trust { padding-inline: 14px; font-size: 13px; }
  .fv-trust span { margin: 0 4px; }
  .fv-voice { margin-inline: 14px; padding: 14px 16px; }
  .brand__type { width: 104px; }
}
@media (max-width: 360px) {
  .brand small, .header-tel small { font-size: 12px; }
  .brand__type { width: 92px; }
}
@media (max-width: 420px) {
  .brand small { display: none; }  /* 12px で2行に折れるため、狭い画面では社名ロゴだけにする */
}

/* ---------- 診断フォームの装飾（2026-11-19） ---------- */
/* 色は :root（design.css）とロゴの太陽のオレンジ #ff8a00 だけ。余白 4/8/12/16/24/32px、角丸 4/8/12/16px。
   動きは cubic-bezier(.22,1,.36,1)。色の変化は 300ms、位置は 500ms */
:root { --sun: #ff8a00; --ease: cubic-bezier(.22, 1, .36, 1); --focus: 0 0 0 3px #1b559640; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.diag { padding: 24px; border-radius: 16px; box-shadow: 0 8px 24px #0f2c520f; }

/* 設問：必須・任意の印 */
.q { margin-bottom: 24px; }
.q__label { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; font-size: 18px; line-height: 28px; }
.q__req, .q__opt { flex: 0 0 auto; margin-top: 4px; padding: 0 8px; border-radius: 4px; font-size: 12px; line-height: 20px; font-weight: 700; }
.q__req { background: var(--alert); color: #fff; }
.q__opt { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }

/* 選択肢：丸と四角は自前で描く（OS ごとの見た目の差をなくす） */
.choice { gap: 12px; min-height: 56px; padding: 12px 16px; border-radius: 12px; transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .2s var(--ease); }
.choice:hover { border-color: #b9c6d3; background: #fafcfe; }
.choice:active { transform: translateY(1px); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); border-color: var(--navy); }
.choice input { appearance: none; -webkit-appearance: none; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; border: 2px solid #9aa6b2; border-radius: 9999px; background: #fff; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.choice input::before { content: ""; width: 12px; height: 12px; border-radius: 9999px; background: var(--navy); transform: scale(0); transition: transform .3s var(--ease); }
.choice input:checked { border-color: var(--navy); }
.choice input:checked::before { transform: scale(1); }
.choice input[type="checkbox"] { border-radius: 4px; }
.choice input[type="checkbox"]::before { width: 14px; height: 14px; border-radius: 0; background: #fff; transform: scale(0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66 77.66l-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66 77.66l-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.choice input[type="checkbox"]:checked { background: var(--navy); }
.choice input[type="checkbox"]:checked::before { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); color: var(--navy-deep); }
.choice--consent { padding: 16px; }
.choice--consent input { margin-top: 4px; }

/* プルダウン・入力欄 */
.select, .input { padding: 12px 16px; border-radius: 12px; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%231b5596'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") right 16px center / 20px no-repeat; }
.select:hover, .input:hover { border-color: #b9c6d3; }
.select:focus, .input:focus { outline: none; border-color: var(--navy); box-shadow: var(--focus); }
.input::placeholder { color: #8a949e; }

/* 入力の誤り：枠と背景を赤寄りにし、文の前に印 */
.q.is-invalid .choice, .q.is-invalid .select, .q.is-invalid .input { background-color: #fdf3f2; }
.q__error:not([hidden]) { display: flex; align-items: flex-start; gap: 4px; }
.q__error::before { content: "!"; flex: 0 0 auto; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 9999px; background: var(--alert); color: #fff; font-size: 12px; line-height: 16px; }
.q__error--form:not([hidden]) { padding: 12px 16px; border-radius: 8px; background: #fdf3f2; }

/* 送信の前の安心材料 */
.diag__assure { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.diag__assure li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 9999px; background: var(--soft); color: var(--navy-deep); font-size: 14px; line-height: 20px; font-weight: 700; }
.diag__assure svg { width: 16px; height: 16px; fill: var(--navy); }

@media (max-width: 560px) {
  .diag { padding: 16px; }
  .q__label { font-size: 16px; line-height: 24px; }
  .q__req, .q__opt { margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .choice, .choice input, .choice input::before, .select, .input, .chooser__option, .btn--submit { transition: opacity .3s linear; }
  .btn--submit:active, .chooser__option:active { transform: none; }
  .choice:active { transform: none; }
}

/* ---------- 電話・LINE の誤タップ対策とフォーム（2026-11-19。lp.eco-smile2022.com と同じ。docs/contact-mistap.md） ---------- */
/* 受付時間外（<html data-tel="closed">）は電話のボタン・ヘッダーの番号を隠し、案内の一文を出す */
.tel-closed-only { display: none; }
[data-tel="closed"] .tel-open-only { display: none !important; }
[data-tel="closed"] .tel-closed-only { display: block; }
.contact-btns__closed { margin: 0; padding: 12px 16px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 14px; line-height: 20px; }
.header-tel { margin-top: 0; margin-bottom: 0; }

/* 追従バーの LINE */
.sticky__line { background: #06c755; }
.sticky__line span { font-size: 12px; font-weight: 800; }

/* ご相談の方法（フォーム／電話／LINE） */
.chooser { margin: 24px 0 16px; padding: 0; border: 0; }
.chooser__label { margin-bottom: 12px; padding: 0; color: var(--navy-deep); font-size: 16px; line-height: 24px; font-weight: 700; }
.chooser__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.chooser__option { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy-deep); font-size: 14px; line-height: 20px; font-weight: 700; text-align: center; cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease), transform .2s var(--ease); }
.chooser__option input { position: absolute; opacity: 0; pointer-events: none; }
.chooser__option:hover { border-color: #b9c6d3; }
.chooser__option:active { transform: translateY(1px); }
.chooser__option:has(input:focus-visible) { box-shadow: var(--focus); }
.chooser__option:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.chooser__panel { margin-bottom: 16px; padding: 24px; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px #0f2c520f; text-align: center; }

/* 確認のシート（画面の下から出る） */
.sheet { width: 100%; max-width: 480px; margin: auto auto 0; padding: 0; border: 0; border-radius: 16px 16px 0 0; background: #fff; color: var(--ink); }
.sheet::backdrop { background: #0f2c5299; }
.sheet[open] { animation: sheet-up .5s var(--ease) both; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet__body { display: grid; gap: 12px; padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); text-align: center; }
.sheet__title { margin: 0; color: var(--navy-deep); font-size: 20px; line-height: 28px; font-weight: 700; }
.sheet__number { margin: 0; color: var(--navy-deep); font-size: 30px; line-height: 36px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.sheet__text { margin: 0; color: var(--muted); font-size: 14px; line-height: 20px; }
.sheet__closed { display: none; margin: 0; padding: 12px 16px; border-radius: 8px; background: #fdf3f2; color: var(--alert); font-size: 14px; line-height: 20px; font-weight: 700; text-align: left; }
[data-tel="closed"] .sheet__closed { display: block; }
.sheet__action { justify-content: center; width: 100%; margin-top: 4px; text-align: center; }
[data-sheet-panel], .chooser__panel { display: grid; gap: 12px; }
[data-sheet-panel][hidden], .chooser__panel[hidden] { display: none; }
.sheet__form { display: block; padding: 12px; color: var(--navy); font-size: 16px; line-height: 24px; font-weight: 700; }
.sheet__close { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.sheet__close:hover { background: var(--soft); }
.sheet__close:focus-visible, .sheet__form:focus-visible { outline: none; box-shadow: var(--focus); }
@media (min-width: 561px) { .sheet { margin: auto; border-radius: 16px; } }

/* 送信ボタン：ページの CTA（オレンジ）と色と形を変える（同じ見た目だと未入力の送信が増える） */
.btn--submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 8px 12px; border: 0; border-radius: 9999px; background: var(--navy); color: #fff; font: inherit; font-size: 16px; line-height: 24px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 0 var(--navy-deep);
  transition: background-color .3s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn--submit:hover { background: var(--navy-deep); }
.btn--submit:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--navy-deep); }
.btn--submit:focus-visible { outline: none; box-shadow: 0 4px 0 var(--navy-deep), var(--focus); }
.btn--submit:disabled { opacity: .6; cursor: wait; }

/* 人には見えない欄（自動投稿対策） */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .sheet[open] { animation: none; }
}

/* ---------- 細部の仕上げ（2026-11-20） ---------- */
/* つなぎの一文（.bridge）：水色の帯だと「お知らせ」に見え、10か所以上並ぶと帯ばかりが目立つ。
   帯をやめ、中央寄せの小さな一文と下向きの印で「次の話へ」と読ませる */
.bridge { position: relative; padding: 24px 24px 40px; word-break: auto-phrase; border-top: 0; background: #fff; color: var(--muted); text-align: center; font-size: 14px; line-height: 24px; font-weight: 500; text-wrap: balance; }
.bridge::before { content: ""; display: block; width: 1px; height: 24px; margin: 0 auto 12px; background: var(--line); }
.bridge::after { content: ""; position: absolute; left: 50%; bottom: 16px; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateX(-50%) rotate(45deg); }

.bridge + .sec:not(.sec--voice, .sec--faq) { padding-top: 24px; }

/* 表の数字は桁をそろえる */
.tbl td, .tbl th { font-variant-numeric: tabular-nums; }

/* 電話番号の表示（2026-11-20）。アプリ内ブラウザ（Facebook・Instagram・LINE）や一部の Android は format-detection を無視して
   番号の文字を発信リンクにする。番号を CSS の生成テキストで描けば検出されない（生成テキストも読み上げソフトは読む）。
   発信はシートとフォームの上の「電話をかける」だけ（docs/contact-mistap.md） */
.tel-text::before { content: attr(data-num); }
.tel-text { white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-tel { pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.header-tel a, .tel-text a, a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; pointer-events: none; }
