:root {
  color-scheme: light;
  --ink: #232320;
  --muted: #5d5d58;
  --line: #d7d7d1;
  --paper: #f7f7f3;
  --serif: 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', Georgia, serif;
  --sans: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  font: 16px/1.75 var(--sans);
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; overflow-wrap: anywhere }
img, canvas, svg { max-width: 100% }
a { color: inherit; text-underline-offset: .24em }
a:hover { text-decoration-thickness: 2px }
:focus-visible { outline: 3px solid #285fa6; outline-offset: 3px }
.skip { position: absolute; z-index: 2; inset: .5rem auto auto .5rem; padding: .5rem 1rem; background: #fff; transform: translateY(-160%) }
.skip:focus { transform: none }
body > header, body > footer { padding: 1rem max(5vw,1.1rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.5rem; border-bottom: 1px solid var(--line) }
body > header a:first-child, .brand { font-weight: 700; text-decoration: none }
main { max-width: 1060px; margin-inline: auto; padding: clamp(1.1rem,4vw,3rem) }
h1, h2, h3 { line-height: 1.45; text-wrap: pretty }
h1 { margin: .3em 0 .55em; font: 600 clamp(1.85rem,4vw,3.2rem)/1.33 var(--serif) }
h2 { margin: 0 0 .8em; font-size: clamp(1.35rem,2.25vw,1.95rem) }
h3 { margin: 0 0 1rem }
section { padding-block: clamp(1.2rem,3vw,2.2rem); border-top: 1px solid var(--line) }
main > section:first-child { border-top: 0 }
p { margin: .45rem 0 1rem }
label { display: block; margin: .75rem 0; font-weight: 600 }
input, select, button, textarea { font: inherit; max-width: 100% }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { display: block; border: 1px solid #96968e; border-radius: 2px; background: #fff; color: inherit; width: min(100%,34rem); margin-top: .35rem; padding: .6rem .76rem; min-height: 46px }
input[type=checkbox], input[type=radio] { width: 1.15em; height: 1.15em; margin: 0 .3em 0 0; vertical-align: middle; accent-color: var(--ink) }
input[readonly] { background: var(--paper) }
textarea { min-height: 5rem }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; min-height: 46px; padding: .65rem 1.25rem; border: 1px solid var(--ink); border-radius: 2px; color: #fff; background: var(--ink); cursor: pointer; text-decoration: none; font-weight: 600 }
button:hover:not(:disabled), .button:hover { background: #444440 }
button:disabled { opacity: .48; cursor: default }
button.secondary { color: var(--ink); background: white }
button.secondary:hover:not(:disabled) { background: var(--paper) }
fieldset { margin: 0; min-width: 0 }
figure { margin: 0 }
figcaption, .small { color: var(--muted); font-size: .85rem }
canvas { display: block; width: 100%; height: auto }
summary { cursor: pointer; font-weight: 600 }
pre { white-space: pre-wrap; overflow-wrap: anywhere }
[role=alert]:not(:empty) { padding: .65rem 1rem; color: #792b13; border-left: .2rem solid #954124; background: #faf5ef }
table { border-collapse: collapse }
th, td { padding: .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top }
.shop-header { max-width: 1440px; margin-inline: auto; min-height: 76px; padding-inline: clamp(1.15rem,4.3vw,4.5rem) }
.brand img { display: block; width: clamp(110px,10vw,145px); height: auto }
.shop-header nav, .shop-footer nav { display: flex; align-items: center; gap: .6rem clamp(.85rem,2.5vw,2rem); flex-wrap: wrap; font-size: .85rem }
.shop-header nav a { text-decoration: none }
.shop-header nav a:hover { text-decoration: underline }
.account-link { border: 1px solid #aaa; padding: .35em .95em; border-radius: 2px }
.shop-main { width: min(100%,1440px); max-width: none; padding: 0 clamp(1.15rem,4.3vw,4.5rem) }
.shop-main > section { padding-block: clamp(2.8rem,6.2vw,5.8rem) }
.shop-main .hero { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.3fr); align-items: center; gap: clamp(1.5rem,5vw,5rem); padding-block: clamp(2.1rem,4.5vw,4.4rem) }
.hero-text { max-width: 30rem }
.hero .product-kind { font-size: .86rem; font-weight: 600; letter-spacing: .08em }
.hero h1 { font: 600 clamp(2.15rem,4.8vw,4.6rem)/1.23 var(--serif); letter-spacing: -.04em; margin: .38em 0 }
.hero-text > p:not(.product-kind) { max-width: 30em; line-height: 1.9; color: #41413e }
.hero .button { margin-top: .55rem }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; background: var(--paper) }
.hero-photo figcaption { margin-top: .5rem; font-size: .75rem }
.info-section { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1fr); gap: clamp(2rem,6vw,6rem) }
.contents-list { list-style: none; margin: 0; padding: 0 }
.contents-list li { border-bottom: 1px solid var(--line); padding: .8rem 0 }
.rules, .receipt { display: grid; grid-template-columns: minmax(6.8rem,auto) minmax(0,1fr); margin: 0 }
.rules dt, .rules dd, .receipt dt, .receipt dd { margin: 0; padding: .65rem 0; border-bottom: 1px solid var(--line) }
.rules dt { color: var(--muted); padding-right: .9rem }
.flow { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,3vw,3rem); list-style: decimal-leading-zero; padding-left: 1.8rem; margin-bottom: 0 }
.flow li { padding-left: .4rem; margin-left: .75rem }
.flow li::marker { color: var(--muted); font-variant-numeric: tabular-nums }
.flow span { display: block; color: var(--muted); margin-top: .35rem }
.customize form { max-width: 930px; margin-top: 2rem }
.customize fieldset { border: 0; padding: 0 0 2rem; margin-bottom: 1.35rem; border-bottom: 1px solid var(--line) }
.customize legend { font-size: 1.25rem; font-weight: 700; margin-bottom: .25rem; padding: 0 }
.fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 1rem }
.address-fields { grid-template-columns: repeat(2,minmax(0,1fr)) }
.fields input, .fields select { width: 100% !important }
.upload { padding: 1rem; border: 1px dashed #95958d; background: var(--paper) }
.upload input[type=file] { background: transparent !important; border: 0 !important; width: 100% !important; padding: .25rem 0 !important }
input::file-selector-button { padding: .45rem .8rem; background: white; border: 1px solid #999; font: inherit; cursor: pointer }
.previews { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 1.35rem 0 }
.previews canvas { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; background: var(--paper) }
.previews figcaption { padding-top: .45rem }
.draft-line { display: flex; gap: .6rem 1rem; flex-wrap: wrap; align-items: center }
.review { margin-top: 1.5rem; padding: clamp(1rem,3.5vw,2.4rem); background: var(--paper) }
.receipt { margin: 1rem 0; grid-template-columns: minmax(0,1fr) auto }
.receipt dt:last-of-type, .receipt dd:last-of-type { border-bottom: 0; font-weight: 700; font-size: 1.12rem }
.review .check { margin: 1.2rem 0; font-weight: 400 }
.faq details { padding: .95rem 0; border-bottom: 1px solid var(--line) }
.faq details p { margin: .6rem 0 0 }
.shop-footer { border-bottom: 0; border-top: 1px solid var(--line); align-items: flex-start; padding-block: 1.7rem }
.shop-footer nav { font-size: .8rem }
.legal-main { max-width: 840px; padding-block: clamp(2rem,6vw,5rem) }
.legal-main dl { margin: 1rem 0 }
.legal-main h2 { font-size: 1.3rem }
@media (max-width: 760px) {
  .shop-main .hero, .info-section { grid-template-columns: 1fr }
  .hero-text { max-width: none }
  .shop-header { min-height: 60px }
  .hero h1 { font-size: clamp(2.25rem,8.5vw,3.3rem) }
  .flow { grid-template-columns: 1fr; gap: 1rem }
  .fields { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .previews { grid-template-columns: 1fr 1fr }
  .previews > figure:first-child { grid-column: 1 / -1 }
  .previews > figure:first-child canvas { max-height: 190px }
  .receipt dt, .receipt dd { font-size: .9rem }
}
@media (max-width: 470px) {
  .shop-header nav a:first-child { display: none }
  .brand img { width: 105px }
  .address-fields { grid-template-columns: 1fr }
  .shop-main .hero { gap: 1.5rem }
  .rules { grid-template-columns: 6rem minmax(0,1fr); font-size: .9rem }
  .shop-footer nav { align-items: flex-start }
  .review-actions button, #checkout { width: 100% }
}
