/* カーポートSW・ST見積ページ（2026-10 作り直し・案C「図で分かる」）。gr/lxl/{sw09,sw15,st30,st45,st60}/*.php からだけ読み込む。
   作りはサニージュ（sy26.css）と同じ。色は紺・淡いグレー・赤みのあるオレンジ（雪と風に強い・誠実） */
:root {
  --ss-green: #1d3557; --ss-green-d: #14284a; --ss-green-l: #eef2f6; --ss-ink: #1d2733; --ss-sub: #55606c;
  --ss-line: #d6dde5; --ss-bg: #f3f6f9; --ss-warn: #b3261e; --ss-accent: #d9541e; --ss-blue: #1f7ae0; --sitenav: 0px;
}
html { scroll-padding-top: 76px; }
body { color: var(--ss-ink); }
.Content { font-size: 17px; line-height: 1.8; }
@media (min-width: 992px) { .Content { font-size: 18px; } }

/* スマホ：最初の画面に金額が入るように、サイト共通のヘッダーのあいさつ文と検索欄をしまう（検索は下部ナビ・PCで使える） */
@media (max-width: 767.98px) {
  body > header.mt-2 { margin-top: 4px !important; }
  body > header > .container > p.small { display: none !important; }
  body > header .row > div.mt-md-3 { display: none !important; }
  body > header .row > p { margin-bottom: 6px; }
  body > header .row > p img { height: 40px; width: auto; }
  body > header .global-nav { margin-bottom: 10px !important; }
  body > header .global-nav .nav a { padding-top: 10px; padding-bottom: 10px; }
  .breadcrumb { font-size: 13px; margin-bottom: 4px; }
  .breadcrumb-item.active { display: none; }
  h1.k-title { font-size: 22px; }
  .SsTop-photoBox { height: 150px; }
  .ss-catch { font-size: 25px; margin-bottom: 8px; }
  p.ss-catch > small { display: none; }
  h1.k-title.ss-h1 { font-size: 16px; padding-bottom: 6px; }
  .SsTop { padding: 10px; }
  .SsTop-grid { gap: 10px; }
  .SsTop-photo figcaption { font-size: 11.5px; margin-top: 3px; line-height: 1.5; }
  .SsBand { grid-template-columns: 42% 1fr; padding: 6px 10px; margin-top: 8px; }
  .SsBand .SsBand-s { display: none; }
  .SsBand-note { font-size: 11.5px; }
}
/* 商品のみの箱の中の「工事もお任せ」 */
.kk-pla .SsInvite { margin: 14px 0 0; }

/* タイトルと最初のひとこと（案C：ひとことを大きく） */
h1.k-title.ss-h1 { margin-bottom: 4px; font-size: 18px; }
@media (min-width: 992px) { h1.k-title.ss-h1 { font-size: 22px; } }
.ss-catch { margin: 0 0 12px; font-size: 30px; font-weight: 900; color: var(--ss-green-d); letter-spacing: .02em; line-height: 1.3; }
.ss-catch small { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--ss-sub); letter-spacing: 0; }
@media (min-width: 992px) { .ss-catch { font-size: 38px; } .ss-catch small { font-size: 17px; } }

/* 強さの図の帯（案C） */
.SsBand { display: grid; grid-template-columns: 46% 1fr; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px; background: var(--ss-bg); border: 1px solid var(--ss-line); border-radius: 12px; }
.SsBand-fig { width: 100%; height: auto; display: block; }
.SsBand-tx p { margin: 0; }
.SsBand .SsBand-k { display: inline-block; padding: 0 8px; border-radius: 4px; background: var(--ss-green); color: #fff; font-size: 13px; font-weight: 700; }
.SsBand .SsBand-v { margin-top: 2px; font-weight: 900; color: var(--ss-green-d); line-height: 1.15; font-size: 16px; white-space: nowrap; }
.SsBand-v b { font-size: 34px; color: var(--ss-accent); font-variant-numeric: tabular-nums; }
.SsBand-v small { font-size: 13px; font-weight: 700; }
.SsBand .SsBand-s { margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--ss-sub); }
.SsBand-s b { color: var(--ss-ink); }
@media (min-width: 992px) { .SsBand-v b { font-size: 42px; } .SsBand-v small { font-size: 15px; } .SsBand .SsBand-s { font-size: 14px; } }
.SsBand-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ss-sub); }
.SsBand-note b { color: var(--ss-ink); }

