/* 自主制作サンプル共通の骨組み。色・書体は各サイトの site.css で変数を上書きする */
:root {
  --c-main: #1f3346; --c-accent: #f2b63c; --c-accent-ink: #1f3346; --c-bg: #f6f7f8; --c-ink: #1b2229; --c-mute: #5b6670; --c-line: #dfe3e7;
  --c-hero-ink: #fff; --font-body: 'Noto Sans JP', sans-serif; --font-head: 'Noto Sans JP', sans-serif; --font-en: 'Noto Sans JP', sans-serif;
  --radius: 4px; --head-weight: 900;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--c-ink); background: #fff; line-height: 1.85; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); }
.s-wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.s-narrow { max-width: 860px; }

/* 架空であることの表示 */
.sample-notice { margin: 0; background: #121416; color: #fff; font: 500 12.5px/1.6 'Noto Sans JP', sans-serif; text-align: center; padding: 8px 16px; letter-spacing: .02em; }
.sample-notice strong { color: #e7b48a; }
.sample-notice a { color: #e7b48a; font-weight: 700; margin-left: 8px; }

/* ヘッダー */
.s-hd { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--c-line); }
.s-hd-in { display: flex; align-items: center; gap: 24px; height: 74px; }
.s-brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; line-height: 1.25; }
.s-brand b { font-family: var(--font-head); font-size: 20px; color: var(--c-main); font-weight: var(--head-weight); }
.s-brand small { font-size: 11px; color: var(--c-mute); letter-spacing: .06em; }
.s-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
.s-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.s-nav a:hover, .s-nav a.is-active { color: var(--c-main); border-color: var(--c-accent); }
.s-tel { text-align: right; text-decoration: none; line-height: 1.2; }
.s-tel { white-space: nowrap; }
.s-tel b { display: block; font-size: 19px; color: var(--c-main); font-family: var(--font-en); }
.s-tel small { font-size: 11px; color: var(--c-mute); }
.s-hd-cta { background: var(--c-accent); color: var(--c-accent-ink); text-decoration: none; font-weight: 700; font-size: 13.5px; padding: 11px 18px; border-radius: var(--radius); white-space: nowrap; }
.s-burger { display: none; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; }
.s-burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--c-main); transition: .25s; }
.s-burger span:first-child { top: 16px; } .s-burger span:nth-child(2) { top: 22px; } .s-burger span:last-child { top: 28px; }
.s-hd.is-open .s-burger span:first-child { top: 22px; transform: rotate(45deg); }
.s-hd.is-open .s-burger span:nth-child(2) { opacity: 0; }
.s-hd.is-open .s-burger span:last-child { top: 22px; transform: rotate(-45deg); }
@media (max-width: 1300px) { .s-tel { display: none; } }
@media (max-width: 1040px) {
  .s-hd-in { height: 64px; gap: 8px; }
  .s-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 6px 20px 18px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
  .s-nav a { padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; }
  .s-hd.is-open .s-nav { display: flex; }
  .s-burger { display: block; }
  .s-tel { display: none; }
  .s-hd-cta { padding: 9px 12px; font-size: 12.5px; }
}
@media (max-width: 420px) { .s-hd-cta { display: none; } .s-brand b { font-size: 17px; } }

/* 下層ページの見出し */
.s-page-hero { position: relative; background: var(--c-main); color: var(--c-hero-ink); overflow: hidden; }
.s-page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.s-page-hero .s-wrap { position: relative; padding-top: 64px; padding-bottom: 60px; }
.s-page-hero .en { font-family: var(--font-en); letter-spacing: .2em; font-size: 12.5px; color: var(--c-accent); margin: 0; font-weight: 700; text-transform: uppercase; }
.s-page-hero h1 { font-size: clamp(26px, 3.4vw, 38px); margin: 6px 0 0; font-weight: var(--head-weight); line-height: 1.4; }
.s-page-hero p.lead { margin: 14px 0 0; max-width: 680px; opacity: .88; }
.s-crumbs { font-size: 12.5px; color: var(--c-mute); padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.s-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.s-crumbs li:not(:last-child)::after { content: '›'; margin-left: 10px; }
.s-crumbs a { text-decoration: none; }

/* セクション */
.s-sec { padding: 84px 0; }
.s-sec.alt { background: var(--c-bg); }
.s-sec.tight { padding: 56px 0; }
.s-h { margin-bottom: 36px; }
.s-h .en { font-family: var(--font-en); letter-spacing: .2em; font-size: 12px; color: var(--c-accent); margin: 0; font-weight: 700; text-transform: uppercase; }
.s-h h2 { font-size: clamp(23px, 2.8vw, 30px); margin: 4px 0 0; color: var(--c-main); line-height: 1.45; font-weight: var(--head-weight); }
.s-h p { margin: 12px 0 0; color: var(--c-mute); max-width: 720px; }
.s-h.center { text-align: center; }
.s-h.center p { margin-left: auto; margin-right: auto; }
.s-more { text-align: center; margin-top: 36px; }
.prose p { margin: 0 0 1.3em; }
.prose h2 { font-size: 24px; color: var(--c-main); margin: 2.2em 0 .8em; padding-bottom: 10px; border-bottom: 2px solid var(--c-main); }
.prose h3 { font-size: 19px; margin: 1.8em 0 .6em; padding-left: 12px; border-left: 4px solid var(--c-accent); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose > *:first-child { margin-top: 0; }

/* グリッドとカード */
.g2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card { display: block; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow .25s, transform .25s; }
a.card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 24px; }
.card-body .meta { font-size: 12.5px; color: var(--c-accent); font-weight: 700; margin: 0 0 4px; }
.card-body h3 { font-size: 18px; margin: 0 0 8px; color: var(--c-main); line-height: 1.5; }
.card-body p { font-size: 14px; color: var(--c-mute); margin: 0; }
.card-body .go { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--c-main); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 12px; padding: 2px 10px; border: 1px solid var(--c-line); border-radius: 20px; color: var(--c-mute); }

