/* ============================================================
   有限会社浅井商店 — 共通スタイルシート
   職人の品格 × 現代の技術
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --ai-950: #0a2036;
  --ai-900: #0d2c4d;
  --ai-800: #123b6b;
  --ai-700: #1b5585;
  --ai-600: #2677a1;
  --asagi: #2bb6c1;
  --kin: #b88b3b;
  --kin-light: #e2c77a;
  --ink: #0f172a;
  --muted: #5b6b82;

  --surface: rgba(255, 255, 255, 0.92);
  --line: rgba(10, 31, 51, 0.12);
  --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-2: 0 10px 36px rgba(0, 0, 0, 0.12);
  --shadow-3: 0 16px 48px rgba(0, 0, 0, 0.16);
  --radius-m: 16px;

  --container: 1200px;
  --pad-x: clamp(16px, 3.6vw, 28px);
  --section-gap: clamp(56px, 8vw, 100px);
  --header-h: 76px;
  --focus: #94c0ff;

  --grid-size: 24px;
  --grid-thickness: 1px;
  --grid-color: rgba(12, 43, 102, 0.03);

  /* Animation easing — craftsman: precise, deliberate */
  --ease-craft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", system-ui,
    -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Yu Gothic",
    Meiryo, sans-serif;
  color: var(--ink);
  line-height: 1.8;
  background: transparent;
  font-feature-settings: "palt" 1;
}
h1, h2, h3 {
  font-family: "Shippori Mincho B1", "Yu Mincho", serif;
  letter-spacing: 0.01em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--kin), var(--kin-light), var(--asagi));
  z-index: 999;
  pointer-events: none;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(184,139,59,0.4);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
main { padding-top: calc(var(--header-h) + 16px); }

/* ---------- Skip Link ---------- */
.skip {
  position: absolute; left: 12px; top: 12px;
  padding: 10px 12px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transform: translateY(-140%);
  transition: transform 0.18s ease;
  z-index: 1000;
}
.skip:focus { transform: translateY(0); }

body.-noScroll { overflow: hidden; }

/* ---------- Paper Background ---------- */
.paper-bg {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background-color: #eff7fa;
  background-image: url("./texture/japanese-paper.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.paper-bg::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 calc(var(--grid-size) - var(--grid-thickness)), var(--grid-color) calc(var(--grid-size) - var(--grid-thickness)) var(--grid-size)),
    repeating-linear-gradient(90deg, transparent 0 calc(var(--grid-size) - var(--grid-thickness)), var(--grid-color) calc(var(--grid-size) - var(--grid-thickness)) var(--grid-size)),
    radial-gradient(1200px 800px at 12% 0%, rgba(0,0,0,0.035), transparent 60%),
    radial-gradient(1000px 700px at 100% 100%, rgba(0,0,0,0.03), transparent 60%),
    linear-gradient(135deg, rgba(43,182,193,0.08), transparent 60%);
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
}
@media (max-width: 1024px) {
  .paper-bg { background-position: center top; }
}
@media (max-width: 600px) {
  :root { --grid-color: rgba(12, 43, 102, 0.018); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px);
  z-index: 120;
  transition: box-shadow 0.25s ease;
}
.site-header--shadow { box-shadow: var(--shadow-1); }

.nav {
  height: 100%; display: flex;
  align-items: center; justify-content: space-between;
  gap: 18px; padding-inline: var(--pad-x);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  inline-size: 48px; block-size: 48px;
  border-radius: 50%;
  background: radial-gradient(55% 55% at 50% 38%, var(--asagi), var(--ai-700));
  box-shadow: inset 0 0 0 2px #fff8, 0 6px 16px rgba(0,0,0,0.18);
  position: relative; isolation: isolate;
}
.brand__mark::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: inherit;
  border: 2px solid var(--kin);
  opacity: 0.9; pointer-events: none;
}
.brand__txt { font-weight: 900; letter-spacing: 0.04em; }
.badge-55 {
  margin-left: 8px; padding: 0.18rem 0.5rem;
  color: #fff;
  background: linear-gradient(135deg, var(--ai-900), var(--ai-700));
  border: 1px solid #fff3; border-radius: 9999px;
  font-size: 0.78rem; font-weight: 800;
}