/* 実績の1行 */
.SsZero { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--ss-line); border-left: 4px solid var(--ss-accent); border-radius: 0 10px 10px 0; background: #fff; font-size: 14px; line-height: 1.6; }
.SsZero b { display: block; color: var(--ss-ink); }
.SsZero small { display: block; margin-top: 2px; color: var(--ss-sub); font-size: 12.5px; }

/* 最初の画面 */
.SsTop { background: #fff; border: 1px solid var(--ss-line); border-radius: 16px; padding: 12px; margin: 0 0 28px; box-shadow: 0 2px 10px rgba(20,40,74,.06); }
.SsTop[hidden] { display: none; }
.SsTop-grid { display: grid; gap: 14px; }
@media (min-width: 992px) { .SsTop { padding: 22px; } .SsTop-grid { grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; } }
.SsTop-photo { margin: 0; }
.SsTop-photoBox { background: var(--ss-bg); border-radius: 12px; overflow: hidden; aspect-ratio: 1000 / 640; }
.SsTop-photoBox img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 991.98px) { .SsTop-photoBox { aspect-ratio: auto; height: 150px; } .SsTop-photoBox img { object-position: 50% 62%; } }
.SsTop-photo figcaption { font-size: 13px; color: var(--ss-sub); line-height: 1.6; margin-top: 6px; }
.SsTop-eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--ss-green); }
@media (max-width: 991.98px) { .SsTop-eyebrow { display: none; } }
.SsTop-price { background: var(--ss-green-l); border-radius: 12px; padding: 14px 14px 12px; }
.SsTop-label { margin: 0; font-weight: 700; font-size: 15px; color: var(--ss-green-d); }
.SsTop-total { margin: 2px 0 0; color: var(--ss-ink); font-weight: 800; line-height: 1.15; min-height: 53px; display: flex; align-items: baseline; }
.SsTop-total #SsTotal { font-size: 46px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.SsTop-total small { font-size: 22px; margin-left: 2px; }
@media (min-width: 992px) { .SsTop-total { min-height: 67px; } .SsTop-total #SsTotal { font-size: 56px; } }
.SsTop-price.is-loading #SsTotal, .SsTop-price.is-error #SsTotal { font-size: 26px; color: var(--ss-sub); }
.SsTop-price.is-error #SsTotal { color: var(--ss-warn); }
.SsTop-break { margin: 4px 0 8px; font-size: 14px; color: var(--ss-sub); line-height: 1.6; min-height: 3.2em; }
.SsTop-chipsLabel { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--ss-green-d); border-top: 1px solid var(--ss-line); padding-top: 8px; }
.ss-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-height: 150px; }
@media (min-width: 768px) { .ss-chips { min-height: 96px; } }
.ss-chips li { background: #fff; border: 1px solid var(--ss-line); border-radius: 8px; padding: 2px 9px; font-size: 14px; line-height: 1.6; }
.ss-chips li b { font-weight: 700; color: var(--ss-green-d); margin-right: .35em; }
.SsTop-change { display: inline-block; margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--ss-green-d); }
.SsTop-btns { display: grid; gap: 10px; margin-top: 14px; }
.SsTop-note { margin: 10px 0 0; font-size: 13px; color: var(--ss-sub); line-height: 1.6; }

