/* style.css — :root変数 / グローバル / 共通パーツ（全ページ共通） */

/* ── カラー変数・イージング変数 ── */
:root {
  --sumi:       #16140f;        /* 墨 */
  --sumi-soft:  #3a352b;
  --kinari:     #f4eee1;        /* 生成り */
  --kinari-deep:#ebe2cf;
  --washi:      #faf6ec;        /* 和紙 */
  --shu:        #b8462c;        /* 朱 */
  --shu-deep:   #9b3621;
  --kin:        #a98c4f;        /* 金 */
  --kin-soft:   #c4ad77;
  --line:       rgba(22,20,15,.14);
  --ease:       cubic-bezier(.22,.61,.36,1);
  --ease-soft:  cubic-bezier(.65,.05,.36,1);
}

/* ── グローバル ── */
body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  background: var(--kinari);
  color: var(--sumi);
  line-height: 1.9;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--shu);
  color: var(--washi);
}

/* ── 和紙テクスチャ（全ページ固定overlay） ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── ナビ ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px clamp(22px, 5vw, 64px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: padding .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
}

.nav.shrink {
  padding: 16px clamp(22px, 5vw, 64px);
  background: rgba(250,246,236,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.nav__logo {
  height: 76px;
  width: auto;
  display: block;
  transition: filter .4s var(--ease);
}

.nav__menu {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  list-style: none;
  align-items: center;
}

.nav__item { position: relative; }

.nav__link {
  color: var(--sumi);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .28em;
  opacity: .85;
  transition: opacity .4s var(--ease), color .4s var(--ease);
  display: block;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.nav__link:hover { opacity: 1; }
/* ドロップダウン */
.nav__sub {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--sumi);
  border-top: 2px solid var(--shu);
  min-width: 148px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s var(--ease), visibility .32s var(--ease), transform .32s var(--ease);
  z-index: 10;
}

.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__sub a {
  display: block;
  padding: 9px 18px;
  font-family: "Zen Old Mincho", serif;
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(244,238,225,.78);
  text-decoration: none;
  transition: color .3s, padding-left .3s;
}

.nav__sub a:hover { color: var(--washi); padding-left: 24px; }

/* ハンバーガーボタン */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--sumi);
  transition: transform .45s var(--ease), opacity .3s, background .4s var(--ease);
}

.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ダークヒーロー（初期スクロール前のみ）文字色 */
.nav--dark-hero:not(.shrink) .nav__link {
  color: var(--kinari);
}
.nav--dark-hero:not(.shrink) .nav__logo {
  filter: brightness(0) invert(1);
}
.nav--dark-hero:not(.shrink) .nav__hamburger span {
  background: var(--kinari);
}

/* モバイルドロワー */
.nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100vh;
  height: 100dvh;
  background: var(--sumi);
  z-index: 190;
  transform: translateX(100%);
  transition: transform .5s var(--ease);
  overflow-y: auto;
  padding: clamp(80px, 14vw, 110px) clamp(28px, 8vw, 48px) 48px;
}

.nav__drawer.open { transform: translateX(0); }

.nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,20,15,.7);
  z-index: 180;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s, visibility .5s;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.nav__overlay.open { opacity: 1; visibility: visible; }

.nav__drawer-sec { margin-bottom: clamp(26px, 4vw, 36px); }

.nav__drawer-cat {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: .72rem;
  letter-spacing: .32em;
  color: var(--kin-soft);
  margin-bottom: 14px;
}

.nav__drawer-sec a {
  display: block;
  font-family: "Zen Old Mincho", serif;
  font-size: .92rem;
  letter-spacing: .18em;
  color: rgba(244,238,225,.78);
  text-decoration: none;
  padding: 11px 0;
  border-bottom: 1px solid rgba(244,238,225,.08);
  transition: color .3s, padding-left .3s;
}

.nav__drawer-sec a:hover { color: var(--washi); padding-left: 6px; }

