/* Hallmark · route: custom (bespoke) · structure: 黄の看板ヒーロー（売り①②の貼り紙）＋料金表 → テープの区切り → 値札の棚 → お金の帯と条件シート → 青の出品者面 → ピンクの運営メモ → 墨のフッター
 * idea: "人が切って貼った値札と料金表。楽しさは看板と区切りに集め、条件の部分は紙の書類として静かに読ませる"
 * paper: oklch(98.2% 0.006 250) · fields: yellow oklch(90% 0.165 100) / blue oklch(46% 0.2 264) / pink oklch(76% 0.15 356)
 * display: Dela Gothic One · body: M PLUS 2 · nav: N7 slab 系 · footer: Ft5 statement 系
 * axes: light / display-heavy / cool+warm(多色) · motion: 貼り付き(peta) 1種・最初の画面だけ
 */

/* ---------- tokens ---------- */
:root {
  --color-paper: oklch(98.2% 0.006 250);
  --color-paper-2: oklch(95.4% 0.012 250);
  --color-ink: oklch(21% 0.035 268);
  --color-ink-2: oklch(38% 0.03 268);
  --color-line-soft: oklch(62% 0.02 268);
  --color-yellow: oklch(90% 0.165 100);
  --color-blue: oklch(46% 0.2 264);
  --color-blue-hatch: oklch(80% 0.07 262);
  --color-pink: oklch(76% 0.15 356);
  --color-pink-tape: oklch(78% 0.14 356 / 0.9);
  --color-on-blue: oklch(98.2% 0.006 250);
  --color-on-blue-2: oklch(90% 0.035 255);
  --color-on-ink-2: oklch(80% 0.02 260);
  --color-foot-rule: oklch(40% 0.03 268);

  --font-display: 'Dela Gothic One', sans-serif;
  --font-body: 'M PLUS 2', sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(2rem, 6.4vw, 3.25rem);
  --text-hero: clamp(3rem, 13.6vw, 5.25rem);

  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 120px;

  --rule-thick: 3px;
  --rule: 2px;
  --shadow-sm: 3px 3px 0 var(--color-ink);
  --shadow-md: 6px 6px 0 var(--color-ink);
  --shadow-lg: 10px 10px 0 var(--color-ink);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-quick: 120ms;
  --dur-peta: 300ms;

  --focus: var(--color-blue);
  --gutter: 16px;
}

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }
}
@media (min-width: 1000px) {
  :root {
    --gutter: 40px;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-kerning: normal;
}
h1,
h2,
h3,
p,
dl,
dd,
figure,
ul,
ol {
  margin: 0;
}
h1,
h2,
h3 {
  font-style: normal;
  font-weight: 400;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
input,
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.ph {
  display: inline-block;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: absolute;
  left: var(--space-sm);
  top: -120px;
  z-index: 10;
  background: var(--color-yellow);
  border: var(--rule-thick) solid var(--color-ink);
  padding: var(--space-2xs) var(--space-sm);
  font-weight: 800;
  text-decoration: none;
}
.skip:focus {
  top: var(--space-2xs);
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: var(--rule-thick) solid var(--color-ink);
  cursor: pointer;
  line-height: 1.2;
}
.btn:active {
  translate: 3px 3px;
}
.btn-yellow,
.btn-paper {
  min-height: 56px;
  padding: 0 var(--space-lg);
  font-size: var(--text-md);
  color: var(--color-ink);
  box-shadow: var(--shadow-md);
}
.btn-yellow {
  background: var(--color-yellow);
}
.btn-paper {
  background: var(--color-paper);
}
.btn-yellow:hover,
.btn-paper:hover {
  background: var(--color-paper-2);
}
.btn-yellow:active,
.btn-paper:active {
  box-shadow: var(--shadow-sm);
}
.btn-ink {
  background: var(--color-ink);
  color: var(--color-yellow);
  border-color: var(--color-ink);
}
.btn-ink:hover {
  background: var(--color-blue);
  color: var(--color-paper);
}
.text-link {
  display: inline-block;
  font-weight: 800;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link::after {
  content: '→';
  display: inline-block;
  margin-left: 0.4em;
  text-decoration: none;
}
.text-link:hover {
  text-decoration-thickness: 4px;
}
.text-link-light {
  color: var(--color-on-blue);
}

/* ---------- header ---------- */
.site-head {
  position: relative;
  z-index: 3;
  background: var(--color-paper);
  border-bottom: var(--rule-thick) solid var(--color-ink);
}
.head-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    'brand . login'
    'mode mode search';
  align-items: center;
  gap: var(--space-xs) var(--space-sm);
  padding-block: var(--space-xs);
}
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  text-decoration: none;
  white-space: nowrap;
}
.brand-paw {
  width: 26px;
  height: 26px;
  fill: var(--color-ink);
  rotate: -14deg;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.mode {
  grid-area: mode;
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
}
.mode-label {
  font-size: var(--text-xs);
  font-weight: 800;
  white-space: nowrap;
}
.mode-switch {
  display: inline-flex;
  border: var(--rule) solid var(--color-ink);
}
.mode-opt {
  padding: 4px 14px;
  font-size: var(--text-sm);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  background: var(--color-paper);
}
.mode-opt + .mode-opt {
  border-left: var(--rule) solid var(--color-ink);
}
.mode-opt[aria-current='page'] {
  background: var(--color-ink);
  color: var(--color-yellow);
}
.mode-opt:not([aria-current]):hover {
  background: var(--color-yellow);
}
.head-search {
  display: none;
  grid-area: search;
  min-width: 0;
  border: var(--rule) solid var(--color-ink);
  background: var(--color-paper);
}
.head-search-link {
  grid-area: search;
  justify-self: end;
  padding: 4px var(--space-sm);
  border: var(--rule) solid var(--color-ink);
  background: var(--color-paper);
  font-size: var(--text-sm);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.head-search-link:hover {
  background: var(--color-yellow);
}
.head-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 6px var(--space-xs);
  font-size: var(--text-sm);
}
.head-search input::placeholder {
  color: var(--color-ink-2);
}
.head-search input:focus-visible {
  outline-offset: -3px;
}
.head-search-btn {
  border: 0;
  border-left: var(--rule) solid var(--color-ink);
  background: var(--color-paper-2);
  padding: 0 var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.head-search-btn:hover {
  background: var(--color-yellow);
}
.btn-login {
  grid-area: login;
  min-height: 40px;
  padding: 0 var(--space-sm);
  font-size: var(--text-sm);
  background: var(--color-yellow);
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.btn-login:hover {
  background: var(--color-paper-2);
}
.btn-login:active {
  box-shadow: none;
}

@media (min-width: 900px) {
  .head-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: 'brand mode search login';
    gap: var(--space-md);
    min-height: 76px;
  }
  .brand-name {
    font-size: 1.625rem;
  }
  .brand-paw {
    width: 30px;
    height: 30px;
  }
  .mode {
    margin-left: var(--space-xs);
  }
  .head-search {
    display: flex;
    max-width: 380px;
    justify-self: end;
    width: 100%;
  }
  .head-search-link {
    display: none;
  }
}

/* ---------- hero (yellow field) ---------- */
.hero {
  --hero-fs: var(--text-hero);
  position: relative;
  background: var(--color-yellow);
  padding-block: var(--space-xl) var(--space-3xl);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
}
.hero-main {
  position: relative;
  min-width: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--hero-fs);
  line-height: 1.14;
  letter-spacing: 0.01em;
  font-feature-settings: 'palt';
}
.hero-title .ln {
  display: block;
  white-space: nowrap;
}
.hero-tape {
  display: inline-block;
  margin-top: 0.1em;
  padding: 0.04em 0.2em 0.1em 0.16em;
  background: var(--color-blue);
  color: var(--color-paper);
  border: var(--rule-thick) solid var(--color-ink);
  box-shadow: var(--shadow-md);
  rotate: -2.5deg;
  transform-origin: 0 50%;
  animation: peta var(--dur-peta) var(--ease-out) 180ms both;
}
.hero-lead {
  max-width: 33em;
  margin-top: var(--space-lg);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.9;
}
.hero-lead-sub {
  margin-top: var(--space-xs);
  font-weight: 500;
  color: var(--color-ink-2);
}
.hero-search {
  margin-top: var(--space-md);
  max-width: 560px;
}
.hero-search-label {
  display: block;
  margin-bottom: var(--space-2xs);
  font-size: var(--text-sm);
  font-weight: 800;
}
.hero-search-row {
  display: flex;
  background: var(--color-paper);
  border: var(--rule-thick) solid var(--color-ink);
  box-shadow: var(--shadow-md);
}
.hero-search-row input {
  flex: 1;
  min-width: 0;
  height: 56px;
  border: 0;
  background: transparent;
  padding: 0 var(--space-sm);
  font-size: var(--text-base);
}
.hero-search-row input::placeholder {
  color: var(--color-ink-2);
}
.hero-search-row input:focus-visible {
  outline-offset: -4px;
}
.hero-search-row .btn {
  border-width: 0 0 0 var(--rule-thick);
  padding: 0 var(--space-lg);
  font-size: var(--text-md);
}

/* 料金表の板 */
.board {
  position: relative;
  align-self: start;
  background: var(--color-paper);
  border: var(--rule-thick) solid var(--color-ink);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md) var(--space-md) var(--space-xs);
  rotate: 0.8deg;
  animation: peta var(--dur-peta) var(--ease-out) 60ms both;
}
.tape {
  position: absolute;
  top: -16px;
  width: 104px;
  height: 30px;
  background: var(--color-pink-tape);
  clip-path: polygon(
    0 0,
    100% 0,
    96% 20%,
    100% 40%,
    96% 60%,
    100% 80%,
    96% 100%,
    0 100%,
    4% 80%,
    0 60%,
    4% 40%,
    0 20%
  );
}
.tape-l {
  left: 20px;
  rotate: -7deg;
}
.tape-r {
  right: 20px;
  rotate: 6deg;
}
.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3xs) var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: var(--rule-thick) solid var(--color-ink);
}
.board-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: 0.06em;
}
.board-sub {
  font-size: var(--text-sm);
  font-weight: 800;
}
.board-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'name price'
    'note note';
  column-gap: var(--space-sm);
  align-items: baseline;
  padding: 7px var(--space-2xs);
}
.board-list li + li {
  border-top: var(--rule) dashed var(--color-line-soft);
}
.b-name {
  grid-area: name;
  justify-self: start;
  font-weight: 800;
  font-size: var(--text-base);
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}
.b-name:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.b-note {
  grid-area: note;
  font-size: var(--text-xs);
  color: var(--color-ink-2);
  line-height: 1.55;
}
.b-wait,
.b-price {
  grid-area: price;
  white-space: nowrap;
}
.b-wait {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-ink-2);
}
.b-price {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.board-list .is-listed {
  background: var(--color-yellow);
}
.board-foot {
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  border-top: var(--rule-thick) solid var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 800;
}

/* 最初の画面の貼り紙（売り①②） */
.slips {
  display: grid;
  gap: var(--space-sm);
  max-width: 37em;
  margin-top: var(--space-md);
}
.slip {
  position: relative;
  padding: var(--space-xs) var(--space-md) var(--space-xs) calc(var(--space-md) + 10px);
  background: var(--color-paper);
  border: var(--rule-thick) solid var(--color-ink);
  box-shadow: var(--shadow-md);
}
.slip::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  border-right: var(--rule) solid var(--color-ink);
}
.slip-pay {
  rotate: -0.6deg;
}
.slip-pay::before {
  background: var(--color-blue);
}
.slip-price {
  rotate: 0.5deg;
  margin-left: var(--space-sm);
}
.slip-price::before {
  background: var(--color-pink);
}
.slip-k {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.5;
}
.slip-v {
  display: block;
  margin-top: var(--space-3xs);
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--color-ink-2);
}

