/* サニージュ商品ページ（2026-10 作り直し）。/terrace_enclosure/view-sunnyge.php からだけ読み込む。色は見積ページ（sy26.css）とそろえる */
:root {
  --st-green: #2f7d4f; --st-green-d: #23613c; --st-green-l: #e8f3ec; --st-ink: #1f2a22; --st-sub: #5b6a5f;
  --st-line: #d8e3db; --st-bg: #f5f8f6; --st-red: #c0392b; --st-accent: #d9480f; --sitenav: 0px;
}
/* スマホ：最初の画面に金額が入るように、サイト共通のヘッダーのあいさつ文と検索欄をしまう（見積ページと同じ。検索は下部ナビ・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; }
  .Content h1.Title { font-size: 22px; }
  .st-lead { font-size: 19px; margin-bottom: 10px; }
  .StTop { padding: 10px; }
  .StTop-grid { gap: 10px; }
  .StTop-total span { font-size: 40px; }
  .StTop-price { padding: 10px 12px; }
  .StTop-photo { position: relative; }
  .StTop .StTop-photo figcaption { position: absolute; left: 6px; bottom: 6px; margin: 0; padding: 0 6px; font-size: 11px; line-height: 1.7; white-space: nowrap; color: #fff; background: rgba(0,0,0,.55); border-radius: 4px; }
  .StTop-cond span { display: none !important; }   /* スマホは最初の画面にボタンを入れるため、「いくら？」への案内はしまう（4つの要点のすぐ下にある） */
  .StTop-btns { margin-top: 10px; }
}

html { scroll-padding-top: 16px; scroll-behavior: smooth; }
.Content { font-size: 17px; line-height: 1.85; color: var(--st-ink); }
@media (min-width: 992px) { .Content { font-size: 18px; } }
.Content h1.Title { margin-bottom: 4px; }
.st-lead { margin: 0 0 14px; font-size: 21px; font-weight: 800; color: var(--st-green-d); letter-spacing: .02em; }
@media (min-width: 992px) { .st-lead { font-size: 26px; } }
.st-small { font-size: 14px; color: var(--st-sub); line-height: 1.7; margin: 8px 0; }
.st-center { text-align: center; margin: 12px 0; }
@media (max-width: 767.98px) { .st-pc { display: none; } }
.st-h2 { font-size: 22px; font-weight: 800; margin: 0 0 14px; padding: 0 0 8px; border-bottom: 3px solid var(--st-green); }
@media (min-width: 992px) { .st-h2 { font-size: 26px; } }
.st-h3 { font-size: 19px; font-weight: 800; margin: 26px 0 8px; }
.StSec { margin: 0 0 44px; }

/* ボタン */
.st-btn { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; min-height: 52px; padding: 10px 18px; border-radius: 10px;
  font-weight: 800; font-size: 17px; text-decoration: none; text-align: center; line-height: 1.4; }
