/* Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 3vw, 48px);
  mix-blend-mode: normal;
  transition: background 0.6s var(--ease-luxe), border-color 0.6s var(--ease-luxe);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 246, 241, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line-soft);
}
.nav.dark {
  color: var(--ivory);
}
.nav.dark.scrolled {
  background: rgba(14, 14, 14, 0.76);
  border-bottom-color: rgba(255,255,255,0.08);
}

.nav-logo {
  font-family: var(--serif-en);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.32em;
  position: relative;
  z-index: 2;
}
.nav-logo small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.5em;
  opacity: 0.55;
  margin-top: 2px;
  font-weight: 400;
}
.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 36px;
}
.nav-center a {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  opacity: 0.85;
  transition: opacity 0.4s var(--ease-luxe);
}
.nav-center a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-luxe);
}
.nav-center a:hover, .nav-center a.active { opacity: 1; }
.nav-center a:hover::after, .nav-center a.active::after { transform: scaleX(1); }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-right .nav-lang {
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.22em;
  opacity: 0.7;
}
.nav-right .nav-lang b { font-weight: 500; opacity: 1; }
.nav-cta {
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid currentColor;
  transition: all 0.5s var(--ease-luxe);
}
.nav-cta:hover { background: currentColor; }
.nav-cta:hover span { color: var(--ivory); mix-blend-mode: difference; }
.nav.dark .nav-cta:hover { background: var(--ivory); color: var(--ink); }
.nav .nav-cta:hover { color: var(--ivory); background: var(--ink); }
.nav.dark .nav-cta:hover { color: var(--ink); background: var(--ivory); }

/* Particles canvas */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Page transitions */
.page {
  display: none;
  animation: pageIn 0.9s var(--ease-luxe);
}
.page.active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Hero (home) */
.hero {
  position: relative;
  height: 100vh;
  min-height: 760px;
  overflow: hidden;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(230, 201, 184, 0.45), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(239, 217, 204, 0.35), transparent 55%),
    linear-gradient(180deg, #FAF6F1 0%, #F4EEE5 100%);
}
.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 1400px;
}
.hero-eyebrow {
  display: block;
  margin-bottom: 40px;
  color: var(--stone);
}
.hero-title {
  font-family: var(--serif-en);
  font-size: var(--fs-hero);
  line-height: 0.94;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title em { font-style: italic; color: var(--pink-deep); }
.hero-sub {
  margin-top: 32px;
  font-family: var(--serif-jp);
  font-size: 16px;
  letter-spacing: 0.4em;
  color: var(--graphite);
  font-weight: 300;
}
.hero-foot {
  position: absolute;
  left: 0; right: 0;
  bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 48px;
  z-index: 3;
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
}
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-scroll .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, var(--stone));
  animation: scrollLine 2.4s var(--ease-luxe) infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.001% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: var(--ivory);
}
.marquee-track {
  display: flex;
  gap: 80px;
  animation: mq 60s linear infinite;
  white-space: nowrap;
  font-family: var(--serif-en);
  font-size: 28px;
  letter-spacing: 0.2em;
  color: var(--graphite);
  font-style: italic;
  font-weight: 300;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 80px; }
.marquee-track .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink-deep); display: inline-block; }
@keyframes mq {
  to { transform: translateX(-50%); }
}

