/* あんずのトーク会 — site styles. Mobile first, large readable type (40–50s audience). */
:root {
  --bg: #f6f1ed;
  --paper: #ffffff;
  --ink: #2a1b38;
  --ink-soft: #5d4f6b;
  --line: #e4dae9;
  --purple: #4a1d78;
  --purple-2: #6a2f9a;
  --magenta: #c4228f;
  --orange: #f59a3a;
  --gold: #b49a4a;
  --gold-ink: #231530;
  --ok: #1f7a4d;
  --ok-bg: #e6f5ec;
  --warn: #a15c00;
  --warn-bg: #fff3dd;
  --err: #b3261e;
  --err-bg: #fdecea;
  --night: #0d0614;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(74, 29, 120, .10);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-head: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Maru Gothic ProN", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.9 var(--font); letter-spacing: .02em; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--purple-2); text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.4; margin: 0 0 .6em; color: var(--purple); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 12px; }
.narrow { max-width: 960px; }
.center { text-align: center; }
.mt-l { margin-top: 2.4em; }
[hidden] { display: none !important; }
/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.2em; }
.center-row { justify-content: center; }
/* ---------- header / menu ---------- */
/* ---------- hero ---------- */
.eyebrow { font: 700 13px/1 var(--font); letter-spacing: .24em; color: var(--gold); margin: 0 0 .9em; text-transform: uppercase; }
.eyebrow.light { color: #f6d98a; }
/* ---------- sections ---------- */
.sec { padding: 64px 0; }
.sec-tight { padding: 28px 0 64px; }
.sec-tint { background: #efe6f3; }
.h-line { font-size: 24px; display: inline-block; padding-bottom: 4px; border-bottom: 3px solid var(--purple); margin-bottom: 1em; }
.h-center { text-align: center; font-size: clamp(24px, 5.4vw, 34px); margin-bottom: 1.4em; }
.h-left { font-size: clamp(24px, 5.4vw, 32px); }
.big-p { font-size: 19px; }
.big-p strong, .formula b { color: var(--magenta); }
.note { font-size: 14px; color: var(--ink-soft); margin-top: .8em; }
.card { background: var(--paper); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.card.big { padding: 24px 14px; border-radius: 28px; }
.card.warn { background: var(--warn-bg); border: 1px solid #f0d6a2; box-shadow: none; }
.card.warn h2 { color: var(--warn); font-size: 20px; }
.notice-grid { display: grid; gap: 20px; margin-bottom: 36px; }
.notice-list { margin: 0; }
.notice-list div { display: grid; grid-template-columns: 4.2em 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.notice-list dt { font-size: 13px; font-weight: 700; color: var(--gold); padding-top: 4px; }
.notice-list dd { margin: 0; line-height: 1.7; }
.sched-grid { display: grid; gap: 36px; }
.two-col { display: grid; gap: 28px; align-items: center; }
/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th { background: #4a1d78; color: #fff; font-size: 14px; }
.table tbody th { font-weight: 700; white-space: nowrap; }
.table tfoot th, .table tfoot td { background: #f6effa; font-weight: 700; border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.sched { margin-top: 4px; }
.spec { margin: 0; background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.spec div { display: grid; padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 2px; }
.spec div:last-child { border-bottom: 0; }
.spec dt { font-size: 14px; font-weight: 700; color: var(--purple-2); }
.spec dd { margin: 0; }
/* calendar */
.cal-pair { display: grid; gap: 16px; }
.cal { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px 8px; }
.cal h3 { text-align: center; font-size: 17px; color: var(--ink); border-bottom: 1px dashed #d8c9a0; padding-bottom: 8px; margin-bottom: 6px; }
.cal table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 13px; padding: 4px 0; color: var(--ink); }
.cal td { text-align: center; padding: 3px 0; }
.cal-day { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-size: 14px; color: #9a8ba8; text-decoration: none; }
.cal-day.on { background: #4a1d78; color: #fff; font-weight: 700; box-shadow: 0 3px 8px rgba(74, 29, 120, .3); }
.cal-day.on:hover { background: var(--magenta); color: #fff; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #4a1d78; margin-right: 6px; vertical-align: -1px; }
/* flow */
.flow { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.flow-card { background: #fff; border-radius: 22px; padding: 22px 20px; box-shadow: var(--shadow); position: relative; }
.flow-no { font: 700 12px/1 var(--font); letter-spacing: .24em; color: #9a5a9c; }
.flow-card h3 { margin: .5em 0 .4em; font-size: 20px; }
.flow-card p { margin: 0; font-size: 15px; color: var(--ink-soft); }
/* safety cards */
.safe-grid { display: grid; gap: 14px; margin-bottom: 28px; }
.safe-card { background: #fff; border-radius: 22px; padding: 22px 20px; box-shadow: var(--shadow); text-align: center; }
.safe-card h3 { font-size: 18px; color: var(--ink); }
.safe-card p { font-size: 15px; color: var(--ink-soft); text-align: left; margin: 0; }
.safe-tag { display: inline-block; font: 700 12px/1 var(--font); padding: 6px 14px; border-radius: 999px; margin-bottom: 12px; }
.c0 .safe-tag { background: #fbe4ee; color: #c24a78; }
.c1 .safe-tag { background: #ece0f7; color: #7a46b0; }
.c2 .safe-tag { background: #e0eafc; color: #3d63b8; }
.c3 .safe-tag { background: #dcf5e8; color: #2a8a5c; }
.cta-band { background: linear-gradient(135deg, #3a1560, #6a2f9a 55%, #c4228f); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 5.4vw, 32px); }
/* ---------- inner pages ---------- */
/* Let the shared sakura image continue through every inner-page heading. */
.page-head { background: transparent; color: var(--ink); padding: 44px 0 40px; text-align: center; }
.page-head h1 { color: var(--purple); font-size: clamp(26px, 6vw, 38px); margin: 0; }
.page-head .eyebrow { color: var(--purple-2); }
.page-head .lead { color: var(--ink); margin: 1em 0 0; }
.crumb { font-size: 13px; color: var(--ink-soft); padding-top: 14px; padding-bottom: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--ink-soft); }
.list { padding-left: 1.3em; margin: 0 0 1em; }
.list li { margin-bottom: .5em; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; counter-reset: c; display: grid; gap: 14px; }
.check-list li { counter-increment: c; background: #fff; border-radius: 18px; padding: 20px 20px 20px 66px; box-shadow: var(--shadow); position: relative; }
.check-list li::before { content: counter(c); position: absolute; left: 18px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; font: 900 17px/34px var(--font-head); text-align: center; }
.check-list h2 { font-size: 19px; margin-bottom: .3em; }
.check-list p { margin: 0; }
.steps-n { padding: 0; list-style: none; counter-reset: n; display: grid; gap: 12px; }
.steps-n li { counter-increment: n; background: #fff; border-radius: 16px; padding: 16px 16px 16px 64px; position: relative; box-shadow: 0 0 0 1px var(--line); }
.steps-n li::before { content: counter(n); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--magenta); color: #fff; font: 900 17px/34px var(--font-head); text-align: center; }
.formula { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; font: 900 clamp(20px, 5vw, 28px)/1.3 var(--font-head); margin-bottom: 1.2em; }
.formula span { background: #fff; padding: 14px 22px; border-radius: 16px; box-shadow: var(--shadow); color: var(--purple); }
.calc { display: grid; gap: 16px; }
.calc-out { font-size: 18px; margin: 0; }
.calc-out strong { font: 900 34px/1.2 var(--font-head); color: var(--magenta); margin-left: .3em; }
.faq { background: #fff; border-radius: 16px; margin-bottom: 12px; box-shadow: 0 0 0 1px var(--line); }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; list-style: none; position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%; background: var(--purple); color: #fff; font: 900 14px/28px var(--font-head); margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--purple-2); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 18px 18px 56px; }
.prose h2 { font-size: 20px; margin-top: 1.8em; padding-left: 12px; border-left: 5px solid var(--purple-2); }
.prose ul { padding-left: 1.3em; }
/* ---------- footer ---------- */
/* ---------- reservation app ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.app > * { min-width: 0; }
.app > :empty { display: none; }
.loading { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.stepper { list-style: none; display: flex; justify-content: center; gap: 8px; margin: 0 0 22px; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #9a8ba8; flex: 1; justify-content: center; padding: 8px 4px; border-radius: 12px; background: #ece4f0; }
.stepper li span { width: 26px; height: 26px; border-radius: 50%; background: #c9bad6; color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.stepper li.on { background: var(--purple); color: #fff; }
.stepper li.on span { background: var(--orange); color: #231530; }
.stepper li.done { background: #dcf5e8; color: var(--ok); }
.stepper li.done span { background: var(--ok); }
.status-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: 0 0 0 1px var(--line); }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 15px; background: var(--warn-bg); color: var(--warn); }
.pill.on { background: var(--ok-bg); color: var(--ok); }
.pill.off { background: var(--err-bg); color: var(--err); }
.remain b { font: 900 26px var(--font-head); color: var(--magenta); }
.alert { border-radius: 14px; padding: 14px 18px; font-weight: 500; }
.alert.err { background: var(--err-bg); color: var(--err); border: 1px solid #f3c1bd; }
.alert.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe3cf; }
.alert.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #f0d6a2; }
.countdown-box { text-align: center; padding: 30px 18px; }
.countdown-box .t { font: 900 36px var(--font-head); color: var(--purple); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.day-btn { flex: 0 0 auto; scroll-snap-align: start; min-width: 78px; min-height: 76px; padding: 8px 10px; border-radius: 16px; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font: 700 15px/1.3 var(--font); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.day-btn small { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.day-btn .left { font-size: 12px; color: var(--ok); font-weight: 700; }
.day-btn .left.zero { color: var(--err); }
.day-btn[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.day-btn[aria-pressed="true"] small, .day-btn[aria-pressed="true"] .left { color: #f6e7b4; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; margin: 4px 0 6px; }
.legend i { font-style: normal; font-weight: 900; font-size: 17px; margin-right: 4px; }
.hour { margin-bottom: 16px; }
.hour h3 { font-size: 16px; color: var(--ink); margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.hour h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { min-height: 62px; padding: 6px 4px; border-radius: 14px; border: 2px solid #cdbfd6; background: #fff; color: var(--ink); cursor: pointer; font: 700 16px/1.25 var(--font); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform .12s, background .12s; }
.slot .sym { font-size: 20px; line-height: 1; font-weight: 900; color: var(--ok); }
.slot:hover:not([disabled]) { background: #f5ecfb; border-color: var(--purple-2); transform: translateY(-1px); }
.slot.held { background: var(--warn-bg); border-color: #efd29a; color: var(--warn); }
.slot.held .sym { color: var(--warn); }
.slot.taken, .slot.closed { background: #eee9f0; border-color: #e0d8e6; color: #9a8ba8; cursor: not-allowed; }
.slot.taken .sym, .slot.closed .sym { color: #9a8ba8; }
.slot.mine { background: var(--purple); border-color: var(--purple); color: #fff; }
.slot.mine .sym { color: #f6d98a; }
.slot[disabled] { cursor: not-allowed; }
.selection-bar { position: sticky; bottom: 0; z-index: 20; background: #fff; border-top: 3px solid var(--purple); box-shadow: 0 -8px 24px rgba(74, 29, 120, .18); padding: 12px 16px; margin: 0 -16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.selection-bar .sel { font-weight: 700; }
.selection-bar .sel small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 13px; }
/* form */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .lbl { font-weight: 700; font-size: 17px; }
.req { color: #a8323a; margin-left: .3em; }
.opt { font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-left: .5em; }
.input, select.input { width: 100%; min-height: 56px; padding: 12px 16px; border: 2px solid #ddd2e4; border-radius: 12px; font: 400 17px/1.4 var(--font); color: var(--ink); background: #fff; appearance: none; -webkit-appearance: none; }
select.input, #calc-votes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%232a1b38' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
#calc-votes { width: 100%; min-height: 56px; padding: 12px 16px; border: 2px solid #ddd2e4; border-radius: 12px; font: 400 17px var(--font); background-color: #fff; appearance: none; -webkit-appearance: none; }
.input:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 4px rgba(106, 47, 154, .15); }
.input::placeholder { color: #a99bb6; }
.input.bad, .file.bad { border-color: var(--err); background: #fffafa; }
.help { font-size: 14px; color: var(--ink-soft); margin: 0; }
.err-text { font-size: 14px; color: var(--err); font-weight: 700; margin: 0; }
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-weight: 500; line-height: 1.6; }
.check input { flex: none; width: 28px; height: 28px; margin: 0; accent-color: var(--purple-2); }
.file { display: flex; align-items: stretch; border: 2px solid #ddd2e4; border-radius: 12px; overflow: hidden; background: #fff; min-height: 56px; }
.file .pick { display: flex; align-items: center; gap: 8px; padding: 0 18px; background: #f1eff3; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; border: 0; border-right: 2px solid #ddd2e4; color: var(--ink); font-family: var(--font); }
.file .pick:hover { background: #e7e1ec; }
.file .name { flex: 1; padding: 0 14px; display: flex; align-items: center; color: #8f8199; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file.has .name { color: var(--ink); font-weight: 500; }
.file .clear { border: 0; background: none; padding: 0 14px; font-size: 22px; cursor: pointer; color: var(--ink-soft); }
.file input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.summary { background: #f6effa; border-radius: 16px; padding: 18px 20px; }
.summary h3 { font-size: 18px; margin-bottom: .5em; }
.summary dl { margin: 0; display: grid; grid-template-columns: 6.5em 1fr; gap: 6px 12px; }
.summary dt { color: var(--ink-soft); font-size: 14px; padding-top: 2px; }
.summary dd { margin: 0; font-weight: 700; }
.summary .big { font: 900 22px/1.4 var(--font-head); color: var(--purple); }
.hold-note { font-size: 14px; margin: 8px 0 0; }
.hold-note b { color: var(--magenta); font-variant-numeric: tabular-nums; }
.form-actions { display: grid; gap: 12px; }
.spinner { --sp: #fff; flex: none; width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0%, var(--sp) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-dark { --sp: #7b2fa6; }
.az-busy { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2147483001; display: flex; align-items: center; gap: 16px; width: min(420px, calc(100vw - 32px)); padding: 22px 26px; border-radius: 20px; background: #fff; color: #4a1d78; box-shadow: 0 18px 50px rgba(74, 29, 120, .35); border: 1px solid #e2d0f2; padding-right: 56px; }
.az-busy::before { content: ""; position: fixed; inset: -50vmax; z-index: -1; background: rgba(60, 25, 90, .28); pointer-events: none; }
.az-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(122, 63, 154, .10); color: #7a3f9a; font: 400 22px/1 var(--font); cursor: pointer; }
.az-x:hover { background: rgba(122, 63, 154, .22); }
.az-x:focus-visible { outline: 2px solid #f59a3a; outline-offset: 2px; }
body.az-waiting .az-busy { display: none; }
.az-busy .spinner { width: 34px; height: 34px; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px)); }
.az-busy-text { display: flex; flex-direction: column; gap: 4px; }
.az-busy-text b { font-size: 17px; }
.az-busy-text small { font-size: 13px; font-weight: 500; line-height: 1.6; color: #6a3d8f; }
.loading .spinner { display: inline-block; vertical-align: middle; margin-right: 10px; }
/* complete */
.code-card { text-align: center; background: linear-gradient(135deg, #fff, #f6effa); border: 2px dashed var(--purple-2); border-radius: 24px; padding: 28px 16px; }
.code-card .lab { font-weight: 700; color: var(--ink-soft); margin: 0; }
.code-card .code { font: 900 clamp(34px, 9vw, 52px)/1.2 var(--font-head); letter-spacing: .16em; color: var(--purple); margin: .1em 0 .3em; user-select: all; }
.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: t; }
.todo li { counter-increment: t; background: #fff; border-radius: 14px; padding: 14px 14px 14px 58px; position: relative; box-shadow: 0 0 0 1px var(--line); }
.todo li::before { content: counter(t); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 50%; background: var(--magenta); color: #fff; font: 900 15px/30px var(--font-head); text-align: center; }
/* admin */
.page-admin .side-tab, .page-admin .hide-sm { display: none !important; }
.admin-h { font-size: 26px; }
.admin .bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.admin .bar .input { min-height: 44px; max-width: 280px; padding: 6px 12px; font-size: 15px; }
.admin-table-wrap { overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); max-height: 75vh; }
.admin table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.5; }
.admin th, .admin td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
.admin thead th { position: sticky; top: 0; background: #4a1d78; color: #fff; z-index: 1; }
.admin tr.cancelled td { color: #9a8ba8; text-decoration: line-through; }
.admin tr.cancelled td.act { text-decoration: none; }
.tag { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: 12px; font-weight: 700; background: #ece0f7; color: #6a2f9a; }
.tag.dup { background: var(--err-bg); color: var(--err); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.admin a.fl { margin-right: 8px; font-weight: 700; }
.admin .mini { min-height: 32px; padding: 2px 12px; font-size: 13px; }
.login-box { max-width: 380px; margin: 40px auto; display: grid; gap: 14px; }
@media (min-width: 640px) {
  body { font-size: 18px; }
  .slots { grid-template-columns: repeat(4, 1fr); }
  .cal-pair { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .safe-grid { grid-template-columns: repeat(2, 1fr); }
  .spec div { grid-template-columns: 11em 1fr; gap: 16px; }
  .notice-list div { grid-template-columns: 5em 1fr; }
  .card.big { padding: 40px 28px; }
  .wrap { padding: 0 20px; }
}
@media (min-width: 960px) {
  .sec { padding: 88px 0; }
  .notice-grid { grid-template-columns: 240px 1fr; gap: 48px; }
  .sched-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .cal-pair { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; }
  .flow { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .flow-card:not(:last-child)::after { content: "›"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); font-size: 34px; color: #c9a0c8; z-index: 1; }
  .safe-grid { grid-template-columns: repeat(4, 1fr); }
  .slots { grid-template-columns: repeat(6, 1fr); }
  .selection-bar { margin: 0; border-radius: 16px 16px 0 0; }
  .form-actions { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .hd, .drawer, .rtab, .ft2, .btn, .page-head, .crumb { display: none !important; }
  body { background: #fff; }
}
.lg-ok { color: var(--ok); }
.lg-warn { color: var(--warn); }
.lg-off { color: #9a8ba8; }
.check.small { font-size: 14px; }
.btn-row .btn, .form-actions .btn { white-space: normal; }
/* home: header floats over the full-screen hero; its scrim is invisible at the top and fades in on scroll */

/* new hero container: the hero2 block lives inside this section (styles in ref.css) */
.hero { position: relative; padding: 0; background: #fff; }
.skip:focus { z-index: 10000; }

/* ---------- first view: pieces that complement ref.css ---------- */
.no-intro .in2 { display: none !important; }
/* sparkle positions for the intro (inline styles are blocked by the CSP, so they are classes) */
.in2-spark.s0 { left: 18%; top: 22%; } .in2-spark.s1 { left: 84%; top: 18%; } .in2-spark.s2 { left: 90%; top: 62%; } .in2-spark.s3 { left: 10%; top: 70%; }
.in2-spark.s4 { left: 50%; top: 6%; }  .in2-spark.s5 { left: 70%; top: 90%; } .in2-spark.s6 { left: 30%; top: 92%; } .in2-spark.s7 { left: 96%; top: 40%; }
/* initial state of the first slide (JS takes over once it loads) */
.hero2-title { --zl: 4%; --zw: 45%; --fs: 6.48vw; --d: .55em; }
.hero2 > .hero2-slide:first-child { opacity: 1; z-index: 1; }
/* explanatory block under the slider */
.hero { text-align: center; }
.hero .hero-body { background: #fff; padding: 80px 0 24px; }
.hero .hero-body h1 { font-family: inherit; font-size: clamp(32px, 4.6vw, 68px); letter-spacing: .08em; color: #3b2350; margin: 0 0 18px; line-height: 1.45; text-wrap: balance; }
.hero .hero-body p { font-size: clamp(17px, 1.5vw, 22px); max-width: 760px; line-height: 2; color: #5b4a69; margin: 0 auto 24px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* keep footer headings dark on hover (overrides the global link hover colour) */

/* centre the call-to-action buttons (the old rule was removed with the previous button styles) */
.cta-band .btn-row, .page-head .btn-row { justify-content: center; }

/* ---------- notice / schedule / calendar (reference "hi" block) — site-specific additions ---------- */
.hi-news > div:first-child .btn { margin-top: 40px; }
.hi-news li a { align-items: baseline; }
.hi-news li a span { flex: 1; }
/* schedule card: 3 columns (date / time / slots) instead of the weekly dots grid */
.hi-sched .hi-tr { grid-template-columns: 1.5fr 1.7fr .7fr; }
.hi-sched .hi-tr span { white-space: normal; padding: 0 6px; }
.hi-sched .hi-total { background: #f6effa; border-top: 1px solid #ece4da; }
.hi-sched .hi-total b { font-weight: 800; }
@media (max-width: 480px) { .hi-sched .hi-tr { grid-template-columns: 1.3fr 1.5fr .6fr; font-size: 13px; } .hi-sched .hi-tr b { padding: 0 4px; } }
/* calendar days are links to that day's booking page */
.hi-cal-g a.on { display: grid; place-items: center; height: 42px; position: relative; color: #fff; font-weight: 800; z-index: 0; text-decoration: none; }
.hi-cal-g a.on::before { content: ""; position: absolute; width: 36px; height: 36px; border-radius: 50%; background: #55276f; z-index: -1; box-shadow: 0 2px 8px rgba(85, 39, 111, .3); transition: transform .25s, background .25s; }
.hi-cal-g a.on:hover::before { transform: scale(1.14); background: #7a3f9a; }
.hi-cal-g > span:empty { height: 42px; }
/* About page: two month cards side by side */
.cal-pair { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .cal-pair { grid-template-columns: 1fr 1fr; } }
.cal-pair .hi-cal + .hi-cal { margin-top: 0; }
.hi-legend .dot { margin-right: 6px; }

/* ---- banners + gallery + fixed CTA ---- */
/* banner transition: feathered left-to-right wipe (--p is animated by GSAP) */
.hero2-slide.wipe { -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--p, 0%) - 24%), transparent var(--p, 0%)); mask-image: linear-gradient(90deg, #000 calc(var(--p, 0%) - 24%), transparent var(--p, 0%)); }
/* the banners carry their own title, so the headline/tagline stay only as visually hidden text */
.hero2.no-text .hero2-title, .hero2.no-text .hero2-band { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
/* portrait / narrow screens: show the whole 16:9 banner (cropping would cut off its text), controls below it */
@media (max-aspect-ratio: 13/10), (max-width: 760px) {
  .hero2.no-text { min-height: calc(56.25vw + 92px + 150px) !important; background: #f6f1ec; }
  .hero2.no-text .hero2-slide { inset: 92px 0 auto 0; height: 56.25vw; }
  .hero2.no-text .hero2-arrow { top: calc(92px + 28.125vw); }
}
/* gallery section spacing */
.gal-sec { padding-bottom: 72px; }
.gal-sec .sec-head { margin-bottom: 28px; }
/* fixed "free reservation" button: stays put while scrolling, bottom-right of the first view */
body .btn.fix-cta { position: fixed; right: 96px; bottom: 62px; z-index: 30; width: 220px; min-width: 0; --size: 52px; font-size: 15px; gap: 10px; padding: 6px 18px 6px 6px; white-space: nowrap; box-shadow: 0 8px 26px rgba(59, 35, 80, .28); }
@media (max-width: 760px) { body .btn.fix-cta { right: 12px; bottom: 14px; width: auto; --size: 42px; font-size: 14px; } }
/* keep the footer clear of the fixed button */
@media print { .fix-cta { display: none !important; } }

/* notice list: slightly smaller text (and tag) than the reference's default size */
body .hi-news li a { font-size: clamp(14px, 1.08vw, 16px); padding: 22px 8px; }
body .hi-news time { font-size: clamp(11px, .85vw, 12.5px); min-width: 68px; flex: none; }

/* お知らせ: on wide screens the heading + button block is centred against the list on the right */
@media (min-width: 821px) { body .hi-news { align-items: center; } }

/* ---- call-time table ---- */
.ct { width: 100%; }
.ct-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.ct-table thead th { text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #8a6fa0; padding: 0 20px 2px; }
.ct-plus-h span { display: inline-block; padding: 5px 14px; border-radius: 999px; background: linear-gradient(135deg, #7a3f9a, #c4228f); color: #fff; font-size: 12px; letter-spacing: .06em; }
.ct-table tbody th, .ct-table tbody td { background: #fff; padding: 14px 20px; text-align: left; transition: background .25s; }
.ct-table tbody th { width: 24%; border-radius: 18px 0 0 18px; white-space: nowrap; }
.ct-table tbody td:last-child { border-radius: 0 18px 18px 0; }
.ct-table tbody th b { font: 900 clamp(22px, 2vw, 30px) / 1 "Zen Maru Gothic", "Noto Sans JP", sans-serif; color: #55276f; }
.ct-table tbody th small { margin-left: 4px; font-size: 13px; font-weight: 700; color: #8a6fa0; }
.ct-t { display: block; font-size: clamp(15px, 1.2vw, 17px); font-weight: 800; color: #3b2350; font-variant-numeric: tabular-nums; }
.ct-table tbody td.ct-plus { background: linear-gradient(135deg, #fbf6ff, #fff0f8); }
.ct-plus .ct-t { color: #7a3f9a; }
.ct-bar { display: block; position: relative; height: 6px; margin-top: 8px; border-radius: 999px; background: #f1e8f6; overflow: hidden; }
.ct-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: 999px; background: linear-gradient(90deg, #c9a0e0, #7a3f9a); }
.ct-plus .ct-bar { background: #f8e3f0; }
.ct-plus .ct-bar::before { background: linear-gradient(90deg, #ee9ccd, #c4228f); }
.ct-table tbody tr:hover th, .ct-table tbody tr:hover td { background: #fbf8fe; }
.ct-table tbody tr:hover td.ct-plus { background: linear-gradient(135deg, #f6ecff, #ffe6f4); }
.ct-bar.w5 { --w: 5%; }
.ct-bar.w10 { --w: 10%; }
.ct-bar.w15 { --w: 15%; }
.ct-bar.w20 { --w: 20%; }
.ct-bar.w25 { --w: 25%; }
.ct-bar.w30 { --w: 30%; }
.ct-bar.w35 { --w: 35%; }
.ct-bar.w40 { --w: 40%; }
.ct-bar.w45 { --w: 45%; }
.ct-bar.w50 { --w: 50%; }
.ct-bar.w55 { --w: 55%; }
.ct-bar.w60 { --w: 60%; }
.ct-bar.w65 { --w: 65%; }
.ct-bar.w70 { --w: 70%; }
.ct-bar.w75 { --w: 75%; }
.ct-bar.w80 { --w: 80%; }
.ct-bar.w85 { --w: 85%; }
.ct-bar.w90 { --w: 90%; }
.ct-bar.w95 { --w: 95%; }
.ct-bar.w100 { --w: 100%; }
@media (max-width: 480px) { .ct-table tbody th, .ct-table tbody td { padding: 12px 12px; } .ct-table thead th { padding: 0 12px 2px; } .ct-plus-h span { font-size: 11px; padding: 4px 10px; } }

/* steps / safety: spacing for the buttons under the cards */
.fl-more { text-align: center; margin: 40px 0 0; }
/* footer: larger logo */

/* balanced line breaks in card titles; breathing room under the call-time title */
.fl-card h3 { text-wrap: balance; }

/* ---- white rounded cards ---- */
/* same container as the お知らせ block: white, generously rounded, soft shadow */
.card-sec { background: #f6f1ec; padding: 0 clamp(14px, 3.4vw, 64px) clamp(14px, 2vw, 28px); }
.card-wrap { max-width: 1280px; margin: 0 auto; padding: clamp(34px, 4.6vw, 80px) clamp(22px, 5vw, 96px) clamp(40px, 5vw, 88px); background: #fff; border-radius: clamp(28px, 4vw, 72px); box-shadow: 0 2px 24px rgba(59, 35, 80, .04); }
.card-wrap .fl { padding: 0; }
.card-wrap .fl-head { margin-bottom: clamp(28px, 3.6vw, 56px); }
@media (max-width: 820px) { .card-sec { padding-left: 10px; padding-right: 10px; } }
/* white-on-white: give the inner cards / rows a soft tint */
.card-wrap .fl-card, .card-wrap .fl:not(.tr) .fl-card { background: #fcfaf8; border: 1px solid #f1e8ee; box-shadow: 0 6px 22px rgba(201, 138, 166, .10); }
.card-wrap .two-col { gap: clamp(24px, 4vw, 56px); }

/* ---- steps section: no side lines on the title, larger cards ---- */
body .fl:not(.tr) .fl-head h2::before, body .fl:not(.tr) .fl-head h2::after { display: none !important; content: none !important; }
body #flow .card-wrap { max-width: 1360px; padding-left: clamp(22px, 3vw, 56px); padding-right: clamp(22px, 3vw, 56px); }
body #flow .fl-grid { gap: clamp(26px, 2.8vw, 46px); }
body #flow .fl-card:not(:last-child)::after { right: calc(clamp(26px, 2.8vw, 46px) / -2 - 6px); }
body #flow .fl-card { padding: clamp(30px, 3vw, 48px) clamp(20px, 2vw, 30px) clamp(32px, 3.2vw, 50px); border-radius: clamp(24px, 2.6vw, 38px); }
body #flow .fl-ico.soft { width: clamp(76px, 7.4vw, 112px); margin-bottom: 18px; }
body #flow .fl-card small { font-size: clamp(12px, 1vw, 15px); }
body #flow .fl-card h3 { font-size: clamp(19px, 1.85vw, 27px); margin: 10px 0 14px; }
body #flow .fl-card p { font-size: clamp(13.5px, 1.1vw, 16.5px); line-height: 1.95; }

/* footer brand block: the X link and copyright are centred under the logo (the logo sets the width) */

/* ---- NEWS ticker ---- */
body .hero2-news { width: min(56vw, 900px); }
body .hero2-news .tk-list { position: relative; flex: 1 1; align-self: stretch; overflow: hidden; }
body .hero2-news .tk { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 0 2vw; color: inherit; text-decoration: none; opacity: 0; pointer-events: none; }
body .hero2-news .tk.is-on { opacity: 1; pointer-events: auto; }
body .hero2-news .tk i { flex: none; font-style: normal; font-size: clamp(11px, .8vw, 14px); font-weight: 800; letter-spacing: .06em; padding: 3px 11px; border-radius: 999px; background: #f1e8f6; color: #55276f; }
body .hero2-news .tk span { padding: 0; flex: 1 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(13px, .95vw, 19px); font-weight: 500; }
body .hero2-news .tk:hover span { text-decoration: underline; }
body .hero2-news .tk-count { align-self: center; flex: none; padding-right: 12px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #8a6fa0; font-variant-numeric: tabular-nums; }
body .hero2-news .tk-more { display: flex; align-items: center; align-self: stretch; color: inherit; text-decoration: none; }
body .hero2-news .tk-more:hover em { text-decoration: underline; }
@media (max-width: 760px) {
  body .hero2-news { width: calc(100% - 28px); }
  body .hero2-news .tk { padding: 0 12px; }
  body .hero2-news .tk i, body .hero2-news .tk-count { display: none; }
}

/* ---- one container size for steps / rules / safety ---- */
body #flow .card-wrap, body #rules .card-wrap, body #safety .card-wrap { max-width: 1360px; padding-left: clamp(22px, 3vw, 56px); padding-right: clamp(22px, 3vw, 56px); }

/* ---- fixed bar + back to top ---- */
/* The reservation button keeps its spot (96px from the right, 62px from the bottom); the round back-to-top button sits beside it. */
.fix-bar { position: fixed; right: 28px; bottom: 62px; z-index: 30; display: flex; align-items: center; gap: 12px; }
body .btn.fix-cta { position: static; }
.to-top { flex: none; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #7a3f9a; cursor: pointer; box-shadow: 0 0 0 1px rgba(59, 35, 80, .07), 0 8px 26px rgba(59, 35, 80, .28);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background .25s, color .25s, box-shadow .25s; }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #7a3f9a; color: #fff; box-shadow: 0 0 0 1px #7a3f9a, 0 10px 26px rgba(122, 63, 154, .38); }
.to-top:hover svg { transform: translateY(-2px); }
.to-top svg { transition: transform .25s; }
.to-top:focus-visible { outline: 3px solid #f59a3a; outline-offset: 3px; }
@media (max-width: 760px) { .fix-bar { right: 12px; bottom: 14px; gap: 8px; } .to-top { width: 44px; height: 44px; } .to-top svg { width: 20px; height: 20px; } }
@media print { .fix-bar { display: none !important; } }

/* ---- footer X link: brand colours, same hover as the buttons ---- */

/* footer legal links: "プライバシーポリシー" sits slightly higher, separator centred on the text */

/* ---- safety cards ---- */
/* very rounded soft cards, illustrated icons on pastel blobs, colour-coded pill tags, bold navy titles */
#safety .card-wrap { background: linear-gradient(180deg, #fdfcff, #f6f3ff); }
.sf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 28px); }
.sf-card { background: linear-gradient(180deg, #fff, #fcfbff); border: 1px solid #efeafb; border-radius: clamp(26px, 2.8vw, 42px); padding: clamp(18px, 2vw, 30px) clamp(18px, 2vw, 30px) clamp(26px, 2.8vw, 40px); text-align: center; box-shadow: 0 16px 44px rgba(104, 84, 200, .10); transition: transform .35s, box-shadow .35s; }
.sf-card:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(104, 84, 200, .16); }
.sf-ico { width: clamp(150px, 14.5vw, 210px); aspect-ratio: 1; margin: 0 auto 6px; }
.sf-ico svg { display: block; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.sf-card:hover .sf-ico svg { transform: scale(1.06) rotate(-2deg); }
.sf-tag { display: inline-block; padding: 7px 26px; border-radius: 999px; font-size: clamp(13px, 1.05vw, 16px); font-weight: 800; letter-spacing: .06em; }
.sf-pink .sf-tag { background: linear-gradient(90deg, #fde6f1, #fbd9ea); color: #c23a86; }
.sf-violet .sf-tag { background: linear-gradient(90deg, #efe9ff, #e4dcff); color: #5b45d6; }
.sf-blue .sf-tag { background: linear-gradient(90deg, #e6f0ff, #d9e8ff); color: #2f6ed6; }
.sf-green .sf-tag { background: linear-gradient(90deg, #e1f7ee, #d3f1e5); color: #1f9a76; }
.sf-card h3 { margin: 16px 0 12px; font-size: clamp(19px, 1.8vw, 27px); font-weight: 800; line-height: 1.5; letter-spacing: .03em; color: #26244a; text-wrap: balance; }
.sf-card p { margin: 0; font-size: clamp(13px, 1.04vw, 15.5px); line-height: 1.95; color: #4a4966; text-align: left; }
@media (max-width: 900px) { .sf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sf-grid { grid-template-columns: 1fr; } .sf-ico { width: 150px; } }

/* safety cards: slightly smaller titles so "困ったときの連絡先" stays on one line; compact button label on phones */
.sf-card h3 { font-size: clamp(18px, 1.65vw, 25px); }
@media (max-width: 520px) { body .fl-more .btn { font-size: 14px; letter-spacing: .02em; min-width: 0; } }

/* ---- step cards ---- */
/* same family as the safety cards: soft rounded cards, illustrated icons, coloured STEP pills, chevrons between cards */
#flow .card-wrap { background: linear-gradient(180deg, #fdfcff, #f6f3ff); }
.st-grid { --gap: clamp(28px, 3vw, 48px); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.st-card { position: relative; background: linear-gradient(180deg, #fff, #fcfbff); border: 1px solid #efeafb; border-radius: clamp(26px, 2.8vw, 42px); padding: clamp(18px, 2vw, 30px) clamp(18px, 2vw, 30px) clamp(26px, 2.8vw, 40px); text-align: center; box-shadow: 0 16px 44px rgba(104, 84, 200, .10); transition: transform .35s, box-shadow .35s; }
.st-card:hover { transform: translateY(-6px); box-shadow: 0 24px 56px rgba(104, 84, 200, .16); }
.st-card:hover .sf-ico svg { transform: scale(1.06) rotate(-2deg); }
.st-card:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: calc(var(--gap) / -2 - 7px); width: 13px; height: 13px; border-top: 3.5px solid #a592f2; border-right: 3.5px solid #a592f2; border-radius: 2px; transform: translateY(-50%) rotate(45deg); }
.st-violet .sf-tag { background: linear-gradient(90deg, #f0e6ff, #e6d8fd); color: #8a4fd0; }
.st-blue .sf-tag { background: linear-gradient(90deg, #e6f0ff, #d9e8ff); color: #2f6ed6; }
.st-green .sf-tag { background: linear-gradient(90deg, #e1f7ee, #d3f1e5); color: #1f9a76; }
.st-orange .sf-tag { background: linear-gradient(90deg, #ffeadb, #ffdfc8); color: #f08a45; }
.st-card h3 { margin: 16px 0 18px; padding-bottom: 14px; position: relative; font-size: clamp(18px, 1.75vw, 26px); font-weight: 800; line-height: 1.5; letter-spacing: .03em; color: #26244a; text-wrap: balance; }
.st-card h3::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 38px; height: 2px; margin-left: -19px; border-radius: 2px; background: #d9d4ee; }
.st-card p { margin: 0; font-size: clamp(13px, 1.04vw, 15.5px); line-height: 1.95; color: #4a4966; text-align: left; }
@media (max-width: 900px) { .st-grid { grid-template-columns: repeat(2, 1fr); } .st-card::after { display: none; } }
@media (max-width: 520px) { .st-grid { grid-template-columns: 1fr; } }

/* ---- card icon artwork ---- */
/* the icons are the supplied illustrations (webp with a transparent background) */
.sf-ico { aspect-ratio: auto; }
.sf-ico img { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.sf-card:hover .sf-ico img, .st-card:hover .sf-ico img { transform: scale(1.06); }
.sf-card .sf-ico { width: min(100%, clamp(190px, 17vw, 250px)); }
.st-card .sf-ico { width: clamp(130px, 12vw, 170px); }
@media (max-width: 520px) { .sf-card .sf-ico { width: 210px; } .st-card .sf-ico { width: 150px; } }

/* break safety titles at phrase boundaries (as in the design); only fall back to mid-word breaks when a phrase cannot fit */
.sf-card h3 { word-break: keep-all; overflow-wrap: anywhere; }

/* ---- call-duration section (design) ---- */
#rules .card-wrap { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbf8ff, #f6f0ff); }
#rules .card-wrap::before, #rules .card-wrap::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; background-repeat: no-repeat; background-size: 100% auto; }
#rules .card-wrap::before { top: 0; height: 60%; background-image: url(/img/art/r-top.webp); background-position: top; }
#rules .card-wrap::after { bottom: 0; height: 60%; background-image: url(/img/art/r-bot.webp); background-position: bottom; }
@media (max-width: 820px) { #rules .card-wrap::before, #rules .card-wrap::after { opacity: .6; background-size: auto 100%; } #rules .card-wrap::before { background-position: left top; height: 40%; } #rules .card-wrap::after { background-position: left bottom; height: 40%; } }
#rules .card-wrap > * { position: relative; z-index: 1; }
#rules .two-col { align-items: center; }
.rl-ico { width: clamp(100px, 9vw, 150px); margin-bottom: 6px; }
.rl-ico img { display: block; width: 100%; height: auto; }
body #rules .h-left { display: block !important; width: fit-content; border-bottom: 0 !important; padding-bottom: 14px !important; margin-bottom: 22px; background: linear-gradient(90deg, #7a3f9a, rgba(122, 63, 154, 0)) left bottom / 100% 2px no-repeat; }
#rules .big-p strong { color: #e0207e; }
/* table: pill header, glassy rows, gradient bars */
.ct-table { border-spacing: 0 10px; }
.ct-table thead th { padding: 0 5px 2px; }
.ct-pill, .ct-plus-h span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-size: clamp(13px, 1.1vw, 16px); font-weight: 800; letter-spacing: .04em; }
.ct-pill { background: #efe8fb; color: #5a3d9a; }
.ct-plus-h span { background: linear-gradient(90deg, #8a42a6, #c4399a); color: #fff; box-shadow: 0 8px 20px rgba(160, 60, 160, .3); }
.ct-plus-h svg { flex: none; width: 22px; height: 22px; }
.ct-table tbody th, .ct-table tbody td { background: #fff; border-top: 1px solid #f0eafb; border-bottom: 1px solid #f0eafb; box-shadow: 0 10px 14px -12px rgba(104, 84, 200, .35); }
.ct-table tbody th { padding: 16px 22px; border-left: 1px solid #f0eafb; border-radius: 28px 0 0 28px; }
.ct-table tbody td:last-child { border-right: 1px solid #f0eafb; border-radius: 0 28px 28px 0; }
.ct-table tbody th b { font: 800 clamp(26px, 2.6vw, 38px) / 1 "Zen Maru Gothic", "Noto Sans JP", sans-serif; color: #4a2f92; }
.ct-table tbody th small { margin-left: 5px; font-size: clamp(13px, 1.1vw, 17px); font-weight: 800; color: #5a3d9a; }
.ct-t { font-size: clamp(16px, 1.35vw, 20px); color: #3b2a6e; }
.ct-plus .ct-t { color: #3b2350; }
.ct-table tbody td.ct-plus { background: linear-gradient(135deg, #fff7fb, #ffe9f3); }
.ct-bar { height: 7px; background: #ece4f8; }
.ct-bar::before { background: linear-gradient(90deg, #c0a4f2, #7a50d6); }
.ct-plus .ct-bar { background: #fde0ee; }
.ct-plus .ct-bar::before { background: linear-gradient(90deg, #ff86bf, #e0207e); }
.ct-table tbody tr:hover th, .ct-table tbody tr:hover td { background: #fcf9ff; }
.ct-table tbody tr:hover td.ct-plus { background: linear-gradient(135deg, #fff0f7, #ffdfee); }
@media (max-width: 480px) { .ct-pill, .ct-plus-h span { padding: 9px 8px; font-size: 11px; gap: 4px; } .ct-plus-h svg { width: 16px; height: 16px; } .ct-table tbody th { padding: 12px 12px; } }

/* ---- call-duration section: typography/spacing tuned to the design (artwork untouched) ---- */
body #rules .h-left { font: 700 clamp(34px, 4.2vw, 70px) / 1.2 "Shippori Mincho", "Noto Serif JP", serif !important; letter-spacing: .02em !important; color: #4b2a86 !important; background: linear-gradient(90deg, #5b34a8, #a44fb8 60%, rgba(214, 120, 200, 0)) left bottom / 100% 3px no-repeat; padding-bottom: clamp(14px, 1.6vw, 26px) !important; margin-bottom: clamp(22px, 2.6vw, 44px); }
#rules .big-p { font-size: clamp(16px, 1.45vw, 24px); font-weight: 500; color: #2c2347; }
#rules .big-p strong { font-weight: 800; }
#rules .rl-left p:not(.big-p) { font-size: clamp(13.5px, 1.05vw, 17px); line-height: 2.3; color: #4a4560; }
#rules .rl-left .btn-fill { min-height: clamp(58px, 5.3vw, 88px); padding-right: clamp(26px, 3vw, 50px); font-size: clamp(15px, 1.4vw, 22px); font-weight: 700; background: linear-gradient(100deg, #7b3fa8, #9a45b4 55%, #e866bf); box-shadow: 0 14px 30px rgba(150, 70, 180, .28); }
.ct-table { border-spacing: 0 clamp(8px, .8vw, 12px); }
.ct-table tbody th, .ct-table tbody td { padding-top: clamp(16px, 1.7vw, 26px); padding-bottom: clamp(16px, 1.7vw, 26px); }
.ct-table tbody th, .ct-table tbody th { border-radius: 44px 0 0 44px; }
.ct-table tbody td:last-child { border-radius: 0 44px 44px 0; }
.ct-table tbody th b { font-weight: 700; color: #4b2a86; }
.ct-t { font-weight: 800; }

/* ---- page background after the first view: one continuous sakura image behind every section ---- */
.sk, main:not(:has(.hero)) { background: #fbf4fa url(/img/art/page-bg.webp) repeat-y center top / max(100%, 760px) auto; }
.sk .hi, .sk .card-sec, .sk .block.alt, .sk .block, main .sec-tint { background: transparent !important; }
.sk .hi { padding-top: clamp(48px, 6vw, 96px); }
@media (max-width: 820px) { .sk, main:not(:has(.hero)) { background-size: max(100%, 900px) auto; } }
/* seamless joins: the white intro block fades into the image above, the image fades into the footer below */
.sk { background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0)) top / 100% clamp(90px, 12vw, 180px) no-repeat, linear-gradient(0deg, #fdf9f7, rgba(253, 249, 247, 0)) bottom / 100% clamp(90px, 10vw, 160px) no-repeat, #fbf4fa url(/img/art/page-bg.webp) repeat-y center top / max(100%, 760px) auto; }
@media (max-width: 820px) { .sk { background-size: 100% 90px, 100% 90px, max(100%, 900px) auto; } }
main:not(:has(.hero)) { background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)), linear-gradient(0deg, #fdf9f7, rgba(253, 249, 247, 0)) bottom / 100% clamp(90px, 10vw, 160px) no-repeat, #fbf4fa url(/img/art/page-bg.webp) repeat-y center top / max(100%, 760px) auto; }

/* call-duration: hover states (the gradient override above must not win over the shared hover) */
#rules .rl-left .btn-fill { transition: background .3s, color .3s, box-shadow .3s, transform .3s; }
#rules .rl-left .btn-fill:hover { background: #fff; color: #7a3f9a; box-shadow: 0 0 0 2px #7a3f9a, 0 14px 30px rgba(122, 63, 154, .3); transform: translateY(-2px); }
#rules .rl-left .btn-fill:hover::before { background-color: #7a3f9a; background-image: var(--ic); }
.ct-pill, .ct-plus-h span { transition: transform .25s, box-shadow .25s, background .25s, color .25s, filter .25s; }
.ct-pill:hover { background: #e3d8f7; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(104, 84, 200, .18); }
.ct-plus-h span:hover { transform: translateY(-2px); filter: saturate(1.12) brightness(1.05); box-shadow: 0 12px 26px rgba(176, 60, 170, .4); }
.ct-plus-h span { box-shadow: 0 8px 20px rgba(176, 60, 170, .28); background: linear-gradient(95deg, #7e3fa8, #a846b4 55%, #d6479d); }
.rl-ico { margin-left: -6px; }

/* ---- opening intro: sakura look (GSAP drives the motion in intro.js) ---- */
body .in2 .in2-top { top: 0; height: 100%; background: radial-gradient(900px 600px at 50% 42%, #fffafc, transparent 70%), linear-gradient(160deg, #fff6fa, #f4eaff 55%, #ffeaf3); }
body .in2 .in2-bottom { display: none; }
body .in2 .in2-stage { width: min(560px, 92vw); }
body .in2 .in2-logo { width: 92%; filter: drop-shadow(0 14px 28px rgba(160, 90, 190, .25)); }
.in2-bloom { position: absolute; left: 50%; top: 45%; width: 125%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95) 0, rgba(255, 226, 240, .55) 42%, rgba(224, 205, 255, 0) 70%); opacity: 0; pointer-events: none; }
.in2-petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; perspective: 600px; }
.in2-petal { position: absolute; display: block; border-radius: 80% 0 80% 20%; background: linear-gradient(135deg, #ffd3e4, #f79bc2); box-shadow: inset 0 0 6px rgba(255, 255, 255, .55); will-change: transform; }
body .in2 .in2-sub { color: #9a6d2a; }
