/* ============================================================
   堺打刃物 重光 — SHIGEMITSU Sakai Forged Blades
   炭黒 #121212 ／ 鋼 #B9C0C6 ／ 緋 #D2622A ／ 和紙 #F2EDE4 ／ 錆浅葱 #5C7A78
   Mobile-first (375px). Zen Old Mincho × IBM Plex Sans JP.
   ============================================================ */

:root {
  --sumi: #121212;          /* 炭黒 */
  --sumi-2: #181817;        /* panel */
  --sumi-3: #1f1f1e;
  --hagane: #B9C0C6;        /* 鋼 */
  --hi: #D2622A;            /* 緋 */
  --hi-bright: #E8813F;
  --washi: #F2EDE4;         /* 和紙 */
  --sabi: #5C7A78;          /* 錆浅葱 */
  --ink: rgba(242, 237, 228, 0.86);
  --ink-dim: rgba(242, 237, 228, 0.60);
  --ink-faint: rgba(242, 237, 228, 0.38);
  --line: rgba(185, 192, 198, 0.16);
  --line-strong: rgba(185, 192, 198, 0.30);
  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", serif;
  --gothic: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --pad: clamp(24px, 6vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.nb { display: inline-block; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--sumi);
  color: var(--ink);
  font-family: var(--gothic);
  font-weight: 300;
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: 0.05em;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 16px; } }

::selection { background: var(--hi); color: var(--sumi); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

:focus-visible {
  outline: 2px solid var(--hi);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---- grain ---- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.4%); }
  50% { transform: translate(1.6%, -1%); }
  75% { transform: translate(-1%, -1.8%); }
  100% { transform: translate(0, 0); }
}

/* ============ header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(18, 18, 18, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.wordmark {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.32em;
  color: var(--washi);
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
}
.wordmark .en {
  font-family: var(--gothic);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--ink-faint);
  transform: translateY(-1px);
}
.main-nav { display: none; }
@media (min-width: 900px) {
  .main-nav { display: flex; gap: 40px; }
  .main-nav a {
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--ink-dim);
    position: relative;
    padding: 4px 0;
    transition: color 0.4s var(--ease);
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--hi);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease);
  }
  .main-nav a:hover { color: var(--washi); }
  .main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--washi);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(21deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-21deg); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* mobile overlay nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(14, 14, 13, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay a {
  font-family: var(--mincho);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--washi);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.nav-overlay.open a { opacity: 1; transform: none; }
.nav-overlay a small {
  font-family: var(--gothic);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--hi);
}
.nav-overlay a:nth-child(1) { transition-delay: 0.08s; }
.nav-overlay a:nth-child(2) { transition-delay: 0.14s; }
.nav-overlay a:nth-child(3) { transition-delay: 0.20s; }
.nav-overlay a:nth-child(4) { transition-delay: 0.26s; }
.nav-overlay a:nth-child(5) { transition-delay: 0.32s; }

/* ============ hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  opacity: 0.52;
  transform: scale(1.06);
  animation: hero-drift 22s var(--ease) forwards;
}
@keyframes hero-drift {
  from { transform: scale(1.12); }
  to { transform: scale(1.02); }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,18,18,0.55) 0%, rgba(18,18,18,0.15) 42%, rgba(18,18,18,0.92) 100%),
    radial-gradient(120% 90% at 18% 62%, rgba(18,18,18,0.85) 0%, rgba(18,18,18,0.25) 55%, transparent 100%);
}
#embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* faint forge-glow rising from below the fold */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -12%;
  height: 44%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(58% 88% at 42% 100%, rgba(210, 98, 42, 0.13) 0%, rgba(210, 98, 42, 0.045) 46%, transparent 74%);
}
.hero-inner {
  width: 100%;
  padding: 120px var(--pad) 140px;
  max-width: 1280px;
  margin-inline: auto;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--hi-bright);
  margin-bottom: clamp(28px, 5vh, 48px);
}
.hero-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--hi);
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .hero-kicker { font-size: 9.5px; letter-spacing: 0.3em; }
  .hero-kicker::before { width: 24px; }
}
.hero h1 {
  font-family: var(--mincho);
  font-weight: 900;
  font-size: clamp(52px, 13vw, 128px);
  line-height: 1.22;
  letter-spacing: 0.12em;
  color: var(--washi);
  font-feature-settings: "palt";
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.6);
}
.hero h1 .maru { color: var(--hi); }
.hero-sub {
  margin-top: clamp(26px, 4.5vh, 44px);
  font-size: clamp(13px, 3.6vw, 15.5px);
  line-height: 2.3;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
  max-width: 30em;
}
.hero-meta {
  margin-top: clamp(34px, 6vh, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  font-size: 11px;
  letter-spacing: 0.26em;
  font-weight: 400;
  color: var(--ink-faint);
}
.hero-meta span {
  padding: 0 18px;
  border-left: 1px solid var(--line-strong);
}
.hero-meta span:first-child { padding-left: 0; border-left: 0; }

/* hero entrance — calm staggered rise */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.hero-kicker { animation: hero-rise 1.1s var(--ease) 0.15s backwards; }
.hero h1 { animation: hero-rise 1.3s var(--ease) 0.3s backwards; }
.hero-sub { animation: hero-rise 1.3s var(--ease) 0.55s backwards; }
.hero-meta { animation: hero-rise 1.3s var(--ease) 0.75s backwards; }
.hero-side, .scroll-cue { animation: hero-rise 1.6s var(--ease) 1.1s backwards; }
body.static .hero-kicker, body.static .hero h1, body.static .hero-sub,
body.static .hero-meta, body.static .hero-side, body.static .scroll-cue { animation: none; }

.hero-side {
  position: absolute;
  right: calc(var(--pad) * 0.5);
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--mincho);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.52em;
  color: var(--ink-faint);
  z-index: 2;
  display: none;
}
@media (min-width: 700px) { .hero-side { display: block; } }

