/* ============================================
   style.css — 変数・リセット・共通スタイル
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Noto+Serif+JP:wght@200;300;400;500&display=swap');

/* ── CSS変数 ── */
:root {
  --c-bg:        #f5f0e8;   /* 生成り */
  --c-bg-2:      #eee9e0;   /* 薄グレージュ */
  --c-bg-3:      #e8e3d8;   /* グレージュ深め */
  --c-bg-4:      #ede8e0;   /* 象牙 */
  --c-bg-dark:   #3a3228;   /* 淡墨 */
  --c-ink:       #2a2118;   /* 墨色 */
  --c-ink-light: #6b5f50;   /* 薄墨 */
  --c-gold:      #8b7355;   /* 金茶 */
  --c-gold-lt:   #b09a7a;   /* 薄金 */
  --c-white:     #faf7f2;   /* 温白 */

  --ff-ja:   'Noto Serif JP', serif;
  --ff-en:   'Cormorant Garamond', serif;

  --section-pad: clamp(80px, 10vw, 160px);
  --max-w: 1200px;
  --gutter: clamp(24px, 5vw, 80px);

  --transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ── リセット ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-ja);
  font-weight: 300;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.9;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

/* 和紙グレイン */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* テキスト選択 */
::selection {
  background: var(--c-gold);
  color: var(--c-white);
}

/* スクロールバー */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-gold-lt); }
::-webkit-scrollbar-thumb:hover { background: var(--c-gold); }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ── 共通ユーティリティ ── */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── セクション共通 ── */
.section {
  padding-block: var(--section-pad);
}

.section-en {
  font-family: var(--ff-en);
  font-weight: 300;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.section-en::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--c-gold);
  flex-shrink: 0;
}

.section-ja {
  font-family: var(--ff-ja);
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 36px);
  letter-spacing: 0.12em;
  line-height: 1.5;
  display: block;
  font-feature-settings: "palt" 1;
}

.section-lead {
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 300;
  color: var(--c-ink-light);
  letter-spacing: 0.06em;
  line-height: 2;
  margin-top: 1.6em;
}

/* 細罫線ボタン */
.btn {
  display: inline-block;
  font-family: var(--ff-en);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-ink);
  border: 1px solid var(--c-gold);
  padding: 12px 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  z-index: -1;
}

.btn:hover {
  color: var(--c-white);
}

.btn:hover::after {
  transform: scaleX(1);
}

.btn--white {
  color: var(--c-white);
  border-color: var(--c-white);
}

.btn--white:hover {
  color: var(--c-ink);
}

.btn--white::after {
  background: var(--c-white);
}

/* 縦書き */
.vert {
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.2em;
  line-height: 1.6;
}

/* 画像プレースホルダー */
.ph {
  background: repeating-linear-gradient(
    -45deg,
    #ddd8ce 0px,
    #ddd8ce 1px,
    #e8e3d9 1px,
    #e8e3d9 12px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.ph-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #8b8070;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 12px;
  line-height: 1.6;
  background: rgba(245,240,232,0.75);
  border-radius: 2px;
}

/* 区切り線 */
.divider {
  width: 40px;
  height: 1px;
  background: var(--c-gold);
  margin-block: 28px;
}

/* フェードイン（JS制御） */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── フッター ── */
footer {
  background: var(--c-bg-dark);
  color: rgba(250,247,242,0.65);
  padding-block: 60px 40px;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.footer-logo {
  font-family: var(--ff-en);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--c-white);
  margin-bottom: 16px;
}

.footer-logo small {
  display: block;
  font-family: var(--ff-ja);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(250,247,242,0.5);
  margin-top: 4px;
}

.footer-info {
  line-height: 2;
  color: rgba(250,247,242,0.5);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
}

.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(250,247,242,0.5);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--c-white);
}

.footer-copy {
  text-align: center;
  margin-top: 48px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(250,247,242,0.3);
}

/* ── フォーカス状態 ── */
.btn:focus-visible,
.header-reserve:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
}

.hamburger:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── モーション軽減 ── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .btn::after {
    transition: none;
  }
  .nav-item {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ── レスポンシブ共通 ── */
@media (max-width: 768px) {
  :root {
    --section-pad: clamp(60px, 10vw, 100px);
    --gutter: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    text-align: left;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
}
