/* ==========================================================
   つくみ Premium SUNQUEEN WINE / 有限会社髙木酒店
   共通スタイル
   ========================================================== */
:root {
  --white: #ffffff;
  --peel: #fff3e0;        /* 皮の内側のような淡いオレンジ */
  --peel-2: #ffe6c2;
  --orange: #ee8a12;      /* サンクイーンの果皮 */
  --orange-deep: #b65c00;
  --sea: #0d4a55;         /* 津久見湾 */
  --sea-2: #16707d;
  --sea-soft: #e4f1f1;
  --label: #4b3326;       /* ボトルラベルの焦げ茶 */
  --ink: #1f2a2c;
  --ink-soft: #5b686a;
  --line: #eadfce;
  --ok: #3f7f31;
  --ok-soft: #e6f2df;
  --warn: #b86b00;
  --warn-soft: #fff0d6;
  --stop: #b23a28;
  --stop-soft: #fbe6e1;
  --radius: 22px;
  --shadow: 0 2px 6px rgba(75, 51, 38, .06), 0 14px 34px rgba(75, 51, 38, .08);
  --display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --latin: "Marcellus", "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.95; letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-2); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.45; text-wrap: balance; margin: 0; }
p { margin: 0; }
.container { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.en { font-family: var(--latin); letter-spacing: .18em; text-transform: uppercase; }
.hand { font-family: var(--hand); color: var(--orange-deep); font-size: 1.5em; line-height: 1; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand .en { font-size: 1.05rem; color: var(--label); letter-spacing: .14em; }
.brand small { font-size: .72rem; color: var(--ink-soft); letter-spacing: .08em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--ink); font-size: .9rem; padding: 6px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--peel); }
.nav a[aria-current="page"] { color: var(--orange-deep); font-weight: 700; }
.nav .buy { background: var(--orange); color: #fff; font-weight: 700; margin-left: 6px; }
.nav .buy:hover { background: var(--orange-deep); }
.menu-btn { display: none; }

@media (max-width: 880px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff;
    border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .88rem; color: var(--ink); cursor: pointer;
  }
  .menu-btn .bars { width: 16px; height: 10px; position: relative; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 2px; }
  .menu-btn .bars::before { top: 0; } .menu-btn .bars::after { bottom: 0; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 16px; gap: 2px;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 10px 12px; font-size: 1rem; }
  .nav .buy { margin: 8px 0 0; text-align: center; }
}
@media (min-width: 881px) { .nav[hidden] { display: flex !important; } }

/* ---------- status bar (スプレッドシート連動) ---------- */
.status-bar { background: var(--sea); color: #fff; font-size: .88rem; }
.status-bar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; padding-block: 8px; text-align: center; }
.status-bar a { color: #fff; font-weight: 700; }
.status-bar[data-state="完売"], .status-bar[data-state="入荷待ち"] { background: var(--label); }

/* ---------- badges & buttons ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.stop { background: var(--stop-soft); color: var(--stop); }
.badge.prep { background: var(--sea-soft); color: var(--sea-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; letter-spacing: .06em;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(238, 138, 18, .35); }
.btn.primary:hover { background: var(--orange-deep); }
.btn.ghost { background: transparent; color: var(--sea); border: 1.5px solid var(--sea); }
.btn.ghost:hover { background: var(--sea-soft); }
.btn[aria-disabled="true"] { background: #d9d2c8; color: #6c6258; box-shadow: none; cursor: default; transform: none; }
.btn .arrow { font-family: var(--latin); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vw, 110px); }
.section.peel { background: var(--peel); }
.section.sea { background: var(--sea); color: #fff; }
.section-head { display: grid; gap: 6px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .en { font-size: .82rem; color: var(--orange-deep); }
.section.sea .section-head .en { color: var(--peel-2); }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
.section-head p { color: var(--ink-soft); max-width: 60ch; }
.section.sea .section-head p { color: #d5e6e7; }

/* ---------- page hero (下層ページ) ---------- */
.page-hero { background: var(--peel); padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 60px); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--peel-2) 0 38%, transparent 39%), repeating-conic-gradient(from 0deg, var(--orange) 0 40deg, var(--peel-2) 40deg 45deg);
  opacity: .5;
}
.page-hero .en { font-size: .85rem; color: var(--orange-deep); }
.page-hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 900; margin-top: 6px; position: relative; z-index: 1; }
.page-hero p { margin-top: 12px; color: var(--ink-soft); max-width: 56ch; position: relative; z-index: 1; }

/* ---------- product cards ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.product {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.product .photo { aspect-ratio: 4 / 5; overflow: hidden; background: #f4f4f2; }
.product .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transition: transform .5s; }
.product:hover .photo img { transform: scale(1.03); }
.product .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product h3 { font-size: 1.1rem; }
.product .desc { font-size: .88rem; color: var(--ink-soft); line-height: 1.7; }
.product .price { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--label); font-variant-numeric: tabular-nums; }
.product .price small { font-size: .75rem; color: var(--ink-soft); font-weight: 500; margin-left: 4px; }
.product .price.none { font-size: .88rem; font-weight: 500; color: var(--ink-soft); }
.product .btn { margin-top: auto; padding: 12px 20px; font-size: .92rem; }

/* ---------- news ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 4px 24px; padding: 18px 4px; }
.news-item time { font-family: var(--latin); letter-spacing: .08em; color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.news-item h3 { font-size: 1.02rem; }
.news-item p { grid-column: 2; color: var(--ink-soft); font-size: .92rem; white-space: pre-line; }
.news-item .more { grid-column: 2; font-size: .88rem; }
.news-empty { color: var(--ink-soft); padding: 18px 4px; }
@media (max-width: 600px) {
  .news-item { grid-template-columns: 1fr; }
  .news-item p, .news-item .more { grid-column: 1; }
}

/* ---------- spec table ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 32%; color: var(--ink-soft); font-weight: 500; font-size: .88rem; }

/* ---------- misc ---------- */
.tbd { color: var(--ink-soft); }
.note { font-size: .82rem; color: var(--ink-soft); }
.age-note {
  display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 700; color: var(--label);
}
.age-note::before {
  content: "20"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--stop);
  color: var(--stop); display: grid; place-items: center; font-family: var(--latin); font-size: .9rem;
  background: linear-gradient(135deg, transparent 46%, var(--stop) 46% 54%, transparent 54%);
}

/* ---------- footer ---------- */
.site-footer { background: var(--label); color: #f1e6db; padding-block: 56px 32px; font-size: .9rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer .en { color: var(--peel-2); font-size: 1.1rem; }
.site-footer h3 { font-family: var(--body); font-size: .8rem; letter-spacing: .12em; color: var(--peel-2); margin-bottom: 8px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; gap: 6px; font-size: .8rem; color: #d8c8b8; }
.legal strong { color: #fff; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: rgba(31, 42, 44, .6); backdrop-filter: blur(6px);
}
.age-gate[hidden] { display: none; }
.age-gate .panel {
  background: #fff; border-radius: 28px; padding: 36px 28px 28px; max-width: 420px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25); display: grid; gap: 14px; justify-items: center;
}
.age-gate .en { font-size: .8rem; color: var(--orange-deep); }
.age-gate h2 { font-size: 1.35rem; }
.age-gate p { font-size: .9rem; color: var(--ink-soft); }
.age-gate .btn-row { justify-content: center; margin-top: 6px; }
.age-gate .btn { padding: 12px 24px; }
.age-gate .sorry { color: var(--stop); font-weight: 700; }

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
