/* ZAKU demo: two inks, yellow sheet and black. */

:root {
    --y: #FFBB00;
    --ink: #0B0B0A;
    --ink-2: #1C1B18;
    --y-dim: #B98700;
    --paper: #FFF6DC;
    --bar-h: 3.5rem;
    --gut: clamp(1rem, 3.2vw, 3rem);
    --font: "Archivo", system-ui, sans-serif;
    --jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
    font-family: var(--font);
    font-variation-settings: "wdth" 100;
    background: var(--ink);
    color: var(--paper);
    line-height: 1.5;
}
::selection { background: var(--y); color: var(--ink); }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { letter-spacing: -.02em; margin: 0; }
p { margin: 0; }

html { scrollbar-color: var(--y) var(--ink); }

.skip {
    position: fixed; left: 1rem; top: 1rem; z-index: 50; transform: translateY(-300%);
    background: var(--ink); color: var(--y); padding: .6rem 1rem; font-weight: 700;
}
.skip:focus { transform: none; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }

/* Bar */
.bar {
    position: fixed; inset: 0 0 auto; z-index: 20; height: var(--bar-h);
    display: flex; align-items: center; gap: 2rem; padding: 0 var(--gut);
    background: var(--y); color: var(--ink);
    border-bottom: 1px solid var(--ink);
}
.bar__brand { display: flex; align-items: baseline; gap: .35rem; text-decoration: none; margin-right: auto; }
.bar__zaku { font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.45rem; letter-spacing: -.03em; }
.bar__knives { font-weight: 500; font-size: 1.05rem; }
.bar__nav { display: flex; gap: 1.6rem; }
.bar__nav a, .bar__shop { text-decoration: none; font-weight: 600; font-size: .95rem; }
.bar__nav a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); padding: .2rem 0; }
.bar__nav a:hover { background-size: 100% 2px; }
.bar__shop {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--ink); color: var(--y); padding: .55rem 1rem;
}
.bar__shop svg { width: .8rem; height: .8rem; transition: transform .3s var(--ease); }
.bar__shop:hover svg { transform: translate(2px, -2px); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 3.25rem; padding: .85rem 1.6rem; border-radius: 0;
    font-weight: 700; font-size: 1rem; text-decoration: none;
    transition: background .2s, color .2s, transform .3s var(--ease);
}
.btn--ink { background: var(--ink); color: var(--y); }
.btn--ink:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn--line { border: 2px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--y); }
.btn__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 0 rgba(255, 187, 0, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 .5rem rgba(255, 187, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 187, 0, 0); } }

/* Hero: the cut */
.cut { --p: 0; --sl: 57%; --sr: 39%; --angle: -6deg; height: 230vh; height: 230svh; position: relative; }
.cut__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); }
.cut__sheet {
    position: absolute; inset: 0; background: var(--y); color: var(--ink);
    padding: calc(var(--bar-h) + 2vh) var(--gut) 0;
    will-change: transform;
}
.cut__sheet--top {
    clip-path: polygon(0 0, 100% 0, 100% var(--sr), 0 var(--sl));
    transform: translate3d(0, calc(var(--p) * -38vh - 3px), 0);
}
.cut__sheet--bottom {
    clip-path: polygon(0 var(--sl), 100% var(--sr), 100% 100%, 0 100%);
    transform: translate3d(0, calc(var(--p) * 38vh + 3px), 0);
}
.cut__title {
    display: flex; flex-direction: column;
    font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase;
    line-height: .84; letter-spacing: -.045em; margin-top: 15vh;
}
.cut__l1 { font-size: min(13.6vw, 27vh); }
.cut__l2 { font-size: min(10.2vw, 20.2vh); padding-left: .04em; }
.cut__foot {
    position: absolute; left: var(--gut); right: var(--gut); bottom: 5vh;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
}
.cut__lede { max-width: 34ch; font-size: clamp(1.05rem, 1.3vw, 1.3rem); font-weight: 500; line-height: 1.4; }
.cut__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cut__knife {
    position: absolute; z-index: 3; left: 50%; top: calc((var(--sl) + var(--sr)) / 2);
    width: min(66vw, 1000px); height: auto; max-width: none;
    transform: translate(-50%, -86%) rotate(var(--angle)) translateX(calc(42vw - var(--p) * 150vw)) scaleX(-1);
    filter: drop-shadow(0 18px 22px rgba(11, 11, 10, .35));
    pointer-events: none;
}
.cut__under {
    position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem;
    color: var(--y); opacity: calc(var(--p) * 1.6 - .3);
}
.cut__kanji { font-family: var(--jp); font-weight: 900; font-size: min(24vw, 30vh); line-height: 1; }
.cut__under-line { font-weight: 800; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1rem, 2vw, 1.6rem); }

