/* =========================================
   CHESTNUTT — shared stylesheet
   ========================================= */

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

:root {
  --cream:    #F7F3EE;
  --beige:    #EDE5D8;
  --sand:     #D4C5B0;
  --chestnut: #3D2B1F;
  --brown:    #6B4C3B;
  --gold:     #9C7A3C;
  --rose:     #C9967A;
  --ink:      #2C2420;

  --ff-mincho: 'Shippori Mincho', serif;
  --ff-sans:   'Noto Sans JP', sans-serif;
  --ff-latin:  'Montserrat', sans-serif;

  --w: min(92%, 1120px);
  --sv: clamp(72px, 9vw, 120px);
}

html  { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul, li { list-style: none; }

.container { width: var(--w); margin-inline: auto; }

/* ── ヘッダー ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 72px;
  background: rgba(247,243,238,.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(61,43,31,.07);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 画像ロゴ */
.logo img {
  height: 26px;
  width: auto;
  mix-blend-mode: multiply;
  filter: contrast(1.2);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-list a {
  font-family: var(--ff-latin);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--brown);
  text-transform: uppercase;
  position: relative;
  transition: color .2s;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .25s;
}

.nav-list a:hover          { color: var(--chestnut); }
.nav-list a:hover::after   { transform: scaleX(1); }
.nav-list a.active         { color: var(--chestnut); }
.nav-list a.active::after  { transform: scaleX(1); }

.nav-contact {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--cream) !important;
  background: var(--chestnut);
  padding: 9px 20px;
  border-radius: 2px;
  transition: background .2s !important;
}
.nav-contact:hover { background: var(--brown) !important; }
.nav-contact::after { display: none !important; }

/* モバイルトグル */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--chestnut);
  transition: transform .25s, opacity .25s;
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; z-index: 510; position: relative; }
  .header-inner > nav { display: contents; }

  /* 背景カバー：画面全体を確実に覆う独立要素 */
  .nav-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #FFFFFF;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 400;
  }
  .nav-open .nav-cover {
    opacity: 1;
    visibility: visible;
  }

  /* メニュー本体 */
  .nav-list {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 28px;
    padding: 120px 24px 40px;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 500;
  }
  .nav-list a {
    font-size: 15px;
    color: var(--chestnut);
    padding: 10px 0;
    width: 100%;
    text-align: center;
  }
  .nav-contact {
    margin-top: 12px;
    padding: 14px 36px !important;
    font-size: 12px !important;
  }
  .nav-open .nav-list { transform: translateX(0); }
  .nav-open { overflow: hidden; }
}

/* ── セクション共通 ── */
.label {
  font-family: var(--ff-latin);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.sec-title {
  font-family: var(--ff-mincho);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 500;
  color: var(--chestnut);
  line-height: 1.5;
  letter-spacing: .08em;
}

.rule {
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 20px 0;
}
.rule--center { margin-inline: auto; }

/* ── スクロール reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── フッター（シンプル版） ── */
.footer {
  background: var(--ink);
  padding: 28px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.footer-nav a {
  font-family: var(--ff-latin);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(247,243,238,.38);
  transition: color .2s;
}
.footer-nav a:hover { color: rgba(247,243,238,.75); }

.footer-copy {
  font-family: var(--ff-latin);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(247,243,238,.22);
}

@media (max-width: 767px) {
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
}

/* ── 共通ボタン ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-latin);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn svg { flex-shrink: 0; }

.btn--dark {
  color: var(--cream);
  background: var(--chestnut);
  padding: 16px 36px;
  border: 1px solid var(--chestnut);
}
.btn--dark:hover { background: var(--brown); border-color: var(--brown); }

.btn--outline-light {
  color: var(--cream);
  background: transparent;
  padding: 13px 26px;
  border: 1px solid rgba(247,243,238,.55);
}
.btn--outline-light:hover { background: rgba(247,243,238,.1); border-color: var(--cream); }

.btn--outline-dark {
  color: var(--chestnut);
  background: transparent;
  padding: 13px 26px;
  border: 1px solid rgba(61,43,31,.35);
}
.btn--outline-dark:hover { background: var(--beige); border-color: var(--chestnut); }

/* ── 矢印 ── */
.arr {
  display: block;
  width: 16px; height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
