/* コノキ工務店 — コンセプト「年に8棟だけ、ていねいに。」 実直さを罫線と番号で。あたたかい白・深緑・木の色。 */
:root { --bg: #F5F2EC; --green: #2F4A3A; --wood: #B98B5A; --ink: #23261F; --line: rgba(35, 38, 31, .18); --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif; --sans: "Noto Sans JP", "Hiragino Sans", sans-serif; --gut: clamp(20px, 5vw, 72px); --max: 1160px; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/2 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.6; letter-spacing: .04em; }

.hd { display: flex; align-items: center; gap: 28px; padding: 16px var(--gut); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .1em; }
.mark { width: 26px; height: 26px; background: var(--green); clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%); }
.hd nav { margin-left: auto; display: flex; gap: clamp(14px, 2.4vw, 32px); font-size: 14px; font-weight: 500; }
.hd nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.hd nav a:hover { border-color: var(--wood); }
.hd-btn { padding: 8px 22px; background: var(--green); color: var(--bg); font-weight: 700; font-size: 14px; }

.hero { position: relative; height: min(84vh, 760px); min-height: 520px; }
.hero-img { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 28, 22, .78) 0%, rgba(20, 28, 22, .35) 46%, rgba(20, 28, 22, 0) 70%); }
.hero-copy { position: absolute; z-index: 2; left: var(--gut); bottom: clamp(36px, 7vw, 88px); color: #fff; max-width: 520px; }
.hero-no { display: inline-flex; align-items: baseline; gap: 8px; padding: 2px 18px 6px; border: 1px solid rgba(255, 255, 255, .7); }
.hero-no b { font-family: var(--serif); font-size: 56px; line-height: 1; }
.hero-no span { font-size: 14px; letter-spacing: .2em; }
.hero h1 { margin-top: 22px; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.45; }
.hero-copy > p:last-child { margin-top: 18px; }

.sec-hd { display: flex; align-items: center; gap: 20px; }
.sec-hd .no { font-family: var(--serif); font-size: 15px; color: var(--wood); padding-right: 20px; border-right: 1px solid var(--line); letter-spacing: .1em; }
.sec-hd h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.promise, .flow { max-width: var(--max); margin-inline: auto; padding: clamp(72px, 10vw, 130px) var(--gut); }
.promise ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border: 1px solid var(--line); background: #FBF9F5; }
.promise li { padding: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line); }
.promise li:first-child { border-left: 0; }
.promise h3 { font-size: 1.3rem; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px solid var(--wood); }
.promise p { font-size: 15px; }

.craft { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); background: var(--green); color: var(--bg); }
.craft figure { min-height: 380px; }
.craft > div { padding: clamp(40px, 7vw, 100px) clamp(24px, 4vw, 56px); align-self: center; }
.quote { font-family: var(--serif); font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.8; margin-bottom: 20px; }

.flow ol { margin-top: 44px; position: relative; }
.flow ol::before { content: ""; position: absolute; left: 148px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.flow li { display: grid; grid-template-columns: 120px minmax(0, 260px) minmax(0, 1fr); column-gap: 56px; align-items: baseline; padding: 20px 0; position: relative; }
.flow li::before { content: ""; position: absolute; left: 143px; top: 34px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--green); }
.flow time { font-size: 13px; color: var(--wood); font-weight: 700; letter-spacing: .08em; text-align: right; }
.flow h3 { font-size: 1.2rem; }
.flow p { font-size: 15px; }

.cost { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 72px); align-items: center; max-width: var(--max); margin-inline: auto; padding: 0 var(--gut) clamp(72px, 10vw, 130px); }
.cost-body > p { margin-top: 24px; }
.cost dl { margin-top: 28px; border-top: 1px solid var(--line); }
.cost dl div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cost dt { font-weight: 700; font-size: 14px; color: var(--green); }
.cost dd { font-family: var(--serif); font-size: 1.1rem; }
.cost small { display: block; font-family: var(--sans); font-size: 12px; opacity: .7; }
.cost figure { aspect-ratio: 4 / 5; }

.event { background: #E9E2D4; padding: clamp(64px, 9vw, 120px) var(--gut); text-align: center; }
.event-tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--bg); background: var(--wood); padding: 2px 18px; }
.event h2 { margin-top: 18px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.event > p:not(.event-tag) { max-width: 36em; margin: 16px auto 0; }
.event ul { display: inline-grid; gap: 0; margin-top: 30px; text-align: left; border-top: 1px solid var(--line); min-width: min(100%, 460px); }
.event li { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.event b { display: inline-block; width: 4.5em; color: var(--green); }

.contact { padding: clamp(72px, 10vw, 130px) var(--gut); text-align: center; }
.contact h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.contact p { margin-top: 12px; }
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.btn { min-width: 240px; padding: 17px 30px; background: var(--green); color: var(--bg); font-weight: 700; letter-spacing: .1em; border: 2px solid var(--green); transition: background .25s, color .25s; }
.btn:hover { background: transparent; color: var(--green); }
.btn-line { background: transparent; color: var(--green); }
.btn-line:hover { background: var(--green); color: var(--bg); }

.ft { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; padding: 32px var(--gut); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.8; }

@media (max-width: 860px) {
  .hd nav { display: none; }
  .hd-btn { margin-left: auto; }
  .hero { height: min(78vh, 640px); }
  .hero::after { background: linear-gradient(0deg, rgba(20, 28, 22, .82) 0%, rgba(20, 28, 22, .3) 55%, rgba(20, 28, 22, 0) 80%); }
  .promise ul, .craft, .cost { grid-template-columns: 1fr; }
  .promise li { border-left: 0; border-top: 1px solid var(--line); }
  .promise li:first-child { border-top: 0; }
  .craft figure { min-height: 0; aspect-ratio: 3 / 2; }
  .flow ol::before { left: 5px; }
  .flow li { grid-template-columns: 1fr; padding-left: 30px; row-gap: 2px; }
  .flow li::before { left: 0; top: 30px; }
  .flow time { text-align: left; }
  .cost dl div { grid-template-columns: 1fr; gap: 2px; }
  .cost figure { aspect-ratio: 3 / 2; }
  .btn { min-width: 0; flex: 1 1 220px; }
}

h1, h2, h3, .quote { text-wrap: balance; word-break: auto-phrase; }