.nav__drawer-cta {
  display: block;
  margin-top: clamp(26px, 4vw, 36px);
  padding: 14px;
  background: var(--shu);
  color: var(--kinari);
  text-align: center;
  font-family: "Zen Old Mincho", serif;
  font-size: .82rem;
  letter-spacing: .26em;
  text-decoration: none;
  transition: background .4s;
  border-radius: 2px;
}

.nav__drawer-cta:hover { background: var(--shu-deep); }

@media (max-width: 680px) {
  .nav__menu      { display: none; }
  .nav__hamburger { display: flex; }
}

/* ── 縦書きインデックス ── */
.vindex {
  position: fixed;
  right: clamp(14px, 2.4vw, 34px);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: "Zen Old Mincho", serif;
  font-size: 12px;
  letter-spacing: .5em;
  color: var(--sumi-soft);
  z-index: 90;
  display: flex;
  gap: 24px;
  opacity: 0;
  transition: opacity .8s var(--ease);
}

.vindex.on   { opacity: .55; }

.vindex span {
  cursor: pointer;
  transition: color .4s;
}

.vindex span.active { color: var(--shu); }

@media (max-width: 880px) {
  .vindex { display: none; }
}

/* ── セクション共通 ── */
section {
  position: relative;
  padding: clamp(90px, 15vh, 180px) clamp(24px, 8vw, 140px);
}

/* ── eyebrow見出し ── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .2em;
  color: var(--shu);
  margin-bottom: 30px;
}

.eyebrow::before {
  content: "";
  width: 46px;
  height: 1px;
  background: var(--shu);
}

.eyebrow b {
  font-family: "Zen Old Mincho", serif;
  font-style: normal;
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .4em;
  color: var(--sumi-soft);
}

.eyebrow--center {
  justify-content: center;
}

/* ── 共通 h2 ── */
.h2 {
  font-family: "Zen Old Mincho", serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.5;
  letter-spacing: .08em;
}

/* ── スクロールリビール ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

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

.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .48s; }

/* ── CTAボタン（複数ページ共通） ── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 54px;
  padding: 20px 44px;
  border: 1px solid var(--sumi);
  border-radius: 40px;
  text-decoration: none;
  color: var(--sumi);
  font-family: "Zen Old Mincho", serif;
  letter-spacing: .3em;
  font-size: .9rem;
  position: relative;
  overflow: hidden;
  transition: color .5s var(--ease);
}

.cta span {
  position: relative;
  z-index: 2;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sumi);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: 1;
}

.cta:hover              { color: var(--kinari); }
.cta:hover::before      { transform: translateY(0); }

/* ── 内ページ共通ヒーロー ── */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(120px, 18vh, 200px) clamp(24px, 8vw, 140px) clamp(60px, 8vw, 100px);
  overflow: hidden;
  background: radial-gradient(110% 80% at 50% 0%, var(--washi) 0%, var(--kinari) 60%, var(--kinari-deep) 100%);
}

.page-hero__deco {
  position: absolute;
  font-family: "Zen Old Mincho", serif;
  font-weight: 700;
  font-size: clamp(12rem, 32vw, 28rem);
  line-height: 1;
  color: var(--sumi);
  opacity: .04;
  user-select: none;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: -.04em;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-family: "Zen Old Mincho", serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.4;
  margin-bottom: 20px;
}

.page-hero__sub {
  font-size: clamp(.82rem, 1.5vw, .95rem);
  letter-spacing: .2em;
  color: var(--sumi-soft);
  max-width: 500px;
  margin: 0 auto;
}

/* ── CTA（ダーク背景用バリアント） ── */
.cta--light {
  border-color: var(--kinari);
  color: var(--kinari);
}

.cta--light::before {
  background: var(--kinari);
}

.cta--light:hover {
  color: var(--sumi);
}

/* ── フッター ── */
footer {
  background: var(--sumi);
  color: var(--kinari);
  padding: clamp(60px, 9vw, 100px) clamp(24px, 8vw, 120px) 44px;
}

