/* 見本：キノエ住宅工房（住まい）
   方針：写真が主役・木と生成りの2色・明朝の見出し。影・グラデーション・左の縦棒・見出し下の説明文は使わない */
:root {
  --ink: #1f1d1a;
  --sub: #6b655d;
  --paper: #f5f2ec;
  --white: #ffffff;
  --wood: #8b6b4c;
  --line: #ddd6cb;
  --dark: #26231f;
  --mincho: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.9; letter-spacing: 0.04em; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sp { display: none; }

.sample-bar { background: var(--dark); color: #cfc8bd; font-size: 12px; text-align: center; padding: 6px 12px; letter-spacing: 0.02em; }

/* ヘッダー */
.head { position: sticky; top: 0; z-index: 10; background: rgba(245, 242, 236, 0.94); border-bottom: 1px solid var(--line); }
.head-in { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo-en { font-family: var(--en); font-size: 26px; letter-spacing: 0.18em; }
.logo-ja { font-size: 12px; color: var(--sub); letter-spacing: 0.1em; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; }
.nav a:hover { color: var(--wood); }
.head-cta { font-size: 14px; font-weight: 500; background: var(--ink); color: var(--white); padding: 9px 22px; border-radius: 2px; }
.head-cta:hover { background: var(--wood); }

/* 表紙 */
.hero { position: relative; height: min(88vh, 760px); min-height: 520px; overflow: hidden; color: var(--white); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(20, 16, 12, 0.38); }
.hero-in { position: relative; z-index: 1; max-width: 1160px; height: 100%; margin: 0 auto; padding: 0 24px 80px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-place { font-size: 14px; letter-spacing: 0.2em; margin-bottom: 16px; }
.hero-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.45; letter-spacing: 0.08em; }
.hero-btns { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.btn { display: inline-block; font-size: 14px; font-weight: 500; padding: 13px 30px; border-radius: 2px; letter-spacing: 0.08em; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-line { border: 1px solid rgba(255, 255, 255, 0.8); color: var(--white); }
.btn-line:hover { background: rgba(255, 255, 255, 0.12); }

/* 見出し */
.sec-head { margin-bottom: 40px; }
.sec-en { font-family: var(--en); font-size: 18px; color: var(--wood); letter-spacing: 0.2em; }
.sec-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(26px, 3vw, 34px); letter-spacing: 0.1em; line-height: 1.5; }

/* 施工事例 */
.works { padding: 112px 0 104px; }
.works-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.work { position: relative; overflow: hidden; background: var(--dark); }
.work img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s ease, opacity 0.6s ease; opacity: 0.94; }
.work:hover img { transform: scale(1.04); opacity: 1; }
.work-main { grid-column: span 2; grid-row: span 2; }
.work-main img { aspect-ratio: auto; }
.work-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; color: var(--white); background: rgba(20, 16, 12, 0.55); }
.work-cap h3 { font-family: var(--mincho); font-weight: 500; font-size: 16px; line-height: 1.6; letter-spacing: 0.06em; }
.work-main .work-cap h3 { font-size: 20px; }
.work-cap p { font-size: 12px; opacity: 0.85; margin-top: 2px; }

/* 私たちについて */
.about { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--white); }
.about-img img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.about-body { padding: 96px 72px; display: flex; flex-direction: column; justify-content: center; }
.about-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.7; letter-spacing: 0.08em; margin: 8px 0 24px; }
.about-text { color: var(--sub); max-width: 30em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border-top: 1px solid var(--line); }
.facts div { padding: 20px 0 0; }
.facts dt { font-size: 12px; color: var(--sub); letter-spacing: 0.1em; }
.facts dd { font-family: var(--en); font-size: 48px; line-height: 1.2; }
.facts dd span { font-family: var(--sans); font-size: 13px; margin-left: 4px; }