/* ボタン */
.ss-btn { display: flex; align-items: center; justify-content: center; gap: .4em; min-height: 60px; padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: 18px; text-align: center; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.4; }
.ss-btn--main { background: var(--ss-accent); color: #fff; box-shadow: 0 3px 0 #a33608; }
.ss-btn--main:hover { background: #c13f0c; color: #fff; }
.ss-btn--main:disabled { background: #b9b9b9; box-shadow: none; cursor: default; }
.ss-btn--sub { background: #fff; color: var(--ss-green-d); border-color: var(--ss-green); }
.ss-btn--sub:hover { background: var(--ss-green-l); color: var(--ss-green-d); }
body.ss-work .ss-prod-only, body.ss-prod .ss-work-only { display: none !important; }
body:not(.ss-work):not(.ss-prod) .ss-prod-only { display: none; }

/* 商品のみの表示から工事付きへ */
.SsInvite { margin: -6px 0 26px; padding: 16px; border: 2px solid var(--ss-green); border-radius: 14px; background: var(--ss-green-l); }
.SsInvite[hidden] { display: none; }
.SsInvite .SsInvite-ttl, .kk-pla .SsInvite .SsInvite-ttl { margin: 0; font-size: 19px; font-weight: 800; color: var(--ss-green-d); }
.SsInvite .SsInvite-txt, .kk-pla .SsInvite .SsInvite-txt { margin: 4px 0 0; font-size: 15px; }
.SsInvite .SsInvite-price, .kk-pla .SsInvite .SsInvite-price { margin: 2px 0 10px; font-weight: 800; font-size: 32px; line-height: 1.2; }
.SsInvite-price small { font-size: 18px; margin-left: 2px; }
.SsInvite-tax { font-size: 14px; font-weight: 400; color: var(--ss-sub); margin-left: 4px; }
.SsInvite .ss-btn { margin-bottom: 0; }
.SsInvite .SsInvite-note, .kk-pla .SsInvite .SsInvite-note { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--ss-sub); }

/* 見積の項目：見出しを大きく、カードで区切る */
.EstimateForm .k-heading-twotone { font-size: 22px; }
.EstimateForm .PoleSec, .EstimateForm .SizeSec, .EstimateForm .ColorSec, .EstimateForm .RoofSec, .EstimateForm .PanelSec, .EstimateForm .LightSec,
.EstimateForm .DrainpipeSec, .EstimateForm .RunoutSec {
  background: #fff; border: 1px solid var(--ss-line); border-radius: 14px; padding: 14px; }
.EstimateForm .RoofSec { margin-bottom: 3rem; }
@media (min-width: 992px) { .EstimateForm .PoleSec, .EstimateForm .SizeSec, .EstimateForm .ColorSec, .EstimateForm .RoofSec, .EstimateForm .PanelSec,
  .EstimateForm .LightSec, .EstimateForm .DrainpipeSec, .EstimateForm .RunoutSec { padding: 20px 22px; } }
.EstimateForm .list-group-item { font-size: 17px; padding: 12px 14px; }
.EstimateForm .list-group-item:has(input:checked) { background: var(--ss-green-l); border-color: var(--ss-green); font-weight: 700; z-index: 1; }
.EstimateForm .form-check-input:checked { background-color: var(--ss-green); border-color: var(--ss-green); }

/* PC：左にフォーム、右に「いまの合計」（スクロールしても付いてくる）。スマホは下部バー */
.ss-body { display: block; }
.SsSide { display: none; }
@media (min-width: 992px) {
  .ss-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
  .SsSide { display: block; position: sticky; top: 80px; }
}
.SsSide-card { background: #fff; border: 2px solid var(--ss-green); border-radius: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(20,40,74,.06); }
.SsSide .SsSide-label { margin: 0; font-weight: 700; color: var(--ss-green-d); font-size: 16px; }
.SsSide .SsSide-label small { font-weight: 400; color: var(--ss-sub); font-size: 13px; }
.SsSide .SsSide-total { margin: 0 0 10px; font-size: 34px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.SsSide .SsSide-total small { font-size: 17px; margin-left: 2px; }
.ss-chips--side { min-height: 0 !important; margin-bottom: 14px; gap: 5px; }
.ss-chips--side li { font-size: 13px; }
.ss-btn--block { width: 100%; font-size: 17px; }
.SsSide .SsSide-note { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: var(--ss-sub); }

/* プロのひとこと */
.ss-tip { margin: 0 0 12px; padding: 10px 12px; background: var(--ss-bg); border-left: 4px solid var(--ss-green); border-radius: 0 8px 8px 0; }
.ss-tip-line { margin: 0; font-size: 16px; line-height: 1.7; }
.ss-tip-badge { display: inline-block; margin-right: .5em; padding: 0 7px; border-radius: 4px; background: var(--ss-green); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.ss-more { margin-top: 4px; }
.ss-more summary { cursor: pointer; font-size: 15px; font-weight: 700; color: var(--ss-green-d); }
.ss-more p { margin: 6px 0 0; font-size: 15px; line-height: 1.75; }

/* 依頼ボタンのそば */
.SsAssure { margin: 18px 0 14px; padding: 16px; border: 1px solid var(--ss-line); border-radius: 14px; background: #fff; text-align: left; }
.SsAssure-lead { margin: 0 0 12px; font-size: 16px; line-height: 1.8; }
.SsAssure-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 768px) { .SsAssure-list { grid-template-columns: 1fr 1fr; } }
.SsAssure-list li { padding: 10px 12px 10px 38px; background: var(--ss-green-l); border-radius: 10px; position: relative; font-size: 15px; line-height: 1.6; }
.SsAssure-list li::before { content: "✓"; position: absolute; left: 12px; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--ss-green); color: #fff; font-size: 12px; line-height: 18px; text-align: center; font-weight: 700; }
.SsAssure-list li b { display: block; font-size: 16px; color: var(--ss-green-d); }
.SsAssure-list li span { display: block; color: var(--ss-sub); font-size: 14px; }
.SsAssure-area { margin: 10px 0 0; font-size: 14px; color: var(--ss-sub); }
.SsAssure-prod { margin: 14px 0; font-size: 15px; text-align: left; }
.estimate-result-submit .btn { min-height: 60px; font-weight: 800; border-radius: 12px; }

/* 動画・お客様の声・よくある疑問 */
.SsMore { margin: 36px 0 24px; }
.SsMore-ttl { font-size: 20px; font-weight: 800; margin: 26px 0 12px; padding-left: 10px; border-left: 5px solid var(--ss-green); }
.SsVideo { display: block; position: relative; max-width: 560px; border-radius: 12px; overflow: hidden; text-decoration: none; color: #fff; background: #000; }
.SsVideo img { width: 100%; height: auto; display: block; opacity: .9; }
.SsVideo-play { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(217,72,15,.92); font-size: 26px; line-height: 64px; text-align: center; padding-left: 4px; }
.SsVideo-ttl { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 14px; font-weight: 700; line-height: 1.5; }
.SsVoice { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 768px) { .SsVoice { grid-template-columns: 1fr 1fr; } }
.SsVoice li { background: #fff; border: 1px solid var(--ss-line); border-radius: 12px; padding: 12px 14px; }
.SsVoice li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.SsVoice-photo { display: block; border-radius: 8px; overflow: hidden; background: var(--ss-bg); aspect-ratio: 4 / 3; }
.SsVoice-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.SsVoice-body { min-width: 0; }
@media (min-width: 992px) { .SsVoice li { grid-template-columns: 180px 1fr; gap: 14px; } }
.SsVoice blockquote { margin: 0 0 8px; font-weight: 700; font-size: 16px; line-height: 1.7; }
.SsVoice cite { display: block; font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--ss-sub); }
.SsVoice a { font-size: 14px; color: var(--ss-green-d); }
.SsFaq details { background: #fff; border: 1px solid var(--ss-line); border-radius: 12px; margin: 0 0 8px; }
.SsFaq summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 17px; }
.SsFaq p { margin: 0; padding: 0 14px 14px; font-size: 16px; line-height: 1.8; }

/* 上の電話バー（スクロール後） */
.SsHead { position: fixed; left: 0; right: 0; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--ss-line); box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .2s ease; }
.SsHead[hidden] { display: block; transform: translateY(-110%); visibility: hidden; }
.SsHead-in { max-width: 1140px; margin: 0 auto; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.SsHead-logo img { height: 32px; width: auto; display: block; }
.SsHead-tel { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: var(--ss-green); color: #fff; font-weight: 800; text-decoration: none; }
.SsHead-tel svg { width: 18px; height: 18px; fill: currentColor; }
.SsHead-pc { display: none; }
@media (min-width: 768px) { .SsHead-sp { display: none; } .SsHead-pc { display: inline; } .SsHead-pc small { margin-left: 6px; font-weight: 400; font-size: 12px; } .SsHead-tel { background: transparent; color: var(--ss-green-d); } }

/* 下部固定バー（スマホ） */
.SsBar { position: fixed; left: 0; right: 0; bottom: var(--sitenav); z-index: 1020; display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #fff; border-top: 1px solid var(--ss-line); box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
.SsBar[hidden] { display: none; }
@media (min-width: 992px) { .SsBar { display: none !important; } }
.SsBar-total { flex: 1; display: flex; flex-direction: column; align-items: flex-start; text-align: left; text-decoration: none; color: var(--ss-ink); line-height: 1.3; background: none; border: 0; padding: 0; }
.SsBar-tap { font-style: normal; margin-left: 8px; color: var(--ss-green-d); font-weight: 700; font-size: 12px; text-decoration: underline; white-space: nowrap; vertical-align: 2px; }
.SsBar-total b { white-space: nowrap; }
/* 下の合計を押すと開く「いま選んでいる内容」 */
.SsBarDetail { position: fixed; left: 0; right: 0; bottom: calc(var(--sitenav) + 66px); z-index: 1019; max-height: 60vh; overflow: auto; background: #fff; border-top: 2px solid var(--ss-green); border-radius: 14px 14px 0 0; box-shadow: 0 -6px 20px rgba(0,0,0,.15); padding: 12px 14px 14px; transform: translateY(110%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
.SsBarDetail.open { transform: none; visibility: visible; }
@media (min-width: 992px) { .SsBarDetail { display: none !important; } }
.SsBarDetail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.SsBarDetail-head b { color: var(--ss-green-d); font-size: 16px; }
.SsBarDetail-head button { background: none; border: 0; color: var(--ss-green-d); font-weight: 700; font-size: 14px; }
.ss-chips--bar { min-height: 0 !important; margin-bottom: 8px; }
.SsBarDetail .SsBarDetail-break { margin: 0 0 10px; font-size: 13px; color: var(--ss-sub); line-height: 1.6; }
.SsBar-total span { font-size: 12px; color: var(--ss-sub); }
.SsBar-total b { display: block; font-size: 22px; font-weight: 800; color: var(--ss-ink); font-variant-numeric: tabular-nums; }
.SsBar-total b span { font-size: 22px; color: var(--ss-ink); }
.SsBar-total b small { font-size: 13px; }
.SsBar-cta { flex: 1.3; min-height: 50px; border: 0; border-radius: 10px; background: var(--ss-accent); color: #fff; font-weight: 800; font-size: 15px; }
.SsBar-cta:disabled { background: #b9b9b9; }

#SsToast { position: fixed; left: 50%; bottom: calc(80px + var(--sitenav)); transform: translateX(-50%); z-index: 1100; background: rgba(30,30,30,.92); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 15px; max-width: 90vw; }
#SsDebugLog { position: fixed; right: 8px; top: 8px; z-index: 2000; width: 340px; max-height: 40vh; overflow: auto; background: rgba(0,0,0,.8); color: #9f9; font: 11px/1.4 monospace; padding: 6px; white-space: pre-wrap; }

/* 計算中・取得できないとき（右の欄・下部バー）：「円」を隠し、文字を小さく。計算中はゆっくり点滅 */
.SsSide .SsSide-total.is-wait, .SsSide .SsSide-total.is-err { font-size: 20px; color: var(--ss-sub); }
.SsBar-total b.is-wait span, .SsBar-total b.is-err span { font-size: 16px; color: var(--ss-sub); }
.SsBar-total b.is-err span { color: var(--ss-warn); }
.is-wait > small, .is-err > small { display: none; }
.SsSide .SsSide-total.is-err, .SsBar-total b.is-err { color: var(--ss-warn); }
.is-wait > span { animation: ss-wait 1.2s ease-in-out infinite; }
@keyframes ss-wait { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .is-wait > span { animation: none; } }

/* 注記の長さをPC・スマホで出し分け */
.ss-sp { display: none; }
@media (max-width: 767.98px) { .ss-sp { display: inline; } .ss-pc { display: none; } .SsBand-fig { max-height: 78px; } }

/* 工事費込みの参考概算：計算中・取得できないときは「円」と（税込）を隠し、文字を小さく */
.SsInvite-price.is-wait small, .SsInvite-price.is-wait .SsInvite-tax { display: none; }
.SsInvite-price.is-wait #SsInvitePrice { font-size: 15px; color: var(--ss-sub); font-weight: 400; }
/* 最初の画面の写真：そのタイプ（柱本数）の商品写真。白背景なので、切らずに全体を見せる（10/29 本人指摘：タイプと違う写真が出ていた） */
.SsTop-photoBox--type { background: #fff; border: 1px solid var(--ss-line); }
.SsTop-photoBox--type img, .SsTop-photoBox--type img[src] { object-fit: contain; object-position: 50% 50%; }
@media (max-width: 991.98px) { .SsTop-photoBox.SsTop-photoBox--type { height: 150px; } .SsTop-photoBox--type img { object-position: 50% 50%; } }
