/* 制作例：杉野工務店（架空） */
:root {
  --wood: #8b5a2b; --wood-d: #6c431e; --cream: #faf6ef; --cream-2: #f3e7d3; --green: #3f5e3a; --green-d: #2e4629;
  --ink: #2b2620; --ink-2: #6a6157; --line: #e5d9c4; --sun: #f2c46d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "M PLUS 1p", "Hiragino Sans", sans-serif; font-weight: 500; line-height: 1.85; overflow-x: clip; -webkit-text-size-adjust: 100%; }
svg { display: block; width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.4; font-weight: 800; }
.bd-wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ヘッダー */
.bd-header { position: sticky; top: 34px; z-index: 50; background: #fff; border-bottom: 3px solid var(--wood); }
.bd-header__inner { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.bd-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: clamp(18px, 5vw, 22px); font-weight: 800; line-height: 1.2; }
.bd-logo svg { width: 40px; }
.bd-logo small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-2); }
.bd-header__tel { display: none; margin: 0 0 0 auto; text-align: right; font-size: 24px; font-weight: 800; color: var(--green); line-height: 1.2; }
.bd-header__tel small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-2); }
.bd-header__cta { margin-left: auto; }
@media (min-width: 900px) { .bd-header__tel { display: block; } .bd-header__cta { margin-left: 0; } }

/* ボタン */
.bd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px; border-radius: 8px; font: inherit; font-weight: 800; text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.bd-btn--wood { background: var(--wood); color: #fff; box-shadow: 0 4px 0 var(--wood-d); }
.bd-btn--wood:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--wood-d); }
.bd-btn--line { background: #fff; color: var(--wood-d); border-color: var(--wood); }
.bd-btn--lg { min-height: 60px; padding: 12px 26px; font-size: 17px; }
.bd-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ヒーロー */
.bd-hero { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); padding: 40px 0 56px; }
.bd-hero__inner { display: grid; gap: 24px; align-items: center; }
.bd-hero__inner > * { min-width: 0; }
.bd-badges { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bd-badges li { background: var(--green); color: #fff; padding: 2px 12px; border-radius: 4px; font-size: 13px; font-weight: 700; }
.bd-hero h1 { font-size: clamp(24px, 6.4vw, 46px); letter-spacing: 0.02em; }
.bd-hero h1 em { font-style: normal; color: var(--wood); background: linear-gradient(transparent 65%, var(--sun) 65%); }
.bd-hero__lead { margin: 18px 0 26px; color: var(--ink-2); max-width: 32em; }
.bd-hero__actions { display: grid; gap: 14px; }
.bd-hero__art { max-width: 520px; justify-self: center; width: 100%; }
@media (min-width: 640px) { .bd-hero__actions { grid-template-columns: repeat(2, max-content); } }
@media (min-width: 960px) { .bd-hero { padding: 72px 0 88px; } .bd-hero__inner { grid-template-columns: 1.1fr 1fr; } }

/* セクション */
.bd-section { padding: 72px 0; }
.bd-section--cream { background: var(--cream); }
.bd-section--green { background: var(--green); color: #fff; }
.bd-eyebrow { margin: 0; color: var(--wood); font-weight: 800; letter-spacing: 0.2em; font-size: 13px; }
.bd-section--green .bd-eyebrow { color: var(--sun); }
.bd-h2 { font-size: clamp(24px, 5vw, 34px); margin: 4px 0 28px; }
.bd-note { font-size: 13px; color: var(--ink-2); margin: 16px 0 0; }

/* 費用のめやす */
.bd-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .bd-jobs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .bd-jobs { grid-template-columns: repeat(3, 1fr); } }
.bd-jobs li { border: 2px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fff; }
.bd-jobs p { margin: 0; }
.bd-jobs__name { font-weight: 800; font-size: 17px; }
.bd-jobs__fee { color: var(--wood); font-size: 28px; font-weight: 800; letter-spacing: 0.02em; }
.bd-jobs__note { font-size: 13px; color: var(--ink-2); }

/* 施工事例 */
.bd-cases { display: grid; gap: 20px; }
@media (min-width: 900px) { .bd-cases { grid-template-columns: repeat(3, 1fr); } }
.bd-case { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgb(91 70 54 / 0.1); }
.bd-case__body { padding: 18px 20px 20px; }
.bd-case__place { margin: 0; font-size: 12px; color: var(--green); font-weight: 800; }
.bd-case h3 { font-size: 17px; margin: 4px 0 12px; }
.bd-case dl { margin: 0; display: flex; gap: 20px; font-size: 14px; }
.bd-case dl div { display: flex; gap: 6px; }
.bd-case dt { color: var(--ink-2); }
.bd-case dd { margin: 0; font-weight: 800; }

/* 選ばれる理由 */
.bd-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: r; }
@media (min-width: 900px) { .bd-reasons { grid-template-columns: repeat(3, 1fr); } }
.bd-reasons li { counter-increment: r; padding: 24px 22px; border-radius: 12px; background: var(--cream-2); }
.bd-reasons li::before { content: counter(r, decimal-leading-zero); display: block; font-size: 34px; font-weight: 800; color: var(--wood); line-height: 1; margin-bottom: 8px; }
.bd-reasons h3 { font-size: 19px; margin-bottom: 6px; }
.bd-reasons p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* お問い合わせ */
.bd-contact { display: grid; gap: 28px; }
.bd-contact > * { min-width: 0; }
@media (min-width: 900px) { .bd-contact { grid-template-columns: 1fr 1fr; align-items: center; } }
.bd-contact__tel { font-size: 38px; font-weight: 800; color: var(--sun); margin: 10px 0 0; line-height: 1.2; }
.bd-contact__tel small { display: block; font-size: 13px; font-weight: 500; color: rgb(255 255 255 / 0.8); }
.bd-form { background: #fff; color: var(--ink); border-radius: 14px; padding: 24px; display: grid; gap: 12px; }
.bd-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.bd-form input, .bd-form select { font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; background: var(--cream); min-width: 0; }

/* 会社案内・フッター */
.bd-dl { margin: 0; background: #fff; border-radius: 12px; padding: 4px 20px; }
.bd-dl div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bd-dl div:last-child { border-bottom: 0; }
.bd-dl dt { color: var(--ink-2); }
.bd-dl dd { margin: 0; }
.bd-footer { background: var(--ink); color: rgb(255 255 255 / 0.7); font-size: 12px; padding: 24px 0 100px; }
.bd-footer p { margin: 0; }
.bd-bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 0.97); border-top: 1px solid var(--line); }
.bd-bottombar a { display: grid; place-items: center; min-height: 48px; border-radius: 8px; font-weight: 800; text-decoration: none; border: 2px solid var(--green); color: var(--green); }
.bd-bottombar a.is-wood { background: var(--wood); border-color: var(--wood); color: #fff; }
@media (min-width: 900px) { .bd-bottombar { display: none; } .bd-footer { padding-bottom: 24px; } }
.bd-nowrap { white-space: nowrap; }