@media (min-width: 1000px) {
  .hero {
    padding-block: var(--space-xl) var(--space-4xl);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: var(--space-xl);
  }
  .board {
    margin-top: var(--space-xs);
    padding: var(--space-lg) var(--space-lg) var(--space-sm);
  }
}

/* ---------- divider tape ---------- */
.tape-wrap {
  position: relative;
  z-index: 2;
  overflow-x: clip;
  overflow-y: visible;
}
.tape-band {
  position: relative;
  z-index: 2;
  width: 112%;
  margin: -22px 0 -22px -6%;
  background: var(--color-blue);
  color: var(--color-on-blue);
  border-block: var(--rule-thick) solid var(--color-ink);
  rotate: -1.6deg;
  overflow: hidden;
}
.tape-band p {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xs) 0 var(--space-xs) calc(6vw + var(--gutter));
  white-space: nowrap;
  font-weight: 800;
  font-size: var(--text-md);
  letter-spacing: 0.08em;
}
.tape-band span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xl);
}
.tape-band span::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--color-yellow);
  border: var(--rule) solid var(--color-ink);
  rotate: 45deg;
}

/* ---------- shelf (listings) ---------- */
.shelf {
  padding-block: var(--space-3xl) var(--space-2xl);
}
.shelf-head {
  max-width: 44em;
}
.sec-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.3;
  letter-spacing: 0.02em;
  font-feature-settings: 'palt';
}
.marker {
  background: linear-gradient(transparent 64%, var(--color-pink) 64%, var(--color-pink) 94%, transparent 94%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.shelf-note {
  margin-top: var(--space-sm);
  font-size: var(--text-md);
}
.shelf-head .text-link {
  margin-top: var(--space-sm);
}
.shelf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.shelf-foot {
  margin-top: var(--space-xl);
  font-size: var(--text-xs);
  color: var(--color-ink-2);
}

/* 値札 */
.tag {
  --stub: 40px;
  --pad: var(--space-md);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'top stamp'
    'title stamp'
    'seller seller'
    'terms terms';
  column-gap: var(--space-md);
  padding: var(--pad) var(--pad) 0 calc(var(--stub) + var(--pad));
  background: var(--color-paper);
  border: var(--rule-thick) solid var(--color-ink);
  box-shadow: var(--shadow-lg);
  rotate: -0.8deg;
  transition:
    rotate var(--dur-quick) var(--ease-out),
    translate var(--dur-quick) var(--ease-out);
}
.tag::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--stub);
  background: var(--color-pink);
  border-right: var(--rule) dashed var(--color-ink);
}
.tag-hole {
  position: absolute;
  left: calc(var(--stub) / 2 - 9px);
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-paper);
  border: var(--rule-thick) solid var(--color-ink);
}
.shelf .tag:hover {
  rotate: 0deg;
  translate: 0 -3px;
}
.tag-top {
  grid-area: top;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs) var(--space-xs);
}
.tag-cat {
  display: inline-block;
  padding: 2px var(--space-xs);
  background: var(--color-yellow);
  border: var(--rule) solid var(--color-ink);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
  rotate: -2deg;
}
.tag-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 800;
  white-space: nowrap;
}
.tag-status::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--color-blue);
  border: var(--rule) solid var(--color-ink);
}
.tag-title {
  grid-area: title;
  margin-top: var(--space-sm);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: 0.01em;
}
.tag-title a {
  text-decoration: none;
}
.tag-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.tag-seller {
  grid-area: seller;
  margin: var(--space-2xs) 0 var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}