/* ボタン */
.btn { display: inline-block; padding: 15px 28px; font-weight: 700; text-decoration: none; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 15px; }
.btn-main { background: var(--c-main); color: #fff; }
.btn-accent { background: var(--c-accent); color: var(--c-accent-ink); }
.btn-line { border-color: currentColor; background: none; }
.btn + .btn { margin-left: 10px; }

/* 表 */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.tbl th, .tbl td { border-bottom: 1px solid var(--c-line); padding: 16px 14px; text-align: left; vertical-align: top; }
.tbl th { width: 190px; background: var(--c-bg); color: var(--c-main); font-weight: 700; }
.tbl.cols th { width: auto; }
.tbl.cols thead th { background: var(--c-main); color: #fff; }
.note { font-size: 12.5px; color: var(--c-mute); margin-top: 10px; }

/* 流れ */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 14px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 64px 1fr; gap: 20px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px 24px; align-items: start; }
.steps li::before { content: counter(st, decimal-leading-zero); font-family: var(--font-en); font-size: 30px; font-weight: 700; color: var(--c-accent); line-height: 1; }
.steps b { display: block; font-size: 17px; color: var(--c-main); margin-bottom: 4px; }
.steps span { color: var(--c-mute); font-size: 14.5px; }

/* よくある質問 */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 18px 22px 18px 52px; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; position: absolute; left: 20px; top: 16px; font-family: var(--font-en); color: var(--c-accent); font-size: 19px; font-weight: 700; }
.faq details p { margin: 0; padding: 0 22px 20px 52px; color: var(--c-mute); font-size: 14.5px; }
.faq-cat { font-size: 18px; color: var(--c-main); margin: 40px 0 14px; }
.faq-cat:first-child { margin-top: 0; }

/* 施工実績の絞り込み */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button { font: inherit; font-size: 13.5px; padding: 8px 18px; border: 1px solid var(--c-line); background: #fff; border-radius: 30px; cursor: pointer; }
.filter button.is-active { background: var(--c-main); color: #fff; border-color: var(--c-main); }
[data-cat].is-hidden { display: none; }

/* 実績詳細 */
.detail-img { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 36px; }
.detail-img figure { margin: 0; position: relative; }
.detail-img img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.detail-img figcaption { position: absolute; left: 12px; top: 12px; background: var(--c-main); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.detail-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0 36px; }
.detail-steps figure { margin: 0; }
.detail-steps img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); }
.detail-steps figcaption { font-size: 13px; font-weight: 700; margin-top: 6px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-line); font-size: 14px; }
.pager a { text-decoration: none; font-weight: 700; color: var(--c-main); }

/* CTA帯 */
.s-cta { background: var(--c-main); color: #fff; }
.s-cta .s-wrap { padding-top: 64px; padding-bottom: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.s-cta h2 { margin: 0 0 6px; font-size: clamp(21px, 2.6vw, 27px); }
.s-cta p { margin: 0; opacity: .85; }
.s-cta .tel { font-family: var(--font-en); font-size: 28px; font-weight: 700; display: block; line-height: 1.2; }
.s-cta .tel small { display: block; font-family: var(--font-body); font-size: 12px; opacity: .8; font-weight: 400; }
.s-cta .acts { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }

/* フォーム（見本：送信しない） */
.s-form { display: grid; gap: 20px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 36px; }
.s-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; }
.s-form em { font-style: normal; font-size: 11px; background: var(--c-accent); color: var(--c-accent-ink); padding: 1px 8px; border-radius: 2px; margin-left: 8px; }
.s-form input:not([type=checkbox]):not([type=radio]), .s-form select, .s-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg); width: 100%; font-size: 16px; }
.s-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.s-form legend { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; padding: 0; }
.s-form .opt { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }
.s-form .demo-msg { display: none; background: #fff6db; border: 1px solid #f0d58a; padding: 14px 18px; border-radius: var(--radius); font-size: 14px; }
.s-form.is-sent .demo-msg { display: block; }

/* フッター */
.s-ft { background: var(--c-main); color: rgba(255,255,255,.78); font-size: 13.5px; }
.s-ft-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 44px; }
.s-ft b.name { display: block; color: #fff; font-size: 19px; font-family: var(--font-head); margin-bottom: 10px; }
.s-ft p { margin: 0 0 6px; }
.s-ft nav { display: grid; gap: 8px; align-content: start; }
.s-ft nav a { text-decoration: none; }
.s-ft nav a:hover { color: #fff; }
.s-ft .copy { border-top: 1px solid rgba(255,255,255,.14); text-align: center; padding: 18px 20px 26px; font-size: 12px; margin: 0; }

@media (max-width: 860px) {
  .s-wrap { padding: 0 20px; }
  .s-sec { padding: 60px 0; }
  .g2, .g3, .split, .s-ft-in { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .detail-img { grid-template-columns: 1fr; }
  .tbl th { width: 110px; }
  .s-form { padding: 22px 18px; }
  .btn + .btn { margin: 10px 0 0; }
  .steps li { grid-template-columns: 46px 1fr; gap: 12px; padding: 18px; }
  .steps li::before { font-size: 24px; }
  .sample-notice { font-size: 11.5px; }
}