/* Picker */
.pick { padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem); background: var(--ink); }
.pick__title {
    font-weight: 900; font-variation-settings: "wdth" 112; text-transform: uppercase;
    font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: .92; letter-spacing: -.035em; color: var(--y);
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.pick__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.pick__list { display: flex; flex-direction: column; border-top: 1px solid rgba(255, 187, 0, .35); }
.pick__opt {
    all: unset; box-sizing: border-box; cursor: pointer;
    display: flex; justify-content: space-between; align-items: baseline;
    padding: .7rem .2rem; border-bottom: 1px solid rgba(255, 187, 0, .35);
    color: var(--paper); transition: color .2s, padding .4s var(--ease);
}
.pick__opt:focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }
.pick__name { font-weight: 800; font-variation-settings: "wdth" 115; font-size: clamp(1.3rem, 2.2vw, 1.9rem); text-transform: uppercase; letter-spacing: -.02em; }
.pick__jp { font-family: var(--jp); font-weight: 900; font-size: 1.05rem; color: var(--y-dim); }
.pick__opt:hover { color: var(--y); }
.pick__opt[aria-checked="true"] { color: var(--ink); background: var(--y); padding-left: 1rem; padding-right: 1rem; }
.pick__opt[aria-checked="true"] .pick__jp { color: var(--ink); }
.pick__plate { margin: 0; }
.pick__svg { width: 100%; height: auto; overflow: visible; display: block; }
.pick__blade { fill: var(--y); transition: d .6s var(--ease); }
.pick__handle path { fill: var(--ink-2); stroke: var(--y); stroke-width: 1.2; }
.pick__handle rect { fill: var(--y); }
.pick__dim line { stroke: var(--y-dim); stroke-width: 1; }
.pick__dimline, .pick__dimend { transition: x2 .6s var(--ease), x1 .6s var(--ease); }
.pick__cap { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: baseline; margin-top: 1.5rem; }
.pick__len { font-weight: 800; font-size: 1.25rem; color: var(--y); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick__use { font-size: 1.15rem; max-width: 48ch; }
.pick__note { margin-top: 2.5rem; font-size: .9rem; color: rgba(255, 246, 220, .7); max-width: 60ch; }

/* Wall */
.wall { background: var(--y); color: var(--ink); padding: clamp(4rem, 9vw, 8rem) 0; }
.wall__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 5vw, 4rem); }
.wall__title { font-weight: 900; font-variation-settings: "wdth" 112; text-transform: uppercase; font-size: clamp(2.2rem, 5.4vw, 5rem); line-height: .92; letter-spacing: -.035em; max-width: 12ch; }
.wall__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.wall__item { display: grid; grid-template-rows: auto 1fr; padding: 2.5rem 1.25rem 0; border-right: 1px solid var(--ink); }
.wall__item:last-child { border-right: 0; }
.wall__knife { height: clamp(20rem, 46vw, 34rem); width: auto; justify-self: center; transition: transform .6s var(--ease); filter: drop-shadow(0 14px 14px rgba(11, 11, 10, .25)); }
.wall__item:hover .wall__knife { transform: translateY(-1rem) rotate(-2deg); }
.wall__tag { border-top: 1px solid var(--ink); margin-top: 2rem; padding: 1rem 0 1.5rem; display: grid; gap: .2rem; align-content: start; }
.wall__line { font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: .95rem; }
.wall__name { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.wall__spec { font-size: .9rem; }
.wall__price { font-weight: 900; font-size: 1.6rem; margin-top: .6rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.wall__stock { font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: .4rem; }
.wall__stock::before { content: ""; width: .5rem; height: .5rem; background: var(--ink); border-radius: 50%; }
.wall__stock.is-out { text-decoration: line-through; text-decoration-thickness: 2px; }
.wall__stock.is-out::before { background: transparent; border: 1.5px solid var(--ink); }

/* Craft */
.craft { background: var(--ink); padding: clamp(5rem, 11vw, 9rem) 0; overflow: hidden; }
.craft__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.craft__kanji { font-family: var(--jp); font-weight: 900; color: var(--y); font-size: clamp(12rem, 30vw, 28rem); line-height: .85; text-align: center; }
.craft__title { font-weight: 900; font-variation-settings: "wdth" 110; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.03em; color: var(--y); max-width: 16ch; }
.craft__body { margin-top: 1.5rem; font-size: 1.15rem; max-width: 50ch; }
.craft__regions { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid rgba(255, 187, 0, .35); }
.craft__regions li { display: flex; justify-content: space-between; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid rgba(255, 187, 0, .35); }
.craft__place { font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.02em; }
.craft__pref { color: var(--y); font-weight: 600; }

/* Test cut */
.test { position: relative; background: var(--ink); }
.test__photo { display: block; width: 100%; height: clamp(26rem, 62vw, 52rem); object-fit: cover; object-position: 40% 50%; }
.test__card {
    position: absolute; right: var(--gut); bottom: var(--gut); width: min(30rem, calc(100% - 2 * var(--gut)));
    background: var(--y); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .5);
}
.test__title { font-weight: 900; font-variation-settings: "wdth" 120; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: .95; letter-spacing: -.03em; }
.test__list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .7rem; }
.test__list li { padding-top: .7rem; border-top: 1px solid var(--ink); }