/* ---------- Nav Links ---------- */
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a { position: relative; font-weight: 800; }
.nav__links a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -6px; height: 3px;
  background: linear-gradient(90deg, var(--kin), var(--ai-700));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease; border-radius: 999px;
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ai-800); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta {
  padding: 0.6rem 1rem; border-radius: 9999px;
  background: linear-gradient(135deg, var(--ai-800), var(--asagi));
  color: #fff; font-weight: 900;
  border: 1px solid #fff0e0;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.nav__cta:hover { filter: brightness(1.05); }

/* ---------- Mobile Menu Button ---------- */
.nav__menu { display: none; }
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__menu {
    display: grid; place-items: center;
    padding: 0.7rem 1rem; border-radius: 9999px;
    background: linear-gradient(135deg, var(--ai-800), var(--asagi));
    color: #fff; border: 1px solid #fff3;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    font-weight: 900;
  }
  .nav__menu:active { transform: translateY(1px); }
}

/* ---------- Backdrop ---------- */
.backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 18, 36, 0.82);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  z-index: 90;
}
.backdrop.is-show { opacity: 1; visibility: visible; pointer-events: auto; }

/* ---------- Drawer ---------- */
.drawer { display: none; }
@media (max-width: 900px) {
  .drawer {
    display: block; position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff; border-top: 1px solid var(--line);
    z-index: 110; opacity: 0;
    transform: translateY(-12px);
    visibility: hidden; pointer-events: none;
  }
  .drawer.is-open {
    visibility: visible; pointer-events: auto;
    animation: drawerIn 0.28s ease forwards;
  }
  .drawer.is-closing {
    visibility: visible; pointer-events: none;
    animation: drawerOut 0.22s ease forwards;
  }
  @keyframes drawerIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes drawerOut {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateY(-12px); }
  }
  .drawer ul {
    list-style: none; margin: 0;
    padding: 16px var(--pad-x) 22px;
    display: grid; gap: 12px;
  }
  .drawer li { opacity: 0; transform: translateY(-6px); }
  .drawer.is-open li { animation: itemIn 0.28s ease forwards; }
  .drawer.is-closing li { animation: itemOut 0.2s ease forwards; }
  @keyframes itemIn  { to { opacity: 1; transform: none; } }
  @keyframes itemOut { to { opacity: 0; transform: translateY(-6px); } }
  .drawer.is-open li:nth-child(1) { animation-delay: 0.05s; }
  .drawer.is-open li:nth-child(2) { animation-delay: 0.1s; }
  .drawer.is-open li:nth-child(3) { animation-delay: 0.15s; }
  .drawer.is-open li:nth-child(4) { animation-delay: 0.2s; }
  .drawer.is-open li:nth-child(5) { animation-delay: 0.25s; }
  .drawer a {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border-radius: 14px;
    font-weight: 900; color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 6px 18px rgba(0,0,0,0.16);
  }
  .drawer li:nth-child(1) a { background: linear-gradient(135deg, var(--ai-700), var(--asagi)); }
  .drawer li:nth-child(2) a { background: linear-gradient(135deg, #0b8b8b, var(--asagi)); }
  .drawer li:nth-child(3) a { background: linear-gradient(135deg, var(--kin), #e2b86c); }
  .drawer li:nth-child(4) a { background: linear-gradient(135deg, var(--ai-800), var(--asagi)); }
}

/* ---------- Section / Panel ---------- */
.section { padding-block: var(--section-gap); }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(16px, 2.6vw, 28px);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(2px);
  position: relative;
}
.panel::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18,59,107,0.07), transparent 60%),
    radial-gradient(600px 220px at 30% -10%, rgba(184,139,59,0.12), transparent 60%);
  mix-blend-mode: multiply;
}

/* ---------- Section Heading ---------- */
.secHead { margin-bottom: 20px; position: relative; }
.secHead__eyebrow {
  color: var(--ai-600); font-weight: 800;
  letter-spacing: 0.16em; font-size: 0.85rem;
}
.secHead__title {
  font-size: clamp(22px, 3.2vw, 34px);
  display: inline-block;
}
.secHead__title .u-line {
  display: block; height: 10px;
  background: linear-gradient(90deg, rgba(184,139,59,0.22), rgba(18,59,107,0.35), rgba(43,182,193,0.28));
  border-radius: 999px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease-craft);
  filter: blur(0.2px);
}
.secHead.is-revealed .u-line { transform: scaleX(1); }
.secHead__sub { color: var(--muted); }

/* ===== Gold Brush Stroke — 職人の筆 ===== */
.secHead__title .u-brush {
  display: block;
  height: 6px;
  margin-top: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--kin) 15%,
    var(--kin-light) 50%,
    var(--kin) 85%,
    transparent 100%
  );
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-craft);
  opacity: 0.6;
  filter: blur(0.5px);
}
.secHead.is-revealed .u-brush {
  transform: scaleX(1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.95rem 1.2rem; border-radius: 9999px;
  border: 1px solid var(--ai-800);
  font-weight: 900;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), filter 0.15s;
}
.btn i { font-size: 1.06em; }
.btn--fill {
  background: linear-gradient(135deg, var(--ai-800), var(--asagi));
  color: #fff;
}
.btn--fill:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 18px rgba(18,59,107,0.25);
  transform: translateY(-2px);
}
.btn--ghost {
  background: #fff; color: var(--ink);
  border-color: rgba(18,59,107,0.25);
}
.btn--ghost:hover {
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }

/* ---------- Card ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 16px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.card__title {
  margin-top: 10px; font-weight: 800;
  font-family: "Shippori Mincho B1", "Yu Mincho", serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
.card__txt {
  color: var(--muted); margin-top: 6px;
  word-break: keep-all; overflow-wrap: anywhere;
}
.card::after {
  content: ""; position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%; height: 3px;
  background: linear-gradient(90deg, var(--kin), var(--ai-700), var(--kin));
  border-radius: 999px;
  transition: transform 0.5s var(--ease-craft);
}
.card:hover::after { transform: translateX(-50%) scaleX(1); }

/* ---------- Badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.25rem 0.6rem; border-radius: 9999px;
  background: linear-gradient(135deg, rgba(18,59,107,0.08), rgba(43,182,193,0.08));
  font-weight: 700; font-size: 0.88rem;
  border: 1px solid var(--line);
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.35rem 0.6rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  font-weight: 800; color: #1f2a3a;
}
.chip i { color: var(--ai-700); }

/* ---------- Tag ---------- */
.tag {
  font-size: 0.8rem; color: #fff;
  background: linear-gradient(135deg, var(--ai-800), var(--asagi));
  padding: 0.22rem 0.6rem; border-radius: 9999px;
  white-space: nowrap;
}

/* ---------- Bullets ---------- */
.bullets {
  display: grid; gap: 10px; margin: 0; padding-left: 1.1rem;
  color: #1f2a3a;
}
.bullets li { color: var(--muted); }
.bullets b { color: var(--ink); }

/* ---------- CTA Block ---------- */
.cta {
  background: linear-gradient(135deg, var(--ai-900), var(--ai-700));
  color: #fff; border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow-2);
  position: relative; overflow: hidden;
}
.cta__title {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.8vw, 28px);
  font-family: "Shippori Mincho B1", "Yu Mincho", serif;
}
.cta__sub { opacity: 0.95; margin: 0; }
.cta__note { margin-top: 8px; opacity: 0.9; font-size: 0.95rem; }
.cta::after {
  content: ""; position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(184,139,59,0.06) 50%, transparent 60%);
  animation: ctaShimmer 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaShimmer {
  0%, 100% { transform: translateX(-30%) translateY(-30%) rotate(0deg); }
  50%      { transform: translateX(30%) translateY(30%) rotate(0deg); }
}

/* ---------- Footer ---------- */
footer { background: #0b1424; color: #e6eaf1; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px; padding: 28px var(--pad-x);
}
.footer__copy {
  border-top: 1px solid #fff2;
  text-align: center; padding: 14px var(--pad-x);
  font-size: 0.9rem; color: #9aa6bc;
}
@media (max-width: 900px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Page Top ---------- */
.pagetop {
  position: fixed; right: 16px; bottom: 16px;
  inline-size: 44px; block-size: 44px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--ai-800); color: #fff;
  box-shadow: var(--shadow-2); cursor: pointer;
  opacity: 0; transform: translateY(10px);
  transition: 0.25s var(--ease-out); z-index: 150;
}
.pagetop.is-show { opacity: 1; transform: none; }

/* =========================================================
   職人アニメーションシステム
   ========================================================= */

/* ===== Reveal Base ===== */
[data-animate] { opacity: 1; transform: none; }
.has-io [data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-craft),
    transform 0.8s var(--ease-craft);
}
.has-io [data-animate].is-revealed { opacity: 1; transform: none; }

/* ===== Reveal: スタガー（順次出現） ===== */
.has-io [data-stagger] [data-animate]:nth-child(1) { transition-delay: 0s; }
.has-io [data-stagger] [data-animate]:nth-child(2) { transition-delay: 0.12s; }
.has-io [data-stagger] [data-animate]:nth-child(3) { transition-delay: 0.24s; }
.has-io [data-stagger] [data-animate]:nth-child(4) { transition-delay: 0.36s; }
.has-io [data-stagger] [data-animate]:nth-child(5) { transition-delay: 0.48s; }
.has-io [data-stagger] [data-animate]:nth-child(6) { transition-delay: 0.6s; }
/* Legacy grid support */
.has-io .grid [data-animate]:nth-child(2) { transition-delay: 0.12s; }
.has-io .grid [data-animate]:nth-child(3) { transition-delay: 0.24s; }
.has-io .grid [data-animate]:nth-child(4) { transition-delay: 0.36s; }
.has-io .grid [data-animate]:nth-child(5) { transition-delay: 0.48s; }
.has-io .grid [data-animate]:nth-child(6) { transition-delay: 0.6s; }

