@charset "UTF-8";
:root {
  --paper: oklch(95.7% .017 84);
  --ticket: oklch(98.3% .009 85);
  --ink: oklch(28% .018 60);
  --muted: oklch(49% .024 63);
  --line: oklch(80% .028 77);
  --red: oklch(48% .145 33);
  --wash: oklch(92% .024 78);
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Inter Tight", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", monospace;
  --ease: cubic-bezier(.2,.7,.15,1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 25px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 13px; -webkit-font-smoothing: antialiased; }
body::before { content: ""; pointer-events: none; position: fixed; inset: 0; z-index: 8; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23877b68' filter='url(%23n)' opacity='.2' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); }
button, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; border-radius: 0; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
::selection { color: var(--ticket); background: var(--red); }
.skip { position: fixed; top: -80px; left: 20px; z-index: 20; background: var(--ticket); padding: 15px; }
.skip:focus { top: 10px; }
.header, main, .footer { width: min(1320px, calc(100% - 100px)); margin-inline: auto; }
.header { height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 18px; align-items: center; }
.brand-jp { font-family: var(--serif); font-size: 39px; letter-spacing: -.09em; font-weight: 600; }
.brand-dot { color: var(--red); }
.brand-en { font-family: "Instrument Serif", Georgia, serif; font-size: 24px; line-height: 1; }
.brand-en span { font-family: var(--mono); font-size: 8px; letter-spacing: .02em; }
.header-caption { font-family: var(--serif); font-size: 12px; letter-spacing: .15em; margin-left: -65px; }
.about-link { font-size: 11px; }
.about-link span { color: var(--red); margin-left: 30px; }
.intro { padding: 42px 0 36px; display: flex; align-items: center; gap: 54px; }
.eyebrow { color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .07em; }
h1 { font-family: var(--serif); font-size: clamp(38px,4.5vw,65px); font-weight: 500; letter-spacing: .03em; margin: 14px 0 0; line-height: 1.4; }
h1 span { white-space: nowrap; }
.intro-copy { font-family: var(--serif); font-size: 12px; line-height: 2.1; margin: 22px 0 0; color: var(--muted); }
.workbench { display: grid; grid-template-columns: minmax(0,1fr) 305px; gap: 38px; border-top: 1px solid var(--ink); padding-top: 25px; }
.inspection { min-width: 0; }
.bench-heading { display: flex; justify-content: space-between; align-items: center; height: 30px; }
.bench-heading p { font-size: 11px; margin: 0; letter-spacing: .03em; }
.step-dot { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); margin-right: 8px; font-family: var(--mono); font-size: 10px; }
#overview { font-size: 10px; color: var(--muted); padding: 7px 0 7px 8px; }
#overview span { margin-left: 10px; color: var(--red); }
.shoe-stage { position: relative; overflow: hidden; aspect-ratio: 1.85; min-height: 330px; margin-top: 12px; }
.stage-meta { position: absolute; top: 10px; left: 0; right: 0; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 8px; color: var(--muted); letter-spacing: .05em; z-index: 2; }
.shoe-object { position: absolute; left: 0; width: 100%; top: 50%; aspect-ratio: 1.5; transform: translateY(-50%) scale(.93); transform-origin: 50% 60%; transition: transform 700ms var(--ease), transform-origin 700ms var(--ease); }
.shoe { display: block; width: 100%; height: auto; user-select: none; mix-blend-mode: multiply; }
.shoe-stage[data-active=toe] .shoe-object { transform-origin: 25% 67%; transform: translateY(-50%) scale(1.09); }
.shoe-stage[data-active=sole] .shoe-object { transform-origin: 48% 76%; transform: translateY(-50%) scale(1.07); }
.shoe-stage[data-active=heel] .shoe-object { transform-origin: 79% 65%; transform: translateY(-50%) scale(1.09); }
.hotspot { position: absolute; width: 44px; height: 44px; transform: translate(-50%,-50%); display: grid; place-items: center; z-index: 3; padding: 0; }
.hotspot.toe { left: 18%; top: 63%; }
.hotspot.sole { left: 48%; top: 82%; }
.hotspot.heel { left: 87%; top: 67%; }
.pin { display: grid; place-items: center; border: 1px solid var(--red); background: var(--paper); width: 29px; height: 29px; border-radius: 50%; color: var(--red); font-size: 19px; line-height: 1; box-shadow: 0 0 0 5px oklch(95.7% .017 84 / .35); transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease); }
.hotspot:hover .pin { transform: scale(1.16); }
.hotspot[aria-pressed=true] .pin { color: var(--ticket); background: var(--red); }
.hotspot-label { position: absolute; white-space: nowrap; font-size: 11px; color: var(--ink); padding: 6px 9px; background: var(--paper); border-bottom: 1px solid var(--red); box-shadow: 0 4px 15px oklch(28% .018 60 / .04); }
.hotspot-label small { font-family: var(--mono); font-size: 9px; color: var(--red); margin-right: 7px; }
.hotspot.toe .hotspot-label { left: -55px; bottom: 104px; }
.hotspot.heel .hotspot-label { right: -20px; bottom: 104px; }
.hotspot.sole .hotspot-label { left: 42px; top: 36px; }
.hotspot::before { content: ""; position: absolute; width: 1px; height: 68px; background: var(--red); bottom: 36px; left: 22px; pointer-events: none; }
.hotspot.sole::before { height: 50px; left: 40px; bottom: -19px; transform: rotate(-49deg); }
.stage-footer { display: flex; align-items: baseline; justify-content: space-between; position: absolute; bottom: 0; left: 2px; right: 0; pointer-events: none; }
.handwritten { font-family: var(--serif); font-size: 15px; color: var(--red); letter-spacing: .1em; transform: rotate(-7deg); }
.stage-hint { color: var(--muted); font-size: 9px; }
.part-tabs { display: flex; gap: 7px; margin-top: 12px; }
.part-tabs button { flex: 1; min-height: 40px; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 11px; text-align: left; transition: background 180ms var(--ease); }
.part-tabs small { color: var(--red); font-family: var(--mono); font-size: 9px; margin-right: 16px; }
.part-tabs button:hover { background: var(--wash); }
.part-tabs button[aria-pressed=true] { border-color: var(--red); background: var(--wash); }
.repair-detail { display: flex; align-items: flex-start; gap: 19px; min-height: 161px; border-bottom: 1px solid var(--line); padding: 25px 0 23px; }
.detail-number { color: var(--red); font-family: "Instrument Serif", Georgia, serif; font-size: 28px; min-width: 33px; padding-top: 4px; }
.detail-copy { flex: 1; }
.detail-kicker { color: var(--muted); font-size: 9px; margin: 0 0 9px; letter-spacing: .04em; }
.detail-copy h2 { font-family: var(--serif); font-size: 20px; font-weight: 500; line-height: 1.5; margin: 0 0 10px; }
.detail-copy>p:last-child { color: var(--muted); font-size: 11px; line-height: 1.9; margin: 0; max-width: 450px; }
.detail-action { min-width: 156px; text-align: right; padding-top: 8px; }
.detail-action p { margin: 0 0 12px; font-family: var(--mono); font-size: 18px; }
.detail-action p small { display: block; font-family: var(--sans); color: var(--muted); font-size: 8px; margin-top: 5px; }
#add-repair { font-size: 11px; color: var(--ticket); background: var(--red); min-height: 43px; width: 100%; padding: 12px; transition: background 180ms var(--ease); }
#add-repair span { margin-left: 12px; }
#add-repair:hover { background: var(--ink); }
#add-repair[aria-pressed=true] { background: var(--ink); }
.ticket-wrap { padding-top: 5px; }
.ticket { position: relative; background: var(--ticket); padding: 24px 23px 19px; box-shadow: 0 4px 7px oklch(28% .018 60 / .04), 0 16px 30px oklch(28% .018 60 / .045); transform: rotate(.7deg); }
.ticket-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 8px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.ticket-heading { display: flex; justify-content: space-between; align-items: center; padding: 23px 0; }
.ticket-heading p { font-family: var(--serif); font-size: 10px; margin: 0 0 6px; }
.ticket-heading h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0; letter-spacing: .07em; }
.ticket-seal { display: grid; place-items: center; width: 32px; height: 35px; border: 1px solid var(--red); outline: 1px solid var(--red); outline-offset: -4px; color: var(--red); font-family: var(--serif); font-size: 20px; transform: rotate(-7deg); }
.ticket-line { display: flex; justify-content: space-between; border-block: 1px solid var(--line); padding: 12px 0; font-size: 9px; }
.ticket-line>span { color: var(--muted); }
.ticket-line b { font-weight: 400; }
.ticket-items { min-height: 159px; padding: 12px 0; }
.ticket-empty { color: var(--muted); font-family: var(--serif); font-size: 11px; line-height: 2.1; text-align: center; margin: 24px 0 0; }
.ticket-empty>span { display: block; color: var(--line); margin-top: 10px; }
.ticket-item { display: grid; grid-template-columns: 1fr auto 22px; gap: 8px; align-items: center; min-height: 43px; font-size: 11px; animation: write-in 350ms var(--ease) both; }
.ticket-item .item-price { font-family: var(--mono); font-size: 11px; }
.ticket-item .item-name::before { content: "✓"; color: var(--red); margin-right: 8px; }
.ticket-item button { color: var(--muted); min-height: 36px; font-size: 16px; }
.ticket-item button:hover { color: var(--red); }
.ticket-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 20px; }
.ticket-total>span { font-family: var(--serif); font-size: 12px; }
.ticket-total>span small { display: block; margin-top: 7px; color: var(--muted); font-family: var(--sans); font-size: 8px; }
.ticket-total strong { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 35px; font-variant-numeric: tabular-nums; }
.ticket-total strong small { font-family: var(--sans); font-size: 10px; margin-left: 5px; }
.ticket-disclaimer { color: var(--muted); font-size: 9px; line-height: 1.9; margin: 19px 0; }
.create-note { background: var(--ink); color: var(--ticket); width: 100%; padding: 15px 9px; min-height: 46px; font-size: 10px; }
.create-note span { margin-left: 13px; }
.create-note:disabled { background: var(--wash); color: var(--muted); cursor: default; }
.create-note:not(:disabled):hover { background: var(--red); }
.ticket-foot { font-size: 8px; text-align: center; color: var(--muted); margin: 13px 0 0; }
.ticket-teeth { position: absolute; bottom: -7px; left: 0; width: 100%; height: 8px; background: linear-gradient(135deg,var(--ticket) 25%,transparent 25%) -7px 0 / 14px 14px,linear-gradient(225deg,var(--ticket) 25%,transparent 25%) -7px 0 / 14px 14px; }
.aside-note { font-family: var(--serif); color: var(--muted); font-size: 10px; line-height: 1.9; padding-left: 10px; margin-top: 27px; }
.aside-note>span:first-child { color: var(--red); margin-right: 5px; }
.aside-note .indent { margin-left: 18px; }
.philosophy { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.1fr .4fr; gap: 45px; padding: 62px 0 48px; align-items: center; }
.philosophy-heading h2 { font-family: var(--serif); font-size: 27px; line-height: 1.9; font-weight: 500; margin: 18px 0 0; }
.philosophy-copy { font-family: var(--serif); font-size: 12px; line-height: 2.2; color: var(--muted); }
.philosophy-copy p { margin: 0 0 14px; }
.philosophy-copy p:last-child { margin-bottom: 0; }
.thread-mark { text-align: center; }
.thread-mark svg { width: 140px; stroke: var(--red); stroke-width: 1; fill: none; }
.thread-mark span { display: block; font-family: "Instrument Serif", Georgia, serif; font-style: italic; color: var(--muted); font-size: 12px; }
.footer { display: flex; align-items: center; gap: 30px; padding-block: 25px 32px; }
.footer>span { font-family: var(--serif); font-size: 21px; }
.footer-en { font-family: "Instrument Serif", Georgia, serif; font-size: 17px; margin-left: 13px; }
.footer p { color: var(--muted); font-size: 8px; margin: 0; }
dialog { width: min(540px,calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 30px; background: var(--ticket); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 20px 70px oklch(28% .018 60 / .2); }
dialog::backdrop { background: oklch(28% .018 60 / .48); backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; }
.dialog-header button { font-size: 27px; width: 38px; height: 38px; }
dialog h2 { font-family: var(--serif); font-weight: 500; font-size: 31px; margin: 17px 0 14px; }
.dialog-intro { font-size: 11px; line-height: 1.9; color: var(--muted); }
#note-summary, .receipt-summary { border-block: 1px solid var(--line); padding: 10px 0; margin: 22px 0; }
.receipt-label { font-size: 11px; margin: 0 0 8px; }
.receipt-memo { font-family: var(--serif); font-size: 12px; line-height: 1.9; color: var(--muted); margin: 0; white-space: pre-wrap; }
#receipt-title:focus { outline: none; }
#close-receipt { padding: 15px 22px; min-height: 46px; border: 1px solid var(--ink); font-size: 11px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 12px; }
.summary-row span:last-child { font-family: var(--mono); }
dialog label { display: block; font-size: 11px; margin-bottom: 10px; }
dialog label span { font-size: 9px; color: var(--muted); margin-left: 10px; }
textarea { display: block; width: 100%; resize: vertical; min-height: 100px; padding: 12px; background: transparent; border: 1px solid var(--line); color: var(--ink); line-height: 1.9; border-radius: 0; font-size: 12px; }
textarea::placeholder { color: var(--muted); }
.note-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 23px; }
.note-bottom>span { font-size: 10px; }
.note-bottom strong { font-family: var(--mono); display: block; font-size: 18px; font-weight: 400; margin-top: 7px; }
#send-note { padding: 15px; min-height: 46px; color: var(--ticket); background: var(--red); font-size: 11px; }
#send-note span { margin-left: 18px; }
.dialog-foot { color: var(--muted); font-size: 9px; line-height: 1.8; margin-top: 20px; }
.status { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%,10px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--ticket); z-index: 12; margin: 0; padding: 14px 20px; font-size: 11px; width: max-content; max-width: calc(100% - 32px); transition: opacity 200ms var(--ease),transform 200ms var(--ease); }
.status.visible { opacity: 1; transform: translate(-50%,0); }
.noscript { padding: 20px; text-align: center; }
@keyframes write-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media(min-width:1500px) { .shoe-stage { aspect-ratio: 1.98; } }
@media(max-width:1100px) {
  .header,main,.footer { width: calc(100% - 60px); }
  .workbench { grid-template-columns: minmax(0,1fr) 280px; gap: 25px; }
  .intro { gap: 30px; }
  .intro-copy { font-size: 11px; }
  .shoe-stage { min-height: 320px; }
  .hotspot-label { font-size: 9px; }
  .hotspot.toe .hotspot-label { left: -28px; bottom: 94px; }
  .hotspot.heel .hotspot-label { right: -8px; bottom: 94px; }
  .hotspot::before { height: 58px; }
  .repair-detail { flex-wrap: wrap; gap: 14px; }
  .detail-copy { flex-basis: calc(100% - 48px); }
  .detail-action { margin-left: 47px; width: calc(100% - 47px); display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 0; }
  .detail-action p { font-size: 16px; text-align: left; margin: 0; }
  #add-repair { width: auto; min-width: 145px; }
  .philosophy { grid-template-columns: 1fr 1fr; }
  .thread-mark { display: none; }
}
@media(max-width:760px) {
  .header,main,.footer { width: calc(100% - 40px); }
  .header { height: 84px; }
  .brand-jp { font-size: 32px; }
  .brand { gap: 12px; }
  .brand-en { font-size: 21px; }
  .brand-en span { font-size: 7px; }
  .header-caption { display: none; }
  .about-link { font-size: 10px; }
  .about-link span { margin-left: 10px; }
  .intro { display: block; padding: 30px 0 27px; }
  h1 { font-size: clamp(33px,7.8vw,54px); margin-top: 14px; }
  .intro-copy { font-size: 11px; margin-top: 17px; }
  .intro-copy br:nth-child(2) { display: none; }
  .workbench { grid-template-columns: 1fr; gap: 30px; padding-top: 19px; }
  .bench-heading p { font-size: 10px; letter-spacing: 0; }
  #overview { font-size: 9px; }
  #overview span { margin-left: 3px; }
  .shoe-stage { min-height: 0; height: auto; aspect-ratio: 1.18; margin-top: 6px; }
  .shoe-object { transform: translateY(-47%) scale(.98); }
  .shoe-stage[data-active] .shoe-object { transform: translateY(-47%) scale(1.06); }
  .hotspot-label { font-size: 10px; padding: 5px 6px; }
  .hotspot-label small { display: none; }
  .hotspot.toe .hotspot-label { left: -16px; bottom: 96px; }
  .hotspot.heel .hotspot-label { right: -7px; bottom: 112px; }
  .hotspot.heel::before { height: 76px; }
  .hotspot.sole .hotspot-label { left: 23px; top: 30px; }
  .hotspot.sole::before { height: 24px; bottom: -17px; left: 30px; transform: rotate(-24deg); }
  .stage-meta { font-size: 7px; }
  .stage-footer { bottom: 1px; }
  .handwritten { font-size: 12px; }
  .stage-hint { font-size: 8px; }
  .part-tabs { margin-top: 8px; }
  .part-tabs small { margin-right: 10px; }
  .repair-detail { min-height: 151px; padding: 21px 0; }
  .detail-copy h2 { font-size: 18px; }
  .detail-copy>p:last-child { font-size: 11px; }
  .ticket-wrap { max-width: 440px; width: 100%; margin-inline: auto; padding: 0 5px; }
  .ticket { transform: rotate(.5deg); padding: 25px; }
  .ticket-items { min-height: 110px; }
  .ticket-empty { margin-top: 13px; }
  .ticket-empty>span { margin-top: 5px; }
  .ticket-item { min-height: 44px; }
  .philosophy { grid-template-columns: 1fr; gap: 24px; padding: 45px 0 35px; }
  .philosophy-heading h2 { font-size: 26px; }
  .philosophy-copy { font-size: 12px; }
  .footer { flex-wrap: wrap; gap: 14px; padding: 22px 0; }
  .footer p { order: 3; width: 100%; font-size: 8px; line-height: 1.8; }
  dialog { padding: 22px; }
  dialog h2 { font-size: 28px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation: none !important; transition: none !important; } }