/* AI表示の印（札の右上に固定） */
.stamp {
  grid-area: stamp;
  align-self: start;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 96px;
  height: 96px;
  margin-top: var(--space-3xs);
  line-height: 1.2;
  text-align: center;
  rotate: 7deg;
}
.stamp-k {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.stamp-v {
  font-family: var(--font-display);
  font-size: var(--text-base);
}
.stamp-blank {
  border: var(--rule-thick) dashed var(--color-ink-2);
  color: var(--color-ink-2);
  rotate: 0deg;
}
.stamp-blank .stamp-v {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-sm);
}
.stamp-none {
  color: var(--color-blue);
  border: 5px double var(--color-blue);
  background: var(--color-paper);
}
.stamp-part {
  color: var(--color-ink);
  border: 5px double var(--color-ink);
  background: var(--color-pink);
}
.stamp-open {
  color: var(--color-ink);
  border: 5px double var(--color-ink);
  background: var(--color-yellow);
}
.stamp-none .stamp-k {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}

/* 札の下段：料金・納期・修正（リテイク） */
.tag-terms {
  grid-area: terms;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  margin-inline: calc(var(--pad) * -1);
  border-top: var(--rule-thick) solid var(--color-ink);
}
.term {
  padding: var(--space-2xs) var(--space-sm) var(--space-xs);
  min-width: 0;
}
.term + .term {
  border-left: var(--rule-thick) solid var(--color-ink);
}
.term dt,
.term-k {
  display: block;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--color-ink-2);
  white-space: nowrap;
}
.term dd,
.term-v {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.term-price {
  background: var(--color-yellow);
}
.term-price dd,
.term-price .term-v {
  font-size: 2.25rem;
}
.yen {
  font-size: 0.6em;
  margin-right: 0.08em;
}
.unit {
  margin-left: 0.12em;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-base);
}
.term-v-blank {
  color: var(--color-ink-2);
}

