/* サニージュ見積ページ（2026-10 作り直し・A案の構成＋緑）。sy{06,15,30}/{f,r}.php からだけ読み込む */
:root {
  --sy-green: #2f7d4f; --sy-green-d: #23613c; --sy-green-l: #e8f3ec; --sy-ink: #1f2a22; --sy-sub: #5b6a5f;
  --sy-line: #d8e3db; --sy-bg: #f5f8f6; --sy-warn: #b3261e; --sy-accent: #d9480f; --sitenav: 0px;
}
html { scroll-padding-top: 76px; }
body { color: var(--sy-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; }
  .SyTop-photoBox { height: 170px; }
}
/* 商品のみの箱の中の「工事もお任せ」 */
.kk-pla .SyInvite { margin: 14px 0 0; }

/* タイトルと最初のひとこと */
h1.k-title { margin-bottom: 6px; }
.sy-lead { margin: 0 0 14px; font-size: 20px; font-weight: 800; color: var(--sy-green-d); letter-spacing: .02em; }
@media (min-width: 992px) { .sy-lead { font-size: 24px; } }

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

/* ボタン */
.sy-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; }
.sy-btn--main { background: var(--sy-accent); color: #fff; box-shadow: 0 3px 0 #a33608; }
.sy-btn--main:hover { background: #c13f0c; color: #fff; }
.sy-btn--main:disabled { background: #b9b9b9; box-shadow: none; cursor: default; }
.sy-btn--sub { background: #fff; color: var(--sy-green-d); border-color: var(--sy-green); }
.sy-btn--sub:hover { background: var(--sy-green-l); color: var(--sy-green-d); }
body.sy-work .sy-prod-only, body.sy-prod .sy-work-only { display: none !important; }
body:not(.sy-work):not(.sy-prod) .sy-prod-only { display: none; }

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

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

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

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

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

/* 動画・お客様の声・よくある疑問 */
.SyMore { margin: 36px 0 24px; }
.SyMore-ttl { font-size: 20px; font-weight: 800; margin: 26px 0 12px; padding-left: 10px; border-left: 5px solid var(--sy-green); }
.SyVideo { display: block; position: relative; max-width: 560px; border-radius: 12px; overflow: hidden; text-decoration: none; color: #fff; background: #000; }
.SyVideo img { width: 100%; height: auto; display: block; opacity: .9; }
.SyVideo-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; }
.SyVideo-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; }
.SyVoice { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 768px) { .SyVoice { grid-template-columns: 1fr 1fr; } }
.SyVoice li { background: #fff; border: 1px solid var(--sy-line); border-radius: 12px; padding: 12px 14px; }
.SyVoice blockquote { margin: 0 0 6px; font-weight: 700; font-size: 16px; line-height: 1.7; }
.SyVoice a { font-size: 14px; color: var(--sy-green-d); }
.SyFaq details { background: #fff; border: 1px solid var(--sy-line); border-radius: 12px; margin: 0 0 8px; }
.SyFaq summary { cursor: pointer; padding: 12px 14px; font-weight: 700; font-size: 17px; }
.SyFaq p { margin: 0; padding: 0 14px 14px; font-size: 16px; line-height: 1.8; }

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

/* 下部固定バー（スマホ） */
.SyBar { 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(--sy-line); box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
.SyBar[hidden] { display: none; }
@media (min-width: 992px) { .SyBar { display: none !important; } }
.SyBar-total { flex: 1; display: flex; flex-direction: column; align-items: flex-start; text-align: left; text-decoration: none; color: var(--sy-ink); line-height: 1.3; background: none; border: 0; padding: 0; }
.SyBar-tap { font-style: normal; margin-left: 8px; color: var(--sy-green-d); font-weight: 700; font-size: 12px; text-decoration: underline; white-space: nowrap; vertical-align: 2px; }
.SyBar-total b { white-space: nowrap; }
/* 下の合計を押すと開く「いま選んでいる内容」 */
.SyBarDetail { 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(--sy-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; }
.SyBarDetail.open { transform: none; visibility: visible; }
@media (min-width: 992px) { .SyBarDetail { display: none !important; } }
.SyBarDetail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.SyBarDetail-head b { color: var(--sy-green-d); font-size: 16px; }
.SyBarDetail-head button { background: none; border: 0; color: var(--sy-green-d); font-weight: 700; font-size: 14px; }
.sy-chips--bar { min-height: 0 !important; margin-bottom: 8px; }
.SyBarDetail .SyBarDetail-break { margin: 0 0 10px; font-size: 13px; color: var(--sy-sub); line-height: 1.6; }
.SyBar-total span { font-size: 12px; color: var(--sy-sub); }
.SyBar-total b { display: block; font-size: 22px; font-weight: 800; color: var(--sy-ink); font-variant-numeric: tabular-nums; }
.SyBar-total b span { font-size: 22px; color: var(--sy-ink); }
.SyBar-total b small { font-size: 13px; }
.SyBar-cta { flex: 1.3; min-height: 50px; border: 0; border-radius: 10px; background: var(--sy-accent); color: #fff; font-weight: 800; font-size: 15px; }
.SyBar-cta:disabled { background: #b9b9b9; }

#SyToast { 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; }
#SyDebugLog { 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; }

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