.scroll-cue {
  position: absolute;
  bottom: 0;
  left: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 9.5px;
  letter-spacing: 0.4em;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
  padding-bottom: 0;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--hi), transparent);
  animation: cue 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ============ stats band ============ */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sumi);
}
.stats-grid {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: clamp(28px, 5vw, 48px) var(--pad);
  border-left: 1px solid var(--line);
  min-width: 0;
}
.stat:first-child { border-left: 0; }
.stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
.stat:nth-child(4) { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .stat:nth-child(3) { border-left: 1px solid var(--line); border-top: 0; }
  .stat:nth-child(4) { border-top: 0; }
}
.stat-num {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.1;
  color: var(--washi);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-num .unit {
  font-size: 0.36em;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--hi);
}
.stat-label {
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
}

/* ============ shared section chrome ============ */
.section {
  position: relative;
  padding: clamp(96px, 16vw, 190px) 0;
}
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.sec-head { position: relative; margin-bottom: clamp(48px, 9vw, 96px); }
.sec-mark {
  position: absolute;
  top: 50%;
  right: -0.05em;
  transform: translateY(-58%);
  font-family: var(--mincho);
  font-weight: 900;
  font-size: clamp(150px, 34vw, 380px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(185, 192, 198, 0.13);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--hi-bright);
  margin-bottom: 20px;
}
.sec-label::before { content: ""; width: 30px; height: 1px; background: var(--hi); }
.sec-title {
  position: relative;
  z-index: 1;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(30px, 7.4vw, 56px);
  line-height: 1.5;
  letter-spacing: 0.14em;
  color: var(--washi);
  font-feature-settings: "palt";
}
.sec-lede {
  position: relative;
  z-index: 1;
  margin-top: clamp(20px, 4vw, 32px);
  max-width: 34em;
  color: var(--ink-dim);
  font-size: clamp(13.5px, 3.5vw, 15px);
  line-height: 2.3;
  letter-spacing: 0.08em;
}
.side-label {
  position: absolute;
  top: clamp(96px, 16vw, 190px);
  right: calc(var(--pad) * 0.42);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--mincho);
  font-size: 11px;
  letter-spacing: 0.5em;
  color: var(--ink-faint);
  display: none;
}
@media (min-width: 1100px) { .side-label { display: block; } }

/* ============ 沿革 history ============ */
.history { background: var(--sumi); overflow: hidden; }
.timeline {
  position: relative;
  z-index: 1;
  margin-top: clamp(30px, 6vw, 40px);
  border-left: 1px solid var(--line-strong);
  margin-left: 6px;
}
@media (min-width: 900px) {
  .timeline { margin-left: 120px; }
}
.tl-item {
  position: relative;
  padding: 0 0 clamp(44px, 8vw, 72px) clamp(28px, 6vw, 64px);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 14px;
  width: 7px;
  height: 7px;
  background: var(--sumi);
  border: 1px solid var(--hi);
  transform: rotate(45deg);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tl-item:hover::before {
  background: var(--hi);
  box-shadow: 0 0 14px rgba(210, 98, 42, 0.55);
}
.tl-year { transition: color 0.5s var(--ease); }
.tl-item:hover .tl-year { color: var(--washi); }
.tl-era {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--hi-bright);
}
.tl-year {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: 0.08em;
  color: var(--hagane);
  line-height: 1.3;
  margin: 2px 0 6px;
  font-variant-numeric: tabular-nums;
}
.tl-gen {
  font-family: var(--mincho);
  font-size: clamp(16px, 4vw, 19px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--washi);
  margin-bottom: 8px;
}
.tl-body {
  max-width: 32em;
  color: var(--ink-dim);
  font-size: 13.5px;
  letter-spacing: 0.07em;
}