/* 空き札 */
.slots {
  display: grid;
  gap: var(--space-lg);
  align-content: start;
}
.slot {
  padding: var(--space-md);
  border: var(--rule-thick) dashed var(--color-ink-2);
  rotate: 1.2deg;
}
.slot-2 {
  display: none;
  min-height: 96px;
  rotate: -1.6deg;
  border-color: var(--color-line-soft);
}
.slot-k {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-ink-2);
}
.slot-v {
  margin-top: var(--space-3xs);
  font-size: var(--text-sm);
}
.slot .text-link {
  margin-top: var(--space-xs);
}

@media (min-width: 900px) {
  .shelf-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: var(--space-2xl);
    align-items: start;
  }
  .slots {
    padding-top: var(--space-xs);
  }
  .slot-2 {
    display: block;
  }
}

@media (max-width: 599px) {
  .tag {
    --stub: 32px;
    --pad: var(--space-sm);
    grid-template-areas:
      'top top'
      'title stamp'
      'seller seller'
      'terms terms';
    column-gap: var(--space-xs);
    box-shadow: var(--shadow-md);
  }
  .tag-hole {
    top: 18px;
  }
  .stamp {
    width: 76px;
    height: 76px;
    margin-top: var(--space-sm);
  }
  .stamp-v {
    font-size: var(--text-sm);
  }
  .tag-title {
    font-size: var(--text-md);
  }
  .tag-terms {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .term-price {
    grid-column: 1 / -1;
    border-bottom: var(--rule-thick) solid var(--color-ink);
  }
  .term-price + .term {
    border-left: 0;
  }
  .term dd,
  .term-v {
    font-size: 1.5rem;
  }
  .term-price dd,
  .term-price .term-v {
    font-size: 2rem;
  }
}

/* ---------- flow (calm) ---------- */
.flow {
  background: var(--color-paper-2);
  border-top: var(--rule-thick) solid var(--color-ink);
  padding-block: var(--space-3xl);
}
.flow-head {
  max-width: 44em;
}
.flow-lead {
  margin-top: var(--space-md);
  font-size: var(--text-md);
  line-height: 1.95;
}
.flow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

/* 条件シート */
.sheet {
  background: var(--color-paper);
  border: var(--rule) solid var(--color-ink);
  box-shadow: var(--shadow-md);
  padding: var(--space-md);
  align-self: start;
}
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3xs) var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 4px double var(--color-ink);
}
.sheet-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.3;
}
.sheet-cap {
  font-size: var(--text-sm);
  font-weight: 700;
}
.sheet-row {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-line-soft);
}
.sheet-row:last-child {
  border-bottom: 0;
}
.sheet-row.is-use {
  margin-inline: calc(var(--space-xs) * -1);
  padding-inline: var(--space-xs);
  background: var(--color-yellow);
}
.sheet-note {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: var(--rule) solid var(--color-ink);
  font-size: var(--text-sm);
  line-height: 1.85;
}
.sheet-note-k {
  display: inline-block;
  margin-right: var(--space-2xs);
  padding: 0 var(--space-2xs);
  background: var(--color-yellow);
  border: var(--rule) solid var(--color-ink);
  font-weight: 800;
  white-space: nowrap;
}
.sheet-row dt {
  font-weight: 800;
  font-size: var(--text-sm);
  line-height: 1.9;
}
.sheet-row dd {
  font-size: var(--text-sm);
  line-height: 1.9;
}
.blank {
  display: inline-block;
  width: 3em;
  height: 1.2em;
  margin-inline: 4px;
  border-bottom: var(--rule) solid var(--color-ink);
  vertical-align: -0.15em;
}
.blank-wide {
  width: 8em;
  margin-left: 0;
}
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px var(--space-sm);
}
.opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.opt::before {
  content: '';
  flex: none;
  width: 13px;
  height: 13px;
  border: var(--rule) solid var(--color-ink);
  background: var(--color-paper);
}

