/* =========================================================
   ファーストビュー部品（3枚スライダー＋入口タイル＋細い数字帯）
   手本＝オーナー承認済みの店舗ページ（2026-09-28）から抜き出した型。
   ★この断片だけで表示が成り立つように、土台の .hero 系もここに含めている。
   スゴシアの配色は下の変数で定義。クラス名は hero-slider.js と共有する。
   ========================================================= */
:root{
  --fv-bg:#0f2044;            /* 例 #0a0a0a（暗い地）／#f4f2ed（明るい地） */
  --fv-bg-2:#1a3260;         /* 例 #0e0f12 */
  --fv-line:rgba(200,168,90,.28);          /* 例 #2a2a2a */
  --fv-ink:#ffffff;           /* 例 #f4f2ed */
  --fv-accent:#c8a85a;        /* 例 #ff6b00（ボタン・アクティブの点） */
  --fv-accent-dark:#a8893f;/* 例 #e05f00 */
  --fv-gold:#b8935a;              /* 小見出しの左罫・英字ラベル（基準の金） */
  --fv-line-green:#06c755;        /* LINEボタン */
}

/* ---- 土台（ヒーローの箱） ---- */
.hero{position:relative;min-height:78vh;display:flex;align-items:center;overflow:hidden;color:#fff}
.hero-media{position:absolute;inset:0;z-index:0}
.hero-veil{position:absolute;inset:0;z-index:1;pointer-events:none}
.hero-content{position:relative;z-index:2;padding-top:96px;padding-bottom:92px}
.hero .container{max-width:1200px;margin:0 auto;padding-left:20px;padding-right:20px;width:100%}
.hero-eyebrow{font-size:13px;font-weight:700;letter-spacing:.2em;color:var(--fv-gold);margin-bottom:16px;line-height:1.6}
.hero-title{font-size:clamp(28px,6.4vw,54px);font-weight:900;line-height:1.3;letter-spacing:.02em;word-break:keep-all}
.hero-title .accent{color:var(--fv-accent)}
.hero-subtitle{font-size:clamp(14px,3.5vw,17px);color:#e8e8e8;margin-top:22px;line-height:1.95;max-width:640px}
.hero-tags{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px}
.hero-tag{font-size:13px;font-weight:700;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(184,147,90,.5);color:#fff;backdrop-filter:blur(4px)}
.hero-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.hero .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:0 26px;border-radius:8px;font-weight:800;font-size:16px;text-decoration:none;transition:transform .2s,background .2s}
.hero .btn:hover{transform:translateY(-2px)}
.hero .btn-line{background:var(--fv-line-green);color:#fff}
.hero .btn-primary{background:var(--fv-accent);color:#fff}
.hero .btn-secondary{background:rgba(255,255,255,.06);color:#fff;border:1px solid rgba(255,255,255,.28)}

/* ---- スライド（5.5秒ごとにフェード。切替時間は1.1秒） ---- */
.hero--slider .hs-slide{position:absolute;inset:0;margin:0;opacity:0;transition:opacity 1.1s ease;z-index:0}
.hero--slider .hs-slide.is-active{opacity:1;z-index:1}
.hero--slider .hs-slide picture{display:block;width:100%;height:100%}
.hero--slider .hs-slide img{width:100%;height:100%;object-fit:cover;object-position:50% 45%;display:block}
/* 見せたい人物は画面の右2/3に置く＝左1/3に見出しが乗る。幅ごとに寄せ位置を変える */
@media(max-width:767px){.hero--slider .hs-slide img{object-position:60% 50%}}
@media(min-width:768px) and (max-width:1199px){.hero--slider .hs-slide img{object-position:66% 50%}}

/* ---- 暗幕（弱め）。スマホは上下だけ、PCは左から右へ薄くする ---- */
.hero--slider .hero-veil{background:linear-gradient(180deg,rgba(10,10,10,.5),rgba(10,10,10,.58) 55%,rgba(10,10,10,.92))}
@media(min-width:720px){.hero--slider .hero-veil{background:
  linear-gradient(180deg,rgba(10,10,10,.3),rgba(10,10,10,.48) 58%,rgba(10,10,10,.9)),
  linear-gradient(90deg,rgba(10,10,10,.8),rgba(10,10,10,.34) 62%,rgba(10,10,10,.06))}}
.hero--slider .hero-title,.hero--slider .hero-subtitle{text-shadow:0 2px 14px rgba(0,0,0,.55)}
/* 白っぽい写真でも読めるように、小見出しには下地を敷く */
.hero--slider .hero-eyebrow{display:inline-block;background:rgba(10,10,10,.86);padding:6px 12px;border-radius:4px;border-left:3px solid var(--fv-gold)}
@media(min-width:720px){.hero--slider .hero-subtitle{max-width:720px}}
@media(max-width:719px){.hero--slider .hero-eyebrow{letter-spacing:.08em}}

/* ---- 操作（矢印・点・一時停止）。押せる大きさは44px ---- */
.hs-ctrl{position:absolute;z-index:3;left:0;right:0;bottom:18px;display:flex;align-items:center;justify-content:center;gap:4px;padding:0 16px}
.hs-btn{width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.34);background:rgba(10,10,10,.42);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(4px);transition:background .2s,border-color .2s}
.hs-btn:hover,.hs-btn:focus-visible{background:rgba(10,10,10,.7);border-color:var(--fv-gold)}
.hs-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.hs-toggle .i-play{display:none}.hs-toggle.is-paused .i-play{display:block}.hs-toggle.is-paused .i-pause{display:none}
.hs-dots{display:flex;gap:0;margin:0 6px}
.hs-dot{width:40px;height:44px;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;padding:0}
.hs-dot::before{content:"";width:10px;height:10px;border-radius:999px;background:rgba(255,255,255,.45);transition:width .3s,background .3s}
.hs-dot.is-active::before{width:26px;background:var(--fv-accent)}
.hs-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(min-width:960px){.hs-ctrl{justify-content:flex-end;padding-right:max(20px,calc((100vw - 1200px)/2 + 20px))}}
@media (prefers-reduced-motion:reduce){.hero--slider .hs-slide{transition:none}}

/* ---- 入口タイル（ヒーローの直下。PC4列／スマホ2列×2段） ---- */
.entry4{background:var(--fv-bg);padding:22px 0 26px;border-bottom:1px solid var(--fv-line)}
.entry4 .container{max-width:1200px;margin:0 auto;padding-left:20px;padding-right:20px}
.entry4-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.entry-tile{position:relative;display:flex;align-items:flex-end;min-width:0;min-height:236px;border-radius:12px;overflow:hidden;border:1px solid var(--fv-line);color:#fff;text-decoration:none;isolation:isolate}
.entry-tile>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 45%;z-index:0;transition:transform .7s ease}
.entry-tile:hover>img{transform:scale(1.05)}
.entry-veil{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(10,10,10,.12) 0%,rgba(10,10,10,.62) 42%,rgba(10,10,10,.95))}
.entry-body{position:relative;z-index:2;display:block;width:100%;padding:14px 12px;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.entry-en{display:block;font-size:13px;font-weight:700;letter-spacing:.06em;white-space:nowrap;color:var(--fv-gold);margin-bottom:4px}
.entry-title{display:block;font-size:17px;font-weight:900;line-height:1.4;color:#fff;word-break:keep-all}
.entry-title .nw,.entry-desc .nw{display:inline-block}
.entry-desc{display:block;font-size:13px;line-height:1.65;color:#ececec;margin-top:6px}
.entry-more{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:13px;font-weight:800;color:var(--fv-accent)}
.entry-more::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.entry-tile:focus-visible{outline:2px solid var(--fv-gold);outline-offset:2px}
@media(min-width:720px){.entry-en{letter-spacing:.14em}.entry-tile{min-height:0;aspect-ratio:3/2}.entry-body{padding:18px 16px}.entry-title{font-size:19px}}
@media(min-width:960px){.entry4{padding:30px 0 34px}.entry4-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.entry-tile{aspect-ratio:4/5}.entry-title{font-size:20px}}
/* タイルが3枚の時：スマホは1枚目を横いっぱい、PCは3列 */
.entry4-grid--3>.entry-tile:first-child{grid-column:1/-1}
@media(min-width:960px){.entry4-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}.entry4-grid--3>.entry-tile:first-child{grid-column:auto}}

/* ---- 数字の細い帯（タイルの下に置く。ヒーローには置かない） ---- */
.offer-band{background:linear-gradient(135deg,var(--fv-accent),var(--fv-accent-dark))}
.offer-band-inner{display:grid;grid-template-columns:repeat(2,1fr);max-width:1040px;margin:0 auto;padding:12px 16px;gap:8px}
.offer-item{display:flex;flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:center;text-align:center;gap:2px 8px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.10);color:#fff}
.offer-item .oi-lbl{font-size:13px;font-weight:800;line-height:1.4}
.offer-item .oi-big{font-size:clamp(22px,5.4vw,30px);font-weight:900;line-height:1}
.offer-item .oi-small{font-size:13px;font-weight:800;color:rgba(255,255,255,.92)}
@media(min-width:720px){.offer-band-inner{grid-template-columns:repeat(4,1fr)}}

/* =========================================================
   スゴシア用の上書き（既存 css/style.css の .hero と共存させるため）
   ・既存の .hero は背景画像・下端の白グラデ・中央寄せを持つ → スライダー版では打ち消す
   ・数字の帯は白文字×金地だと読みにくいので、紺地×金の数字にする
   ========================================================= */
.hero.hero--slider{background:none;padding:0;min-height:78vh;isolation:isolate}
.hero.hero--slider::after{display:none}
.hero--slider .hero-content{text-align:left}
.hero--slider .hero-title{font-family:var(--font-heading);font-size:clamp(28px,6.4vw,54px);font-weight:700;line-height:1.35;margin:0;max-width:none;color:#fff}
.hero--slider .hero-title .nw{white-space:nowrap}
.hero--slider .hero-subtitle{font-family:var(--font-body)}
.hero--slider .hero-note{font-size:13px;line-height:1.8;color:rgba(255,255,255,.86);margin-top:12px;max-width:720px;text-shadow:0 1px 8px rgba(0,0,0,.6)}
.hero--slider .hero-buttons .btn{min-height:56px;padding:10px 22px}
@media(max-width:719px){.hero--slider .hero-buttons .btn{flex:1 1 100%}}
.entry4 .entry-title{font-family:var(--font-heading)}
.offer-band{background:linear-gradient(135deg,#0f2044,#1a3260);border-top:1px solid rgba(200,168,90,.35)}
.offer-item{background:rgba(255,255,255,.06);border:1px solid rgba(200,168,90,.28)}
.offer-item .oi-big{color:#e8cf8a;font-family:var(--font-heading)}
.hero--slider .hero-note strong{color:#fff;background:none;font-weight:700}
.hero--slider .hero-subtitle{word-break:keep-all;overflow-wrap:anywhere}
/* スマホ2列のタイルで「交換」の「換」だけが次の行に落ちないように文字を少し詰める */
@media(max-width:719px){.entry4 .entry-title{font-size:clamp(14px,4.3vw,17px);letter-spacing:0}}
@media(max-width:340px){.entry4 .entry-title{letter-spacing:-.02em}.entry4 .entry-body{padding:12px 10px}}
/* 既存の「遅延画像フェードイン」（css/style.css）の影響を受けないように：スライドとタイルは最初から見せる */
.hero--slider .hs-slide img[loading="lazy"], .entry4 .entry-tile>img[loading="lazy"]{opacity:1}
/* 既存 .container（幅 100%-40px）と型の左右20pxが二重にかからないように */
.hero--slider .container, .entry4 .container { width: 100%; }
@media(max-width:360px){
  .entry4 .container{padding-left:12px;padding-right:12px}
  .entry4-grid{gap:8px}
  .entry4 .entry-body{padding:12px 8px}
  .entry4 .entry-title{font-size:14px;letter-spacing:-.03em}
  .hero--slider .hero-content{padding-left:16px;padding-right:16px}
}
.offer-item .oi-small .nw{display:inline-block}

/* トップページ：無料点検・補助金の案内 */
.top-promo{
  padding:32px 0;
  background:#f4f2ed;
}
.top-promo .sg-promo{
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-top:0;
}

/* トップページ：エコキュート料金の目安 */
.top-priceband{
  padding:48px 0;
  background:#fff;
  text-align:center;
}
.top-priceband h2{
  margin:0;
  color:var(--fv-bg);
  font-family:var(--font-heading);
  font-size:clamp(22px,3vw,32px);
  line-height:1.55;
}
.top-priceband .sg-priceband{
  text-align:left;
}
.top-priceband__note{
  margin:-18px 0 22px;
  color:#5a6272;
  font-family:var(--font-body);
  font-size:13px;
  line-height:1.7;
}

@media(max-width:767px){
  .top-promo .sg-promo{grid-template-columns:1fr}
  .top-priceband{padding:38px 0}
}