/* 家づくりの流れ */
.flow { padding: 112px 0; }
.flow-in { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.steps { list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.num { font-family: var(--en); font-size: 30px; color: var(--wood); line-height: 1.2; }
.steps h3 { font-family: var(--mincho); font-weight: 500; font-size: 18px; letter-spacing: 0.08em; }
.steps p { color: var(--sub); font-size: 14px; margin-top: 2px; }
.flow-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* 会社案内 */
.company { background: var(--white); padding-bottom: 112px; }
.company-img img { width: 100%; height: 440px; object-fit: cover; }
.company .wrap { margin-top: 88px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.table > div { display: grid; grid-template-columns: 9em 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.table > div:first-child { border-top: 1px solid var(--line); }
.table dt { color: var(--sub); font-size: 14px; }

/* お問い合わせ */
.contact { background: var(--dark); color: var(--white); padding: 96px 0; }
.contact-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.contact-title { font-family: var(--mincho); font-weight: 500; font-size: clamp(26px, 3vw, 36px); letter-spacing: 0.1em; line-height: 1.6; }
.contact-ways { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.tel { font-family: var(--en); font-size: 38px; letter-spacing: 0.06em; display: flex; align-items: baseline; gap: 12px; }
.tel span { font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; color: #bdb5a8; }

/* フッター */
.foot { background: #1b1916; color: #a8a095; padding: 28px 0; font-size: 12px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; }
.foot-logo { font-family: var(--en); font-size: 20px; letter-spacing: 0.18em; color: #e8e2d8; }
.foot-logo span { font-family: var(--sans); font-size: 11px; letter-spacing: 0.1em; margin-left: 10px; color: #a8a095; }

/* スマホ */
@media (max-width: 860px) {
  .nav { display: none; }
  .head-in { height: 60px; justify-content: space-between; }
  .logo-en { font-size: 22px; }
  .hero { height: 78vh; min-height: 480px; }
  .hero-in { padding-bottom: 56px; }
  .works, .flow { padding: 72px 0; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .work-main { grid-column: span 2; grid-row: auto; }
  .work-main img { aspect-ratio: 4 / 3; }
  .work-cap { padding: 12px 14px; }
  .work-cap h3 { font-size: 13px; }
  .work-main .work-cap h3 { font-size: 16px; }
  .about { grid-template-columns: 1fr; }
  .about-img img { min-height: 0; aspect-ratio: 4 / 3; }
  .about-body { padding: 56px 24px; }
  .facts dd { font-size: 38px; }
  .flow-in { grid-template-columns: 1fr; gap: 40px; }
  .flow-img img { aspect-ratio: 4 / 3; }
  .company-img img { height: 260px; }
  .company .wrap { grid-template-columns: 1fr; gap: 0; margin-top: 56px; }
  .table > div { grid-template-columns: 6.5em 1fr; }
  .contact { padding: 64px 0; }
  .tel { font-size: 30px; }
  .sp { display: inline; }
}
@media (max-width: 480px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-main { grid-column: auto; }
  .work-cap h3 { font-size: 15px; }
}

/* アニメーション（JSが動く時だけ・動きを減らす設定では動かさない） */
@media (prefers-reduced-motion: no-preference) {
  body.js [data-r] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  body.js [data-r].in { opacity: 1; transform: none; }
  [data-r][data-d="1"] { transition-delay: 0.1s; }
  [data-r][data-d="2"] { transition-delay: 0.2s; }
  [data-r][data-d="3"] { transition-delay: 0.3s; }
  [data-r][data-d="4"] { transition-delay: 0.4s; }
  body.js [data-mask] { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(0.7, 0, 0.2, 1); }
  body.js [data-mask].in { clip-path: inset(0 0 0 0); }
  body.js [data-mask] img { transform: scale(1.12); transition: transform 2.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
  body.js [data-mask].in img { transform: scale(1); }
  body.js .work.in:hover img, body.js .work:hover img { transform: scale(1.04); }
  .hero-img { animation: heroZoom 14s ease-out both; }
  @keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
}