/* Section headers */
.section {
  padding: clamp(96px, 12vw, 180px) 0;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 96px);
  padding: 0 clamp(24px, 5vw, 80px);
  margin-bottom: clamp(64px, 8vw, 120px);
  align-items: start;
}
.section-head .tag { font-family: var(--serif-en); letter-spacing: 0.3em; text-transform: uppercase; font-size: 12px; color: var(--stone); }
.section-head .tag small { display: block; font-family: var(--serif-jp); letter-spacing: 0.3em; margin-top: 10px; color: var(--mist); font-size: 11px; }
.section-head h2 {
  font-family: var(--serif-en);
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.section-head h2 em { font-style: italic; color: var(--pink-deep); }
.section-head .desc {
  margin-top: 32px;
  max-width: 520px;
  font-family: var(--serif-jp);
  font-size: 15px;
  line-height: 2;
  color: var(--graphite);
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(80px, 10vw, 140px) clamp(24px, 5vw, 80px) 48px;
  position: relative;
  overflow: hidden;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 80px; }
.footer-logo {
  font-family: var(--serif-en);
  font-size: 56px;
  font-weight: 300;
  letter-spacing: 0.08em;
}
.footer-logo em { font-style: italic; color: var(--pink); }
.footer-tag {
  margin-top: 24px;
  font-family: var(--serif-en);
  font-style: italic;
  font-size: 20px;
  color: var(--pink-soft);
  letter-spacing: 0.04em;
}
.footer h4 {
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.5;
  font-weight: 400;
  margin-bottom: 24px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer li a {
  font-family: var(--serif-jp);
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.4s var(--ease-luxe), color 0.4s var(--ease-luxe);
}
.footer li a:hover { color: var(--pink); opacity: 1; }
.footer-bot {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--serif-en);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ===========================================================
   モバイル専用 (2026-05-24 追加 / 汎用シム撤去に伴う自前実装)
   元の nav-center は absolute中央配置で重なる → static stack 化
   =========================================================== */
@media (max-width: 820px) {
  /* NAV: 高さ可変・縦スタック・中央links を通常フローに */
  .nav {
    position: relative;
    height: auto;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(250, 246, 241, 0.96);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav.dark { background: rgba(14,14,14,0.92); }
  .nav-logo { font-size: 19px; letter-spacing: 0.24em; text-align: center; }
  .nav-center {
    position: static;
    transform: none;
    left: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
    width: 100%;
  }
  .nav-center a { font-size: 12px; letter-spacing: 0.12em; padding: 4px 0; }
  .nav-right { margin-left: 0; justify-content: center; width: 100%; gap: 18px; }
  .nav-cta { padding: 9px 18px; font-size: 11px; letter-spacing: 0.2em; min-height: 44px; display: inline-flex; align-items: center; }

  /* HERO: フルスクリーン維持・min-height 過大解除・余白縮小 */
  .hero { height: auto; min-height: 78svh; padding: 40px 0; }
  .hero-inner { padding: 0 22px; }
  .hero-eyebrow { margin-bottom: 24px; }
  .hero-sub { font-size: 13px; letter-spacing: 0.28em; margin-top: 22px; }
  .hero-foot { padding: 0 22px; bottom: 22px; }
  .hero-foot .hero-loc { display: none; } /* 左下の住所等は省略 */

  /* MARQUEE 文字縮小 */
  .marquee-track { font-size: 20px; gap: 48px; }
  .marquee-track span { gap: 48px; }

  /* SECTION: 2カラム見出し → 1カラム */
  .section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; padding: 0 22px; margin-bottom: 48px; }

  /* 2026-05-24: 各ページの inline grid を一括1カラム化 (!importantでinlineに勝つ・main配下のみ・カレンダーrepeat(7)は除外して保持) */
  main [style*="grid-template-columns: repeat(2"],
  main [style*="grid-template-columns: repeat(3"],
  main [style*="grid-template-columns: repeat(4"],
  main [style*="grid-template-columns: repeat(5"],
  main [style*="grid-template-columns: repeat(6"],
  main [style*="grid-template-columns: 1fr 1fr"],
  main [style*="grid-template-columns: 1fr 2fr"],
  main [style*="grid-template-columns: 1.1fr"],
  main [style*="grid-template-columns: 1.2fr"],
  main [style*="grid-template-columns: 1.3fr"],
  main [style*="grid-template-columns: 1.05fr"],
  main [style*="px 320px"],
  main [style*="px 280px"],
  main [style*="px 220px"],
  main [style*="px 200px"],
  main [style*="px 180px"],
  main [style*="100px 1fr"],
  main [style*="80px 1fr"],
  main [style*="140px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* カレンダー(7列)はマス目を保ちつつ余白詰める */
  main [style*="repeat(7"] { gap: 1px !important; }
  .section-head .desc { margin-top: 18px; max-width: none; font-size: 14px; line-height: 1.9; }

  /* FOOTER 4カラム → 1カラム */
  .footer { padding: 64px 22px 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px; }
  .footer-logo { font-size: 40px; }
  .footer-bot { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 460px) {
  .nav-center { gap: 10px 14px; }
  .nav-center a { font-size: 11px; }
  .section { padding: 56px 0; }
}