.foot__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid rgba(244,238,225,.14);
  padding-bottom: 44px;
}

.foot__brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  font-weight: 300;
}

.foot__brand small {
  display: block;
  font-family: "Zen Old Mincho", serif;
  font-size: .7rem;
  letter-spacing: .7em;
  color: var(--kin-soft);
  margin-top: 14px;
  text-indent: .7em;
}

.foot__tagline {
  font-family: "Zen Old Mincho", serif;
  font-size: .78rem;
  letter-spacing: .1em;
  color: rgba(244,238,225,.48);
  line-height: 1.9;
  margin-top: 22px;
}

.foot__nav {
  display: flex;
  gap: clamp(26px, 5vw, 60px);
  flex-wrap: wrap;
}

.foot__col h4 {
  font-family: "Zen Old Mincho", serif;
  font-size: .78rem;
  letter-spacing: .3em;
  color: var(--kin-soft);
  margin-bottom: 18px;
  font-weight: 500;
}

.foot__col a {
  display: block;
  color: rgba(244,238,225,.78);
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .1em;
  margin-bottom: 12px;
  transition: color .4s;
}

.foot__col a:hover { color: var(--washi); }

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  font-size: .72rem;
  letter-spacing: .16em;
  color: rgba(244,238,225,.5);
}

.foot__bottom-link,
.foot__bottom-link:visited {
  font-size: .72rem;
  letter-spacing: .16em;
  color: rgba(244,238,225,.5);
  text-decoration: none;
  transition: color .4s var(--ease);
}

.foot__bottom-link:hover {
  color: rgba(244,238,225,.85);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ── プライバシーポリシー本文 ─────────────────────────────────── */
.policy-body {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 40px);
}

.policy-sec {
  margin-bottom: clamp(32px, 6vw, 56px);
}

.policy-sec h2 {
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 500;
  color: var(--sumi);
  letter-spacing: .12em;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.policy-sec p,
.policy-sec li {
  font-size: clamp(.85rem, 1.8vw, .95rem);
  line-height: 2;
  color: var(--sumi-soft);
  letter-spacing: .06em;
}

.policy-sec ul {
  padding-left: 1.4em;
  margin-top: 8px;
}

.policy-sec li { margin-bottom: 6px; }

.policy-dl {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 6px 16px;
  font-size: clamp(.85rem, 1.8vw, .95rem);
  color: var(--sumi-soft);
  letter-spacing: .06em;
  line-height: 1.8;
}

.policy-dl dt {
  font-weight: 500;
  color: var(--sumi);
  letter-spacing: .1em;
}

@media (max-width: 640px) {
  .policy-dl { grid-template-columns: 1fr; }
  .policy-dl dt { margin-top: 10px; }
}

/* ════════════════════════════════════════
   レスポンシブ補完（全ページ共通）
   ════════════════════════════════════════ */

/* ── ナビ ── */
@media (max-width: 680px) {
  .nav__logo  { height: 52px; }
  .nav        { padding-top: 18px; padding-bottom: 18px; }
  .nav.shrink { padding-top: 12px; padding-bottom: 12px; }
}

/* ── 内ページヒーロー ── */
@media (max-width: 640px) {
  .page-hero__title {
    font-size: clamp(1.3rem, 5.5vw, 2.2rem);
    letter-spacing: .06em;
  }
  .page-hero__sub {
    font-size: .8rem;
    letter-spacing: .12em;
  }
}

/* ── フッターブランド ── */
@media (max-width: 640px) {
  .foot__brand {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    letter-spacing: clamp(.2em, 2vw, .4em);
  }
  .foot__brand small {
    letter-spacing: .5em;
    text-indent: .5em;
  }
}

/* ── CTAボタン（狭幅補正） ── */
@media (max-width: 480px) {
  .cta {
    padding: 16px clamp(22px, 6vw, 44px);
    font-size: .84rem;
    letter-spacing: .22em;
    gap: 12px;
    margin-top: 36px;
  }
}
