/* ============================================
   CSS変数（デザインシステム）
============================================ */
:root {
  --color-bg:          #FBF8F0;
  --color-bg-sub:      #F1ECE2;
  --color-bg-dark:     #090706;
  --color-text:        #18130D;
  --color-text-sub:    #6F675B;
  --color-text-light:  #FFFFFF;
  --color-border:      #D8CEBC;
  --color-gold:        #A98222;
  --color-gold-light:  #D6B46A;
  --color-gold-deep:   #6F5015;
  --shadow-luxury:     0 28px 80px rgba(30, 20, 8, 0.14);
  --shadow-soft:       0 16px 48px rgba(30, 20, 8, 0.08);

  --font-main:         'Noto Sans JP', sans-serif;
  --font-en:           'Cormorant Garamond', serif;
  --font-heading:      'Shippori Mincho B1', 'Noto Serif JP', serif;

  --section-pad:       130px;
  --section-pad-sp:    70px;
  --container:         1100px;

  --ease:              cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   リセット・ベース
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background:
    linear-gradient(180deg, #fbf8f0 0%, #ffffff 42%, #f4eee3 100%);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   ナビゲーション（左ロゴ・右メニュー）
============================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(251,248,240,0.72), rgba(251,248,240,0));
  border-bottom: 1px solid rgba(169,130,34,0);
  /* 背景・ボーダーはJSでスクロール量に応じて滑らかに設定 */
}
.nav-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-brand-name {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text);
}
.nav-version {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid rgba(169,130,34,0.34);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--color-gold-deep);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}
.nav-logo {
  width: 42px;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(111,80,21,0.24));
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-menu a {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
  text-transform: uppercase;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--color-gold-deep), var(--color-gold-light));
  transition: width 0.3s var(--ease);
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

/* ハンバーガー */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--color-gold-deep);
  transition: all 0.3s;
}

/* モバイルオーバーレイメニュー */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-list {
  list-style: none;
  text-align: center;
  padding: 0;
}
.nav-mobile-list li { margin-bottom: 36px; }
.nav-mobile-list a {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--color-text);
  display: block;
  transition: opacity 0.3s;
}
.nav-mobile-list a:hover { opacity: 0.4; }
.nav-mobile-close {
  position: absolute;
  top: 22px; right: 24px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-mobile-close::before,
.nav-mobile-close::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 1px;
  background: var(--color-text);
}
.nav-mobile-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.nav-mobile-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }

/* ============================================
   レイアウト共通
============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   テキスト共通
============================================ */
.section-label {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.6em;
  color: var(--color-text-sub);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--color-text-sub);
}
.section-heading {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
  margin-bottom: 24px;
}
.section-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--color-text-sub);
  line-height: 2.0;
  max-width: 540px;
}

/* ============================================
   ボタン
============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  padding: 16px 32px;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-arrow {
  display: inline-block;
  width: 20px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s var(--ease);
}
.btn-arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn-primary:hover .btn-arrow { width: 28px; }

/* ============================================
   フッター
============================================ */
footer {
  background: #080808;
  color: rgba(255,255,255,0.3);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  width: 36px;
  opacity: 0.5;
}
.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.15em;
  transition: color 0.3s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 11px; letter-spacing: 0.1em; }

/* ============================================
   レスポンシブ
============================================ */
@media (max-width: 767px) {
  :root { --section-pad: var(--section-pad-sp); }

  /* SP ナビ：左ロゴ・右ハンバーガー */
  #nav { padding: 16px 20px; }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo-wrap { gap: 10px; }
  .nav-version {
    min-height: 22px;
    padding: 4px 8px;
    font-size: 9px;
  }

  .container { padding: 0 20px; }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