/* ============ 工程 process ============ */
.process {
  background: var(--sumi-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.process .sec-head { padding-inline: var(--pad); max-width: 1280px; margin-inline: auto; }

.proc-viewport { position: relative; }
.proc-track {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  padding: 0 var(--pad) 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.proc-track::-webkit-scrollbar { display: none; }
.proc-panel {
  flex: 0 0 min(78vw, 460px);
  scroll-snap-align: center;
  position: relative;
}
.proc-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sumi-3);
}
.proc-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
  filter: saturate(0.92);
}
.proc-panel:hover .proc-figure img { transform: scale(1.1); filter: saturate(1.05); }
.proc-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,18,0.72), transparent 46%);
}
.proc-no {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(242, 237, 228, 0.75);
  z-index: 2;
  writing-mode: vertical-rl;
  text-orientation: upright;
}
.proc-name {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  font-family: var(--mincho);
  font-weight: 900;
  font-size: clamp(34px, 7vw, 46px);
  letter-spacing: 0.16em;
  color: var(--washi);
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}
.proc-cap {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  line-height: 2.1;
  max-width: 24em;
}
.proc-cap strong {
  display: block;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.24em;
  color: var(--hagane);
  margin-bottom: 4px;
}
.proc-progress {
  margin: 10px var(--pad) 0;
  height: 1px;
  background: var(--line);
  position: relative;
  max-width: 1152px;
}
@media (min-width: 1280px) { .proc-progress { margin-inline: auto; } }
.proc-progress i {
  position: absolute;
  left: 0; top: 0;
  height: 1px;
  width: 20%;
  background: var(--hi);
  transition: width 0.3s linear;
}

/* desktop: pinned horizontal — everything must fit 100vh while pinned */
@media (min-width: 1000px) {
  body.gsap-pin .process { padding: 8vh 0 4vh; }
  body.gsap-pin .process .sec-head {
    display: grid;
    grid-template-columns: auto minmax(280px, 520px);
    column-gap: 72px;
    align-items: end;
    margin-bottom: 3.5vh;
  }
  body.gsap-pin .process .sec-label { grid-column: 1; }
  body.gsap-pin .process .sec-title { grid-column: 1; }
  body.gsap-pin .process .sec-lede { grid-column: 2; grid-row: 2; margin-top: 0; padding-bottom: 8px; }
  body.gsap-pin .process .sec-mark { font-size: clamp(150px, 26vw, 300px); }
  body.gsap-pin .proc-track {
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
    width: -moz-max-content;
    width: max-content;
    padding-right: 14vw;
  }
  body.gsap-pin .proc-panel { flex: 0 0 auto; width: clamp(380px, 36vw, 540px); }
  body.gsap-pin .proc-figure { aspect-ratio: auto; height: 44vh; }
  body.gsap-pin .proc-cap { margin-top: 14px; }
}

