/* ==========================================================
   菅原水鏡 ブランドサイト（新デザイン案）
   色・フォントは :root でまとめて変更できます。
   ========================================================== */
:root {
  --ink: #12100e;          /* 墨（暗い背景） */
  --ink-2: #1c1915;        /* 少し明るい墨 */
  --paper: #f2ece2;        /* 生成り（明るい背景） */
  --paper-2: #e8dfd1;
  --text-dark: #2b241e;    /* 明るい背景の文字 */
  --text-light: #ece5d8;   /* 暗い背景の文字 */
  --muted-dark: #6f655a;
  --muted-light: #a99f90;
  --gold: #b8894a;         /* 琥珀（樽の色） */
  --gold-light: #d5ad72;
  --rouge: #9e2f2c;
  --line-dark: rgba(43, 36, 30, .18);
  --line-light: rgba(236, 229, 216, .18);
  --font-en: "EB Garamond", serif;
  --font-ja: "Shippori Mincho", serif;
  --header-h: 76px;
  --gutter: clamp(16px, 5vw, 64px);
  --side: var(--gutter);   /* 本文の左右の余白。広い画面では左の目次の分だけ広げる */
}
@media (min-width: 1200px) {
  :root { --side: max(var(--gutter), 180px); }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .06em;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.pc { display: none; }
@media (min-width: 900px) { .pc { display: inline; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 32px;
  font-family: var(--font-ja); font-size: 15px; letter-spacing: .12em;
  text-decoration: none; cursor: pointer;
  border: 1px solid currentColor; background: transparent; color: inherit;
  transition: background .3s, color .3s, border-color .3s;
}
.btn-line:hover { background: var(--text-light); color: var(--ink); border-color: var(--text-light); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

/* ---------- 年齢確認 ---------- */
.agegate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--ink); text-align: center;
  transition: opacity .6s, visibility .6s;
}
.agegate.is-hidden { opacity: 0; visibility: hidden; }
.agegate-logo { width: 120px; margin: 0 auto 32px; }
.agegate-lead { font-size: 14px; color: var(--muted-light); }
.agegate-title { margin: 24px 0; font-size: 20px; }
.agegate-buttons { display: flex; gap: 16px; justify-content: center; }
.agegate-buttons .btn { min-width: 120px; }
.agegate-denied { margin-top: 24px; font-size: 14px; color: var(--gold-light); }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--gutter);
  transition: background .4s, box-shadow .4s;
}
.header.is-scrolled { background: rgba(18, 16, 14, .92); box-shadow: 0 1px 0 var(--line-light); }
.header-logo img { height: 52px; width: auto; }
.header-nav { display: flex; gap: 28px; margin-left: auto; }
.header-nav a { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1.3; }
.header-nav .en { font-family: var(--font-en); font-size: 16px; letter-spacing: .1em; }
.header-nav .ja { font-size: 10px; color: var(--muted-light); }
.header-nav a:hover .en { color: var(--gold-light); }
.header-buy { min-height: 40px; padding: 0 22px; font-size: 14px; }
.header-menu { display: none; }

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .header { gap: 12px; }
  .header-logo img { height: 42px; }
  .header-buy { margin-left: auto; padding: 0 16px; }
  .header-menu {
    display: block; position: relative; width: 40px; height: 40px;
    background: none; border: 0; color: inherit; cursor: pointer;
  }
  .header-menu span { position: absolute; left: 9px; right: 9px; height: 1px; background: currentColor; transition: transform .3s; }
  .header-menu span:first-child { top: 16px; }
  .header-menu span:last-child { top: 24px; }
  .header-menu[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .header-menu[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; justify-content: center; gap: 32px;
    background: var(--ink); margin: 0;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .header-nav.is-open { opacity: 1; visibility: visible; }
  .header-nav .en { font-size: 26px; }
  .header-nav .ja { font-size: 12px; }
}

/* ---------- 左の目次（幅1200px以上で表示） ---------- */
.sidenav { display: none; }
@media (min-width: 1200px) {
  .sidenav {
    display: block; position: fixed; left: 28px; top: 50%; z-index: 40;
    transform: translateY(-50%); mix-blend-mode: difference;
  }
  .sidenav li + li { margin-top: 14px; }
  .sidenav a {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-en); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
    color: #8c8c8c; text-decoration: none; transition: color .3s;
  }
  .sidenav a::before { content: ""; flex: none; width: 14px; height: 1px; background: currentColor; transition: width .3s; }
  .sidenav a:hover, .sidenav a.is-active { color: #fff; }
  .sidenav a.is-active::before { width: 32px; }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) var(--side) 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.08); animation: hero-zoom 14s ease-out forwards;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18,16,14,.75) 0%, rgba(18,16,14,.2) 60%, rgba(18,16,14,.6) 100%),
    linear-gradient(180deg, rgba(18,16,14,.6) 0%, rgba(18,16,14,.35) 45%, rgba(18,16,14,.95) 100%);
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-content { position: relative; width: 100%; display: grid; gap: 24px; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.hero-kicker { font-family: var(--font-en); font-size: 14px; letter-spacing: .4em; color: var(--gold-light); }
.hero-title {
  font-family: var(--font-en); font-weight: 400;
  font-size: clamp(32px, 7.4vw, 112px); line-height: 1.04; letter-spacing: .01em;
  text-transform: uppercase;
}
.hero-title span { display: block; white-space: nowrap; }
.hero-title em { font-style: italic; text-transform: none; color: var(--gold-light); }
.hero-ja { font-size: clamp(18px, 2vw, 24px); letter-spacing: .3em; line-height: 1.9; }
@media (min-width: 900px) {
  .hero-ja {
    position: absolute; right: 0; bottom: 8px;
    writing-mode: vertical-rl; font-size: 26px; letter-spacing: .5em;
  }
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none; color: var(--muted-light);
}
.hero-scroll::after { content: ""; width: 1px; height: 48px; background: linear-gradient(var(--gold-light), transparent); animation: scroll-line 2s infinite; transform-origin: top; }
@keyframes scroll-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- ステートメント ---------- */
.statement {
  position: relative; overflow: hidden;
  padding: 160px var(--side);
  text-align: center;
}
.statement-en {
  font-family: var(--font-en); font-style: italic;
  font-size: clamp(44px, 8vw, 120px); line-height: 1; color: var(--gold);
  margin-bottom: 48px;
}
.statement-ja { font-weight: 400; font-size: clamp(20px, 2.6vw, 32px); line-height: 1.9; letter-spacing: .12em; }
.statement-body { margin-top: 40px; color: var(--muted-light); font-size: 15px; line-height: 2.4; }

/* 水鏡の波紋 */
.ripple { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.ripple span {
  position: absolute; left: 50%; top: 50%;
  width: 900px; height: 280px; margin: -140px 0 0 -450px;
  border: 1px solid rgba(184, 137, 74, .35); border-radius: 50%;
  opacity: 0; animation: ripple 9s ease-out infinite;
}
.ripple span:nth-child(2) { animation-delay: 3s; }
.ripple span:nth-child(3) { animation-delay: 6s; }
@keyframes ripple { 0% { transform: scale(.1); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- セクション共通 ---------- */
.section { padding: 140px var(--side); }
.section-head { text-align: center; margin-bottom: 96px; }
.section-en {
  font-family: var(--font-en); font-size: clamp(44px, 6vw, 84px); line-height: 1.1;
  letter-spacing: .04em; text-transform: uppercase;
}
.section-ja { margin-top: 12px; font-weight: 400; font-size: 15px; letter-spacing: .3em; color: var(--gold); }
.section-ja::before, .section-ja::after { content: "—"; margin: 0 .8em; opacity: .6; }
.section-lead { margin-top: 32px; font-size: clamp(18px, 2vw, 22px); }

/* 明るいセクション */
.story, .lineup { background: var(--paper); color: var(--text-dark); }
.story .btn-line:hover, .lineup .btn-line:hover { background: var(--text-dark); color: var(--paper); border-color: var(--text-dark); }

/* ---------- 誕生秘話 ---------- */
.timeline { max-width: 1120px; margin: 0 auto; position: relative; }
.chapter {
  display: grid; gap: 32px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--line-dark);
}
.chapter:last-child { border-bottom: 1px solid var(--line-dark); }
.chapter-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.85); }
.chapter-image figcaption { margin-top: 8px; font-size: 12px; color: var(--muted-dark); }
.chapter-year { font-family: var(--font-en); font-size: 56px; line-height: 1; color: var(--gold); }
.chapter h3 { margin: 16px 0 20px; font-weight: 600; font-size: clamp(19px, 2vw, 24px); line-height: 1.7; }
.chapter-text p:last-child { font-size: 15px; color: #4a4038; }
@media (min-width: 900px) {
  .chapter { grid-template-columns: 1fr 1fr; gap: 72px; padding: 80px 0; }
  .chapter:nth-child(even) .chapter-image { order: 2; }
}

/* ---------- 造り ---------- */
.craft { background: var(--ink-2); }
.craft-steps { display: grid; gap: 64px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 900px) { .craft-steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step-image { overflow: hidden; }
.step-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s ease; }
.step:hover .step-image img { transform: scale(1.05); }
.step-no { margin-top: 28px; font-family: var(--font-en); font-size: 15px; letter-spacing: .3em; color: var(--gold-light); }
.step-no::after { content: ""; display: inline-block; width: 40px; height: 1px; margin-left: 12px; vertical-align: middle; background: currentColor; }
.step h3 { margin: 12px 0 16px; font-weight: 600; font-size: 22px; line-height: 1.6; }
.step p:last-child { font-size: 15px; color: var(--muted-light); }

/* ---------- 商品 ---------- */
.series {
  display: grid; gap: 40px; align-items: center;
  max-width: 1200px; margin: 0 auto 120px;
}
.series-image { position: relative; }
.series-image img { width: 100%; mix-blend-mode: multiply; } /* 画像の白いぼかしを背景色になじませる */
.series-caption { margin-top: 12px; font-size: 12px; color: var(--muted-dark); }
.series-en { font-family: var(--font-en); font-style: italic; font-size: clamp(56px, 7vw, 96px); line-height: 1; }
.series-rouge .series-en { color: var(--rouge); }
.series-noir .series-en { color: var(--text-dark); }
.series h3 { margin-top: 8px; font-weight: 600; font-size: 22px; }
.series-lead { margin: 20px 0; font-size: 18px; color: var(--gold); }
.series-text > p:not([class]) { font-size: 15px; color: #4a4038; }
.notes { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.notes dt { font-family: var(--font-en); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-dark); }
.notes dd { margin-top: 8px; font-size: 14px; line-height: 2; }
@media (min-width: 900px) {
  .series { grid-template-columns: 1.25fr 1fr; gap: 72px; }
  .series-noir .series-image { order: 2; }
  .series-noir { grid-template-columns: 1fr 1.25fr; }
}

.products { max-width: 1200px; margin: 0 auto; }
.products-tabs { display: flex; justify-content: center; gap: 0; margin-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.products-tabs button {
  min-width: 160px; padding: 16px 24px;
  font-family: var(--font-ja); font-size: 16px; letter-spacing: .2em;
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--muted-dark); cursor: pointer;
}
.products-tabs button[aria-selected="true"] { color: var(--text-dark); border-bottom-color: var(--gold); }
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
@media (min-width: 700px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 48px 32px; } }
@media (min-width: 1100px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
.product a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.product-image { overflow: hidden; background: #111; }
.product-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s; }
.product a:hover .product-image img { transform: scale(1.05); }
.product-name { margin-top: 16px; font-weight: 600; font-size: 14px; line-height: 1.7; letter-spacing: .04em; }
.product-en { margin: 4px 0 12px; font-family: var(--font-en); font-size: 13px; line-height: 1.4; color: var(--muted-dark); letter-spacing: .02em; }
.product-meta { display: flex; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-dark); font-family: var(--font-en); font-size: 15px; }
.product-link { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.product-link::after { content: " →"; }
.products-note { margin-top: 48px; text-align: center; font-size: 12px; color: var(--muted-dark); }

/* ---------- 楽しみ方 ---------- */
.enjoy-list { display: grid; gap: 96px; max-width: 1200px; margin: 0 auto; }
.enjoy-item { display: grid; gap: 32px; align-items: center; }
.enjoy-image { overflow: hidden; }
.enjoy-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.enjoy-en { font-family: var(--font-en); font-style: italic; font-size: 40px; line-height: 1; color: var(--gold-light); }
.enjoy-item h3 { margin: 16px 0; font-weight: 600; font-size: 22px; }
.enjoy-item p:last-child { color: var(--muted-light); font-size: 15px; }
@media (min-width: 900px) {
  .enjoy-item { grid-template-columns: 1.4fr 1fr; gap: 72px; }
  .enjoy-item:nth-child(even) .enjoy-image { order: 2; }
  .enjoy-item:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
}

/* ---------- 受賞・トピックス ---------- */
.news { background: var(--ink-2); }
.news-list { max-width: 960px; margin: 0 auto; border-top: 1px solid var(--line-light); }
.news-list li { display: grid; gap: 8px; padding: 32px 0; border-bottom: 1px solid var(--line-light); }
.news-list time { font-family: var(--font-en); font-size: 17px; letter-spacing: .15em; color: var(--gold-light); }
.news-list p { font-size: 15px; line-height: 1.9; }
@media (min-width: 700px) { .news-list li { grid-template-columns: 160px 1fr; gap: 32px; } }
.news-more { margin-top: 64px; text-align: center; }

/* ---------- 購入案内 ---------- */
.cta { position: relative; padding: 180px var(--side); overflow: hidden; text-align: center; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: rgba(18, 16, 14, .78); }
.cta-content { position: relative; }
.cta-en { font-family: var(--font-en); font-size: clamp(36px, 5.6vw, 76px); line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; }
.cta-ja { margin-top: 32px; font-weight: 400; font-size: clamp(15px, 1.6vw, 18px); color: var(--muted-light); }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 48px; }

/* ---------- フッター ---------- */
.footer { padding: 80px var(--side) 40px; border-top: 1px solid var(--line-light); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.footer-logo { width: 110px; }
.footer-social { display: flex; gap: 20px; align-items: center; }
.footer-social img { width: 24px; height: auto; opacity: .8; transition: opacity .3s; }
.footer-social a:hover img { opacity: 1; }
.footer-corp { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-light); }
.footer-corp img { width: 150px; }
.footer-corp ul { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; }
.footer-corp a { text-decoration: none; color: var(--muted-light); }
.footer-corp a:hover { color: var(--text-light); }
.footer-caution { margin-top: 40px; font-size: 12px; line-height: 1.9; color: var(--muted-light); }
.footer-copy { margin-top: 16px; font-family: var(--font-en); font-size: 12px; color: var(--muted-light); }

/* ---------- スクロールで表示 ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s ease, transform 1.1s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .ripple span, .hero-scroll::after { animation: none; }
  .hero-bg { transform: none; }
}