.st-btn > span[aria-hidden] { margin-left: 6px; }
.st-btn--main { background: var(--st-accent); color: #fff; box-shadow: 0 3px 0 #a8380b; }
.st-btn--main:hover { background: #c23f0c; color: #fff; }
.st-btn--sub { background: #fff; color: var(--st-green-d); border: 2px solid var(--st-green); }
.st-btn--sub:hover { background: var(--st-green-l); color: var(--st-green-d); }
.st-center .st-btn { display: inline-flex; min-width: min(100%, 360px); }

/* 最初の画面 */
.StTop { background: #fff; border: 1px solid var(--st-line); border-radius: 16px; padding: 12px; margin: 0 0 40px; box-shadow: 0 2px 10px rgba(30,60,40,.06); }
.StTop-grid { display: grid; gap: 14px; }
@media (min-width: 992px) { .StTop { padding: 22px; } .StTop-grid { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } }
.StTop-photo { margin: 0; }
.StTop-photoBox { background: var(--st-bg); border-radius: 12px; overflow: hidden; aspect-ratio: 760 / 661; }
.StTop-photoBox picture { display: block; width: 100%; height: 100%; }
.StTop-photoBox img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 991.98px) { .StTop-photoBox { aspect-ratio: auto; height: 140px; } }
.StTop-photo figcaption { font-size: 13px; color: var(--st-sub); margin-top: 6px; line-height: 1.6; }
.StTop-price { background: var(--st-green-l); border-radius: 12px; padding: 14px 14px 12px; }
.StTop-label { margin: 0; font-weight: 700; font-size: 15px; color: var(--st-green-d); }
.StTop-total { margin: 0; font-weight: 800; line-height: 1.15; color: var(--st-ink); }
.StTop-total span { font-size: 46px; font-variant-numeric: tabular-nums; }
.StTop-total small { font-size: 22px; margin-left: 2px; }
@media (min-width: 992px) { .StTop-total span { font-size: 56px; } }
.StTop-cond { margin: 8px 0 0; font-size: 14.5px; line-height: 1.65; }
.StTop-cond span { display: block; }
.StTop-cond span[hidden] { display: none; }
.StTop-cond b { color: var(--st-ink); }
.StTop-off { margin: 6px 0 0; padding: 6px 10px; background: #fff; border-radius: 8px; font-size: 15px; line-height: 1.6; }
.StTop-off b { color: var(--st-red); font-size: 1.35em; margin-left: 2px; }
.StTop-off small { color: var(--st-sub); font-size: 12.5px; margin-left: 4px; white-space: nowrap; }
.StTop-break { margin: 8px 0 0; font-size: 13px; color: var(--st-sub); line-height: 1.6; }
.StTop-break[hidden] { display: none; }
.StTop-btns { display: grid; gap: 10px; margin: 14px 0 6px; }
.StTop-note { margin: 0; font-size: 14px; color: var(--st-sub); text-align: center; }

/* 6つの型 */
.StTypes { display: grid; gap: 10px; margin: 14px 0 6px; }
.StTypes-head { display: none; }
.StTypes-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--st-bg); border-radius: 12px; padding: 10px; }
.StTypes-snow { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.StTypes-snow b { font-size: 18px; }
.StTypes-snow span { font-weight: 700; color: var(--st-green-d); }
.StTypes-snow small { color: var(--st-sub); font-size: 13px; }
@media (min-width: 768px) {
  .StTypes-head { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 10px; font-weight: 800; text-align: center; }
  .StTypes-head small { display: block; font-weight: 400; font-size: 13px; color: var(--st-sub); }
  .StTypes-row { grid-template-columns: 170px 1fr 1fr; gap: 10px; align-items: stretch; }
  .StTypes-snow { grid-column: auto; flex-direction: column; justify-content: center; gap: 2px; }
}
.StCard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--st-line); border-radius: 10px; padding: 8px; text-decoration: none; color: var(--st-ink); }
.StCard:hover { border-color: var(--st-green); box-shadow: 0 2px 8px rgba(30,60,40,.12); color: var(--st-ink); }
.StCard img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.StCard-name { font-weight: 800; font-size: 15px; margin-top: 4px; }
.StCard-price { font-weight: 800; font-size: 21px; color: var(--st-red); line-height: 1.3; font-variant-numeric: tabular-nums; }
.StCard-price small { font-size: 13px; }
.StCard-go { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--st-green-d); text-decoration: underline; }
@media (min-width: 768px) { .StCard { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: auto auto 1fr; column-gap: 12px; align-items: start; } .StCard img { grid-row: 1 / 4; width: 120px; } .StCard-go { align-self: end; } }
.StPro { margin: 14px 0 8px; padding: 12px 14px; border-left: 5px solid var(--st-green); background: #fff; border-radius: 0 10px 10px 0; box-shadow: 0 1px 4px rgba(30,60,40,.08); }
.StPro-label { margin: 0 0 2px; font-weight: 800; color: var(--st-green-d); font-size: 15px; }
.StPro p:last-child { margin: 0; }

/* 4つの要点 */
.StPoints { list-style: none; counter-reset: st; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 992px) { .StPoints { grid-template-columns: 1fr 1fr; } }
.StPoints li { counter-increment: st; position: relative; background: #fff; border: 1px solid var(--st-line); border-radius: 12px; padding: 12px 14px 12px 54px; line-height: 1.75; }
.StPoints li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--st-green); color: #fff; font-weight: 800; display: grid; place-items: center; }
.StPoints b { display: block; font-size: 18px; color: var(--st-green-d); }
.StSize { margin: 16px 0 0; padding: 14px; background: var(--st-green-l); border-radius: 12px; }
.StSize[hidden] { display: none; }
.StSize-ttl { margin: 0 0 8px; font-weight: 800; font-size: 18px; }
.StSize-ttl small { font-weight: 400; font-size: 13px; color: var(--st-sub); margin-left: 4px; }
.StSize-tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.StSize-tbl th, .StSize-tbl td { padding: 10px 12px; border-bottom: 1px solid var(--st-line); }
.StSize-tbl th { font-weight: 700; text-align: left; }
.StSize-tbl td { text-align: right; font-weight: 800; white-space: nowrap; }
.StSize-tbl td span { font-size: 22px; color: var(--st-red); font-variant-numeric: tabular-nums; }
.StSize .st-btn { margin-top: 6px; }

/* 施工例 */
.StWorks { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .StWorks { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.StWorks a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--st-line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--st-ink); }
.StWorks a:hover { border-color: var(--st-green); color: var(--st-ink); }
.StWorks img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.StWorks span { padding: 0 10px; }
.StWorks-where { font-weight: 700; font-size: 14px; margin-top: 8px; }
.StWorks-prod { font-size: 13px; color: var(--st-sub); }
.StWorks-ttl { margin: 6px 0 10px; font-size: 15px; line-height: 1.55; }
.StWorks-ttl::before { content: "「"; } .StWorks-ttl::after { content: "」"; }
.StVoice { margin: 18px 0; padding: 14px; background: var(--st-bg); border-radius: 12px; }
.StVoice-ttl { margin: 0 0 8px; font-weight: 800; }
.StVoice blockquote { margin: 0 0 10px; padding: 10px 14px; background: #fff; border-radius: 10px; }
.StVoice blockquote p { margin: 0; font-size: 17px; font-weight: 700; }
.StVoice blockquote a { font-size: 14px; }
.StGallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.StGallery a { flex: 0 0 auto; scroll-snap-align: start; }
.StGallery img { width: 150px; height: 120px; object-fit: cover; border-radius: 8px; display: block; }

/* 正直に */
.StNot { background: #fff7ef; border: 1px solid #f0d2b4; border-radius: 12px; padding: 12px 16px; }
.StNot-ttl { margin: 0 0 4px; font-weight: 800; }
.StNot ul { margin: 0; padding-left: 1.3em; }
.StFaq details { background: #fff; border: 1px solid var(--st-line); border-radius: 10px; margin: 0 0 8px; }
.StFaq summary { padding: 12px 40px 12px 14px; font-weight: 700; cursor: pointer; position: relative; list-style: none; }
.StFaq summary::-webkit-details-marker { display: none; }
.StFaq summary::after { content: "＋"; position: absolute; right: 14px; top: 11px; color: var(--st-green); font-weight: 800; }
.StFaq details[open] summary::after { content: "－"; }
.StFaq details p { margin: 0; padding: 0 14px 14px; }

/* 安心 */
.StAnshin-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
@media (min-width: 992px) { .StAnshin-list { grid-template-columns: 1fr 1fr; } }
.StAnshin-list li { background: #fff; border: 1px solid var(--st-line); border-radius: 10px; padding: 10px 14px 10px 40px; position: relative; font-size: 15px; line-height: 1.65; }
.StAnshin-list li::before { content: "✓"; position: absolute; left: 14px; top: 9px; color: var(--st-green); font-weight: 800; font-size: 18px; }
.StAnshin-list b { display: block; font-size: 17px; }
.StVideo { margin: 0 0 18px; }
.StVideo-ttl { margin: 0 0 8px; font-weight: 800; }
.StVideo-link { display: block; position: relative; max-width: 560px; border-radius: 12px; overflow: hidden; text-decoration: none; color: #fff; background: #000; }
.StVideo-link img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; opacity: .85; }
.StVideo-play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(200,0,0,.9); display: grid; place-items: center; font-size: 26px; }
.StVideo-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(0,0,0,.8)); font-size: 14px; font-weight: 700; line-height: 1.5; }
.StVideo-frame { position: relative; max-width: 560px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.StVideo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.StSurvey { padding: 16px; border: 2px solid var(--st-green); border-radius: 14px; background: #fff; }
.StSurvey-ttl { margin: 0 0 4px; font-weight: 800; font-size: 18px; color: var(--st-green-d); }
.StSurvey .st-btn { margin: 12px 0 4px; }

/* ほかのサンルーム */
.StOther { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.StOther a { display: block; padding: 6px 14px; border: 1px solid var(--st-line); border-radius: 999px; background: #fff; text-decoration: none; font-size: 15px; }

/* スマホの下のバー（最初の画面を過ぎたら出す） */
.StBar { position: fixed; left: 0; right: 0; bottom: var(--sitenav); z-index: 1030; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-top: 1px solid var(--st-line); box-shadow: 0 -2px 10px rgba(0,0,0,.08); }
.StBar[hidden] { display: none; }
.StBar-price { flex: 1; font-size: 13px; line-height: 1.3; }
.StBar-price b { font-size: 20px; color: var(--st-red); }
.StBar .st-btn { min-height: 44px; padding: 6px 16px; font-size: 16px; }
@media (min-width: 992px) { .StBar { display: none !important; } }