/* ============ 刃文 hamon interlude ============ */
.hamon-strip {
  background: var(--sumi);
  padding: clamp(80px, 13vw, 150px) 0;
  overflow: hidden;
}
.hamon-svg-wrap { position: relative; z-index: 1; }
.hamon-svg { width: 100%; height: auto; display: block; }
.hamon-svg .blade-outline {
  fill: rgba(185, 192, 198, 0.04);
  stroke: rgba(185, 192, 198, 0.35);
  stroke-width: 1;
}
.hamon-svg .hamon-line {
  fill: none;
  stroke: var(--hagane);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(210, 98, 42, 0.55));
}
@media (max-width: 700px) {
  .hamon-svg .hamon-line { stroke-width: 2.6; }
}
.hamon-svg .edge-line {
  fill: none;
  stroke: rgba(242, 237, 228, 0.5);
  stroke-width: 0.6;
}
body.static .hamon-svg .hamon-line { stroke-dashoffset: 0; }
.hamon-note {
  margin-top: clamp(28px, 5vw, 44px);
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.hamon-note h3 {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(20px, 5vw, 28px);
  letter-spacing: 0.2em;
  color: var(--washi);
}
.hamon-note p {
  font-size: 12.5px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  max-width: 34em;
}

/* light sweep figure */
.sweep {
  position: relative;
  margin-top: clamp(48px, 8vw, 80px);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  min-height: 240px;
  background: var(--sumi-3);
}
.sweep img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.sweep-light {
  position: absolute;
  inset: -2%;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent calc(var(--sx, 30%) - 14%),
    rgba(220, 228, 235, 0.05) calc(var(--sx, 30%) - 7%),
    rgba(240, 246, 252, 0.34) var(--sx, 30%),
    rgba(220, 228, 235, 0.05) calc(var(--sx, 30%) + 7%),
    transparent calc(var(--sx, 30%) + 14%)
  );
  mix-blend-mode: screen;
}
.sweep figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-size: 10.5px;
  letter-spacing: 0.34em;
  color: rgba(242, 237, 228, 0.65);
}

/* ============ 刃 blades ============ */
.blades { background: var(--sumi); overflow: hidden; }
.blade-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(40px, 7vw, 72px);
}
@media (min-width: 1000px) {
  .blade-layout { grid-template-columns: 340px 1fr; align-items: start; }
}
.blade-still {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  max-width: 420px;
  background: var(--sumi-3);
}
.blade-still img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.blade-still figcaption {
  position: absolute;
  right: 12px;
  top: 12px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--mincho);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: rgba(242, 237, 228, 0.8);
  text-shadow: 0 1px 12px rgba(0,0,0,0.8);
}
.blade-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.blade-item {
  padding: clamp(30px, 5.5vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  transition: background 0.5s var(--ease);
}
@media (min-width: 760px) {
  .blade-item { grid-template-columns: minmax(180px, 240px) 1fr; gap: 32px; }
}
.blade-name { display: flex; align-items: baseline; gap: 12px; }
.blade-name ruby {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(30px, 7vw, 40px);
  letter-spacing: 0.14em;
  color: var(--washi);
  ruby-align: space-around;
}
.blade-name rt {
  font-family: var(--gothic);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
}
.blade-copy {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.07em;
  margin-top: 8px;
  max-width: 22em;
}
.blade-specs { display: grid; gap: 0; align-content: start; }
.spec-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(185, 192, 198, 0.14);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--sabi);
  padding-top: 4px;
}
.spec-row dd { color: var(--ink); font-weight: 400; transition: color 0.4s var(--ease); }
.spec-row dt { transition: color 0.4s var(--ease); }
.blade-item:hover .spec-row dd { color: var(--washi); }
.blade-item:hover .spec-row dt { color: var(--hi-bright); }
.spec-row .price {
  font-family: var(--mincho);
  font-size: 19px;
  font-weight: 700;
  color: var(--washi);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.spec-row .price small {
  font-family: var(--gothic);
  font-size: 10.5px;
  font-weight: 300;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  margin-left: 8px;
}
.blade-foot {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  line-height: 2.2;
}

/* ============ 誂え made-to-order ============ */
.order {
  background: var(--sumi-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.order-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  counter-reset: step;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 1000px) {
  .order-steps { grid-template-columns: repeat(5, 1fr); border-top: 0; border-left: 1px solid var(--line-strong); }
}
.order-step {
  padding: clamp(24px, 4.5vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
@media (min-width: 1000px) {
  .order-step {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 8px clamp(18px, 2vw, 28px) 32px;
  }
}
.order-step .no {
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--hi-bright);
  display: block;
  margin-bottom: 10px;
}
.order-step h3 {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.22em;
  color: var(--washi);
  margin-bottom: 8px;
}
.order-step p {
  font-size: 12.5px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  line-height: 2;
  max-width: 30em;
}

/* 納期 timeline */
.leadtime { margin-top: clamp(56px, 9vw, 88px); position: relative; z-index: 1; }
.leadtime-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.leadtime-head h3 {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(18px, 4.5vw, 24px);
  letter-spacing: 0.22em;
  color: var(--washi);
}
.leadtime-head span {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
}
.lt-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
}
@media (min-width: 760px) { .lt-bar { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 759px) {
  .lt-seg:nth-child(4) { border-left: 0; }
  .lt-seg:nth-child(n+4) { border-top: 1px solid var(--line); }
}
.lt-seg {
  position: relative;
  padding: 16px 6px 14px;
  border-left: 1px solid var(--line);
  text-align: center;
}
.lt-seg:first-child { border-left: 0; }
.lt-seg .m {
  display: block;
  font-family: var(--mincho);
  font-size: 15px;
  font-weight: 700;
  color: var(--hagane);
  font-variant-numeric: tabular-nums;
}
.lt-seg .m small { font-size: 9px; letter-spacing: 0.2em; color: var(--ink-faint); font-weight: 300; }
.lt-seg .ph {
  display: block;
  margin-top: 6px;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  min-height: 2.6em;
}
.lt-seg::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--seg-color, var(--hi));
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}
.rv.on .lt-seg::after, body.static .lt-seg::after { transform: scaleX(1); }
.lt-seg:nth-child(1)::after { transition-delay: 0.10s; }
.lt-seg:nth-child(2)::after { transition-delay: 0.25s; }
.lt-seg:nth-child(3)::after { transition-delay: 0.40s; }
.lt-seg:nth-child(4)::after { transition-delay: 0.55s; }
.lt-seg:nth-child(5)::after { transition-delay: 0.70s; }
.lt-seg:nth-child(6)::after { transition-delay: 0.85s; }
.lt-seg.p-consult { --seg-color: var(--sabi); }
.lt-seg.p-forge { --seg-color: var(--hi); }
.lt-seg.p-sharpen { --seg-color: var(--hagane); }
.lt-seg.p-finish { --seg-color: var(--washi); }

.order-cta {
  margin-top: clamp(48px, 8vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 38px;
  border: 1px solid var(--line-strong);
  font-family: var(--mincho);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--washi);
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
  min-height: 56px;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hi);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--sumi); border-color: var(--hi); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arrow { font-family: var(--gothic); font-weight: 300; transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(6px); }
