/* =========================================================================
   共通スタイル（全ページ共通のヘッダー・フッター・基礎スタイル）
   -------------------------------------------------------------------------
   このファイルはヘッダー／フッターの見た目を一括管理するための共通CSSです。
   ヘッダーやフッターのデザインを変更したい場合は、このファイルだけを
   編集してください（各ページの<style>内には書かないでください）。
   ========================================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F6F3;
  --bg-dark: #1A1A1A;
  --bg-darker: #0E0E0E;
  --text: #1A1A1A;
  --text-2: #4A4A4A;
  --text-3: #8A8A8A;
  --line: #E5E3DE;
  --accent: #B8935A;
  --accent-dim: rgba(184, 147, 90, 0.18);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-weight: 400;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.serif { font-family: 'Noto Serif JP', serif; }
.en { font-family: 'Cormorant Garamond', serif; letter-spacing: 0.05em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* ===== Header ===== */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0);
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  padding: 16px 40px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 38px;
  width: auto;
}
nav ul { display: flex; gap: 36px; list-style: none; align-items: center; }
nav a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s;
  letter-spacing: 0.1em;
}
nav a:hover { color: var(--text); }
nav a.current { color: var(--accent); }
.nav-cta {
  padding: 10px 22px;
  border: 1px solid var(--text);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.15em;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--text); color: #fff; }

/* ===== Mobile menu ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 24px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text);
  transition: all 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-overlay.show { display: block; opacity: 1; }

/* ===== Footer ===== */
footer {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 30px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #fff;
}
.footer-logo .sub {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  font-weight: 400;
}
.footer-info {
  text-align: right;
  font-size: 13px;
  line-height: 1.9;
}
.footer-bottom {
  display: flex; justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive (shared chrome only) ===== */
@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  /* backdrop-filter on an ancestor makes it a containing block for
     fixed-position descendants, which would shrink #site-nav down to
     the header's own height — disable it on mobile so nav sizes to
     the real viewport instead. */
  header, header.scrolled { backdrop-filter: none; }
  nav {
    position: fixed;
    top: 0; bottom: 0; right: -100%;
    width: 78%; max-width: 320px;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    transition: right 0.35s ease;
    z-index: 99;
    padding: 84px 32px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  nav.open { right: 0; }
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  nav ul li { width: 100%; border-bottom: 1px solid var(--line); }
  nav ul li a { display: block; padding: 13px 0; font-size: 14px; }
  .nav-cta {
    display: inline-block;
    margin-top: 20px;
    margin-bottom: 24px;
    text-align: center;
    width: 100%;
  }
  header { padding: 16px 24px; }
  .logo img { height: 30px; }
  .container, .container-narrow { padding: 0 24px; }
  section { padding: 90px 0; }
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-info { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
