/* =========================================================
   株式会社大真（DAISHIN）コーポレートサイト
   デザイン：白 × 木のナチュラル
   ========================================================= */

:root {
  --bg:        #faf8f4;   /* 温かみのある白 */
  --bg-soft:   #f1ece3;   /* 淡いアイボリー */
  --wood:      #a87f57;   /* 木目アクセント */
  --wood-dark: #8a6643;
  --sage:      #7c8a6c;   /* 落ち着いたグリーン */
  --sage-dark: #61705221;
  --ink:       #3a3631;   /* 文字 */
  --ink-soft:  #6f685f;   /* 補助テキスト */
  --line:      #e3dccf;
  --white:     #ffffff;
  --radius:    14px;
  --shadow:    0 8px 30px rgba(80, 64, 45, .08);
  --maxw:      1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { opacity: .7; }

.mincho {
  font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }

.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .en {
  display: block; font-size: 13px; letter-spacing: .28em;
  color: var(--wood); font-weight: 600; margin-bottom: 14px; text-transform: uppercase;
}
.sec-head .ja {
  font-size: clamp(24px, 4vw, 34px); font-weight: 700; letter-spacing: .04em;
}
.sec-head .lead { margin-top: 18px; color: var(--ink-soft); font-size: 15px; }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: baseline; gap: 10px; }
.logo__mark { font-size: 25px; font-weight: 700; letter-spacing: .14em; }
.logo__mark b { color: var(--wood); }
.logo__sub { font-size: 11px; letter-spacing: .24em; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14px; letter-spacing: .04em; font-weight: 500; }
.nav a.is-active { color: var(--wood); }
.nav__cta {
  background: var(--wood); color: #fff !important; padding: 11px 22px;
  border-radius: 999px; font-weight: 600; font-size: 13px;
}
.nav__cta:hover { opacity: 1; background: var(--wood-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px; border-radius: 999px; font-weight: 600; font-size: 15px;
  letter-spacing: .04em; cursor: pointer; border: 1.5px solid transparent;
}
.btn--primary { background: var(--wood); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { opacity: 1; background: var(--wood-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { opacity: 1; background: var(--ink); color: #fff; }
.btn--lg { padding: 18px 44px; font-size: 16px; }
.btn { transition: .2s; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; }
.hero__media {
  height: 78vh; min-height: 520px;
  background:
    linear-gradient(120deg, rgba(58,54,49,.42), rgba(58,54,49,.12)),
    linear-gradient(135deg, #c9b79c 0%, #a87f57 45%, #7c8a6c 100%);
  display: flex; align-items: center;
}
.hero__copy { color: #fff; }
.hero__copy .catch {
  font-size: clamp(28px, 5.4vw, 56px); font-weight: 700; line-height: 1.5;
  letter-spacing: .04em; text-shadow: 0 2px 24px rgba(0,0,0,.18);
}
.hero__copy .sub {
  margin-top: 24px; font-size: clamp(14px, 2vw, 18px); line-height: 2;
  text-shadow: 0 2px 18px rgba(0,0,0,.25); max-width: 560px;
}
.hero__btns { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__btns .btn--ghost { border-color: #fff; color: #fff; }
.hero__btns .btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---------- 画像プレースホルダー ---------- */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #d8cab4, #b39a78);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); font-size: 13px; letter-spacing: .1em;
  aspect-ratio: 4 / 3;
}
.ph::after {
  content: attr(data-label); padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.6); border-radius: 6px;
}
.ph--green { background: linear-gradient(135deg, #9aa68b, #6f7d60); }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--tall { aspect-ratio: 3 / 4; }

/* ---------- 強み（3カラム） ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 32px; text-align: center; transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 60px; height: 60px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.card h3 { font-size: 19px; margin-bottom: 12px; letter-spacing: .04em; }
.card p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 数字で語る家 ---------- */
.perf { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.perf__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.stat .num {
  font-size: 40px; font-weight: 700; color: var(--wood); line-height: 1.1;
  font-family: "Shippori Mincho B1", serif;
}
.stat .num small { font-size: 18px; }
.stat .label { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* ---------- 施工事例 ギャラリー ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: .25s; }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work__body { padding: 20px 22px 26px; }
.work__cat { font-size: 12px; color: var(--wood); font-weight: 600; letter-spacing: .1em; }
.work__title { font-size: 17px; margin: 8px 0 6px; }
.work__meta { font-size: 13px; color: var(--ink-soft); }

/* ---------- 家づくりの流れ ---------- */
.flow { max-width: 760px; margin: 0 auto; }
.flow__step {
  display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 32px 0;
  border-bottom: 1px dashed var(--line); align-items: start;
}
.flow__step:last-child { border-bottom: 0; }
.flow__no {
  font-family: "Shippori Mincho B1", serif; font-size: 17px; font-weight: 700;
  color: #fff; background: var(--sage); width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-direction: column; line-height: 1.2;
}
.flow__no small { font-size: 10px; opacity: .8; }
.flow__step h3 { font-size: 20px; margin-bottom: 8px; }
.flow__step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- バナー（CTA帯） ---------- */
.cta-band {
  background:
    linear-gradient(120deg, rgba(58,54,49,.5), rgba(58,54,49,.2)),
    linear-gradient(135deg, #a87f57, #7c8a6c);
  color: #fff; text-align: center; padding: 80px 24px;
}
.cta-band h2 { font-size: clamp(22px, 3.6vw, 32px); font-weight: 700; letter-spacing: .04em; }
.cta-band p { margin: 18px 0 32px; opacity: .95; }
.cta-band .btn--primary { background: #fff; color: var(--wood-dark); }
.cta-band .btn--primary:hover { background: var(--bg-soft); }

/* ---------- テーブル（会社概要） ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 20px 8px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.table th { width: 200px; font-weight: 600; color: var(--ink); }
.table td { color: var(--ink-soft); }

/* ---------- フォーム ---------- */
.form { max-width: 720px; margin: 0 auto; }
.form__row { margin-bottom: 26px; }
.form__row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.form__row label .req { color: #c0654a; font-size: 12px; margin-left: 8px; }
.form__row input, .form__row textarea, .form__row select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: var(--white); color: var(--ink);
}
.form__row input:focus, .form__row textarea:focus, .form__row select:focus {
  outline: none; border-color: var(--wood);
}
.form__note { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.form__submit { text-align: center; margin-top: 12px; }

/* ---------- お問い合わせ手段カード ---------- */
.contact-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.way { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 26px; text-align: center; }
.way__icon { font-size: 30px; margin-bottom: 14px; }
.way h3 { font-size: 17px; margin-bottom: 8px; }
.way p { font-size: 14px; color: var(--ink-soft); }
.way .big { font-size: 24px; font-weight: 700; color: var(--wood); font-family: "Shippori Mincho B1", serif; }

/* ---------- ページヘッダー（下層） ---------- */
.page-hero {
  background:
    linear-gradient(120deg, rgba(58,54,49,.4), rgba(58,54,49,.15)),
    linear-gradient(135deg, #c9b79c, #7c8a6c);
  color: #fff; padding: 80px 0; text-align: center;
}
.page-hero .en { display:block; font-size: 12px; letter-spacing:.3em; opacity:.9; margin-bottom:12px; }
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: .06em; }
.breadcrumb { font-size: 12.5px; color: var(--ink-soft); padding: 16px 0; }

/* ---------- フッター ---------- */
.footer { background: #322e29; color: #d8d0c4; padding: 64px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand .logo__mark { color: #fff; }
.footer__brand .logo__mark b { color: var(--wood); }
.footer__brand p { font-size: 13px; line-height: 1.9; margin-top: 16px; color: #aaa093; }
.footer h4 { font-size: 13px; letter-spacing: .1em; color: #fff; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 13.5px; }
.footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid #4a443c; text-align: center; font-size: 12px; color: #8a8175; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .cards, .gallery, .contact-ways { grid-template-columns: 1fr 1fr; }
  .perf { grid-template-columns: 1fr; gap: 32px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .cards, .gallery, .contact-ways, .footer__top { grid-template-columns: 1fr; }
  .perf__stats { grid-template-columns: 1fr 1fr; }
  .flow__step { grid-template-columns: 56px 1fr; gap: 18px; }
  .flow__no { width: 52px; height: 52px; font-size: 14px; }
  .table th { width: 120px; }
  .hero__media { height: auto; padding: 80px 0; }
}