/* お金の帯 */
.track-fig {
  margin-top: var(--space-xl);
  max-width: 1000px;
}
.track-cap {
  font-weight: 800;
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
}
.track {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.track-pt {
  position: relative;
  padding: 0 0 var(--space-md) 44px;
}
.track-pt::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 18px;
  border-inline: var(--rule-thick) solid var(--color-ink);
}
.track-pt::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 0;
  width: 34px;
  height: var(--rule-thick);
  background: var(--color-ink);
}
.track-pt.is-hold::before {
  background: repeating-linear-gradient(-45deg, var(--color-blue-hatch) 0 5px, var(--color-paper) 5px 10px);
}
.track-pt.is-done::before {
  background: var(--color-blue);
  border-bottom: var(--rule-thick) solid var(--color-ink);
}
.track-pt b {
  display: block;
  font-weight: 800;
  font-size: var(--text-base);
  line-height: 1.5;
  margin-top: -0.35em;
}
.track-pt span {
  display: block;
  margin-top: var(--space-3xs);
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--color-ink-2);
}
.track-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 700;
}
.lg {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}
.lg::before {
  content: '';
  width: 28px;
  height: 14px;
  border: var(--rule) solid var(--color-ink);
}
.lg-hold::before {
  background: repeating-linear-gradient(-45deg, var(--color-blue-hatch) 0 4px, var(--color-paper) 4px 8px);
}
.lg-done::before {
  background: var(--color-blue);
}

