@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700&family=Noto+Sans+JP:wght@400;500;600;700;800;900&family=Noto+Serif+JP:wght@500;600;700&display=swap');
:root { --ink:#10273c; --muted:#617181; --brand:#f2672f; --blue:#0d4f78; --paper:#f7f7f3; --line:rgba(16,39,60,.14); --radius:20px; --font:'Noto Sans JP',sans-serif; --display:'Noto Sans JP',sans-serif; --shadow:0 20px 55px rgba(9,33,54,.12); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:var(--font); font-size:16px; line-height:1.8; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
button { font:inherit; }
img { max-width:100%; display:block; }
.container { width:min(1160px, calc(100% - 40px)); margin-inline:auto; }
.eyebrow { display:flex; align-items:center; gap:10px; margin:0 0 14px; color:var(--brand); font:700 .78rem/1 'DM Sans',sans-serif; letter-spacing:.18em; text-transform:uppercase; }
.eyebrow::before { content:""; width:28px; height:3px; background:currentColor; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { font-family:var(--display); }
h2 { font-size:clamp(2rem,4vw,3.6rem); line-height:1.22; letter-spacing:-.04em; margin-bottom:20px; }
.section-copy { color:var(--muted); max-width:680px; }
.btn { min-height:54px; display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:0 24px; border:1px solid transparent; border-radius:10px; font-weight:800; cursor:pointer; transition:.25s ease; }
.btn:hover { transform:translateY(-2px); }
.btn-primary { color:#fff; background:var(--brand); box-shadow:0 12px 24px rgba(242,103,47,.28); }
.btn-ghost { border-color:currentColor; background:rgba(255,255,255,.06); }
.icon { width:20px; height:20px; flex:0 0 auto; }

header { position:absolute; z-index:20; inset:0 0 auto; height:92px; color:white; }
.nav { height:100%; display:flex; align-items:center; justify-content:space-between; gap:28px; }
.brand { display:flex; align-items:center; gap:12px; font-size:1.24rem; font-weight:900; letter-spacing:.05em; }
.brand-logo { width:auto; height:38px; object-fit:contain; }
.brand-mark { position:relative; width:38px; height:38px; border:2px solid currentColor; border-radius:8px; }
.brand-mark::before { content:""; position:absolute; width:22px; height:12px; left:6px; top:6px; border:3px solid currentColor; border-bottom:0; transform:skewY(-18deg); }
.brand-mark::after { content:""; position:absolute; left:7px; right:7px; bottom:7px; height:5px; background:var(--brand); }
.nav-links { display:flex; align-items:center; gap:26px; font-size:.9rem; font-weight:700; }
.nav-tel { padding:11px 16px; border:1px solid rgba(255,255,255,.42); border-radius:9px; }

.hero { position:relative; min-height:820px; color:white; background:#0a2237; isolation:isolate; overflow:hidden; }
.hero::before { content:""; position:absolute; inset:0; z-index:-2; background:none 58% center/cover no-repeat; }
.hero::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(6,24,39,.96) 0%,rgba(6,24,39,.78) 39%,rgba(6,24,39,.12) 72%); }
.hero-inner { min-height:820px; padding:150px 0 90px; display:grid; grid-template-columns:minmax(0,650px) 1fr; align-items:center; }
.hero-kicker { display:inline-flex; align-items:center; gap:9px; padding:8px 13px; margin-bottom:26px; border:1px solid rgba(255,255,255,.34); border-radius:999px; font-size:.78rem; font-weight:700; letter-spacing:.08em; }
.hero-kicker i { width:7px; height:7px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 5px rgba(242,103,47,.17); }
h1 { max-width:650px; font-size:clamp(3rem,6.7vw,6.2rem); line-height:1.06; letter-spacing:-.055em; margin-bottom:24px; }
h1 .accent { color:#ff8a50; }
.hero-lead { max-width:590px; color:rgba(255,255,255,.82); font-size:1.08rem; line-height:2; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }
.hero-meta { position:absolute; right:0; bottom:0; width:min(48%,630px); display:grid; grid-template-columns:repeat(3,1fr); background:rgba(255,255,255,.95); color:var(--ink); }
.hero-stat { min-height:126px; padding:27px 26px; border-left:1px solid var(--line); }
.hero-stat strong { display:block; color:var(--brand); font:800 1.75rem/1.25 'DM Sans',sans-serif; }
.hero-stat span { color:var(--muted); font-size:.78rem; font-weight:700; }

.intro { padding:115px 0 90px; }
.intro-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:9vw; align-items:start; }
.intro-note { position:sticky; top:30px; padding-left:26px; border-left:5px solid var(--brand); font-weight:800; font-size:1.18rem; }
.intro-note small { display:block; margin-top:9px; color:var(--muted); font-size:.78rem; font-weight:500; }
.symptoms { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:34px; }
.symptom { position:relative; padding:22px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; cursor:pointer; transition:.25s; }
.symptom:hover,.symptom.active { border-color:var(--brand); transform:translateY(-3px); box-shadow:var(--shadow); }
.symptom b { display:block; margin-bottom:4px; }
.symptom span { color:var(--muted); font-size:.84rem; }
.symptom-result { grid-column:1/-1; min-height:82px; padding:18px 22px; border-radius:var(--radius); background:var(--ink); color:white; }
.symptom-result small { color:#9fc5df; }

.services { padding:105px 0; color:white; background:var(--ink); }
.services-head { display:flex; align-items:end; justify-content:space-between; gap:40px; margin-bottom:48px; }
.services-head p { max-width:460px; color:#b9c6d1; }
.service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.service-card { min-height:380px; padding:34px; display:flex; flex-direction:column; justify-content:space-between; border:1px solid rgba(255,255,255,.15); border-radius:var(--radius); background:rgba(255,255,255,.04); transition:.3s ease; }
.service-card:hover { transform:translateY(-6px); background:rgba(255,255,255,.08); }
.service-no { color:var(--brand); font:700 .82rem 'DM Sans',sans-serif; letter-spacing:.16em; }
.service-icon { width:58px; height:58px; display:grid; place-items:center; margin:45px 0 24px; border-radius:50%; background:var(--brand); }
.service-icon svg { width:28px; height:28px; }
.service-card h3 { font-size:1.5rem; margin-bottom:10px; }
.service-card p { color:#b9c6d1; font-size:.92rem; }
.service-card ul { margin:0; padding:18px 0 0; border-top:1px solid rgba(255,255,255,.12); list-style:none; color:#e7edf2; font-size:.82rem; }

.promise { padding:118px 0; background:#fff; }
.promise-grid { display:grid; grid-template-columns:1fr 1fr; gap:8vw; align-items:center; }
.promise-visual { position:relative; min-height:510px; border-radius:var(--radius); overflow:hidden; background:none 72% center/cover; box-shadow:var(--shadow); }
.promise-visual::after { content:"沖縄の気候を知る\A塗装の専門家"; white-space:pre; position:absolute; left:22px; bottom:22px; padding:18px 22px; border-radius:12px; color:white; background:rgba(8,29,45,.9); font-size:1.05rem; font-weight:800; line-height:1.5; }
.promise-list { display:grid; gap:22px; margin-top:36px; }
.promise-item { display:grid; grid-template-columns:44px 1fr; gap:17px; padding-bottom:22px; border-bottom:1px solid var(--line); }
.promise-item strong { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; color:white; background:var(--brand); font:700 .84rem 'DM Sans',sans-serif; }
.promise-item h3 { margin-bottom:4px; font-size:1.1rem; }
.promise-item p { margin:0; color:var(--muted); font-size:.88rem; }

.flow { padding:105px 0; background:#eaf0f3; }
.flow-grid { display:grid; grid-template-columns:repeat(4,1fr); margin-top:50px; }
.flow-item { position:relative; padding:28px 28px 0 0; }
.flow-item::before { content:""; position:absolute; top:20px; left:50px; right:0; height:1px; background:#a9bac7; }
.flow-item:last-child::before { display:none; }
.flow-num { position:relative; z-index:1; width:42px; height:42px; display:grid; place-items:center; margin-bottom:24px; border-radius:50%; color:white; background:var(--ink); font:700 .78rem 'DM Sans',sans-serif; }
.flow-item h3 { font-size:1.1rem; }
.flow-item p { color:var(--muted); font-size:.84rem; }

.contact { padding:110px 0 150px; color:white; background:var(--brand); }
.contact-inner { display:grid; grid-template-columns:1.25fr .75fr; gap:50px; align-items:end; }
.contact h2 { max-width:720px; font-size:clamp(2.5rem,5vw,5rem); }
.contact p { max-width:650px; color:rgba(255,255,255,.85); }
.contact-card { padding:30px; border-radius:var(--radius); background:white; color:var(--ink); box-shadow:var(--shadow); }
.contact-card small { color:var(--muted); }
.contact-card a { display:block; margin:8px 0 18px; font:800 clamp(1.5rem,3vw,2.2rem)/1 'DM Sans',sans-serif; }
.contact-card .btn { width:100%; background:var(--ink); color:white; }
footer { padding:40px 0 70px; background:#081c2c; color:#aab9c5; }
.footer-inner { display:flex; justify-content:space-between; gap:30px; }
footer .brand { color:white; }
footer p { margin:0; font-size:.78rem; }

/* B: 明るい地域密着 — composition changes, not just color */
html[data-theme="b"] { --ink:#183b4d; --muted:#627b86; --brand:#138eb2; --paper:#f5fbfd; --line:rgba(24,59,77,.12); --radius:30px; --display:'Noto Sans JP',sans-serif; }
html[data-theme="b"] header { color:var(--ink); background:rgba(255,255,255,.86); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
html[data-theme="b"] .nav-tel { color:white; border:0; background:var(--brand); border-radius:999px; }
html[data-theme="b"] .hero { min-height:880px; padding-top:92px; color:var(--ink); background:#e9f7fb; }
html[data-theme="b"] .hero::before { inset:305px 3vw 34px 41vw; border-radius:38px; background-position:69% center; box-shadow:var(--shadow); }
html[data-theme="b"] .hero::after { background:radial-gradient(circle at 15% 30%,rgba(80,200,226,.16),transparent 38%); }
html[data-theme="b"] .hero-inner { min-height:780px; grid-template-columns:minmax(0,530px) 1fr; padding:95px 0 120px; align-items:start; }
html[data-theme="b"] h1 { font-size:clamp(3rem,6vw,5.7rem); }
html[data-theme="b"] h1 .accent { color:var(--brand); }
html[data-theme="b"] .hero-kicker { border-color:rgba(24,59,77,.22); background:white; }
html[data-theme="b"] .hero-lead { color:var(--muted); }
html[data-theme="b"] .btn { border-radius:999px; }
html[data-theme="b"] .btn-ghost { color:var(--ink); background:white; border-color:var(--line); }
html[data-theme="b"] .hero-meta { right:auto; left:4vw; bottom:40px; width:500px; border-radius:24px; box-shadow:var(--shadow); overflow:hidden; }
html[data-theme="b"] .intro-grid { grid-template-columns:1fr; gap:45px; }
html[data-theme="b"] .intro-note { position:static; max-width:720px; border:0; padding:0; font-size:1.45rem; }
html[data-theme="b"] .symptoms { grid-template-columns:repeat(4,1fr); }
html[data-theme="b"] .symptom-result { grid-column:1/-1; }
html[data-theme="b"] .services { color:var(--ink); background:#dff3f8; }
html[data-theme="b"] .services-head p,html[data-theme="b"] .service-card p { color:var(--muted); }
html[data-theme="b"] .service-card { min-height:350px; border:0; background:white; box-shadow:0 12px 35px rgba(24,95,115,.08); }
html[data-theme="b"] .service-card ul { color:var(--ink); border-color:var(--line); }
html[data-theme="b"] .promise-grid { grid-template-columns:.8fr 1.2fr; }
html[data-theme="b"] .promise-visual { order:2; border-radius:50px 12px 50px 12px; }
html[data-theme="b"] .contact { background:#0f92b6; }

/* C: 建築家のような上質さ */
html[data-theme="c"] { --ink:#191919; --muted:#716d67; --brand:#b28a58; --paper:#eeeae3; --line:rgba(25,25,25,.17); --radius:0px; --display:'Noto Serif JP',serif; }
html[data-theme="c"] header { height:108px; }
html[data-theme="c"] .brand-mark { border-radius:0; }
html[data-theme="c"] .nav-tel { border-radius:0; }
html[data-theme="c"] .hero { min-height:900px; background:#111; }
html[data-theme="c"] .hero::before { inset:108px 0 0 42%; filter:saturate(.55) contrast(1.08); background-position:67% center; }
html[data-theme="c"] .hero::after { background:linear-gradient(90deg,#151515 0%,#151515 42%,rgba(21,21,21,.08) 70%); }
html[data-theme="c"] .hero-inner { min-height:900px; grid-template-columns:minmax(0,520px) 1fr; padding-top:180px; }
html[data-theme="c"] h1 { font-size:clamp(3rem,5.3vw,5.2rem); line-height:1.3; letter-spacing:.01em; }
html[data-theme="c"] h1 .accent { color:#d2b084; }
html[data-theme="c"] .hero-kicker { border:0; border-bottom:1px solid rgba(255,255,255,.35); border-radius:0; padding-left:0; }
html[data-theme="c"] .btn { border-radius:0; letter-spacing:.08em; }
html[data-theme="c"] .hero-meta { width:58%; background:#ded8ce; }
html[data-theme="c"] .hero-stat strong { color:var(--ink); }
html[data-theme="c"] .intro-grid { grid-template-columns:1fr 1fr; }
html[data-theme="c"] .intro-note { border-color:var(--brand); }
html[data-theme="c"] .symptom { border-width:0 0 1px; background:transparent; padding-left:0; }
html[data-theme="c"] .symptom:hover,html[data-theme="c"] .symptom.active { transform:none; box-shadow:none; border-color:var(--ink); }
html[data-theme="c"] .symptom-result { background:#262626; }
html[data-theme="c"] .services { background:#1a1a1a; }
html[data-theme="c"] .service-grid { gap:1px; background:rgba(255,255,255,.15); }
html[data-theme="c"] .service-card { border:0; background:#1a1a1a; }
html[data-theme="c"] .service-icon { border-radius:0; background:#9a7548; }
html[data-theme="c"] .promise { background:#f4f1ec; }
html[data-theme="c"] .promise-visual { box-shadow:none; filter:saturate(.4); }
html[data-theme="c"] .promise-visual::after { border-radius:0; background:#1a1a1a; }
html[data-theme="c"] .flow { background:#ded8ce; }
html[data-theme="c"] .flow-num { border-radius:0; }
html[data-theme="c"] .contact { background:#282521; }
html[data-theme="c"] .contact-card { box-shadow:none; }

/* D: 企業・実績 — organized corporate confidence */
html[data-theme="d"] { --ink:#102d4b; --muted:#607182; --brand:#df3f3f; --paper:#f4f6f8; --line:rgba(16,45,75,.13); --radius:6px; --display:'Noto Sans JP',sans-serif; }
html[data-theme="d"] header { color:var(--ink); background:#fff; border-top:6px solid var(--brand); box-shadow:0 2px 12px rgba(16,45,75,.08); }
html[data-theme="d"] .nav-tel { color:#fff; border:0; background:var(--brand); }
html[data-theme="d"] .hero { min-height:780px; color:var(--ink); background:#fff; }
html[data-theme="d"] .hero::before { inset:92px 0 0 50%; background-position:70% center; }
html[data-theme="d"] .hero::after { background:linear-gradient(90deg,#fff 0%,#fff 49%,rgba(255,255,255,0) 72%); }
html[data-theme="d"] .hero-inner { min-height:780px; grid-template-columns:47% 53%; padding-top:155px; }
html[data-theme="d"] h1 { font-size:clamp(3.1rem,5.6vw,5.5rem); }
html[data-theme="d"] h1 .accent { color:var(--brand); }
html[data-theme="d"] .hero-kicker { color:var(--brand); border-color:#d8e0e7; background:#f4f6f8; border-radius:4px; }
html[data-theme="d"] .hero-lead { color:var(--muted); }
html[data-theme="d"] .btn { border-radius:4px; }
html[data-theme="d"] .btn-ghost { color:var(--ink); border-color:#a9b6c2; background:#fff; }
html[data-theme="d"] .hero-meta { width:50%; box-shadow:0 -8px 35px rgba(16,45,75,.1); }
html[data-theme="d"] .hero-stat { border-top:4px solid var(--brand); }
html[data-theme="d"] .hero-stat strong { color:var(--ink); }
html[data-theme="d"] .intro-note { border-left-color:var(--brand); background:#fff; padding:26px; box-shadow:0 10px 30px rgba(16,45,75,.08); }
html[data-theme="d"] .services { background:#0d2c4b; }
html[data-theme="d"] .service-card { border-radius:4px; border-top:5px solid var(--brand); background:#163754; }
html[data-theme="d"] .service-icon { border-radius:4px; }
html[data-theme="d"] .promise-visual { border-radius:4px; }
html[data-theme="d"] .flow { background:#e8edf2; }
html[data-theme="d"] .flow-num { border-radius:4px; background:var(--brand); }
html[data-theme="d"] .contact { background:#102d4b; border-top:8px solid var(--brand); }

/* E: 沖縄・ナチュラル — sunny, welcoming and organic */
html[data-theme="e"] { --ink:#17484a; --muted:#607d78; --brand:#ef7c45; --paper:#fffaf0; --line:rgba(23,72,74,.12); --radius:34px; --display:'Noto Sans JP',sans-serif; }
html[data-theme="e"] header { color:var(--ink); }
html[data-theme="e"] .nav { margin-top:18px; height:70px; padding:0 24px; border-radius:999px; background:rgba(255,255,255,.9); box-shadow:0 12px 32px rgba(35,88,82,.12); backdrop-filter:blur(14px); }
html[data-theme="e"] .nav-tel { color:white; border:0; border-radius:999px; background:#1a8888; }
html[data-theme="e"] .hero { min-height:900px; color:var(--ink); background:#fff5dc; }
html[data-theme="e"] .hero::before { inset:150px 5vw 55px 46%; border-radius:46% 20% 42% 18% / 28% 34% 22% 38%; background-position:68% center; box-shadow:0 30px 70px rgba(23,72,74,.16); }
html[data-theme="e"] .hero::after { background:radial-gradient(circle at 18% 18%,rgba(255,199,78,.28),transparent 34%),radial-gradient(circle at 40% 85%,rgba(30,159,160,.12),transparent 32%); }
html[data-theme="e"] .hero-inner { min-height:900px; grid-template-columns:43% 57%; padding-top:170px; }
html[data-theme="e"] h1 { font-size:clamp(3.1rem,6vw,5.8rem); line-height:1.15; }
html[data-theme="e"] h1 .accent { color:#e86531; }
html[data-theme="e"] .hero-kicker { color:#117b7b; border:0; background:#d8f2ed; }
html[data-theme="e"] .hero-lead { color:var(--muted); }
html[data-theme="e"] .btn { border-radius:999px; }
html[data-theme="e"] .btn-primary { background:#ef7040; }
html[data-theme="e"] .btn-ghost { color:#176162; border-color:#79aaa5; background:white; }
html[data-theme="e"] .hero-meta { right:7vw; bottom:30px; width:46%; border-radius:28px; overflow:hidden; box-shadow:0 16px 44px rgba(23,72,74,.15); }
html[data-theme="e"] .intro-grid { grid-template-columns:.7fr 1.3fr; }
html[data-theme="e"] .intro-note { border:0; border-radius:30px; padding:28px; background:#dff3ec; }
html[data-theme="e"] .symptom { background:#fffdf8; }
html[data-theme="e"] .symptom-result { background:#176162; }
html[data-theme="e"] .services { color:var(--ink); background:#dff2ed; }
html[data-theme="e"] .services-head p,html[data-theme="e"] .service-card p { color:var(--muted); }
html[data-theme="e"] .service-card { border:0; background:#fffdf8; box-shadow:0 14px 34px rgba(23,72,74,.08); }
html[data-theme="e"] .service-card ul { color:var(--ink); border-color:var(--line); }
html[data-theme="e"] .service-icon { background:#ef7040; }
html[data-theme="e"] .promise-visual { border-radius:80px 20px 80px 20px; }
html[data-theme="e"] .promise-item strong,html[data-theme="e"] .flow-num { background:#168383; }
html[data-theme="e"] .flow { background:#fff1cf; }
html[data-theme="e"] .contact { background:#ef7040; }

/* F: 和モダン・職人 — quiet precision and strong whitespace */
html[data-theme="f"] { --ink:#24211f; --muted:#746e68; --brand:#b7352d; --paper:#f7f5f1; --line:rgba(36,33,31,.18); --radius:0; --display:'Noto Serif JP',serif; }
html[data-theme="f"] header { color:#201e1c; height:96px; background:rgba(247,245,241,.94); border-bottom:1px solid #c9c4bc; }
html[data-theme="f"] .brand-mark { border-radius:0; border-color:#24211f; }
html[data-theme="f"] .nav-tel { color:#fff; border:0; border-radius:0; background:var(--brand); }
html[data-theme="f"] .hero { min-height:880px; color:var(--ink); background:#dedbd4; }
html[data-theme="f"] .hero::before { inset:96px 0 0; filter:grayscale(.45) contrast(1.05); background-position:70% center; }
html[data-theme="f"] .hero::after { background:linear-gradient(90deg,rgba(247,245,241,.98) 0%,rgba(247,245,241,.9) 43%,rgba(247,245,241,.12) 72%); }
html[data-theme="f"] .hero-inner { min-height:880px; grid-template-columns:48% 52%; padding-top:160px; }
html[data-theme="f"] .hero-content { padding:56px 48px 58px 0; border-top:1px solid #99928a; border-bottom:1px solid #99928a; }
html[data-theme="f"] h1 { font-size:clamp(3rem,5vw,5rem); line-height:1.35; letter-spacing:.03em; }
html[data-theme="f"] h1 .accent { color:var(--brand); }
html[data-theme="f"] .hero-kicker { padding-left:0; border:0; border-radius:0; color:#5f5953; letter-spacing:.18em; }
html[data-theme="f"] .hero-lead { color:#5f5953; }
html[data-theme="f"] .btn { border-radius:0; }
html[data-theme="f"] .btn-ghost { color:var(--ink); border-color:#645f5a; background:rgba(247,245,241,.7); }
html[data-theme="f"] .hero-meta { width:51%; background:#f7f5f1; border-top:1px solid #8c867f; }
html[data-theme="f"] .hero-stat strong { color:var(--brand); }
html[data-theme="f"] .intro-note { border-left:1px solid #8f8982; }
html[data-theme="f"] .symptom { border:0; border-top:1px solid #bdb7af; background:transparent; border-radius:0; }
html[data-theme="f"] .symptom:hover,html[data-theme="f"] .symptom.active { transform:none; box-shadow:none; border-top-color:var(--brand); }
html[data-theme="f"] .symptom-result { background:#292624; }
html[data-theme="f"] .services { background:#292624; }
html[data-theme="f"] .service-grid { gap:0; border-top:1px solid rgba(255,255,255,.25); border-bottom:1px solid rgba(255,255,255,.25); }
html[data-theme="f"] .service-card { border-width:0 1px 0 0; background:transparent; }
html[data-theme="f"] .service-icon,html[data-theme="f"] .promise-item strong,html[data-theme="f"] .flow-num { border-radius:0; }
html[data-theme="f"] .promise-visual { box-shadow:none; filter:grayscale(.55); }
html[data-theme="f"] .promise-visual::after { border-radius:0; background:#292624; }
html[data-theme="f"] .flow { background:#e6e2dc; }
html[data-theme="f"] .contact { background:#292624; border-top:6px solid var(--brand); }
html[data-theme="f"] .contact-card { box-shadow:none; }

/* 海風ブルー — clear, open and reassuring */
html[data-theme="ocean"] { --ink:#14445a; --muted:#5f7a86; --brand:#0f9fbe; --paper:#f3fbfd; --line:rgba(20,68,90,.12); --radius:28px; --display:'Noto Sans JP',sans-serif; }
html[data-theme="ocean"] header { color:var(--ink); background:rgba(255,255,255,.88); border-bottom:1px solid rgba(20,68,90,.08); backdrop-filter:blur(14px); }
html[data-theme="ocean"] .nav-tel { color:white; border:0; border-radius:999px; background:#087f9c; }
html[data-theme="ocean"] .hero { min-height:890px; color:var(--ink); background:linear-gradient(135deg,#edfaff 0%,#e2f6fa 64%,#d4f0f4 100%); }
html[data-theme="ocean"] .hero::before { inset:145px 4vw 52px 45%; border-radius:48px 18px 48px 18px; background-position:69% center; box-shadow:0 28px 65px rgba(11,95,119,.17); }
html[data-theme="ocean"] .hero::after { background:radial-gradient(circle at 14% 18%,rgba(65,199,222,.2),transparent 32%); }
html[data-theme="ocean"] .hero-inner { min-height:890px; grid-template-columns:42% 58%; padding-top:176px; align-items:start; }
html[data-theme="ocean"] h1 { font-size:clamp(2.9rem,4.2vw,4.6rem); line-height:1.14; }
html[data-theme="ocean"] h1 .accent { color:#0786a3; }
html[data-theme="ocean"] .hero-kicker { color:#087f9c; border:0; background:#fff; box-shadow:0 8px 22px rgba(20,68,90,.08); }
html[data-theme="ocean"] .hero-lead { color:var(--muted); }
html[data-theme="ocean"] .btn { border-radius:999px; }
html[data-theme="ocean"] .btn-primary { background:#078ba8; box-shadow:0 12px 24px rgba(7,139,168,.24); }
html[data-theme="ocean"] .btn-ghost { color:var(--ink); border-color:#83adb9; background:rgba(255,255,255,.72); }
html[data-theme="ocean"] .hero-meta { right:6vw; bottom:28px; width:47%; border-radius:24px; overflow:hidden; box-shadow:0 14px 38px rgba(20,68,90,.14); }
html[data-theme="ocean"] .hero-stat strong { color:#078ba8; }
html[data-theme="ocean"] .intro-grid { grid-template-columns:.7fr 1.3fr; }
html[data-theme="ocean"] .intro-note { border:0; border-radius:24px; padding:28px; background:#d9f3f7; }
html[data-theme="ocean"] .symptom { border:0; background:#fff; box-shadow:0 10px 26px rgba(20,68,90,.06); }
html[data-theme="ocean"] .symptom-result { background:#12566e; }
html[data-theme="ocean"] .services { color:var(--ink); background:#d8f1f5; }
html[data-theme="ocean"] .services-head p,html[data-theme="ocean"] .service-card p { color:var(--muted); }
html[data-theme="ocean"] .service-card { border:0; background:#fff; box-shadow:0 12px 32px rgba(20,68,90,.08); }
html[data-theme="ocean"] .service-card ul { color:var(--ink); border-color:var(--line); }
html[data-theme="ocean"] .service-icon { background:#0f9fbe; }
html[data-theme="ocean"] .promise-grid { grid-template-columns:.8fr 1.2fr; }
html[data-theme="ocean"] .promise-visual { order:2; border-radius:60px 18px 60px 18px; }
html[data-theme="ocean"] .promise-item strong,html[data-theme="ocean"] .flow-num { background:#078ba8; }
html[data-theme="ocean"] .flow { background:#edf8fa; }
html[data-theme="ocean"] .contact { background:#087f9c; }

/* 島の陽だまり — warm, cheerful and family-friendly */
html[data-theme="sun"] { --ink:#573c29; --muted:#7d6858; --brand:#f06e3d; --paper:#fff9e9; --line:rgba(87,60,41,.13); --radius:34px; --display:'Noto Sans JP',sans-serif; }
html[data-theme="sun"] header { color:var(--ink); }
html[data-theme="sun"] .nav { margin-top:16px; height:70px; padding:0 24px; border-radius:999px; background:rgba(255,255,255,.93); box-shadow:0 12px 34px rgba(112,75,40,.12); }
html[data-theme="sun"] .nav-tel { color:white; border:0; border-radius:999px; background:#ef6f3c; }
html[data-theme="sun"] .hero { min-height:920px; color:var(--ink); background:#ffd889; }
html[data-theme="sun"] .hero::before { inset:0; background-position:64% center; }
html[data-theme="sun"] .hero::after { background:linear-gradient(90deg,rgba(255,249,233,.96) 0%,rgba(255,249,233,.88) 42%,rgba(255,226,166,.08) 72%),linear-gradient(0deg,rgba(255,196,90,.2),transparent 45%); }
html[data-theme="sun"] .hero-inner { min-height:920px; grid-template-columns:48% 52%; padding-top:170px; }
html[data-theme="sun"] .hero-content { padding:40px 42px; border-radius:36px; background:rgba(255,255,255,.7); box-shadow:0 24px 70px rgba(102,70,38,.12); backdrop-filter:blur(10px); }
html[data-theme="sun"] h1 { font-size:clamp(2.9rem,4.3vw,4.7rem); line-height:1.16; }
html[data-theme="sun"] h1 .accent { color:#e5552c; }
html[data-theme="sun"] .hero-kicker { color:#c74725; border:0; background:#fff2c7; }
html[data-theme="sun"] .hero-lead { color:#665244; }
html[data-theme="sun"] .btn { border-radius:999px; }
html[data-theme="sun"] .btn-primary { background:#ec6234; }
html[data-theme="sun"] .btn-ghost { color:var(--ink); border-color:#a88264; background:#fffdf5; }
html[data-theme="sun"] .hero-meta { left:7vw; right:7vw; bottom:26px; width:auto; border-radius:24px; overflow:hidden; box-shadow:0 14px 40px rgba(97,67,36,.16); }
html[data-theme="sun"] .hero-stat strong { color:#e85d30; }
html[data-theme="sun"] .intro-grid { grid-template-columns:.8fr 1.2fr; }
html[data-theme="sun"] .intro-note { border:0; border-radius:30px; padding:30px; background:#ffe7a9; }
html[data-theme="sun"] .symptom { background:#fffef8; }
html[data-theme="sun"] .symptom-result { background:#6c4932; }
html[data-theme="sun"] .services { color:var(--ink); background:#fff0c8; }
html[data-theme="sun"] .services-head p,html[data-theme="sun"] .service-card p { color:var(--muted); }
html[data-theme="sun"] .service-card { border:0; background:#fffdf5; box-shadow:0 14px 34px rgba(110,76,40,.08); }
html[data-theme="sun"] .service-card ul { color:var(--ink); border-color:var(--line); }
html[data-theme="sun"] .service-icon { background:#ef6f3c; }
html[data-theme="sun"] .promise-visual { border-radius:90px 24px 90px 24px; }
html[data-theme="sun"] .promise-item strong,html[data-theme="sun"] .flow-num { background:#ef6f3c; }
html[data-theme="sun"] .flow { background:#fff7e2; }
html[data-theme="sun"] .contact { background:#ef6f3c; }

/* ガジュマルグリーン — natural, grounded and dependable */
html[data-theme="green"] { --ink:#174f46; --muted:#607b72; --brand:#19a692; --paper:#f4fbf7; --line:rgba(23,79,70,.13); --radius:22px; --display:'Noto Sans JP',sans-serif; }
html[data-theme="green"] header { color:white; background:#15564d; }
html[data-theme="green"] .nav-tel { color:#174f46; border:0; border-radius:999px; background:#f7d765; }
html[data-theme="green"] .hero { min-height:860px; color:white; background:#15564d; }
html[data-theme="green"] .hero::before { inset:92px 0 0 50%; background-position:69% center; }
html[data-theme="green"] .hero::after { background:linear-gradient(90deg,#15564d 0%,#15564d 49%,rgba(21,86,77,.15) 72%); }
html[data-theme="green"] .hero-inner { min-height:860px; grid-template-columns:43% 57%; padding-top:160px; }
html[data-theme="green"] h1 { font-size:clamp(2.9rem,4.6vw,4.8rem); line-height:1.16; }
html[data-theme="green"] h1 .accent { color:#f6d35e; }
html[data-theme="green"] .hero-kicker { color:#174f46; border:0; background:#f6d35e; }
html[data-theme="green"] .hero-lead { color:rgba(255,255,255,.78); }
html[data-theme="green"] .btn { border-radius:999px; }
html[data-theme="green"] .btn-primary { color:#174f46; background:#f6d35e; box-shadow:0 12px 24px rgba(246,211,94,.18); }
html[data-theme="green"] .btn-ghost { color:white; border-color:rgba(255,255,255,.5); }
html[data-theme="green"] .hero-meta { right:0; bottom:0; width:50%; }
html[data-theme="green"] .hero-stat strong { color:#159c89; }
html[data-theme="green"] .intro-note { border:0; border-radius:22px; padding:28px; background:#dff3e9; }
html[data-theme="green"] .symptom { background:#fff; }
html[data-theme="green"] .symptom-result { background:#174f46; }
html[data-theme="green"] .services { background:#174f46; }
html[data-theme="green"] .service-card { border-color:rgba(255,255,255,.18); background:#1e6257; }
html[data-theme="green"] .service-icon { color:#174f46; background:#f6d35e; }
html[data-theme="green"] .promise-visual { border-radius:22px; }
html[data-theme="green"] .promise-item strong,html[data-theme="green"] .flow-num { background:#199c89; }
html[data-theme="green"] .flow { background:#dff3e9; }
html[data-theme="green"] .contact { background:#19917f; }

/* まちの塗装屋さん — approachable, practical and local */
html[data-theme="local"] { --ink:#164162; --muted:#61798c; --brand:#f27a3f; --paper:#f7fbff; --line:rgba(22,65,98,.13); --radius:16px; --display:'Noto Sans JP',sans-serif; }
html[data-theme="local"] header { color:var(--ink); background:white; box-shadow:0 3px 14px rgba(22,65,98,.08); }
html[data-theme="local"] .nav-tel { color:white; border:0; border-radius:10px; background:#f06e36; }
html[data-theme="local"] .hero { min-height:880px; color:var(--ink); background:#dff3ff; }
html[data-theme="local"] .hero::before { inset:92px 0 270px; background-position:60% center; }
html[data-theme="local"] .hero::after { background:linear-gradient(180deg,rgba(5,49,73,.08),transparent 45%,#dff3ff 69%); }
html[data-theme="local"] .hero-inner { min-height:880px; display:block; padding-top:0; }
html[data-theme="local"] .hero-content { position:absolute; z-index:2; left:max(20px,calc((100vw - 1160px)/2)); bottom:36px; width:min(610px,calc(100% - 40px)); padding:32px 38px; border-radius:20px; background:white; box-shadow:0 24px 60px rgba(22,65,98,.16); }
html[data-theme="local"] h1 { font-size:clamp(2.7rem,4.2vw,4.3rem); line-height:1.13; margin-bottom:18px; }
html[data-theme="local"] h1 .accent { color:#ed6934; }
html[data-theme="local"] .hero-kicker { color:#12678f; border-color:#a9d4e7; background:#eaf8ff; }
html[data-theme="local"] .hero-lead { color:var(--muted); line-height:1.8; }
html[data-theme="local"] .btn { border-radius:10px; }
html[data-theme="local"] .btn-primary { background:#ed6934; }
html[data-theme="local"] .btn-ghost { color:var(--ink); border-color:#9fb8c9; background:white; }
html[data-theme="local"] .hero-meta { right:max(20px,calc((100vw - 1160px)/2)); bottom:36px; width:470px; border-radius:16px; overflow:hidden; box-shadow:0 18px 50px rgba(22,65,98,.13); }
html[data-theme="local"] .hero-stat { min-height:116px; }
html[data-theme="local"] .hero-stat strong { color:#ed6934; }
html[data-theme="local"] .intro-grid { grid-template-columns:.75fr 1.25fr; }
html[data-theme="local"] .intro-note { border:0; border-radius:16px; padding:28px; color:#164162; background:#dff3ff; }
html[data-theme="local"] .symptom { border-width:2px; background:white; }
html[data-theme="local"] .symptom-result { background:#164162; }
html[data-theme="local"] .services { color:var(--ink); background:#eaf6fc; }
html[data-theme="local"] .services-head p,html[data-theme="local"] .service-card p { color:var(--muted); }
html[data-theme="local"] .service-card { border:2px solid #cae4ef; background:white; }
html[data-theme="local"] .service-card ul { color:var(--ink); border-color:var(--line); }
html[data-theme="local"] .service-icon { border-radius:14px; background:#ed6934; }
html[data-theme="local"] .promise-visual { border-radius:16px; }
html[data-theme="local"] .promise-item strong,html[data-theme="local"] .flow-num { border-radius:12px; background:#16759e; }
html[data-theme="local"] .flow { background:#dff3ff; }
html[data-theme="local"] .contact { background:#16759e; }

.works { padding:110px 0; background:#fff; }
.works-head { display:flex; align-items:end; justify-content:space-between; gap:50px; margin-bottom:42px; }
.works-head h2 { margin-bottom:0; }
.works-intro { max-width:480px; color:var(--muted); }
.works-note { display:inline-flex; align-items:center; gap:8px; margin-top:12px; padding:7px 11px; border-radius:999px; color:#547083; background:#edf7fc; font-size:.76rem; font-weight:700; }
.works-note::before { content:""; width:7px; height:7px; border-radius:50%; background:#ed6934; }
.works-grid { display:grid; grid-template-columns:1.3fr .7fr; grid-template-rows:repeat(2,290px); gap:16px; }
.work-card { position:relative; overflow:hidden; min-height:0; border-radius:20px; color:white; background:#174b68; box-shadow:0 16px 40px rgba(22,65,98,.12); isolation:isolate; }
.work-card--featured { grid-row:1 / span 2; }
.work-card img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.work-card:hover img { transform:scale(1.035); }
.work-card::after { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg,transparent 42%,rgba(7,29,43,.86) 100%); }
.work-badge { position:absolute; z-index:2; top:18px; left:18px; padding:7px 11px; border-radius:999px; color:#164162; background:rgba(255,255,255,.93); font-size:.74rem; font-weight:800; }
.work-info { position:absolute; z-index:2; left:0; right:0; bottom:0; padding:28px; }
.work-card--featured .work-info { padding:38px; }
.work-type { margin-bottom:8px; color:#9edcf2; font-size:.78rem; font-weight:800; letter-spacing:.08em; }
.work-info h3 { margin-bottom:8px; font-size:clamp(1.3rem,2.5vw,2rem); }
.work-info p { margin:0; color:rgba(255,255,255,.78); font-size:.86rem; }
.work-card--featured .work-info h3 { font-size:clamp(1.8rem,3.5vw,3rem); }
.work-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.work-meta span { padding:5px 9px; border:1px solid rgba(255,255,255,.3); border-radius:999px; font-size:.72rem; font-weight:700; }

@media (max-width:900px) {
  .nav-links a:not(.nav-tel) { display:none; }
  .hero,.hero-inner,html[data-theme="b"] .hero,html[data-theme="b"] .hero-inner,html[data-theme="c"] .hero,html[data-theme="c"] .hero-inner,html[data-theme="d"] .hero,html[data-theme="d"] .hero-inner,html[data-theme="e"] .hero,html[data-theme="e"] .hero-inner,html[data-theme="f"] .hero,html[data-theme="f"] .hero-inner { min-height:780px; }
  .hero-inner,html[data-theme="b"] .hero-inner,html[data-theme="c"] .hero-inner,html[data-theme="d"] .hero-inner,html[data-theme="e"] .hero-inner,html[data-theme="f"] .hero-inner { grid-template-columns:1fr; align-items:start; }
  .hero-meta { width:100%; }
  html[data-theme="b"] .hero::before { inset:360px 20px 130px; }
  html[data-theme="b"] .hero-inner { padding-top:72px; }
  html[data-theme="b"] .hero-meta { left:20px; right:20px; width:auto; bottom:20px; }
  html[data-theme="c"] .hero::before { inset:390px 0 120px 18%; }
  html[data-theme="c"] .hero::after { background:linear-gradient(180deg,#151515 0%,#151515 45%,rgba(21,21,21,.18) 75%); }
  html[data-theme="d"] .hero::before { inset:385px 0 120px 24%; }
  html[data-theme="d"] .hero::after { background:linear-gradient(180deg,#fff 0%,#fff 48%,rgba(255,255,255,.12) 76%); }
  html[data-theme="e"] .hero::before { inset:390px 20px 120px; }
  html[data-theme="f"] .hero::before { inset:410px 0 120px 14%; }
  html[data-theme="f"] .hero::after { background:linear-gradient(180deg,#f7f5f1 0%,#f7f5f1 48%,rgba(247,245,241,.12) 78%); }
  html[data-theme="f"] .hero-content { padding-right:0; }
  html[data-theme="ocean"] .hero,html[data-theme="ocean"] .hero-inner,html[data-theme="sun"] .hero,html[data-theme="sun"] .hero-inner,html[data-theme="green"] .hero,html[data-theme="green"] .hero-inner { min-height:820px; }
  html[data-theme="ocean"] .hero-inner,html[data-theme="sun"] .hero-inner,html[data-theme="green"] .hero-inner { grid-template-columns:1fr; }
  html[data-theme="ocean"] .hero::before { inset:390px 20px 125px; }
  html[data-theme="sun"] .hero::after { background:linear-gradient(180deg,rgba(255,249,233,.98) 0%,rgba(255,249,233,.9) 49%,rgba(255,226,166,.08) 76%); }
  html[data-theme="sun"] .hero-content { padding:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; }
  html[data-theme="green"] .hero::before { inset:400px 0 120px 18%; }
  html[data-theme="green"] .hero::after { background:linear-gradient(180deg,#15564d 0%,#15564d 48%,rgba(21,86,77,.15) 76%); }
  html[data-theme="ocean"] .hero-meta,html[data-theme="green"] .hero-meta { left:20px; right:20px; bottom:20px; width:auto; }
  html[data-theme="sun"] .hero-meta { left:20px; right:20px; bottom:20px; }
  html[data-theme="local"] .hero { min-height:1080px; }
  html[data-theme="local"] .hero::before { inset:92px 0 440px; }
  html[data-theme="local"] .hero-content { left:20px; right:20px; bottom:175px; width:auto; }
  html[data-theme="local"] .hero-meta { left:20px; right:20px; bottom:20px; width:auto; }
  html[data-theme="c"] .hero-meta,html[data-theme="d"] .hero-meta,html[data-theme="e"] .hero-meta,html[data-theme="f"] .hero-meta { left:20px; right:20px; bottom:20px; width:auto; }
  .intro-grid,.promise-grid,.contact-inner,html[data-theme="b"] .promise-grid,html[data-theme="e"] .intro-grid,html[data-theme="ocean"] .intro-grid,html[data-theme="ocean"] .promise-grid,html[data-theme="sun"] .intro-grid,html[data-theme="local"] .intro-grid { grid-template-columns:1fr; }
  .intro-note { position:static; }
  .service-grid { grid-template-columns:1fr; }
  .service-card { min-height:auto; }
  .service-icon { margin:25px 0; }
  .promise-visual,html[data-theme="b"] .promise-visual { order:0; min-height:400px; }
  .flow-grid { grid-template-columns:repeat(2,1fr); }
  .services-head { display:block; }
  .works-head { display:block; }
  .works-intro { margin-top:20px; }
  .works-grid { grid-template-columns:1fr 1fr; grid-template-rows:480px 300px; }
  .work-card--featured { grid-column:1 / -1; grid-row:auto; }
  html[data-theme="b"] .symptoms { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px) {
  .container { width:min(100% - 28px,1160px); }
  .brand { font-size:1rem; }
  .brand-logo { height:28px; }
  .brand-mark { width:34px; height:34px; }
  .nav-tel { font-size:.74rem; padding:9px 11px; }
  .hero,.hero-inner,html[data-theme="b"] .hero,html[data-theme="b"] .hero-inner,html[data-theme="c"] .hero,html[data-theme="c"] .hero-inner,html[data-theme="d"] .hero,html[data-theme="d"] .hero-inner,html[data-theme="e"] .hero,html[data-theme="e"] .hero-inner,html[data-theme="f"] .hero,html[data-theme="f"] .hero-inner { min-height:810px; }
  .hero-inner { padding-top:130px; }
  h1 { font-size:clamp(2.65rem,15vw,4.3rem); }
  .hero-lead { font-size:.94rem; }
  .hero-actions .btn { width:100%; }
  .hero-stat { min-height:102px; padding:20px 12px; }
  .hero-stat strong { font-size:1.25rem; }
  html[data-theme="b"] .hero::before { inset:435px 14px 120px; }
  html[data-theme="b"] .hero-meta { left:14px; right:14px; }
  html[data-theme="c"] .hero::before { inset:440px 0 120px 8%; }
  html[data-theme="d"] .hero::before { inset:455px 0 120px 12%; }
  html[data-theme="e"] .hero::before { inset:445px 14px 120px; }
  html[data-theme="f"] .hero::before { inset:470px 0 120px 6%; }
  html[data-theme="ocean"] .hero::before { inset:455px 14px 120px; }
  html[data-theme="green"] .hero::before { inset:475px 0 120px 8%; }
  html[data-theme="local"] .hero { min-height:1150px; }
  html[data-theme="local"] .hero::before { inset:92px 0 525px; }
  html[data-theme="local"] .hero-content { left:14px; right:14px; bottom:188px; padding:28px 24px; }
  html[data-theme="local"] .hero-meta { left:14px; right:14px; }
  html[data-theme="ocean"] h1,html[data-theme="sun"] h1,html[data-theme="green"] h1,html[data-theme="local"] h1 { font-size:2.45rem; }
  .intro,.services,.promise,.flow,.contact { padding-top:82px; padding-bottom:82px; }
  .symptoms,html[data-theme="b"] .symptoms { grid-template-columns:1fr; }
  .flow-grid { grid-template-columns:1fr; }
  .works { padding-top:80px; padding-bottom:80px; }
  .works-grid { grid-template-columns:1fr; grid-template-rows:none; }
  .work-card,.work-card--featured { grid-column:auto; grid-row:auto; min-height:340px; }
  .work-card--featured { min-height:440px; }
  .work-info,.work-card--featured .work-info { padding:24px; }
  .flow-item::before { left:20px; top:70px; bottom:0; width:1px; height:auto; }
  .footer-inner { display:block; }
  .footer-inner p { margin-top:20px; }
}
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; } }

/* ===== 追加セクション（元サイトの情報を新デザインに統合） ===== */

/* 工事の種類から探す */
.category { padding:110px 0; background:var(--paper); }
.category-head { display:flex; align-items:end; justify-content:space-between; gap:50px; margin-bottom:36px; }
.category-head h2 { margin-bottom:0; }
.category-head .section-copy { max-width:460px; margin:0; }
.category-tabs { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-bottom:28px; }
.category-tab { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 26px; border:2px solid var(--line); border-radius:var(--radius); background:#fff; color:var(--ink); font-size:1.08rem; font-weight:800; text-align:left; cursor:pointer; transition:.25s; }
.category-tab span { padding:4px 10px; border-radius:999px; background:var(--paper); color:var(--muted); font-size:.76rem; }
.category-tab:hover { border-color:var(--brand); }
.category-tab.active { border-color:var(--ink); background:var(--ink); color:#fff; }
.category-tab.active span { background:rgba(255,255,255,.16); color:#fff; }
.category-about { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-bottom:22px; }
.about-item { padding:24px 26px; border-left:4px solid var(--brand); border-radius:0 var(--radius) var(--radius) 0; background:#fff; }
.about-item h3 { margin-bottom:6px; font-size:1.05rem; }
.about-item p { margin:0; color:var(--muted); font-size:.9rem; }
.case-list { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.case-item { display:grid; grid-template-columns:140px 1fr; gap:20px; align-items:center; padding:14px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; transition:.25s; }
.case-item:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.case-thumb { aspect-ratio:4/3; display:grid; place-items:center; border-radius:calc(var(--radius) * .6); background:var(--paper); color:var(--muted); font-size:.74rem; font-weight:700; overflow:hidden; }
.case-thumb img { width:100%; height:100%; object-fit:cover; }
.case-meta { display:flex; justify-content:space-between; gap:10px; margin-bottom:4px; color:var(--brand); font-size:.74rem; font-weight:800; }
.case-meta time { color:var(--muted); font-family:'DM Sans',sans-serif; font-weight:600; }
.case-body h3 { margin-bottom:4px; font-size:1.02rem; line-height:1.5; }
.case-body p:last-child { margin:0; color:var(--muted); font-size:.82rem; line-height:1.7; }

/* 対応工事一覧 */
.service-menu { display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin-top:28px; padding:22px 26px; border:1px solid currentColor; border-color:rgba(127,140,150,.35); border-radius:var(--radius); }
.service-menu-title { margin:0; font-weight:800; font-size:.92rem; }
.service-menu ul { display:flex; flex-wrap:wrap; gap:8px; margin:0; padding:0; list-style:none; }
.service-menu li { padding:6px 14px; border-radius:999px; background:var(--brand); color:#fff; font-size:.82rem; font-weight:700; }

/* 代表挨拶 */
.greeting { padding:118px 0; background:var(--paper); }
.greeting-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:7vw; align-items:start; }
.greeting-photo { position:sticky; top:30px; aspect-ratio:4/5; display:grid; place-items:center; border-radius:var(--radius); background:#dfe7ed; color:var(--muted); font-weight:700; box-shadow:var(--shadow); overflow:hidden; }
.greeting-photo img { width:100%; height:100%; object-fit:cover; }
.greeting-text p { color:var(--ink); font-size:1rem; line-height:2.1; }
.greeting-sign { display:flex; align-items:baseline; justify-content:flex-end; gap:14px; margin:8px 0 30px; color:var(--muted); font-size:.9rem; }
.greeting-sign strong { color:var(--ink); font-size:1.6rem; letter-spacing:.12em; }
.profile-list { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:0; }
.profile-list div { padding:18px 20px; border-radius:var(--radius); background:#fff; border:1px solid var(--line); }
.profile-list dt { color:var(--muted); font-size:.76rem; font-weight:700; }
.profile-list dd { margin:4px 0 0; color:var(--ink); font-size:1.1rem; font-weight:800; }
.profile-list small { margin-left:4px; color:var(--muted); font-size:.7rem; font-weight:500; }

/* 対応地域 */
.area { padding:110px 0; background:#fff; }
.area-grid { display:grid; grid-template-columns:1fr 1fr; gap:7vw; align-items:center; }
.area-card { display:grid; gap:2px; border-radius:var(--radius); overflow:hidden; background:var(--line); box-shadow:var(--shadow); }
.area-card > div { padding:24px 28px; background:#fff; }
.area-card small { display:block; color:var(--muted); font-size:.76rem; font-weight:700; }
.area-card strong { display:block; margin-top:2px; font-size:1.4rem; }
.area-base { background:var(--ink) !important; color:#fff; }
.area-base small,.area-base span { color:rgba(255,255,255,.75); }
.area-base span { display:block; margin-top:4px; font-size:.82rem; }
.area-tags { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 0; padding:0; list-style:none; }
.area-tags li { padding:6px 14px; border:1px solid var(--line); border-radius:999px; font-size:.84rem; font-weight:700; }

/* 会社概要 */
.company { padding:110px 0; background:var(--paper); }
.company-table { margin:24px 0 0; border-top:2px solid var(--ink); }
.company-table div { display:grid; grid-template-columns:200px 1fr; gap:20px; padding:20px 4px; border-bottom:1px solid var(--line); }
.company-table dt { color:var(--muted); font-weight:700; font-size:.9rem; }
.company-table dd { margin:0; font-weight:600; }
.company-table a { color:var(--brand); text-decoration:underline; text-underline-offset:3px; }

/* お問い合わせ：Instagramボタン */
.contact-card .btn-insta { margin-top:10px; background:transparent; color:var(--ink); border-color:var(--line); font:800 .95rem var(--font); }
footer p a { color:#fff; }

@media (max-width:900px) {
  .category-head,.area-grid,.greeting-grid { display:block; }
  .category-head .section-copy { margin-top:16px; }
  .category-about,.case-list { grid-template-columns:1fr; }
  .greeting-photo { position:static; max-width:420px; margin-bottom:36px; }
  .area-card { margin-top:30px; }
}
@media (max-width:560px) {
  .category,.greeting,.area,.company { padding-top:82px; padding-bottom:82px; }
  .category-tabs { grid-template-columns:1fr; }
  .case-item { grid-template-columns:96px 1fr; gap:14px; }
  .case-meta { flex-direction:column; gap:0; }
  .profile-list { grid-template-columns:1fr; }
  .company-table div { grid-template-columns:1fr; gap:4px; }
  .service-menu { display:block; }
  .service-menu ul { margin-top:12px; }
}

/* ===== サイズ調整：全体を一回り小さく、読みやすく ===== */
/* 見出し：日本語は詰めすぎると読みにくいので字間を戻す */
html[data-theme] h2 { font-size:clamp(1.6rem,2.6vw,2.3rem); line-height:1.4; letter-spacing:0; margin-bottom:16px; }
html[data-theme] h1 { font-size:clamp(2.2rem,3.4vw,3.2rem); line-height:1.25; letter-spacing:0; }
html[data-theme] .contact h2 { font-size:clamp(1.7rem,2.8vw,2.5rem); }
html[data-theme] .work-card--featured .work-info h3 { font-size:clamp(1.4rem,2.2vw,1.9rem); }
html[data-theme] .work-info h3 { font-size:clamp(1.1rem,1.6vw,1.35rem); }
html[data-theme] .service-card h3 { font-size:1.2rem; }
html[data-theme] .hero-lead { font-size:1rem; line-height:1.85; }
html[data-theme] .eyebrow { margin-bottom:10px; }
html[data-theme] .section-copy, html[data-theme] .works-intro, html[data-theme] .services-head p { font-size:.95rem; }

/* 余白：セクション間を詰めてページを短く */
html[data-theme] .works, html[data-theme] .category, html[data-theme] .intro, html[data-theme] .services,
html[data-theme] .promise, html[data-theme] .greeting, html[data-theme] .area, html[data-theme] .company,
html[data-theme] .flow { padding-top:80px; padding-bottom:80px; }
html[data-theme] .contact { padding-top:80px; padding-bottom:90px; }
html[data-theme] .works-head, html[data-theme] .category-head { margin-bottom:28px; }
html[data-theme] .services-head { margin-bottom:32px; }

/* 部品の大きさ */
html[data-theme] .btn { min-height:48px; padding:0 20px; font-size:.95rem; }
html[data-theme] .service-card { min-height:auto; padding:26px; gap:16px; }
html[data-theme] .service-icon { width:48px; height:48px; margin:18px 0 16px; }
html[data-theme] .service-icon svg { width:24px; height:24px; }
html[data-theme] .promise-visual { min-height:400px; }
html[data-theme] .promise-list { gap:16px; margin-top:24px; }
html[data-theme] .promise-item { padding-bottom:16px; }
html[data-theme] .works-grid { grid-template-rows:repeat(2,240px); }
html[data-theme] .symptom { padding:16px 18px; }
html[data-theme] .symptoms { margin-top:24px; }
html[data-theme] .flow-grid { margin-top:32px; }
html[data-theme] .greeting-photo { aspect-ratio:1/1; }
html[data-theme] .greeting-text p { line-height:1.95; }
html[data-theme] .company-table div { padding:14px 4px; }
html[data-theme] .contact-card a { font-size:clamp(1.4rem,2.2vw,1.8rem); }
html[data-theme] .hero-stat { min-height:auto; padding:18px 18px; }
html[data-theme] .hero-stat strong { font-size:1.4rem; }
html[data-theme] .hero-stat span { line-height:1.5; display:block; }

/* ファーストビュー：パソコンで画面に収まる高さに */
@media (min-width:901px) {
  html[data-theme] .hero, html[data-theme] .hero-inner { min-height:680px; }
  html[data-theme="local"] .hero::before { inset:92px 0 190px; }
  html[data-theme="local"] .hero-content { padding:28px 32px; width:min(560px,calc(100% - 40px)); }
  html[data-theme="local"] .hero-meta { width:440px; }
}
@media (max-width:560px) {
  html[data-theme] h1 { font-size:2.1rem; }
  html[data-theme] .works, html[data-theme] .category, html[data-theme] .intro, html[data-theme] .services,
  html[data-theme] .promise, html[data-theme] .greeting, html[data-theme] .area, html[data-theme] .company,
  html[data-theme] .flow, html[data-theme] .contact { padding-top:60px; padding-bottom:60px; }
  html[data-theme] .works-grid { grid-template-rows:none; }
}
html[data-theme] .contact-card .btn { margin:10px 0 0; font:800 .95rem var(--font); }

/* ===== 常に表示：LINE・電話の問い合わせブロック ===== */
.fixed-cta { position:fixed; z-index:50; right:24px; bottom:24px; width:250px; display:grid; gap:8px; padding:14px; border-radius:18px; background:#fff; box-shadow:0 18px 44px rgba(9,33,54,.22); }
.fixed-cta-label { margin:0 0 2px; color:var(--ink); font-size:.78rem; font-weight:800; text-align:center; }
.fixed-cta-btn { min-height:58px; display:flex; align-items:center; gap:12px; padding:0 16px; border-radius:12px; color:#fff; font-weight:800; line-height:1.25; transition:transform .2s ease, filter .2s ease; }
.fixed-cta-btn:hover { transform:translateY(-2px); filter:brightness(1.05); }
.fixed-cta-btn svg { width:24px; height:24px; flex:0 0 auto; }
.fixed-cta-btn span { display:flex; flex-direction:column; font-size:1rem; }
.fixed-cta-btn small { font-size:.68rem; font-weight:700; opacity:.9; }
.fixed-cta-line { background:#06C755; }
.fixed-cta-tel { background:var(--brand); font-family:'DM Sans',var(--font); }
.fixed-cta-tel span { font-size:1.1rem; letter-spacing:.02em; }

/* スマホ：画面下に横並びで固定 */
@media (max-width:900px) {
  .fixed-cta { left:0; right:0; bottom:0; width:auto; grid-template-columns:1fr 1fr; gap:8px; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); border-radius:16px 16px 0 0; box-shadow:0 -8px 24px rgba(9,33,54,.14); }
  .fixed-cta-label { display:none; }
  .fixed-cta-btn { min-height:54px; justify-content:center; padding:0 10px; gap:8px; }
  .fixed-cta-btn svg { width:20px; height:20px; }
  .fixed-cta-btn span { font-size:.92rem; }
  .fixed-cta-tel span { font-size:.95rem; }
  body { padding-bottom:84px; }
}
@media (max-width:360px) {
  .fixed-cta-btn small { display:none; }
}

/* 実績ボックス削除にあわせて、スマホのトップの空白を詰める */
@media (max-width:900px) {
  html[data-theme="local"] .hero { min-height:920px; }
  html[data-theme="local"] .hero::before { inset:92px 0 400px; }
  html[data-theme="local"] .hero-content { bottom:24px; }
}
@media (max-width:560px) {
  html[data-theme="local"] .hero { min-height:960px; }
  html[data-theme="local"] .hero::before { inset:92px 0 470px; }
  html[data-theme="local"] .hero-content { bottom:20px; }
}

/* ===== トップ：カードをやめて、写真の上に直接文字を重ねる ===== */
html[data-theme="local"] .hero { min-height:680px; color:#fff; background:#0f2e45; }
html[data-theme="local"] .hero::before { inset:92px 0 0; background-position:62% center; }
html[data-theme="local"] .hero::after { background:linear-gradient(90deg,rgba(8,30,46,.92) 0%,rgba(8,30,46,.78) 38%,rgba(8,30,46,.25) 68%,rgba(8,30,46,.05) 100%); }
html[data-theme="local"] .hero-inner { min-height:680px; display:flex; align-items:center; padding:140px 0 72px; }
html[data-theme="local"] .hero-content { position:static; width:auto; max-width:620px; padding:0; border-radius:0; background:transparent; box-shadow:none; }
html[data-theme="local"] .hero-kicker { color:#fff; border-color:rgba(255,255,255,.4); background:rgba(255,255,255,.08); }
html[data-theme="local"] h1 { color:#fff; font-size:clamp(2.4rem,4.2vw,3.8rem); line-height:1.22; text-shadow:0 2px 18px rgba(0,0,0,.25); }
html[data-theme="local"] h1 .accent { color:#ff9a62; }
html[data-theme="local"] .hero-lead { color:rgba(255,255,255,.88); font-size:1.02rem; }
html[data-theme="local"] .btn-ghost { color:#fff; border-color:rgba(255,255,255,.7); background:rgba(255,255,255,.06); }
html[data-theme="local"] .btn-ghost:hover { background:rgba(255,255,255,.16); }
/* 写真の下端に、次のセクションへのつながりの細いライン */
html[data-theme="local"] .hero-content::after { content:""; display:block; width:64px; height:4px; margin-top:40px; border-radius:2px; background:var(--brand); }

@media (max-width:900px) {
  html[data-theme="local"] .hero, html[data-theme="local"] .hero-inner { min-height:640px; }
  html[data-theme="local"] .hero::before { inset:92px 0 0; background-position:68% center; }
  html[data-theme="local"] .hero::after { background:linear-gradient(180deg,rgba(8,30,46,.35) 0%,rgba(8,30,46,.7) 45%,rgba(8,30,46,.94) 100%); }
  html[data-theme="local"] .hero-inner { align-items:flex-end; padding:120px 0 48px; }
  html[data-theme="local"] .hero-content { left:auto; right:auto; bottom:auto; }
}
@media (max-width:560px) {
  html[data-theme="local"] .hero, html[data-theme="local"] .hero-inner { min-height:600px; }
  html[data-theme="local"] h1 { font-size:2.2rem; }
  html[data-theme="local"] .hero-content { padding:0; }
  html[data-theme="local"] .hero-content::after { margin-top:28px; }
}
html[data-theme="local"] h1 { font-weight:800; }

/* ラベル：丸い枠をやめて、線＋文字のシンプルな見せ方に */
html[data-theme="local"] .hero-kicker { display:flex; align-items:center; gap:14px; padding:0; margin-bottom:22px; border:0; border-radius:0; background:transparent; color:rgba(255,255,255,.92); font-size:1.02rem; font-weight:700; letter-spacing:.14em; }
html[data-theme="local"] .hero-kicker i { width:40px; height:2px; border-radius:0; background:var(--brand); box-shadow:none; }
@media (max-width:560px) {
  html[data-theme="local"] .hero-kicker { font-size:.88rem; letter-spacing:.1em; gap:10px; }
  html[data-theme="local"] .hero-kicker i { width:28px; }
}

/* ===== 写真の差し込み（LINEのKeepメモから保存した現場写真） ===== */
.hero::before { background-image:url('../img/redtile-roof-repair.jpg'); }
html[data-theme="local"] .hero::before { background-position:60% 40%; }
.promise-visual { background-image:url('../img/wall-painting-scaffold.jpg'); background-position:center 30%; }

/* 現場の様子ギャラリー */
.site-gallery { padding:80px 0; background:var(--paper); }
.gallery-head { display:flex; align-items:end; justify-content:space-between; gap:50px; margin-bottom:24px; }
.gallery-head h2 { margin-bottom:0; }
.gallery-head .section-copy { max-width:460px; margin:0; }
.gallery-filter { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; }
.gallery-chip { min-height:44px; padding:0 18px; border:1.5px solid var(--line); border-radius:999px; background:#fff; color:var(--ink); font-weight:700; font-size:.88rem; cursor:pointer; transition:.2s; }
.gallery-chip:hover { border-color:var(--brand); }
.gallery-chip.active { background:var(--ink); border-color:var(--ink); color:#fff; }
.gallery-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.gallery-item { position:relative; margin:0; aspect-ratio:4/3; border-radius:calc(var(--radius) * .75); overflow:hidden; background:#dfe7ed; }
.gallery-item[hidden] { display:none; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.gallery-item:hover img { transform:scale(1.05); }
.gallery-item figcaption { position:absolute; left:0; right:0; bottom:0; padding:28px 14px 12px; color:#fff; font-size:.78rem; line-height:1.5; background:linear-gradient(180deg,transparent,rgba(7,29,43,.82)); }
.gallery-item figcaption b { display:block; font-size:.9rem; }
@media (max-width:900px) {
  .gallery-head { display:block; }
  .gallery-head .section-copy { margin-top:14px; }
  .gallery-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px) {
  .site-gallery { padding:60px 0; }
  .gallery-grid { gap:8px; }
  .gallery-item figcaption { padding:20px 10px 8px; font-size:.7rem; }
  .gallery-item figcaption b { font-size:.8rem; }
}

/* ===== トップ：施工写真4枚のスライドショー（6秒ごとに切り替え） ===== */
html[data-theme] .hero::before { background-image:none; }
.hero-slides { position:absolute; inset:92px 0 0; z-index:-2; overflow:hidden; background:#0f2e45; }
.hero-slide { position:absolute; inset:0; background-size:cover; background-repeat:no-repeat; opacity:0; animation:heroFade 24s infinite; will-change:opacity, transform; }
.hero-slide.s1 { background-image:url('../img/hero-01-roof-blue.jpg'); background-position:60% 20%; animation-delay:0s; }
.hero-slide.s2 { background-image:url('../img/hero-02-rooftop-coating.jpg'); background-position:60% 40%; animation-delay:6s; }
.hero-slide.s3 { background-image:url('../img/hero-03-dome-roof.jpg'); background-position:55% 15%; animation-delay:12s; }
.hero-slide.s4 { background-image:url('../img/hero-04-rooftop-team.jpg'); background-position:60% 50%; animation-delay:18s; }
@keyframes heroFade {
  0%   { opacity:0; transform:scale(1.06); }
  5%   { opacity:1; }
  25%  { opacity:1; }
  31%  { opacity:0; transform:scale(1); }
  100% { opacity:0; transform:scale(1); }
}
/* 動きを減らす設定の人には1枚目だけを表示 */
@media (prefers-reduced-motion:reduce) {
  .hero-slide { animation:none; }
  .hero-slide.s1 { opacity:1; }
}
@media (max-width:900px) {
  html[data-theme="local"] .hero::after { background:linear-gradient(180deg,rgba(8,30,46,.15) 0%,rgba(8,30,46,.55) 40%,rgba(8,30,46,.88) 100%); }
  .hero-slide.s1 { background-position:70% 20%; }
  .hero-slide.s2 { background-position:65% 40%; }
  .hero-slide.s3 { background-position:40% 15%; }
  .hero-slide.s4 { background-position:75% 50%; }
}

/* ===== トップ写真の黒いかぶせをなしに（文字は影で読みやすく） ===== */
html[data-theme] .hero::after { background:none; }
@media (max-width:900px) { html[data-theme="local"] .hero::after { background:none; } }
html[data-theme="local"] .hero-kicker,
html[data-theme="local"] h1,
html[data-theme="local"] .hero-lead { text-shadow:0 1px 3px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.45); }
html[data-theme="local"] .hero-lead { color:#fff; font-weight:500; }
html[data-theme="local"] .hero-kicker { color:#fff; }
html[data-theme="local"] .btn-ghost { background:rgba(0,0,0,.18); border-color:#fff; }

/* ===== トップ写真の黒いかぶせをなしに（写真をそのままの明るさで） ===== */
html[data-theme] .hero::after { background:none; }
@media (max-width:900px) { html[data-theme="local"] .hero::after { background:none; } }
/* 文字は影をつけて読みやすく */
html[data-theme="local"] .hero-kicker,
html[data-theme="local"] h1,
html[data-theme="local"] .hero-lead { color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.5), 0 2px 16px rgba(0,0,0,.35); }
html[data-theme="local"] h1 .accent { color:#ff9a62; }
html[data-theme="local"] .hero-lead { font-weight:500; }
html[data-theme="local"] .btn-ghost { border-color:#fff; }

/* Aの写真（水色の屋根）：下側が見えるように位置を調整 */
.hero-slide.s1 { background-position:60% 85%; }
@media (max-width:900px) { .hero-slide.s1 { background-position:70% 85%; } }

/* 順番の入れ替え：B（屋上の防水）→ A（水色の屋根）→ C → E */
.hero-slide.s2 { animation-delay:0s; }
.hero-slide.s1 { animation-delay:6s; }
@media (prefers-reduced-motion:reduce) {
  .hero-slide.s1 { opacity:0; }
  .hero-slide.s2 { opacity:1; }
}

/* ===== 会社ロゴ ===== */
html[data-theme] .brand { gap:10px; }
html[data-theme] .brand-logo { height:58px; width:auto; }
.brand-name { font-size:1.2rem; font-weight:900; letter-spacing:.08em; color:var(--ink); }
footer .brand-logo { height:64px; }
@media (max-width:560px) {
  html[data-theme] .brand-logo { height:44px; }
  .brand-name { font-size:1rem; }
  footer .brand-logo { height:52px; }
}
/* 右下の固定ブロックとフッターの文字が重ならないように */
@media (min-width:901px) { footer .footer-inner { padding-right:280px; } }

/* ===== 施工実績カードを小さく・同じ大きさで3列に ===== */
html[data-theme] .works-grid { grid-template-columns:repeat(3,1fr); grid-template-rows:none; gap:16px; }
html[data-theme] .work-card, html[data-theme] .work-card--featured { grid-row:auto; grid-column:auto; min-height:230px; border-radius:16px; }
html[data-theme] .work-info, html[data-theme] .work-card--featured .work-info { padding:20px 22px; }
html[data-theme] .work-info h3, html[data-theme] .work-card--featured .work-info h3 { font-size:1.15rem; margin-bottom:6px; }
html[data-theme] .work-info p { font-size:.8rem; line-height:1.6; }
html[data-theme] .work-type { font-size:.72rem; margin-bottom:4px; }
html[data-theme] .work-meta { display:none; }
html[data-theme] .work-badge { top:14px; left:14px; padding:5px 10px; font-size:.7rem; }
@media (max-width:900px) {
  html[data-theme] .works-grid { grid-template-columns:1fr; }
  html[data-theme] .work-card, html[data-theme] .work-card--featured { min-height:190px; }
}
html[data-theme] .works-head h2 + .works-note { margin-top:14px; }

/* ===== 施工実績一覧へのボタン（トップ） ===== */
.works-more { display:flex; justify-content:center; margin-top:28px; }
.works-more .btn { gap:12px; padding:0 28px; }
.works-more-count { padding:3px 10px; border-radius:999px; background:rgba(255,255,255,.22); font-size:.78rem; }

/* ===== 施工実績一覧ページ ===== */
html[data-theme] .works-page header + * { margin:0; }
.page-hero { padding:150px 0 48px; background:var(--paper); }
html[data-theme="local"] .page-hero { padding-top:140px; }
.page-hero h1 { margin:0 0 12px; color:var(--ink); font-size:clamp(1.8rem,3vw,2.6rem); line-height:1.3; text-shadow:none; }
html[data-theme="local"] .page-hero h1 { color:var(--ink); text-shadow:none; }
.breadcrumb { display:flex; gap:8px; margin-bottom:22px; color:var(--muted); font-size:.8rem; }
.breadcrumb a { text-decoration:underline; text-underline-offset:3px; }
.works-list { padding:40px 0 90px; background:#fff; }
.gallery-chip .count { margin-left:8px; padding:1px 8px; border-radius:999px; background:var(--paper); color:var(--muted); font-size:.72rem; }
.gallery-chip.active .count { background:rgba(255,255,255,.2); color:#fff; }
.list-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.list-card { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#fff; transition:.25s; }
.list-card[hidden] { display:none; }
.list-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.list-thumb { aspect-ratio:16/10; display:grid; place-items:center; background:linear-gradient(135deg,#e6eef4,#d5e2ec); color:var(--muted); font-size:.78rem; font-weight:700; }
.list-thumb img { width:100%; height:100%; object-fit:cover; }
.list-body { padding:18px 20px 22px; }
.list-meta { display:flex; justify-content:space-between; gap:10px; margin:0 0 6px; color:var(--brand); font-size:.74rem; font-weight:800; }
.list-meta time { color:var(--muted); font-weight:600; }
.list-body h3 { margin:0 0 6px; font-size:1.08rem; line-height:1.5; }
.list-body p:last-child { margin:0; color:var(--muted); font-size:.84rem; line-height:1.7; }
.list-back { display:flex; justify-content:center; margin-top:36px; }
html[data-theme="local"] .list-back .btn-ghost { color:var(--ink); border-color:var(--line); background:#fff; text-shadow:none; }
@media (max-width:900px) { .list-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px) { .list-grid { grid-template-columns:1fr; } .page-hero { padding:120px 0 36px; } }
html[data-theme] .category-about { margin-bottom:0; }
html[data-theme="local"] .category-more { color:var(--ink); border-color:var(--line); background:#fff; text-shadow:none; }

/* 施工実績一覧ページ：上部の見出しエリアをコンパクトに */
html[data-theme] .page-hero { padding:116px 0 28px; }
html[data-theme] .page-hero h1 { font-size:clamp(1.5rem,2.2vw,1.9rem); line-height:1.3; margin:0 0 6px; font-weight:800; text-shadow:none; color:var(--ink); }
html[data-theme] .page-hero .breadcrumb { margin-bottom:12px; font-size:.75rem; }
html[data-theme] .page-hero .eyebrow { margin-bottom:6px; }
html[data-theme] .page-hero .section-copy { margin:0; font-size:.9rem; }
html[data-theme] .works-list { padding-top:28px; }
@media (max-width:560px) { html[data-theme] .page-hero { padding:104px 0 22px; } }

/* ===== 見出しをさらに一回り小さく（全セクション共通） ===== */
html[data-theme] h2 { font-size:clamp(1.35rem,1.9vw,1.75rem); line-height:1.45; margin-bottom:12px; }
html[data-theme] .contact h2 { font-size:clamp(1.4rem,2vw,1.9rem); }
html[data-theme="local"] h1 { font-size:clamp(2rem,3.2vw,2.9rem); }
html[data-theme] .eyebrow { font-size:.72rem; margin-bottom:8px; }
html[data-theme] .eyebrow::before { width:22px; height:2px; }
/* 見出しまわりの余白も詰める */
html[data-theme] .works, html[data-theme] .category, html[data-theme] .intro, html[data-theme] .services,
html[data-theme] .promise, html[data-theme] .greeting, html[data-theme] .area, html[data-theme] .company,
html[data-theme] .flow, html[data-theme] .site-gallery { padding-top:64px; padding-bottom:64px; }
html[data-theme] .contact { padding-top:64px; padding-bottom:72px; }
html[data-theme] .works-head, html[data-theme] .category-head, html[data-theme] .gallery-head { margin-bottom:22px; gap:40px; }
html[data-theme] .services-head { margin-bottom:24px; }
html[data-theme] .works-head .works-intro p, html[data-theme] .section-copy { font-size:.9rem; }
/* カード内の見出し */
html[data-theme] .work-info h3, html[data-theme] .work-card--featured .work-info h3 { font-size:1.05rem; }
html[data-theme] .service-card h3 { font-size:1.08rem; }
html[data-theme] .promise-item h3, html[data-theme] .flow-item h3, html[data-theme] .about-item h3 { font-size:1rem; }
html[data-theme] .greeting-sign strong { font-size:1.3rem; }
@media (max-width:560px) {
  html[data-theme] h2 { font-size:1.3rem; }
  html[data-theme="local"] h1 { font-size:1.85rem; }
  html[data-theme] .works, html[data-theme] .category, html[data-theme] .intro, html[data-theme] .services,
  html[data-theme] .promise, html[data-theme] .greeting, html[data-theme] .area, html[data-theme] .company,
  html[data-theme] .flow, html[data-theme] .site-gallery, html[data-theme] .contact { padding-top:48px; padding-bottom:48px; }
}

/* ===== 2つの専門工事：写真カード型 ===== */
html[data-theme] .cat-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
html[data-theme] .cat-card { display:flex; flex-direction:column; background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:0 14px 36px rgba(16,39,60,.08); transition:transform .25s, box-shadow .25s; }
html[data-theme] .cat-card:hover { transform:translateY(-4px); box-shadow:0 20px 44px rgba(16,39,60,.14); }
html[data-theme] .cat-photo { position:relative; aspect-ratio:16/9; overflow:hidden; background:#dfe7ee; }
html[data-theme] .cat-photo img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s; }
html[data-theme] .cat-card:hover .cat-photo img { transform:scale(1.04); }
html[data-theme] .cat-no { position:absolute; left:20px; bottom:-6px; color:#fff; font:700 4.2rem/1 'DM Sans',sans-serif; letter-spacing:-.02em; text-shadow:0 2px 14px rgba(0,0,0,.35); }
html[data-theme] .cat-en { position:absolute; top:16px; left:16px; padding:5px 12px; border-radius:999px; background:rgba(255,255,255,.92); color:var(--ink); font:700 .68rem/1.4 'DM Sans',sans-serif; letter-spacing:.16em; }
html[data-theme] .cat-body { display:flex; flex-direction:column; gap:14px; padding:26px 28px 28px; flex:1; }
html[data-theme] .cat-body h3 { margin:0; font-size:1.25rem; color:var(--ink); }
html[data-theme] .cat-lead { margin:0; color:var(--ink); font-size:.92rem; font-weight:700; line-height:1.8; }
html[data-theme] .cat-defs { margin:0; display:grid; gap:10px; }
html[data-theme] .cat-defs div { padding:12px 14px; border-radius:12px; background:var(--paper); }
html[data-theme] .cat-defs dt { font-size:.82rem; font-weight:800; color:var(--brand); margin-bottom:2px; }
html[data-theme] .cat-defs dd { margin:0; font-size:.84rem; color:var(--muted); line-height:1.75; }
html[data-theme] .cat-tags { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
html[data-theme] .cat-tags li { padding:4px 11px; border:1px solid var(--line); border-radius:999px; font-size:.76rem; font-weight:700; color:var(--ink); }
html[data-theme] .cat-link { margin-top:auto; align-self:flex-start; display:inline-flex; align-items:center; gap:10px; padding:10px 0 2px; color:var(--ink); font-weight:800; font-size:.9rem; text-decoration:none; border-bottom:2px solid var(--brand); }
html[data-theme] .cat-link span { transition:transform .2s; }
html[data-theme] .cat-link:hover span { transform:translateX(4px); }
@media (max-width:820px){ html[data-theme] .cat-cards { grid-template-columns:1fr; } html[data-theme] .cat-body { padding:22px 20px 24px; } }

/* ボタン下の線を削除 */
html[data-theme] .hero-content::after { display:none; }

/* ===== 症状チェック：左を写真パネルにして左右のバランスを整える ===== */
html[data-theme] .intro-grid { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:56px; align-items:stretch; }
html[data-theme] .intro-photo { position:relative; margin:0; min-height:420px; border-radius:var(--radius); overflow:hidden; background:#dfe7ee; }
html[data-theme] .intro-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
html[data-theme] .intro-photo figcaption { position:absolute; left:0; right:0; bottom:0; padding:80px 28px 26px; color:#fff; background:linear-gradient(to top, rgba(10,30,48,.82), rgba(10,30,48,0)); }
html[data-theme] .intro-photo figcaption span { display:block; font-size:1.2rem; font-weight:800; line-height:1.6; }
html[data-theme] .intro-photo figcaption small { display:block; margin-top:8px; font-size:.8rem; opacity:.85; }
html[data-theme] .symptoms { margin-top:24px; }
html[data-theme] .symptom { text-align:left; padding:18px 20px; }
html[data-theme] .symptom b { font-size:.98rem; }
html[data-theme] .symptom-result { display:flex; flex-wrap:wrap; align-items:center; gap:6px 20px; }
html[data-theme] .symptom-result br { display:none; }
html[data-theme] .symptom-result small { width:100%; }
html[data-theme] .symptom-result #symptom-text { flex:1 1 300px; }
html[data-theme] .symptom-cta { flex:0 0 auto; padding:9px 16px; border-radius:999px; background:#fff; color:var(--ink); font-size:.82rem; font-weight:800; text-decoration:none; white-space:nowrap; }
html[data-theme] .symptom-cta:hover { opacity:.9; }
@media (max-width:820px){ html[data-theme] .intro-grid { grid-template-columns:1fr; gap:28px; } html[data-theme] .intro-photo { min-height:260px; } }

/* 社名：少し大きく・文字間を広げる */
html[data-theme] .brand-name { font-size:1.5rem; letter-spacing:.16em; }
html[data-theme] .brand { gap:14px; }
@media (max-width:820px){ html[data-theme] .brand-name { font-size:1.2rem; letter-spacing:.12em; } }

/* トップ説明文の改行 */
.nowrap { white-space:nowrap; }
@media (max-width:820px){ .pc-br { display:none; } }

/* ===== 日本語の改行を自然に（文節の区切りで折り返す） ===== */
html[data-theme] p, html[data-theme] h1, html[data-theme] h2, html[data-theme] h3,
html[data-theme] dd, html[data-theme] dt, html[data-theme] li, html[data-theme] figcaption,
html[data-theme] .symptom span, html[data-theme] .symptom-result, html[data-theme] td, html[data-theme] th {
  word-break:auto-phrase;
  text-wrap:pretty;
  line-break:strict;
}

/* お問い合わせカードのボタン文字を中央に */
html[data-theme] .contact-card .btn { display:flex; align-items:center; justify-content:center; padding-top:0; padding-bottom:0; min-height:48px; }

/* こだわりの写真を差し替え */
html[data-theme] .promise-visual { background:url('../img/promise-wall-roller.jpg') 62% center/cover !important; }

/* 代表写真 */
html[data-theme] .greeting-photo img { object-position:52% center; }

/* こだわり写真の文字：黒い箱をやめ、写真の下側に自然に重ねる */
html[data-theme] .promise-visual::before { content:""; position:absolute; inset:auto 0 0 0; height:45%; background:linear-gradient(to top, rgba(10,30,48,.78), rgba(10,30,48,0)); z-index:1; }
html[data-theme] .promise-visual::after { left:28px; right:28px; bottom:26px; padding:14px 0 0; border-radius:0; background:none; border-top:2px solid rgba(255,255,255,.7); width:max-content; font-size:1.15rem; letter-spacing:.06em; text-shadow:0 2px 10px rgba(0,0,0,.35); z-index:2; }

/* メニューの間に縦線 */
html[data-theme] .nav-links { gap:0; }
html[data-theme] .nav-links a { padding:0 22px; line-height:1; }
html[data-theme] .nav-links a + a { border-left:1px solid rgba(18,58,87,.25); }
html[data-theme] .nav-links a:last-child { padding-right:0; }
html[data-theme] .nav-links a { font-size:.82rem; padding:0 20px; }
html[data-theme] .nav-links a:last-child { padding-right:0; }

/* ===== 施工事例ハブページ ===== */
html[data-theme] .cases-hub { padding:56px 0 80px; }
html[data-theme] .hub-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
html[data-theme] .hub-card { display:flex; flex-direction:column; background:#fff; border-radius:var(--radius); overflow:hidden; color:var(--ink); text-decoration:none; box-shadow:0 14px 36px rgba(16,39,60,.08); transition:transform .25s, box-shadow .25s; }
html[data-theme] .hub-card:hover { transform:translateY(-5px); box-shadow:0 22px 48px rgba(16,39,60,.15); }
html[data-theme] .hub-photo { aspect-ratio:16/10; overflow:hidden; background:#dfe7ee; }
html[data-theme] .hub-photo img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s; }
html[data-theme] .hub-card:hover .hub-photo img { transform:scale(1.04); }
html[data-theme] .hub-body { display:flex; flex-direction:column; gap:10px; padding:28px 30px 30px; flex:1; }
html[data-theme] .hub-body .eyebrow { margin:0; }
html[data-theme] .hub-body h2 { margin:0; font-size:1.5rem; line-height:1.5; }
html[data-theme] .hub-body p { margin:0; color:var(--muted); font-size:.9rem; }
html[data-theme] .hub-more { margin-top:auto; padding-top:14px; display:inline-flex; align-items:center; gap:12px; align-self:flex-start; font-weight:800; font-size:.92rem; border-bottom:2px solid var(--brand); padding-bottom:4px; }
html[data-theme] .hub-more b { padding:2px 10px; border-radius:999px; background:var(--ink); color:#fff; font-size:.72rem; }
html[data-theme] .hub-more i { font-style:normal; transition:transform .2s; }
html[data-theme] .hub-card:hover .hub-more i { transform:translateX(4px); }
@media (max-width:820px){ html[data-theme] .hub-grid { grid-template-columns:1fr; } html[data-theme] .hub-body { padding:22px 20px 24px; } }

/* ===== 現場の様子 一覧ページ ===== */
html[data-theme] .gallery-all { padding:48px 0 80px; }
html[data-theme] .gallery-all .gallery-item img { cursor:zoom-in; }
.lightbox { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(6,18,30,.88); }
.lightbox[hidden] { display:none; }
.lightbox img { max-width:100%; max-height:100%; border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position:absolute; top:16px; right:20px; width:44px; height:44px; border:0; border-radius:50%; background:rgba(255,255,255,.15); color:#fff; font-size:1.6rem; cursor:pointer; }

/* 社名を明朝体に */
.brand-name, footer .brand span { font-family:"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho","YuMincho",serif; font-weight:700; }
html[data-theme] .brand-name { font-size:1.85rem; letter-spacing:.14em; }
@media (max-width:820px){ html[data-theme] .brand-name { font-size:1.4rem; letter-spacing:.1em; } }

/* ===== 施工事例ページ：スクロールせずに全体が見えるサイズ ===== */
html[data-theme] .cases-page .page-hero { padding:110px 0 14px; }
html[data-theme] .cases-page .page-hero .breadcrumb { margin-bottom:6px; }
html[data-theme] .cases-page .page-hero .eyebrow { margin-bottom:4px; }
html[data-theme] .cases-page .page-hero h1 { margin:0 0 4px; font-size:1.6rem; }
html[data-theme] .cases-page .page-hero .section-copy { margin:0; font-size:.85rem; }
html[data-theme] .cases-hub { padding:18px 0 28px; }
html[data-theme] .cases-hub .hub-grid { gap:22px; }
html[data-theme] .cases-hub .hub-photo { aspect-ratio:auto; height:clamp(140px, calc(100vh - 462px), 380px); }
html[data-theme] .cases-hub .hub-body { gap:6px; padding:16px 22px 18px; }
html[data-theme] .cases-hub .hub-body h2 { font-size:1.2rem; line-height:1.45; }
html[data-theme] .cases-hub .hub-body p { font-size:.84rem; line-height:1.7; }
html[data-theme] .cases-hub .hub-more { padding-top:8px; font-size:.86rem; }

/* 直通（担当 新垣）の携帯番号：固定電話の下に小さく */
.tel-direct { display:inline-flex; align-items:center; gap:8px; margin-top:4px; font-size:.8rem !important; font-weight:700; color:var(--muted) !important; text-decoration:none; letter-spacing:.02em; }
.tel-direct span { padding:1px 7px; border:1px solid currentColor; border-radius:4px; font-size:.68rem; line-height:1.5; }
.tel-direct:hover { color:var(--ink) !important; }
.contact-card .tel-direct { display:flex; margin:-2px 0 10px; }
.fixed-cta-direct { display:flex; justify-content:center; margin:6px 0 0; font-size:.72rem !important; }

/* ===== 施工実績：ビフォーアフター ===== */
html[data-theme] .list-thumb.ba { display:grid; grid-template-columns:1fr 1fr; gap:3px; place-items:stretch; background:#fff; }
html[data-theme] .list-thumb.ba figure { position:relative; margin:0; overflow:hidden; background:linear-gradient(135deg,#e6eef4,#d5e2ec); }
html[data-theme] .list-thumb.ba img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
html[data-theme] .ba-empty { position:absolute; inset:0; display:grid; place-items:center; color:var(--muted); font-size:.74rem; font-weight:700; }
html[data-theme] .list-thumb.ba figcaption { position:absolute; left:10px; top:10px; z-index:1; padding:3px 9px; border-radius:4px; font:700 .62rem/1.4 'DM Sans',sans-serif; letter-spacing:.14em; }
html[data-theme] .ba-before figcaption { background:rgba(255,255,255,.92); color:var(--ink); }
html[data-theme] .ba-after figcaption { background:var(--ink); color:#fff; }

/* ===== 施工実績：カードをクリックで詳細へ ===== */
html[data-theme] a.list-card { display:flex; flex-direction:column; color:inherit; text-decoration:none; transition:transform .25s, box-shadow .25s; }
html[data-theme] a.list-card:hover { transform:translateY(-4px); box-shadow:0 18px 40px rgba(16,39,60,.12); }
html[data-theme] .list-more { display:inline-block; margin-top:10px; font-size:.82rem; font-weight:800; color:var(--brand); }

/* ===== 施工実績 詳細ページ ===== */
html[data-theme] .detail-tags { display:flex; gap:8px; margin:6px 0 0; }
html[data-theme] .detail-tags span { padding:4px 12px; border-radius:999px; background:#fff; border:1px solid var(--line); font-size:.78rem; font-weight:700; color:var(--ink); }
html[data-theme] .detail-body { padding:40px 0 72px; }
html[data-theme] .detail-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:40px; align-items:start; }
html[data-theme] .ba-compare { position:relative; aspect-ratio:4/3; border-radius:var(--radius); overflow:hidden; background:#dfe7ee; box-shadow:0 14px 36px rgba(16,39,60,.1); user-select:none; }
html[data-theme] .ba-compare > img, html[data-theme] .ba-compare-before img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
html[data-theme] .ba-compare-before { position:absolute; inset:0; clip-path:inset(0 calc(100% - var(--pos)) 0 0); }
html[data-theme] .ba-handle { position:absolute; top:0; bottom:0; left:var(--pos); width:3px; margin-left:-1.5px; background:#fff; pointer-events:none; }
html[data-theme] .ba-handle i { position:absolute; top:50%; left:50%; width:44px; height:44px; margin:-22px 0 0 -22px; display:grid; place-items:center; border-radius:50%; background:#fff; color:var(--ink); font-style:normal; font-weight:800; box-shadow:0 4px 14px rgba(0,0,0,.25); }
html[data-theme] .ba-compare input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:ew-resize; }
html[data-theme] .ba-tag { position:absolute; top:14px; padding:4px 11px; border-radius:4px; font:700 .68rem/1.4 'DM Sans',sans-serif; letter-spacing:.14em; pointer-events:none; }
html[data-theme] .ba-tag-before { left:14px; background:rgba(255,255,255,.92); color:var(--ink); }
html[data-theme] .ba-tag-after { right:14px; background:var(--ink); color:#fff; }
html[data-theme] .ba-hint { margin:10px 0 0; font-size:.8rem; color:var(--muted); }
html[data-theme] .detail-photos { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:28px; }
html[data-theme] .detail-photos figure { margin:0; }
html[data-theme] .detail-photos img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; display:block; }
html[data-theme] .detail-photos figcaption { margin-top:6px; font-size:.8rem; color:var(--muted); }
html[data-theme] .detail-photos figcaption b { margin-right:8px; font:700 .68rem 'DM Sans',sans-serif; letter-spacing:.14em; color:var(--ink); }
html[data-theme] .detail-info { position:sticky; top:110px; padding:28px; border-radius:var(--radius); background:#fff; box-shadow:0 14px 36px rgba(16,39,60,.08); }
html[data-theme] .detail-info h2 { margin:0 0 10px; font-size:1.15rem; }
html[data-theme] .detail-info > p { margin:0 0 18px; font-size:.9rem; color:var(--muted); }
html[data-theme] .detail-info dl { margin:0 0 22px; border-top:1px solid var(--line); }
html[data-theme] .detail-info dl div { display:grid; grid-template-columns:90px 1fr; padding:12px 0; border-bottom:1px solid var(--line); font-size:.88rem; }
html[data-theme] .detail-info dt { color:var(--muted); font-weight:700; }
html[data-theme] .detail-info dd { margin:0; font-weight:700; color:var(--ink); }
html[data-theme] .detail-info .btn { width:100%; justify-content:center; }
html[data-theme] .detail-back { display:block; margin-top:14px; text-align:center; font-size:.85rem; color:var(--ink); }
@media (max-width:900px){ html[data-theme] .detail-grid { grid-template-columns:1fr; } html[data-theme] .detail-info { position:static; } }

html[data-theme] .ba-tag { transition:opacity .1s linear; }

/* ===== 写真の拡大表示 ===== */
html[data-theme] .gallery-item { cursor:zoom-in; }
.lightbox { z-index:2000 !important; }
.lightbox figure { margin:0; max-width:min(1200px, 100%); max-height:100%; display:flex; flex-direction:column; align-items:center; }
.lightbox figure img { max-width:100%; max-height:calc(100vh - 110px); border-radius:10px; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { margin-top:12px; color:#fff; font-size:.9rem; text-align:center; }
.lightbox figcaption b { margin-right:10px; }
.lightbox-nav { position:absolute; top:50%; width:52px; height:52px; margin-top:-26px; border:0; border-radius:50%; background:rgba(255,255,255,.16); color:#fff; font-size:2rem; line-height:1; cursor:pointer; }
.lightbox-nav:hover, .lightbox-close:hover { background:rgba(255,255,255,.3); }
.lightbox-prev { left:20px; } .lightbox-next { right:20px; }
@media (max-width:820px){ .lightbox-nav { width:42px; height:42px; margin-top:-21px; font-size:1.6rem; } .lightbox-prev { left:8px; } .lightbox-next { right:8px; } }

/* ===== トップの施工実績（ビフォーアフター） ===== */
html[data-theme] .works-feature { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); background:#fff; border-radius:var(--radius); overflow:hidden; color:inherit; text-decoration:none; box-shadow:0 14px 36px rgba(16,39,60,.08); transition:transform .25s, box-shadow .25s; }
html[data-theme] .works-feature:hover { transform:translateY(-4px); box-shadow:0 20px 44px rgba(16,39,60,.14); }
html[data-theme] .works-feature-ba { display:grid; grid-template-columns:1fr 1fr; gap:3px; background:#fff; }
html[data-theme] .works-feature-ba figure { position:relative; margin:0; aspect-ratio:4/3; overflow:hidden; }
html[data-theme] .works-feature-ba img { width:100%; height:100%; object-fit:cover; display:block; }
html[data-theme] .works-feature-ba figcaption { position:absolute; left:12px; top:12px; padding:3px 10px; border-radius:4px; font:700 .66rem/1.4 'DM Sans',sans-serif; letter-spacing:.14em; background:rgba(255,255,255,.92); color:var(--ink); }
html[data-theme] .works-feature-ba figure + figure figcaption { background:var(--ink); color:#fff; }
html[data-theme] .works-feature-body { display:flex; flex-direction:column; justify-content:center; gap:8px; padding:28px 32px; }
html[data-theme] .works-feature-body .work-type { margin:0; font-size:.8rem; font-weight:800; color:var(--brand); }
html[data-theme] .works-feature-body h3 { margin:0; font-size:1.3rem; color:var(--ink); }
html[data-theme] .works-feature-body p { margin:0; font-size:.9rem; color:var(--muted); }
html[data-theme] .works-feature-wrap { margin-bottom:28px; }
@media (max-width:900px){ html[data-theme] .works-feature { grid-template-columns:1fr; } html[data-theme] .works-feature-body { padding:20px 22px 24px; } }

/* トップの最新施工実績（3件） */
html[data-theme] .works-latest { margin-bottom:28px; }
html[data-theme] .list-empty { padding:40px; border-radius:var(--radius); background:var(--paper); text-align:center; color:var(--muted); font-size:.9rem; }

/* =========================================================
   スマホ表示（幅820px以下）
   ========================================================= */
.menu-toggle { display:none; }
@media (max-width:820px){
  /* ヘッダー：ロゴ＋三本線メニュー */
  html[data-theme] header { position:sticky; top:0; height:64px; }
  html[data-theme] .brand-logo { height:40px; }
  html[data-theme] .brand-name { font-size:1.3rem; }
  .menu-toggle { display:flex; flex-direction:column; justify-content:center; gap:5px; width:44px; height:44px; padding:0 11px; border:0; border-radius:10px; background:var(--sky-pale, #eef5fa); cursor:pointer; }
  .menu-toggle span { display:block; height:2px; border-radius:2px; background:var(--ink); transition:transform .25s, opacity .2s; }
  body.menu-open .menu-toggle span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity:0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
  html[data-theme] .nav-links { position:fixed; top:64px; left:0; right:0; z-index:60; display:none; flex-direction:column; align-items:stretch; padding:8px 20px 20px; background:#fff; box-shadow:0 18px 30px rgba(16,39,60,.14); }
  body.menu-open .nav-links { display:flex !important; }
  html[data-theme] .nav-links a, html[data-theme] .nav-links a:not(.nav-tel) { display:block !important; padding:15px 4px !important; font-size:1rem !important; border-left:0 !important; border-bottom:1px solid var(--line); }
  html[data-theme] .nav-links a:last-child { border-bottom:0; }

  html[data-theme] .hero-slides { top:0; }
  html[data-theme="local"] .hero { min-height:600px; }
  html[data-theme] .page-hero { padding-top:22px !important; padding-bottom:18px; }

  /* トップ写真の文字を読みやすく */
  html[data-theme] .hero h1, html[data-theme] .hero-lead, html[data-theme] .hero-kicker { text-shadow:0 2px 6px rgba(0,0,0,.55), 0 0 24px rgba(0,0,0,.35); }
  html[data-theme="local"] h1 { font-size:1.9rem; }
  html[data-theme] .hero-lead { font-size:.9rem; }

  /* 画面下の問い合わせバー：コンパクトに */
  html[data-theme] .fixed-cta { gap:6px 8px; padding:8px 10px calc(8px + env(safe-area-inset-bottom)); }
  html[data-theme] .fixed-cta-btn { min-height:48px; }
  html[data-theme] .fixed-cta-direct { grid-column:1 / -1; margin:0; white-space:nowrap; font-size:.7rem !important; }
  html[data-theme] .fixed-cta-direct span { font-size:.62rem; }
  body { padding-bottom:120px; }

  /* 見出し・余白 */
  html[data-theme] h2 { font-size:1.35rem; }
  html[data-theme] .works-head { display:block; }
  html[data-theme] .works-intro { margin-top:10px; }

  /* 施工事例ページ：写真を低めに */
  html[data-theme] .cases-page .page-hero { padding:20px 0 10px; }
  html[data-theme] .cases-hub .hub-photo { height:190px; }

  /* ご相談の流れ：番号の右に文字、線は番号の下 */
  html[data-theme] .flow-item { padding:0 0 22px 58px; min-height:60px; }
  html[data-theme] .flow-num { position:absolute; left:0; top:0; }
  html[data-theme] .flow-item h3 { margin:8px 0 4px; }
  html[data-theme] .flow-item::before { left:20px; top:48px; bottom:0; width:2px; height:auto; right:auto; }

  /* 詳細ページ */
  html[data-theme] .detail-body { padding:20px 0 48px; }
  html[data-theme] .detail-grid { gap:22px; }
  html[data-theme] .detail-photos { gap:8px; margin-top:16px; }
  html[data-theme] .detail-info { padding:22px 20px; }

  /* 写真の拡大表示 */
  .lightbox { padding:12px; }
  .lightbox figure img { max-height:calc(100vh - 160px); }
}

/* =========================================================
   スマホ表示の調整（2回目）
   ========================================================= */
.gallery-more { display:none; }
@media (max-width:820px){
  /* 全体の余白を詰める */
  html[data-theme] .works, html[data-theme] .category, html[data-theme] .intro, html[data-theme] .services,
  html[data-theme] .promise, html[data-theme] .greeting, html[data-theme] .area, html[data-theme] .company,
  html[data-theme] .flow, html[data-theme] .site-gallery, html[data-theme] .contact { padding-top:52px !important; padding-bottom:52px !important; }
  html[data-theme] .section-copy, html[data-theme] p { font-size:.9rem; }

  /* トップ：ボタンを少し小さく */
  html[data-theme] .hero .btn { min-height:50px; }

  /* 現場の様子（トップ）：6枚だけ見せて「もっと見る」 */
  #gallery .gallery-item:nth-child(n+7) { display:none; }
  .gallery-more { display:flex; justify-content:center; margin-top:20px; }
  html[data-theme] .gallery-filter { flex-wrap:nowrap; overflow-x:auto; padding-bottom:4px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  html[data-theme] .gallery-filter::-webkit-scrollbar { display:none; }
  html[data-theme] .gallery-chip { flex:0 0 auto; }
  html[data-theme] .gallery-item figcaption { font-size:.72rem; padding:8px 10px; }

  /* 2つの専門工事：写真を低めに、余白を詰める */
  html[data-theme] .cat-photo { aspect-ratio:16/8; }
  html[data-theme] .cat-body { gap:10px; }
  html[data-theme] .cat-defs div { padding:10px 12px; }

  /* 症状チェック：2列のボタンに */
  html[data-theme] .intro-photo { min-height:200px; }
  html[data-theme] .symptoms { grid-template-columns:1fr 1fr; gap:8px; }
  html[data-theme] .symptom { padding:14px 12px; }
  html[data-theme] .symptom b { font-size:.88rem; }
  html[data-theme] .symptom span { font-size:.72rem; line-height:1.5; }
  html[data-theme] .symptom-result { padding:16px; }

  /* 工事内容：カードをコンパクトに */
  html[data-theme] .service-card { min-height:0; padding:20px; gap:12px; }
  html[data-theme] .service-card > div { display:grid; grid-template-columns:44px 1fr; column-gap:14px; align-items:start; }
  html[data-theme] .service-icon { width:44px; height:44px; margin:0; grid-row:span 2; }
  html[data-theme] .service-card h3 { margin:4px 0 4px; font-size:1.05rem; }
  html[data-theme] .service-card ul { padding-top:10px; }
  html[data-theme] .service-no { font-size:.7rem; }

  /* こだわり：写真を低めに */
  html[data-theme] .promise-visual { min-height:260px !important; }

  /* 代表挨拶：写真を小さめ、資格・年数を横並び */
  html[data-theme] .greeting-photo { max-width:none; aspect-ratio:4/3; margin-bottom:24px; }
  html[data-theme] .profile-list { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  html[data-theme] .profile-list div:first-child { grid-column:1 / -1; }
  html[data-theme] .profile-list div { padding:12px 14px; margin:0; }
  html[data-theme] .profile-list dd { font-size:1rem; }
  html[data-theme] .greeting-sign strong { font-size:1.2rem; }

  /* お問い合わせ */
  html[data-theme] .contact-card { padding:22px 20px; }
  html[data-theme] .contact-card > a[href^="tel"] { font-size:1.7rem; }
}

.gallery-more .btn { background:#fff; color:var(--ink); border:1.5px solid var(--ink); text-shadow:none; }
html[data-theme="local"] .gallery-more .btn-ghost { background:#fff; color:var(--ink); border:1.5px solid var(--ink); text-shadow:none; }
