/* 西田工務店 LP — 写真1枚（Pexels）以外は外部素材なし。図はHTML内の手書きSVG */

:root {
  --ink: #1f2a30;
  --ink-soft: #58666f;
  --bg: #fdfbf7;
  --bg-alt: #f3ede2;
  --dark: #123a34;
  --dark-2: #0d2c28;
  --line: #e2d7c5;
  --green: #146b5c;
  --green-d: #0f5348;
  --wood: #c8762b;
  --wood-d: #a85c1c;
  --white: #ffffff;
  --red: #c05b4d;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 78px; /* 追従バーのぶん */
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--green-d); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.br-sp { display: inline; }

/* SVG内の文字 */
.pin { fill: #fff; font-size: 15px; font-weight: 700; text-anchor: middle; font-family: system-ui, sans-serif; }
.rm { fill: #9a8f7e; font-size: 14px; text-anchor: middle; font-family: system-ui, sans-serif; }
.dim { fill: #a85c1c; font-size: 15px; font-weight: 700; font-family: system-ui, sans-serif; }
.dim2 { fill: #146b5c; font-size: 14px; font-weight: 700; font-family: system-ui, sans-serif; }
.dim3 { fill: #a08a63; font-size: 14px; text-anchor: middle; font-family: system-ui, sans-serif; }
.dim4 { fill: #c05b4d; font-size: 14px; font-weight: 700; text-anchor: middle; font-family: system-ui, sans-serif; }

/* ── ヘッダー ── */
.bar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.bar-brand { display: flex; flex-direction: column; line-height: 1.4; }
.brand { font-size: 1.15rem; font-weight: 800; letter-spacing: .08em; }
.brand-sub { font-size: .72rem; color: var(--ink-soft); }
.bar-tel {
  display: flex; flex-direction: column; align-items: flex-end;
  text-decoration: none; line-height: 1.35;
  border: 1px solid var(--line); border-radius: 10px; padding: 5px 12px; background: #faf6ee;
}
.bar-tel-lb { font-size: .66rem; font-weight: 700; color: var(--green); letter-spacing: .08em; }
.bar-tel-ph { font-size: .78rem; color: #9b9086; }

/* ── ヒーロー ── */
.hero {
  position: relative;
  padding: 52px 0 60px;
  overflow: hidden;
  background: #f7f0e4;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,252,246,.94) 0%, rgba(255,252,246,.88) 52%, rgba(255,252,246,.62) 100%);
}
.hero-in { position: relative; display: block; }
.hero-credit { margin: 20px 0 0; font-size: .72rem; color: var(--ink-soft); text-align: right; }
.eyebrow {
  margin: 0 0 12px; font-size: .78rem; font-weight: 800; color: var(--green);
  letter-spacing: .14em; display: inline-block;
  border: 1px solid #bcd6cf; background: #eef6f3; border-radius: 999px; padding: 3px 14px;
}
.hero h1 { margin: 0 0 20px; font-size: 1.95rem; line-height: 1.42; letter-spacing: .01em; font-weight: 800; }
.hero h1 em {
  font-style: normal; color: var(--green-d);
  background: linear-gradient(transparent 62%, #f7d9a8 62%);
  padding: 0 2px;
}
.lead { margin: 0 0 24px; font-size: 1.02rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.btn {
  display: inline-block; background: var(--green); color: var(--white); text-decoration: none;
  font-weight: 800; padding: 15px 28px; border-radius: 999px;
  box-shadow: 0 4px 0 var(--green-d); letter-spacing: .02em;
}
.btn-ghost {
  background: var(--white); color: var(--green-d);
  border: 2px solid #bcd6cf; box-shadow: 0 4px 0 #dfe9e5; padding: 13px 24px;
}
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-points li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 14px; font-size: .82rem; font-weight: 700;
}
.hero-points li::before { content: "✓ "; color: var(--green); font-weight: 800; }

/* ── セクション共通 ── */
.sec { padding: 56px 0; }
.sec-alt { background: var(--bg-alt); }
.sec-dark { background: var(--dark); color: #eaf2ef; }
.sec-dark a { color: #a8dcd0; }
.sec h2 {
  margin: 0 0 6px; font-size: 1.45rem; line-height: 1.5; text-align: center; font-weight: 800;
  letter-spacing: .01em;
}
.sec h2::after {
  content: ""; display: block; width: 50px; height: 5px; border-radius: 3px;
  background: var(--wood); margin: 16px auto 0;
}
.sec-dark h2::after { background: #4fae9b; }
.h2-left { text-align: left; font-size: 1.35rem; }
.h2-left::after { margin-left: 0; }
.sec-lead { margin: 22px 0 0; text-align: center; color: var(--ink-soft); }
.sec-lead-w { color: #c3d8d2; }
.badge {
  display: inline-block; margin: 0 0 10px; font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; color: var(--wood-d); background: #fbeedb;
  border-radius: 999px; padding: 3px 14px;
}
.note-line { margin: 28px 0 0; text-align: center; font-size: 1.02rem; }
.small-note { font-size: .84rem; color: var(--ink-soft); }

/* ── 比較 ── */
.cmp { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
.cmp-col { border-radius: 16px; padding: 22px 20px; }
.cmp-h { margin: 0 0 14px; font-weight: 800; font-size: 1.02rem; text-align: center; }
.cmp-col ul { margin: 0; padding: 0; list-style: none; }
.cmp-col li { padding-left: 26px; position: relative; margin-bottom: 10px; font-size: .95rem; line-height: 1.75; }
.cmp-other { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #b9c9c4; }
.cmp-other li::before { content: "–"; position: absolute; left: 6px; color: #7d938d; font-weight: 800; }
.cmp-us { background: var(--white); color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.cmp-us .cmp-h { color: var(--green-d); }
.cmp-us li::before {
  content: ""; position: absolute; left: 4px; top: .72em; width: 11px; height: 6px;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg);
}

/* ── カード3枚 ── */
.cards3 { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; }
.card h3 { margin: 14px 0 8px; font-size: 1.06rem; }
.card p { margin: 0; font-size: .94rem; color: var(--ink-soft); }
.card-c { text-align: center; }
.card-c p { text-align: left; }
.ico svg { width: 52px; height: 52px; }
.shape { width: 100%; max-width: 180px; }

/* ── 設置マップ ── */
.mapgrid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
.mapfig svg { display: block; width: 100%; border-radius: 16px; box-shadow: 0 8px 24px rgba(31,42,48,.08); }
.maplist { list-style: none; margin: 0; padding: 0; }
.maplist li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed #d8cbb6; }
.maplist li:last-child { border-bottom: 0; }
.mn {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: .92rem;
}
.maplist h3 { margin: 0 0 2px; font-size: 1.02rem; }
.maplist p { margin: 0; font-size: .92rem; color: var(--ink-soft); }

/* ── 2分割 ── */
.split { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 30px; align-items: center; }
.split-text p { margin: 0 0 16px; }
.split-text p:last-child { margin-bottom: 0; }
.creed { font-size: 1.08rem; color: var(--green-d); }
.figbox svg { display: block; width: 100%; }

/* ── 写真枠 ── */
.photo { margin: 0; }
.photo-box {
  background: repeating-linear-gradient(45deg, #efe7d9, #efe7d9 12px, #e7ded0 12px, #e7ded0 24px);
  border: 2px dashed #c4b7a2; border-radius: 16px; min-height: 240px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 20px;
}
.photo-box-s { min-height: 170px; }
.photo-img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 16px; box-shadow: 0 8px 24px rgba(31,42,48,.10);
  filter: saturate(.88);
}
.cap-note { color: #9b9086; }
.photo-img-p { aspect-ratio: 3 / 2; object-position: 50% 35%; }
.price-sub { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.price-val { font-weight: 800; color: var(--green-d); font-size: 1.08rem; white-space: nowrap; }
.photo-label {
  background: var(--white); border-radius: 999px; padding: 3px 14px;
  font-size: .74rem; font-weight: 800; color: var(--ink-soft); letter-spacing: .12em;
}
.photo-box p { margin: 0; font-size: .94rem; font-weight: 700; color: #7c6f5c; }
.photo figcaption { margin-top: 8px; font-size: .8rem; color: var(--ink-soft); text-align: center; }

/* ── 数字カード ── */
.numcard {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; padding: 24px 18px; text-align: center;
}
.num { margin: 0; font-size: 2.7rem; font-weight: 800; line-height: 1.15; color: #7fd3c1; }
.num span { font-size: 1.05rem; margin-left: 4px; }
.num-s { font-size: 1.9rem; }
.numlabel { margin: 8px 0 0; font-size: .88rem; color: #bcd2cc; }
.warn {
  margin: 26px auto 0; max-width: 720px; text-align: center;
  background: rgba(200,118,43,.16); border: 1px solid rgba(240,180,110,.45);
  border-radius: 14px; padding: 16px 18px; font-size: .95rem;
}
.note {
  margin: 22px 0 0; font-size: .84rem; color: var(--ink-soft);
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.note-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #b6cbc5; }

/* ── 流れ ── */
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; }
.stepno {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800;
}
.steps h3 { margin: 12px 0 6px; font-size: 1.04rem; }
.steps p { margin: 0; font-size: .94rem; color: var(--ink-soft); }

/* ── 料金 ── */
.price {
  margin: 28px auto 0; max-width: 640px; background: var(--white);
  border: 1px solid var(--line); border-radius: 16px; padding: 8px 20px 20px;
}
.price-row {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline;
  justify-content: space-between; padding: 16px 0; border-bottom: 1px dashed #ded2be;
}
.price-item { font-weight: 700; }
.price-note { margin: 16px 0 0; font-size: .82rem; color: var(--ink-soft); }
.ph {
  display: inline-block; color: #9b9086; background: #f4f0e9;
  border: 1px dashed #cfc3b0; border-radius: 8px; padding: 3px 12px; font-size: .88rem;
}

/* ── FAQ ── */
.faq { margin: 30px 0 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 8px 20px 22px; }
.faq dt { margin-top: 20px; font-weight: 700; padding-left: 30px; position: relative; }
.faq dt::before { content: "Q"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.faq dd { margin: 6px 0 0; padding-left: 30px; position: relative; color: var(--ink-soft); font-size: .94rem; }
.faq dd::before { content: "A"; position: absolute; left: 0; color: var(--wood); font-weight: 800; }

/* ── 連絡先 ── */
.contact-box {
  margin: 28px auto 0; max-width: 640px; background: var(--white);
  border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px;
  box-shadow: 0 8px 24px rgba(31,42,48,.06);
}
.contact-name { margin: 0 0 18px; font-size: 1.14rem; font-weight: 800; text-align: center; }
.contact-list { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px 18px; }
.contact-list dt { font-size: .78rem; font-weight: 800; color: var(--green); letter-spacing: .06em; }
.contact-list dd { margin: 0 0 14px; }
.contact-note { margin: 14px 0 0; font-size: .8rem; color: var(--ink-soft); }

/* ── フッター ── */
.foot { background: var(--dark-2); color: #dfeae7; padding: 34px 0; }
.foot-brand { margin: 0 0 4px; font-weight: 800; letter-spacing: .08em; font-size: 1.05rem; }
.foot-sub { margin: 0 0 14px; font-size: .82rem; color: #9fbab4; }
.foot-note { margin: 0; font-size: .78rem; color: #86a49e; line-height: 1.8; }

/* ── 追従バー ── */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(31,42,48,.1);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.sticky-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticky-text { display: flex; flex-direction: column; line-height: 1.4; }
.sticky-lb { font-weight: 800; font-size: .95rem; }
.sticky-sub { font-size: .74rem; color: var(--ink-soft); }
.sticky-btn {
  background: var(--wood); color: #fff; text-decoration: none; font-weight: 800;
  padding: 13px 26px; border-radius: 999px; box-shadow: 0 3px 0 var(--wood-d); white-space: nowrap;
}

/* ── 広い画面 ── */
@media (min-width: 760px) {
  body { padding-bottom: 84px; }
  .br-sp { display: none; }
  .hero { padding: 96px 0 112px; }
  .hero-text { max-width: 620px; }
  .hero-bg::after { background: linear-gradient(90deg, rgba(255,252,246,.97) 0%, rgba(255,252,246,.94) 44%, rgba(255,252,246,.58) 72%, rgba(255,252,246,.22) 100%); }
  .hero h1 { font-size: 2.7rem; }
  .sec { padding: 84px 0; }
  .sec h2 { font-size: 1.95rem; }
  .h2-left { font-size: 1.7rem; }
  .cards3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cmp { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cmp-col { padding: 28px 26px; }
  .mapgrid { grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
  .split { grid-template-columns: 1fr 1fr; gap: 44px; }
  .split-rev .figbox { order: 2; }
  .split-rev .split-text { order: 1; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .contact-list { grid-template-columns: auto 1fr; align-items: baseline; }
  .contact-list dd { margin-bottom: 10px; }
  .price-row { padding: 18px 0; }
}

@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
