/* =========================================================
   TOKENS — shared across all STELA Demo pages
   ========================================================= */
:root {
  --paper: #fafaf7;
  --paper-tint: #f2f0e9;
  --paper-soft: #efede6;
  --ink: #1a1a1a;
  --ink-mid: #3a3a3a;
  --ink-faint: #8a8a86;
  --ink-trace: #b8b8b3;
  --line: #404040;
  --line-soft: #cfcfcf;
  --line-hair: #e5e5e5;
  --fill-light: #ececea;
  --accent: #16a34a;
  --accent-deep: #15803d;
  --accent-soft: #dcfce7;
  --ok: #2d7a4b;
  --ok-soft: #e3efe6;
  --warn: #b47a18;
  --warn-soft: #fbf0d9;

  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-lg: 15px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 42px;
  --fs-4xl: 64px;

  --font-sans: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  --gutter: 32px;
  --max-w: 1200px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-gutter: stable;
  overflow-y: scroll;
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  letter-spacing: 0.03em;
  font-feature-settings: "palt" 1, "kern" 1;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font: inherit; }

.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* =========================================================
   UTILITY
   ========================================================= */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-2xs);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--mute { color: var(--ink-faint); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  border: 1.5px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  transition: all .3s var(--ease-out);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: transparent; color: var(--accent); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { border-color: rgba(255,255,255,0.4); background: transparent; color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: 6px 12px; font-size: 10px; }
.btn--block { width: 100%; justify-content: center; }
.btn .arrow {
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width .3s var(--ease-out);
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 20px; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 247, 0.94);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line-hair);
  z-index: 50;
}
.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .mark { display: none; }   /* JB アイコン非表示 */
.logo .label {
  font-family: "Oswald", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;               /* Regular */
  letter-spacing: 0.04em;         /* 詰める */
  font-size: 1.35rem;             /* 少し小さく */
  text-transform: uppercase;
  line-height: 1;
}
.logo .label small {
  font-weight: 400;
  color: var(--ink-faint);
  font-size: var(--fs-2xs);
  margin-left: 6px;
  letter-spacing: 0.2em;
}

.nav-center { display: flex; gap: 40px; font-size: var(--fs-xs); font-weight: 400; }
.nav-center a { position: relative; padding: 6px 0; letter-spacing: 0.04em; }
.nav-center a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-center a:hover::after,
.nav-center a.active::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 16px; }
.tel-block { text-align: right; }
.tel-block .lbl {
  display: block;
  font-size: var(--fs-2xs);
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.tel-block .num {
  display: block;
  font-weight: 400;
  font-size: var(--fs-lg);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 400;
  transition: all .3s var(--ease-out);
}
.cart-btn:hover { background: var(--ink); color: var(--paper); }
.cart-btn .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-2xs);
  font-weight: 400;
}
.nav-search {
  border-top: 1px solid var(--line-hair);
  padding: 6px 0;
  display: flex; align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  color: var(--ink-faint);
}
.nav-search .icon { font-size: var(--fs-md); line-height: 1; }
.nav-search input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 2px 0; color: var(--ink); font-size: var(--fs-xs);
}
.nav-search input::placeholder { color: var(--ink-trace); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-foot {
  background: #fff;
  padding: 40px 0 28px;
  border-top: 1px solid var(--line-hair);
}
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px dotted var(--line-hair);
}
.foot-brand .logo { margin-bottom: 14px; }
.foot-addr {
  font-size: var(--fs-xs);
  line-height: 1.85;
  color: var(--ink-faint);
}
.foot-col h4 {
  font-size: var(--fs-2xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin-bottom: 12px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-xs); }
.foot-col a { color: var(--ink-faint); transition: color .2s var(--ease-out); }
.foot-col a:hover { color: var(--accent); }
.foot-bot {
  padding-top: 20px;
  text-align: center;
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* =========================================================
   PREVIEW BANNER (admin preview of unpublished equipment)
   ========================================================= */
.preview-banner {
  background: var(--warn);
  color: #fff;
  border-bottom: 3px solid var(--warn);
  position: sticky;
  top: 0;
  z-index: 60;
}
.preview-banner .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px var(--gutter);
  flex-wrap: wrap;
  font-size: var(--fs-sm);
}
.preview-banner__tag {
  display: inline-block;
  padding: 3px 10px;
  background: #fff;
  color: var(--warn);
  font-weight: 400;
  font-size: var(--fs-2xs);
  letter-spacing: 0.2em;
  flex-shrink: 0;
}
.preview-banner__msg { flex: 1; line-height: 1.6; }
.preview-banner__msg b { font-weight: 400; color: #fff; text-decoration: underline; }
.preview-banner__action {
  padding: 6px 14px;
  border: 1.5px solid rgba(255,255,255,0.6);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: all .2s var(--ease-out);
  flex-shrink: 0;
}
.preview-banner__action:hover { background: #fff; color: var(--warn); border-color: #fff; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { animation: rise .9s var(--ease-out) both; }
.d-1 { animation-delay: .05s; }
.d-2 { animation-delay: .18s; }
.d-3 { animation-delay: .3s; }
.d-4 { animation-delay: .42s; }
.d-5 { animation-delay: .54s; }

/* =========================================================
   RESPONSIVE (nav/footer)
   ========================================================= */
@media (max-width: 1024px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .nav-center, .tel-block, .nav-search { display: none; }
  .cart-btn { padding: 8px 14px; font-size: var(--fs-xs); }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
}