/* ===== Reveal: 画像ワイプ（斜めに現れる） ===== */
.has-io [data-reveal="wipe"] {
  opacity: 0;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition:
    opacity 0.6s var(--ease-craft),
    clip-path 0.9s var(--ease-craft);
}
.has-io [data-reveal="wipe"].is-revealed {
  opacity: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ===== Reveal: スライドイン（左/右から） ===== */
.has-io [data-reveal="slide-left"] {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-craft), transform 0.7s var(--ease-craft);
}
.has-io [data-reveal="slide-left"].is-revealed { opacity: 1; transform: none; }

.has-io [data-reveal="slide-right"] {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.7s var(--ease-craft), transform 0.7s var(--ease-craft);
}
.has-io [data-reveal="slide-right"].is-revealed { opacity: 1; transform: none; }

/* ===== Reveal: スケールイン ===== */
.has-io [data-reveal="scale"] {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.7s var(--ease-craft), transform 0.7s var(--ease-craft);
}
.has-io [data-reveal="scale"].is-revealed { opacity: 1; transform: none; }

/* ===== 3Dティルト（カード） ===== */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 800px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.tilt-card:hover {
  box-shadow: var(--shadow-3);
}

/* ===== カウンター共通 ===== */
.counter {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  line-height: 1;
}

/* ===== Hero Fade-in (共通) ===== */
.hero__eyebrow { animation: heroFadeUp 0.8s 0.2s var(--ease-craft) both; }
.hero__title   { animation: heroFadeUp 0.9s 0.4s var(--ease-craft) both; }
.hero__lead    { animation: heroFadeUp 0.8s 0.6s var(--ease-craft) both; }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ===== Lightbox Overlay ===== */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 20px; cursor: pointer;
}
.lightbox-overlay.is-active { display: flex; }
.lightbox-overlay img {
  max-width: 92%; max-height: 92%;
  cursor: default;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lbIn 0.35s var(--ease-craft);
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: none; }
}

/* ===== Before/After スライダー ===== */
.ba {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  cursor: col-resize;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}
.ba img {
  display: block;
  width: 100%;
  pointer-events: none;
}
.ba__after {
  position: absolute; inset: 0;
  overflow: hidden;
  width: 50%;
}
.ba__after img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 0;
}
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  background: var(--kin);
  box-shadow: 0 0 12px rgba(184,139,59,0.4);
  z-index: 2;
}
.ba__handle::before {
  content: "\2194"; /* ↔ */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--kin);
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  display: grid; place-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.ba__label {
  position: absolute;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  pointer-events: none;
  z-index: 3;
}
.ba__label--before {
  left: 10px;
  background: rgba(0,0,0,0.6);
}
.ba__label--after {
  right: 10px;
  background: linear-gradient(135deg, var(--ai-800), var(--asagi));
}

/* ===== 金箔の浮遊 ===== */
.gold-float {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,139,59,0.4), rgba(184,139,59,0));
  pointer-events: none;
  animation: goldFloat linear infinite;
}
@keyframes goldFloat {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
  8%   { opacity: 0.8; }
  92%  { opacity: 0.8; }
  100% { transform: translateY(-100vh) rotate(180deg) scale(0.3); opacity: 0; }
}

/* ===== Section Divider ===== */
.section-divider {
  text-align: center;
  padding: 12px 0;
  opacity: 0.3;
}
.section-divider svg { width: clamp(120px, 20vw, 200px); height: auto; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .has-io [data-animate],
  .has-io [data-reveal="wipe"],
  .has-io [data-reveal="slide-left"],
  .has-io [data-reveal="slide-right"],
  .has-io [data-reveal="scale"] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .nav, .drawer, .pagetop, .fcta, .paper-bg, .backdrop, .scroll-progress { display: none !important; }
  .hero { background: none !important; }
  a[href]:after { content: " (" attr(href) ")"; font-size: 90%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { padding-block: clamp(64px, 8vw, 140px); }
}
@media (max-width: 760px) {
  :root { --pad-x: 18px; }
}
@media (max-width: 600px) {
  :root { --section-gap: 56px; }
  .btn { padding: 0.9rem 1rem; }
  .brand__mark { inline-size: 40px; block-size: 40px; }
}
@media (max-width: 420px) {
  .badge-55 { display: none; }
}
