/* ============================================================
   白えび屋 — Shared Base Styles
   Apple的ミニマルUI × 和モダン
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --paper:        #F2EBDD;
  --paper-warm:   #ECE3D1;
  --paper-deep:   #E1D6BE;
  --ink:          #141210;
  --ink-2:        #2A251F;
  --ink-soft:     #5A5249;
  --muted:        #8A8275;
  --line:         rgba(20,18,16,.14);
  --line-soft:    rgba(20,18,16,.08);
  --accent:       #B95942;
  --accent-deep:  #9A422E;
  --accent-soft:  #E2B4A4;

  --jp-display: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --jp-body:    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --jp-serif:   "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
  --en-display: "Hanken Grotesk", "Lato", sans-serif;
  --en-mono:    "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --pad-x:      clamp(20px, 5vw, 88px);
  --section-y:  clamp(96px, 14vw, 200px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--jp-body);
  font-weight: 500;
  font-feature-settings: "palt" 1;
  letter-spacing: .08em;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

/* 和紙テクスチャ */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1; opacity: .05; mix-blend-mode: multiply;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #000 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 70%, #000 50%, transparent 51%),
    radial-gradient(1px 1px at 80% 20%, #000 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 80%, #000 50%, transparent 51%);
  background-size: 7px 7px, 11px 11px, 13px 13px, 9px 9px;
}

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x);
  transition: background .5s ease, color .5s ease, padding .4s ease, backdrop-filter .5s ease;
  color: var(--paper);
  mix-blend-mode: difference;
}
.site-header.is-solid {
  mix-blend-mode: normal;
  background: rgba(242,235,221,.86);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  color: var(--ink);
  padding: 14px var(--pad-x);
  border-bottom: 1px solid var(--line-soft);
}
/* ヘッダーが常にsolidのページ用（内部ページ） */
.site-header.is-page {
  mix-blend-mode: normal;
  background: rgba(242,235,221,.92);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  color: var(--ink);
  padding: 14px var(--pad-x);
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--jp-display);
  font-weight: 600; font-size: 14px; letter-spacing: .1em;
}
.brand__sep {
  font-weight: 300; font-size: 12px; opacity: .5; line-height: 1;
}
.brand__wordmark { display: flex; flex-direction: row; align-items: center; gap: 6px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-list { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-list a {
  font-family: var(--jp-display);
  font-size: 13.5px; font-weight: 500; letter-spacing: .12em;
  position: relative; padding-bottom: 2px;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: currentColor; transition: right .45s cubic-bezier(.2,.8,.2,1);
}
.nav-list a:hover::after { right: 0; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid currentColor;
  padding: 10px 18px;
  font-family: var(--jp-display); font-size: 12.5px; letter-spacing: .12em;
  border-radius: 999px;
  transition: background .35s ease, color .35s ease;
}
.nav-cta .arrow { display: inline-block; transform: translateX(0); transition: transform .35s ease; }
.nav-cta:hover .arrow { transform: translateX(4px); }
.menu-toggle { display: none; }

/* ── Mobile Sheet ── */
.mobile-sheet {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper);
  display: none; flex-direction: column;
  padding: 22px var(--pad-x);
}
.mobile-sheet.is-open { display: flex; }
.mobile-sheet header { display: flex; justify-content: space-between; align-items: center; }
.mobile-sheet nav { margin-top: 56px; display: flex; flex-direction: column; gap: 22px; }
.mobile-sheet nav a {
  font-family: var(--jp-display); font-size: 24px; font-weight: 500; letter-spacing: .1em;
  border-bottom: 1px solid var(--line); padding-bottom: 12px;
}
.close-btn {
  font-family: var(--en-mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
}

/* ── Section Primitives ── */
section { position: relative; padding: var(--section-y) var(--pad-x); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--en-mono);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.eyebrow .kanji {
  font-family: var(--jp-display); font-size: 13px; letter-spacing: .15em;
  text-transform: none; color: var(--ink);
}
.eyebrow .dash { display: inline-block; width: 42px; height: 1px; background: currentColor; opacity: .55; }

.h-display {
  font-family: var(--jp-serif);
  font-weight: 500;
  font-size: clamp(34px, 5.6vw, 80px);
  line-height: 1.28;
  letter-spacing: .04em;
  color: var(--ink);
}
.h-display em { font-style: normal; color: var(--accent-deep); font-weight: 500; }

.h-mid {
  font-family: var(--jp-serif);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1.35;
  letter-spacing: .04em;
  color: var(--ink);
}
.h-mid em { font-style: normal; color: var(--accent-deep); font-weight: 500; }

.body-jp {
  font-family: var(--jp-body);
  font-size: 15.5px;
  line-height: 2.05;
  color: var(--ink-2);
  letter-spacing: .08em;
}

.kicker-en {
  font-family: var(--en-display);
  font-style: italic; font-size: 22px;
  color: var(--ink-soft); letter-spacing: .02em; margin-bottom: 6px;
}

/* ── Image Helper ── */
.img-cover {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; will-change: transform;
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .18s; }
.reveal.delay-3 { transition-delay: .28s; }
.reveal.delay-4 { transition-delay: .38s; }

/* ── Page Hero (内部ページ共通) ── */
.page-hero {
  padding-top: calc(var(--section-y) + 80px);
  padding-bottom: var(--section-y);
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner { max-width: 1180px; margin: 0 auto; }
.page-hero .h-display { margin-top: 20px; margin-bottom: 28px; }
.page-hero .body-jp { max-width: 640px; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--en-mono); font-size: 11px;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 32px;
}
.breadcrumb a { transition: color .3s ease; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: .4; }

/* ── CTA Section ── */
.cta {
  background: var(--ink); color: var(--paper);
  padding: clamp(96px, 14vw, 180px) var(--pad-x);
  text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background:
    radial-gradient(40% 60% at 20% 20%, rgba(255,224,200,.4), transparent 65%),
    radial-gradient(50% 60% at 80% 80%, rgba(185,89,66,.5), transparent 65%);
}
.cta__inner { position: relative; max-width: 880px; margin: 0 auto; }
.cta .eyebrow { color: rgba(242,235,221,.65); }
.cta .eyebrow .kanji { color: var(--paper); }
.cta .h-display { color: var(--paper); font-weight: 500; }
.cta .h-display em { color: var(--accent-soft); }
.cta__buttons {
  margin-top: 56px; display: flex; gap: 18px;
  justify-content: center; flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 36px;
  font-family: var(--jp-display); font-size: 14px; letter-spacing: .15em;
  border-radius: 999px; border: 1px solid rgba(242,235,221,.5);
  color: var(--paper); transition: all .4s ease;
}
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--paper); }
.btn--dark {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.btn--dark:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--outline {
  background: transparent; border-color: var(--ink); color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform .35s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Footer ── */
.site-footer {
  background: var(--paper); color: var(--ink);
  padding: 96px var(--pad-x) 36px;
  border-top: 1px solid var(--line);
}
.foot__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px;
  padding-bottom: 64px; border-bottom: 1px solid var(--line);
}
.foot__logo { width: 150px; height: auto; display: block; mix-blend-mode: multiply; margin-bottom: 4px; }
.foot__brand .brand-mark {
  font-family: var(--jp-display); font-size: 28px; font-weight: 600; letter-spacing: .1em;
}
.foot__brand .brand-en {
  font-family: var(--en-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 8px;
}
.foot__brand p {
  font-size: 13.5px; color: var(--ink-soft); margin-top: 24px;
  line-height: 1.95; max-width: 320px;
}
.foot__col h6 {
  font-family: var(--jp-display); font-size: 13px; letter-spacing: .15em;
  font-weight: 600; margin-bottom: 22px;
}
.foot__col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.foot__col a { font-size: 13.5px; color: var(--ink-2); letter-spacing: .12em; transition: color .3s ease; }
.foot__col a:hover { color: var(--accent-deep); }
.foot__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px;
  font-family: var(--en-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.foot__bottom .legal { display: flex; gap: 24px; }
.foot__bottom .legal a:hover { color: var(--ink); }
.foot__social { display: flex; gap: 16px; align-items: center; }
.foot__social a { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); opacity: .6; transition: opacity .3s ease, color .3s ease; }
.foot__social a:hover { opacity: 1; color: var(--ink); }

/* ── Page Top Button ── */
.page-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease, background .3s ease, transform .3s ease;
}
.page-top.is-visible { opacity: 1; pointer-events: auto; }
.page-top:hover { background: var(--accent); transform: translateY(-3px); }
@media (max-width: 560px) {
  .page-top { bottom: 20px; right: 20px; width: 42px; height: 42px; font-size: 16px; }
}

/* ── Section More Link ── */
.sec-more {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--jp-display); font-size: 13.5px; letter-spacing: .15em; font-weight: 500;
  border: 1px solid var(--ink); padding: 16px 32px; border-radius: 999px;
  color: var(--ink); margin-top: 40px;
  transition: background .35s ease, color .35s ease;
}
.sec-more:hover { background: var(--ink); color: var(--paper); }
.sec-more--light {
  border-color: rgba(242,235,221,.6); color: var(--paper);
}
.sec-more--light:hover { background: rgba(242,235,221,.12); color: var(--paper); }
.sec-more .arrow { transition: transform .35s ease; }
.sec-more:hover .arrow { transform: translateX(4px); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-list, .nav-cta { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--en-mono); font-size: 11px;
    letter-spacing: .15em; text-transform: uppercase;
  }
  .menu-toggle .bars { display: flex; flex-direction: column; gap: 4px; }
  .menu-toggle .bars span { display: block; width: 22px; height: 1px; background: currentColor; }

  .foot__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot__bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 560px) {
  :root { --pad-x: 22px; }
  .foot__top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .brand__wordmark { flex-direction: column; align-items: flex-start; gap: 1px; }
  .brand__sep { display: none; }
}