@media (min-width: 700px) {
  .track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .track-pt {
    padding: 36px var(--space-md) 0 0;
  }
  .track-pt::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 20px;
    border-inline: 0;
    border-block: var(--rule-thick) solid var(--color-ink);
  }
  .track-pt:first-child::before {
    border-left: var(--rule-thick) solid var(--color-ink);
  }
  .track-pt.is-done::before {
    border-bottom: var(--rule-thick) solid var(--color-ink);
    border-right: var(--rule-thick) solid var(--color-ink);
  }
  .track-pt::after {
    left: 0;
    top: -8px;
    width: var(--rule-thick);
    height: 36px;
  }
  .track-pt b {
    margin-top: 0;
  }
}

/* 手数料 */
.fee {
  margin-top: var(--space-xl);
}
.side-title {
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.6;
}
.side-text {
  margin-top: var(--space-3xs);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
}
.receipt {
  max-width: 360px;
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-md) var(--space-sm);
  background: var(--color-paper);
  border: var(--rule) solid var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.receipt div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-3xs) 0;
  font-size: var(--text-sm);
}
.receipt dd {
  font-weight: 700;
}
.receipt .receipt-total {
  margin-top: var(--space-2xs);
  padding-top: var(--space-2xs);
  border-top: 4px double var(--color-ink);
}
.receipt-total dt,
.receipt-total dd {
  font-weight: 800;
  font-size: var(--text-md);
}

@media (min-width: 1000px) {
  .flow-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-2xl);
  }
  .sheet {
    padding: var(--space-lg);
  }
}