/* Stores */
.stores { background: var(--y); color: var(--ink); padding: clamp(4rem, 9vw, 8rem) 0; }
.stores__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.stores__title { font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: clamp(2.4rem, 6.4vw, 6rem); line-height: .9; letter-spacing: -.04em; }
.stores__now { font-weight: 700; font-variant-numeric: tabular-nums; }
.stores__list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.store { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.25rem, 3vw, 3rem); padding: clamp(1.25rem, 2.4vw, 2rem) 0; border-bottom: 1px solid var(--ink); align-items: center; }
.store__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; filter: saturate(1.05); }
.store__body { display: grid; grid-template-columns: 1fr auto; gap: .35rem 2rem; align-items: baseline; }
.store__name { font-weight: 900; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: .9; letter-spacing: -.035em; grid-column: 1 / -1; }
.store__name span { font-weight: 600; font-variation-settings: "wdth" 100; text-transform: none; font-size: .3em; letter-spacing: 0; vertical-align: .9em; }
.store__status { grid-column: 1 / -1; font-weight: 700; display: flex; align-items: center; gap: .5rem; margin: .4rem 0 .6rem; }
.store__status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; border: 2px solid var(--ink); }
.store.is-open .store__status::before { background: var(--ink); }
.store__addr { font-size: 1rem; }
.store__hours { font-weight: 700; font-variant-numeric: tabular-nums; }
.store__go {
    grid-column: 1 / -1; justify-self: start; margin-top: .8rem;
    font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: .1rem;
}
.store__go:hover { border-bottom-width: 4px; }
.stores__note { margin-top: 1.5rem; font-size: .9rem; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: clamp(4rem, 8vw, 6rem) var(--gut) 2rem; overflow: hidden; }
.foot__inner { max-width: 1320px; margin: 0 auto; }
.foot__mark { font-weight: 900; font-variation-settings: "wdth" 125; color: var(--y); font-size: clamp(4.5rem, 21vw, 19rem); line-height: .8; letter-spacing: -.05em; }
.foot__cols { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.foot__brand { font-weight: 500; font-size: 1.4rem; }
.foot__brand span { font-weight: 900; font-variation-settings: "wdth" 125; color: var(--y); }
.foot__line { margin-top: .6rem; color: rgba(255, 246, 220, .78); }
.foot__links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-content: start; }
.foot__links a { text-decoration: none; font-weight: 600; }
.foot__links a:hover { color: var(--y); }
.foot__legal { margin-top: 3rem; font-size: .85rem; color: rgba(255, 246, 220, .7); }

/* Small screens */
@media (max-width: 900px) {
    .bar__nav { display: none; }
    .pick__grid, .craft__grid { grid-template-columns: 1fr; }
    .craft__kanji { text-align: left; font-size: 10rem; }
    .wall__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wall__item:nth-child(2) { border-right: 0; }
    .wall__item:nth-child(n+3) { border-top: 1px solid var(--ink); }
    .store { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cut { --sl: 47%; --sr: 36%; }
    .cut__title { margin-top: 19vh; }
    .cut__l1, .cut__l2 { font-size: 14.2vw; }
    .cut__foot { flex-direction: column; align-items: stretch; gap: 1.25rem; bottom: 3vh; }
    .cut__actions { flex-direction: column; }
    .cut__knife { width: 125vw; transform: translate(-50%, -86%) rotate(var(--angle)) translateX(calc(58vw - var(--p) * 200vw)) scaleX(-1); }
    .bar__knives { display: none; }
    .wall__item { padding: 1.5rem .5rem 0; }
    .wall__knife { height: 17rem; }
    .wall__price { font-size: 1.3rem; }
    .test__photo { height: 22rem; }
    .test__card { position: relative; right: auto; bottom: auto; width: auto; margin: -3rem var(--gut) 0; }
    .store__body { grid-template-columns: 1fr; }
    .pick__cap { grid-template-columns: 1fr; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cut { height: auto; }
    .cut__stage { position: relative; }
    .btn__dot { animation: none; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