.order-cta p { font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-faint); }

/* ============ 工房 atelier ============ */
.atelier { background: var(--sumi); overflow: hidden; }
.atelier-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(40px, 7vw, 80px);
}
@media (min-width: 1000px) {
  .atelier-grid { grid-template-columns: 1.05fr 1fr; align-items: center; }
}
.atelier-figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sumi-3);
}
.atelier-figure img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.atelier-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(185, 192, 198, 0.12);
  pointer-events: none;
}
.info-table { border-top: 1px solid var(--line-strong); }
.info-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  letter-spacing: 0.08em;
}
.info-row dt {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  color: var(--sabi);
  font-weight: 400;
  padding-top: 4px;
}
.info-row dd { color: var(--ink); }
.info-row dd small { display: block; color: var(--ink-faint); font-size: 11px; letter-spacing: 0.1em; }
.atelier-note {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  line-height: 2.2;
}

/* ============ footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0e0e0d;
  padding: clamp(56px, 9vw, 88px) 0 40px;
}
.footer-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: end; }
}
.footer-mark {
  font-family: var(--mincho);
  font-weight: 900;
  font-size: clamp(40px, 9vw, 64px);
  letter-spacing: 0.3em;
  color: var(--washi);
  line-height: 1.2;
}
.footer-mark small {
  display: block;
  font-family: var(--gothic);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.5em;
  color: var(--ink-faint);
  margin-top: 12px;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--ink-dim);
  transition: color 0.4s;
  padding: 6px 0;
}
.footer-nav a:hover { color: var(--hi-bright); }
.footer-base {
  margin-top: clamp(40px, 7vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  line-height: 2;
}
.footer-base a { color: var(--sabi); border-bottom: 1px solid rgba(92, 122, 120, 0.4); transition: color 0.3s, border-color 0.3s; }
.footer-base a:hover { color: var(--hi-bright); border-color: var(--hi); }

/* ============ reveals ============ */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.rv.on { opacity: 1; transform: none; }
body.static .rv, body.reduced .rv { opacity: 1; transform: none; transition: none; }

/* line-draw reveal for hairlines */
.rule-draw { position: relative; }
.rule-draw::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--hi);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease) 0.2s;
}
.rv.on .rule-draw::before, body.static .rule-draw::before { transform: scaleX(1); }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero-bg img { animation: none; transform: none; }
  .scroll-cue::after { animation: none; transform: scaleY(1); }
  .rv { opacity: 1; transform: none; transition: none; }
  .hamon-svg .hamon-line { stroke-dashoffset: 0; }
  .lt-seg::after { transform: scaleX(1); transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
body.static .grain { animation: none; }
body.static .hero-bg img { animation: none; transform: none; }
body.static .scroll-cue::after { animation: none; }