/* ---------- sell (blue field) ---------- */
.sell {
  --focus: var(--color-yellow);
  position: relative;
  background: var(--color-blue);
  color: var(--color-on-blue);
  border-block: var(--rule-thick) solid var(--color-ink);
  padding-block: var(--space-3xl);
}
.sell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
}
.sell-title {
  font-family: var(--font-display);
  line-height: 1.3;
  font-feature-settings: 'palt';
}
.sell-title-k {
  display: block;
  font-size: clamp(1.75rem, 5.4vw, 2.75rem);
  letter-spacing: 0.02em;
}
.zero {
  display: inline-block;
  margin-top: var(--space-md);
  padding: 0.02em 0.14em 0.06em 0.1em;
  font-size: clamp(6.5rem, 30vw, 11rem);
  line-height: 1;
  color: var(--color-ink);
  background: var(--color-yellow);
  border: 4px solid var(--color-ink);
  box-shadow: var(--shadow-lg);
  rotate: -4deg;
  font-variant-numeric: tabular-nums;
}
.zero-yen {
  font-size: 0.42em;
  margin-left: 0.04em;
}
.sell-text {
  max-width: 26em;
  margin-top: var(--space-xl);
  font-size: var(--text-md);
  line-height: 1.95;
}
.sell-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-lg);
}
.howto-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}
.tag-sample {
  color: var(--color-ink);
  rotate: 1.2deg;
}
.tag-sample .tag-title {
  font-weight: 800;
}
.sample-mark {
  position: absolute;
  top: -18px;
  right: 120px;
  z-index: 1;
  padding: 0 var(--space-xs);
  background: var(--color-pink);
  border: var(--rule) solid var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.7;
  rotate: -6deg;
}
.rules {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.rule {
  padding-top: var(--space-sm);
  border-top: var(--rule) solid var(--color-on-blue);
}
.rule dt {
  font-weight: 800;
  font-size: var(--text-md);
  line-height: 1.6;
}
.rule dd {
  margin-top: var(--space-3xs);
  font-size: var(--text-sm);
  line-height: 1.85;
  color: var(--color-on-blue-2);
}
.stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: var(--space-2xs) 0 var(--space-xs);
}
.stamp-sm {
  width: auto;
  height: auto;
  padding: 3px var(--space-xs);
  rotate: 0deg;
  margin: 0;
}
.stamp-sm .stamp-v {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-sm);
  white-space: nowrap;
}

@media (min-width: 1000px) {
  .sell {
    padding-block: var(--space-4xl);
  }
  .sell-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-3xl);
    align-items: start;
  }
  .howto {
    padding-top: var(--space-xs);
  }
}

/* ---------- note (pink band) ---------- */
.note {
  --focus: var(--color-ink);
  background: var(--color-pink);
  padding-block: var(--space-2xl);
}
.note-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
}
.note-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.6vw, 2.25rem);
  line-height: 1.4;
  font-feature-settings: 'palt';
}
.note-text {
  max-width: 30em;
  font-size: var(--text-base);
}
.note .btn {
  justify-self: start;
}

@media (min-width: 1000px) {
  .note-row {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    gap: var(--space-xl);
  }
}

/* ---------- footer ---------- */
.site-foot {
  --focus: var(--color-yellow);
  background: var(--color-ink);
  color: var(--color-paper);
  border-top: var(--rule-thick) solid var(--color-ink);
  padding-block: var(--space-2xl) var(--space-lg);
}
.foot-mark {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 11vw, 6.5rem);
  line-height: 1.05;
  color: var(--color-yellow);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.foot-nav {
  margin-top: var(--space-lg);
}
.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-lg);
}
.foot-nav a {
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.foot-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot-legal {
  margin-top: var(--space-xs);
}
.foot-legal a {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-on-ink-2);
}
.foot-legal-note {
  max-width: 44em;
  margin-top: var(--space-xl);
  font-size: var(--text-xs);
  color: var(--color-on-ink-2);
}
.foot-small {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-md);
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-foot-rule);
  font-size: var(--text-xs);
  color: var(--color-on-ink-2);
}

/* ---------- 改行位置：2〜3行の短い文だけ文節で折り返す（長い段落は通常の折り返し） ---------- */
.hero-lead,
.slip-v,
.tag-title,
.shelf-note,
.track-pt span,
.note-text {
  word-break: auto-phrase;
}

@media (max-width: 599px) {
  .slip-k {
    font-size: var(--text-base);
  }
}

/* ---------- motion ---------- */
@keyframes peta {
  0% {
    opacity: 0;
    scale: 1.1;
    translate: 0 -8px;
  }
  70% {
    opacity: 1;
    scale: 0.985;
    translate: 0 0;
  }
  100% {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tape,
  .board {
    animation: none;
  }
  .tag {
    transition: none;
  }
  .shelf .tag:hover {
    rotate: -0.8deg;
    translate: none;
  }
}
