:root {
    color-scheme: light;
    --ink: #202020;
    --muted: #585858;
    --rule: #d5d5d5;
    --serif: "Noto Serif JP", "Yu Mincho", serif;
    --digits: Arial, "Noto Sans JP", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.paper-page {
    margin: 0; min-width: 0; background: #f8f8f8; color: var(--ink);
    font: 16px/1.75 "Noto Sans JP", "Yu Gothic", sans-serif;
    overflow-wrap: anywhere;
}
.wrap { width: min(100%, 552px); margin: auto; padding: 18px clamp(16px,5vw,32px) 40px; }
.wordmark { margin: 0 0 18px; font: bold italic 21px/1.3 Georgia, serif; letter-spacing: -.045em; }
.paper-ticket, .guide-head {
    position: relative; isolation: isolate; background: #eee url("paper.png") repeat;
    border: 1px solid #ccc; box-shadow: 0 2px 3px #0001, 0 7px 18px #00000009;
}
.paper-heading, .guide-head { padding: clamp(24px,6vw,40px); }
.paper-heading { min-height: 130px; display: grid; align-content: center; }
.paper-heading p { margin: 0 0 9px; color: #424242; font-size: 13px; letter-spacing: .075em; }
h1, .ticket_title { margin: 0; font: 600 clamp(27px,6.8vw,42px)/1.45 var(--serif); letter-spacing: -.025em; }
.compact .paper-heading { min-height: 90px; padding-block: 20px; }
.compact h1 { font-size: clamp(23px,5.6vw,32px); }
.photo-mat { padding: 10px; margin: 16px 16px 0; background: #fff; box-shadow: 0 1px 4px #0002; }
.photo-mat img { max-width: 100%; max-height: min(42vh,345px); width: auto; height: auto; display: block; margin: auto; object-fit: contain; }
.compact .photo-mat img { max-height: min(24vh,190px); }
.paper-stub {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px;
    position: relative; border-top: 1px dashed #999; padding: 11px 20px; font-variant-numeric: tabular-nums;
}
.paper-stub::before,.paper-stub::after {
    content: ""; position: absolute; top: -6px; width: 7px; height: 12px; background: #f8f8f8;
    border: 1px solid #bcbcbc;
}
.paper-stub::before { left: -1px; border-left: none; border-radius: 0 9px 9px 0; }
.paper-stub::after { right: -1px; border-right: none; border-radius: 9px 0 0 9px; }
.paper-stub span { font: italic 13px Georgia,serif; }
.paper-stub small, .help, .fonts, .guide-link, .footer { font-size: 13px; color: var(--muted); }
.paper-stub small, .ticket-choice p, .order-info dd, .status-note span, #amount {
    font-family: var(--digits); font-variant-numeric: lining-nums tabular-nums;
}
h2, .h2 { margin: 0 0 14px; font-size: 21px; line-height: 1.5; font-weight: 700; }
p { margin: 8px 0 16px; }
#purchase section, .float-box, .message { margin: 26px 0 18px; }
.purchase-steps {
    list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 22px 0 0;
    scroll-margin-top: 16px; font-size: 13px; line-height: 1.6; color: var(--muted);
}
.purchase-steps li { display: flex; align-items: center; gap: 5px; }
.purchase-steps span {
    display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #999;
    border-radius: 50%; font: 600 13px/1 var(--digits);
}
.purchase-steps [aria-current] { color: var(--ink); font-weight: 700; }
.purchase-steps [aria-current] span { color: white; background: var(--ink); border-color: var(--ink); }
.purchase-steps + #choose, #choose[hidden] + #contact { margin-top: 15px; }
.field-guide { color: #444; font-size: 14px; }
#contact input::placeholder { color: #696969; font-weight: 400; }
.ticket-choice, .order-total { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.quantity-card { padding: 16px; margin-bottom: 14px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.quantity-card .order-total { margin: 12px 0 0; padding: 12px 0 0; }
.quantity-card .help { margin: 9px 0 0; }
.quantity-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.quantity-presets button {
    flex: 1 1 44px; min-width: 44px; max-width: 60px; min-height: 44px; padding: 4px 7px;
    border: 1px solid #bdbdbd; border-radius: 5px; background: #fff; font-size: 15px;
    font-variant-numeric: tabular-nums;
}
.quantity-presets button[aria-pressed=true] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.ticket-choice p { margin: 2px 0 0; font-size: 13px; }
.counter { display: flex; align-items: center; }
button, input, textarea, select { font: inherit; color: inherit; }
.counter button { width: 44px; height: 44px; background: #fff; border: 1px solid #bbb; border-radius: 50%; font-size: 20px; }
.counter button:disabled { opacity: .4; }
.counter input { text-align: center; width: 5.5ch; min-width: 0; margin: 0; padding: 5px 0; font: 600 17px/1.5 var(--digits); font-variant-numeric: tabular-nums; }
.counter input[readonly] { border: 0; background: transparent; width: 3ch; }
.counter:has(button:not([hidden])) input { appearance: textfield; background: transparent; border: 0; }
.counter:has(button:not([hidden])) input::-webkit-inner-spin-button { appearance: none; }
.order-total { border-top: 1px solid var(--rule); padding: 16px 0 12px; margin-top: 22px; }
.order-total small { font-size: 11px; color: var(--muted); }
.order-total strong { font: 700 28px/1.3 var(--digits); font-variant-numeric: lining-nums tabular-nums; }
.action, .kakuhobtn, input[type=submit] {
    display: block; width: 100%; border: 1px solid #222; background: #222; color: white;
    border-radius: 5px; text-align: center; padding: 13px 12px; font-weight: 700; text-decoration: none;
}
button, summary, input[type=submit] { cursor: pointer; }
.action:hover,.kakuhobtn:hover { background: #393939; color: white; }
.action:disabled { opacity: .65; }
.text-button { background: none; border: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; }
.action, .kakuhobtn, input[type=submit], .counter button, .quantity-presets button, .text-button {
    touch-action: manipulation;
    transition: transform 100ms ease-out, box-shadow 100ms ease-out, background-color 100ms ease-out;
}
.action, .kakuhobtn, input[type=submit] { box-shadow: 0 3px 0 #080808; }
.counter button:enabled { box-shadow: 0 2px 0 #ccc; }
:is(.action,.kakuhobtn,input[type=submit],.counter button,.quantity-presets button,.text-button):not(:disabled):active {
    transform: translateY(2px) scale(.985); box-shadow: inset 0 2px 3px #0003; transition-duration: 35ms;
}
.counter button:enabled:active, .text-button:active { background: #e5e5e5; }
@media (prefers-reduced-motion: reduce) {
    :is(.action,.kakuhobtn,input[type=submit],.counter button,.quantity-presets button,.text-button) { transition: none; }
    :is(.action,.kakuhobtn,input[type=submit],.counter button,.quantity-presets button,.text-button):not(:disabled):active { transform: none; }
}
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #333; outline-offset: 3px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 15px 0; }
input:not([type=hidden]):not([type=submit]), textarea, select { border-radius: 4px; }
label input:not([type=hidden]), textarea, select { display: block; border: 1px solid #999; width: 100%; padding: 10px; background: #fff; font-size: 16px; margin-top: 5px; }
textarea { min-height: 100px; resize: vertical; }
details { border-block: 1px solid var(--rule); padding: 12px 0; margin: 18px 0; }
summary { font-size: 14px; font-weight: 600; }
.event-description,.body { font-size: 15px; }
.event-description { margin: 20px 0; }
.event-intro {
    padding: 15px 18px; background: rgb(255 255 255 / 76%); border: 1px solid #e6e6e6;
    border-radius: 5px; line-height: 1.85;
}
.guide-link { display: inline-block; padding: 7px 0; }
.footer { border-top: 1px solid var(--rule); padding-top: 15px; margin-top: 25px; font-size: 12px; }
.footer .links { margin-bottom: 6px; }
.status-note,.feedback,.complete,.notcomplete { border-left: 3px solid #454545; background: #eee; padding: 14px 16px; margin: 16px 0; }
.complete .action,.notcomplete .action { margin-top: 12px; }
.status-note span { display: block; }
.status-note p,.ticket-choice p,.order-info dt { color: var(--muted); }
.status-note p { font-size: 14px; margin: 5px 0 0; }
.order-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 15px; font-size: 15px; }
.order-info dd { margin: 0; }
.guide-steps { list-style: decimal-leading-zero; padding-left: 2em; }
.guide-steps li { padding: 18px 0 12px 5px; border-bottom: 1px solid var(--rule); }
.guide-steps li::marker { font: 600 16px var(--digits); font-variant-numeric: tabular-nums; }
.guide-steps h2 { font-size: 19px; margin: 0; }
.guide-steps p { font-size: 15px; }
.entry-qr { display: block; width: min(100%,245px); height: auto; margin: 16px auto; background: white; }
.cen, .qr { text-align: center; }
.qr:has(#payform),.qr:has(form) { text-align: left; }
.mb,.mbm { margin-bottom: 16px; }
.right { font-size: 13px; color: var(--muted); text-align: right; }
.paper-ticket + .float-box > .right:first-child { display: none; }
.fonts { margin-top: 18px; }
.fontb { font-weight: 700; }
.flexb { display: flex; align-items: center; gap: 12px; }
#amount::before { content: "¥"; }
.contact { border-collapse: collapse; width: 100%; font-size: 14px; background: #fff; }
.contact th,.contact td { padding: 8px; border: 1px solid var(--rule); }
.contact th { width: 32%; }
.paper-page [style*="color:#ff0000"] { color: #383838 !important; }
.qr span,.complete span { display: block; }
@media (max-width: 350px) {
    .quantity-card { padding: 12px; }
    .ticket-choice { gap: 5px; }
}

.wordmark::before {
    display: inline-block; content: ""; width: 20px; height: 12px; margin: 0 8px 1px 1px;
    background: radial-gradient(circle at 0 50%, transparent 2px, #292929 2.5px) left / 50% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent 2px, #292929 2.5px) right / 51% 100% no-repeat;
    transform: rotate(-13deg);
}
