:root {
  color-scheme: light;
  --blue: #05a2e9;
  --blue-light: #dff4fd;
  --blue-strong: #047fb6;
  --navy: #063e5a;
  --navy-deep: #03283a;
  --navy-2: #0d3147;
  --ink: #0d3147;
  --muted: #5f7482;
  --line: #e0eff5;
  --paper: #f5fbfe;
  --soft: #f5fbfe;
  --white: #fff;
  --accent: #05a2e9;
  --accent-dark: #047fb6;
  --accent-soft: #dff4fd;
  --danger: #c43d4b;
  --shadow: 0 18px 50px rgba(3, 40, 58, .08);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
img { max-width: 100%; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: white; font-size: 16px; line-height: 1.7; }
button, input, textarea { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }

.site-header { height: 88px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--navy-deep); text-decoration: none; line-height: 1.05; }
.brand-logo { width: 60px; height: 42px; object-fit: contain; }
.brand-copy { padding-right: 14px; border-right: 1px solid var(--line); }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .58rem; letter-spacing: .12em; }
.brand-service { color: var(--muted); font-size: .76rem; font-weight: 600; }
.secure-note { color: var(--muted); font-size: .84rem; }
.secure-note span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; color: var(--accent-dark); background: var(--accent-soft); font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.mypage-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 7px 15px; border: 1px solid #9eb0bd; border-radius: 8px; color: var(--navy); font-size: .84rem; font-weight: 800; text-decoration: none; background: white; }
.mypage-link:hover { color: var(--accent-dark); border-color: var(--accent); }

.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 72px; }
.intro { max-width: none; margin-bottom: 34px; padding: 54px 64px 58px; border-radius: 34px; background: linear-gradient(125deg, #eef9fe 0%, var(--paper) 58%, #dff4fd 100%); }
.eyebrow, .step-kicker, .summary-head p { margin: 0 0 8px; color: var(--accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: .16em; }
.intro h1 { margin: 0; color: var(--navy-deep); font-size: clamp(2rem, 5vw, 3.55rem); font-weight: 700; line-height: 1.25; letter-spacing: .01em; }
.accent-line { color: var(--blue-strong); }
.intro > p:last-child { max-width: 610px; margin: 16px 0 0; color: var(--muted); }

.application-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.application-main-column { display: grid; gap: 18px; min-width: 0; }
.form-panel, .summary-panel { background: var(--white); border: 1px solid rgba(11,31,51,.07); box-shadow: var(--shadow); }
.form-panel { border-radius: 18px; overflow: hidden; }
.summary-panel { position: sticky; top: 24px; border-radius: 16px; overflow: hidden; }

.progress-wrap { padding: 24px 36px 21px; background: var(--navy); color: white; }
.progress-copy { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.progress-copy span { color: var(--sky, #5fc4f2); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.progress-copy strong { font-size: .92rem; }
.progress-track { height: 3px; margin: 16px 0 18px; background: rgba(255,255,255,.14); overflow: hidden; }
.progress-track span { display: block; width: 20%; height: 100%; background: var(--blue); transition: width .35s ease; }
.progress-dots { display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.progress-dots li { display: flex; align-items: center; gap: 7px; color: #8fa1b2; font-size: .75rem; transition: color .2s ease; }
.progress-dots span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #577087; border-radius: 50%; font-size: .7rem; }
.progress-dots .is-current, .progress-dots .is-done { color: white; }
.progress-dots .is-current span { color: white; background: var(--blue); border-color: var(--blue); font-weight: 800; }
.progress-dots .is-done span { background: rgba(5,162,233,.15); border-color: var(--blue); }

form { margin: 0; }
.step { padding: 44px 48px 28px; animation: reveal .25s ease; }
.step[hidden] { display: none; }
@keyframes reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.step-heading { margin-bottom: 30px; }
.step-heading h2, .complete-step h2 { margin: 0; color: var(--navy); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.35; }
.step-heading p:last-child { margin: 8px 0 0; color: var(--muted); }

.lesson-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lesson-card { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.lesson-card:hover { transform: translateY(-2px); border-color: #8dd4f4; box-shadow: 0 12px 28px rgba(4,127,182,.1); }
.lesson-card:has(input:focus-visible) { outline: 3px solid rgba(5,162,233,.25); outline-offset: 2px; }
.lesson-card:has(input:checked) { border: 2px solid var(--accent); padding: 25px; background: linear-gradient(145deg, #fff, var(--paper)); }
.lesson-card input, .date-grid input, .time-grid input, .contact-options input, .chip-list input { position: absolute; opacity: 0; pointer-events: none; }
.card-check { position: absolute; top: 17px; right: 17px; display: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: white; background: var(--accent); font-size: .75rem; font-weight: 900; }
.lesson-card:has(input:checked) .card-check { display: grid; }
.lesson-badge { position: absolute; top: 18px; right: 18px; padding: 2px 8px; border-radius: 30px; color: var(--accent-dark); background: var(--accent-soft); font-size: .7rem; font-weight: 800; }
.lesson-card:has(input:checked) .lesson-badge { display: none; }
.lesson-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 12px; color: var(--accent-dark); background: var(--accent-soft); font-size: 1.55rem; font-weight: 800; }
.lesson-card > strong { color: var(--navy); font-size: 1.22rem; }
.lesson-method { color: var(--muted); font-size: .9rem; }
.lesson-price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.lesson-price b { color: var(--navy); font-size: 1.42rem; }
.lesson-price small, .lesson-detail { color: var(--muted); font-size: .78rem; }
.lesson-detail { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); }

.info-note, .slot-note { display: flex; gap: 13px; margin-top: 24px; padding: 17px 18px; border-radius: 10px; color: #375269; background: var(--paper); font-size: .87rem; }
.info-note > span, .slot-note > span { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #9fb7c4; border-radius: 50%; font-size: .8rem; font-weight: 800; }
.info-note p, .slot-note p { margin: 0; }

.field { display: block; min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.field > span:first-child, .field legend { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 700; }
.field em, .field i { margin-left: 5px; font-size: .72rem; font-style: normal; }
.field em { color: var(--danger); }
.field i { color: var(--muted); font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { width: 100%; padding: 13px 15px; border: 1px solid #cbd7df; border-radius: 9px; color: var(--ink); background: white; outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(5,162,233,.13); }
.field > small { color: var(--muted); font-size: .76rem; }
.field-error { min-height: 1.25em; margin: 6px 0 0; color: var(--danger); font-size: .8rem; font-weight: 700; }
.has-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(196,61,75,.09) !important; }

.goal-presets { margin: -8px 0 28px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); }
.goal-presets-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.goal-presets-heading strong, .goal-presets-heading small { display: block; }
.goal-presets-heading strong { color: var(--navy); font-size: .88rem; }
.goal-presets-heading small { margin-top: 2px; color: var(--muted); font-size: .74rem; }
.goal-presets-heading button { flex: 0 0 auto; min-height: 34px; padding: 5px 10px; border: 1px solid #b9d7e5; border-radius: 7px; color: var(--accent-dark); background: white; font-size: .72rem; font-weight: 800; }
.goal-presets-heading button:hover { border-color: var(--accent); background: var(--accent-soft); }
.goal-presets-heading button span { display: inline-block; margin-right: 3px; font-size: 1rem; line-height: 1; }
.goal-preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.goal-preset-grid button { min-width: 0; padding: 12px 13px; border: 1px solid #c9e3ef; border-radius: 9px; color: var(--navy); background: white; text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.goal-preset-grid button:hover { transform: translateY(-1px); border-color: var(--accent); background: #fbfeff; }
.goal-preset-grid button:active { transform: translateY(0); background: var(--accent-soft); }
.goal-preset-grid button strong, .goal-preset-grid button small { display: block; }
.goal-preset-grid button strong { font-size: .82rem; line-height: 1.45; }
.goal-preset-grid button small { margin-top: 3px; color: var(--muted); font-size: .7rem; line-height: 1.45; }

.chip-list { display: flex; flex-wrap: wrap; gap: 9px; }
.chip-list label { position: relative; }
.chip-list span { display: block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 30px; color: #405166; cursor: pointer; }
.chip-list label:has(input:checked) span { color: var(--accent-dark); background: var(--accent-soft); border-color: #8dd4f4; font-weight: 700; }
.chip-list label:has(input:focus-visible) span { outline: 3px solid rgba(5,162,233,.2); }

.upload-field { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 16px 18px; border: 1px dashed #9cb1bf; border-radius: 10px; cursor: pointer; }
.upload-field input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-field > span:first-of-type { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--accent-dark); background: var(--accent-soft); font-size: 1.25rem; }
.upload-field strong, .upload-field small { display: block; }
.upload-field small { color: var(--muted); font-size: .76rem; }
.safety-note { margin: 18px 0 0; color: var(--muted); font-size: .78rem; }

.date-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.date-grid label, .time-grid label { position: relative; }
.date-grid label > span { display: grid; justify-items: center; padding: 12px 6px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.date-grid small { color: var(--muted); font-size: .7rem; }
.date-grid b { color: var(--navy); font-size: 1.35rem; line-height: 1.2; }
.date-grid em { margin: 1px 0 0; color: var(--muted); }
.date-grid label:has(input:checked) > span, .time-grid label:has(input:checked) > span { color: var(--accent-dark); background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.date-grid label:has(input:focus-visible) > span, .time-grid label:has(input:focus-visible) > span { outline: 3px solid rgba(5,162,233,.2); }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.time-grid label > span { display: block; padding: 11px 6px; border: 1px solid var(--line); border-radius: 9px; text-align: center; cursor: pointer; font-weight: 700; }

.extension-area { margin: -7px 0 4px; }
.extension-area[hidden], .extension-option[hidden], .extension-unavailable[hidden] { display: none; }
.extension-option { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 17px 18px; border: 1px solid #8dd4f4; border-radius: 11px; background: linear-gradient(135deg, #f8fcfe, var(--accent-soft)); cursor: pointer; }
.extension-option input { position: absolute; opacity: 0; pointer-events: none; }
.extension-check { display: grid; place-items: center; width: 25px; height: 25px; border: 2px solid #75c8ed; border-radius: 6px; color: transparent; background: white; font-size: .78rem; font-weight: 900; }
.extension-option:has(input:checked) { border: 2px solid var(--accent); padding: 16px 17px; box-shadow: 0 8px 22px rgba(5,162,233,.12); }
.extension-option:has(input:checked) .extension-check { color: white; border-color: var(--accent); background: var(--accent); }
.extension-option:has(input:focus-visible) { outline: 3px solid rgba(5,162,233,.25); outline-offset: 2px; }
.extension-option strong, .extension-option small { display: block; }
.extension-option strong { color: var(--navy); }
.extension-option small { color: var(--muted); font-size: .76rem; }
.extension-option b { color: var(--accent-dark); font-size: 1.05rem; }
.extension-unavailable { margin: 0; padding: 14px 16px; border-radius: 9px; color: var(--muted); background: var(--soft); font-size: .82rem; }
.extension-unavailable strong { display: block; color: var(--navy); }

.two-column-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-options label { position: relative; }
.contact-options span { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.contact-options b, .contact-options small { display: block; }
.contact-options small { color: var(--muted); font-size: .76rem; }
.contact-options label:has(input:checked) span { background: var(--accent-soft); border-color: var(--accent); }
.agreement { display: flex; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 9px; background: var(--soft); cursor: pointer; }
.agreement input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }

.form-actions { display: flex; justify-content: space-between; gap: 14px; padding: 14px 48px 42px; }
.form-actions .primary-button { margin-left: auto; }
.primary-button, .back-button, .line-button, .text-button, .restart-progress-button { min-height: 48px; border: 0; border-radius: 8px; font-weight: 800; }
.primary-button { padding: 12px 24px; color: white; background: var(--blue-strong); box-shadow: 0 8px 20px rgba(4,127,182,.2); transition: background .2s, transform .2s; }
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.primary-button:disabled { color: #6d7b86; background: #d9e2e7; box-shadow: none; cursor: not-allowed; transform: none; }
.primary-button span { margin-left: 15px; }
.back-button { padding: 12px 10px; color: var(--navy-2); background: transparent; }
.back-button span { margin-right: 8px; }
.restart-progress-button { padding: 10px 4px; color: var(--muted); background: transparent; font-size: .8rem; text-decoration: underline; text-underline-offset: 4px; }
.restart-progress-button:hover { color: var(--danger); }
.submit-button { width: 100%; margin-top: 20px; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(5,162,233,.35); outline-offset: 3px; }

.summary-head { padding: 25px 26px 21px; color: white; background: var(--navy); }
.summary-head p { color: #5fc4f2; }
.summary-head h2 { margin: 0; font-size: 1.1rem; }
.summary-panel dl { margin: 0; padding: 10px 26px; }
.summary-panel dl div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.summary-panel dt { color: var(--muted); font-size: .75rem; }
.summary-panel dd { margin: 4px 0 0; color: var(--navy); font-size: .92rem; font-weight: 700; white-space: pre-line; }
.summary-total { display: flex; justify-content: space-between; align-items: flex-end; padding: 18px 26px; background: var(--soft); }
.summary-total span { color: var(--muted); font-size: .8rem; }
.summary-total small { display: block; }
.summary-total strong { color: var(--navy); font-size: 1.45rem; }
.summary-caption { margin: 0; padding: 17px 26px 23px; color: var(--muted); font-size: .74rem; }

.confirmation { border-top: 1px solid var(--line); }
.confirmation-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 18px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.confirmation-row dt { color: var(--muted); font-size: .8rem; }
.confirmation-row dd { margin: 0; color: var(--navy); font-weight: 700; white-space: pre-line; }
.edit-button { align-self: start; padding: 3px 8px; border: 0; color: var(--accent-dark); background: transparent; font-size: .8rem; font-weight: 800; }
.mock-notice { margin-top: 24px; padding: 16px 18px; border-left: 3px solid #da9a27; background: #fff8e9; color: #6f571e; }
.mock-notice p { margin: 3px 0 0; font-size: .82rem; }

.complete-step { padding: 54px 48px 46px; text-align: center; }
.complete-mark { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%; color: white; background: var(--accent); font-size: 1.8rem; box-shadow: 0 0 0 10px var(--accent-soft); }
.complete-step > p:not(.step-kicker) { max-width: 560px; margin: 11px auto 0; color: var(--muted); }
.receipt { display: inline-flex; align-items: center; gap: 16px; margin: 24px auto; padding: 9px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--soft); }
.receipt small { color: var(--muted); }
.receipt strong { color: var(--navy); letter-spacing: .06em; }
.complete-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 auto 24px; background: var(--line); border: 1px solid var(--line); text-align: left; }
.complete-summary div { padding: 14px 16px; background: white; }
.complete-summary small, .complete-summary strong { display: block; }
.complete-summary small { color: var(--muted); font-size: .74rem; }
.next-guide { display: flex; align-items: center; gap: 14px; max-width: 520px; margin: 25px auto 12px; padding: 16px; border-radius: 10px; text-align: left; background: var(--soft); }
.next-guide > span { color: var(--accent); font-weight: 900; }
.next-guide p { margin: 0; }
.next-guide strong, .next-guide small { display: block; }
.next-guide small { color: var(--muted); }
.line-button { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 520px; padding: 12px 20px; color: white; background: #06c755; text-align: center; text-decoration: none; cursor: pointer; }
.line-button span { margin-right: 10px; font-size: .8rem; }
.text-button { display: block; margin: 10px auto 0; padding: 6px 12px; color: var(--muted); background: transparent; font-size: .82rem; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 10; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 8px; color: white; background: var(--navy); box-shadow: 0 10px 30px rgba(0,0,0,.18); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.lesson-preview { display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; margin: 0 0 34px; border: 1px solid rgba(11,31,51,.08); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.lesson-preview-copy { padding: 34px 38px; }
.lesson-preview h2 { margin: 0; color: var(--navy-deep); font-size: 1.65rem; font-weight: 700; }
.lesson-preview-copy > p:not(.eyebrow) { margin: 10px 0 22px; color: var(--muted); font-size: .9rem; }
.lesson-preview ol { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lesson-preview li { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start; }
.lesson-preview li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--accent-dark); background: var(--accent-soft); font-size: .69rem; font-weight: 900; }
.lesson-preview li strong, .lesson-preview li small { display: block; }
.lesson-preview li strong { color: var(--navy); font-size: .9rem; }
.lesson-preview li small { margin-top: 2px; color: var(--muted); line-height: 1.5; }
.lesson-preview-copy .instructor-note { margin: 20px 0 0; padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 0 7px 7px 0; background: var(--soft); }
.instructor-note strong, .instructor-note span { display: block; }
.instructor-note strong { color: var(--navy); font-size: .82rem; }
.instructor-note span { margin-top: 2px; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.lesson-preview figure { min-height: 350px; margin: 0; background: var(--soft); }
.lesson-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.site-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.footer-inner { display: grid; justify-items: start; gap: 18px; }
.customer-mypage-entry { padding: 24px 28px 28px; border: 1px solid rgba(11,31,51,.07); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.customer-mypage-guide strong { display: block; color: var(--navy); font-size: .88rem; }
.customer-mypage-guide p { margin: 4px 0 12px; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.customer-mypage-cta { display: inline-flex; width: 100%; min-height: 56px; align-items: center; justify-content: space-between; gap: 30px; margin-top: 0; padding: 14px 18px; border: 1px solid #b9d7e5; border-radius: 9px; color: var(--navy); background: white; font-size: .95rem; font-weight: 800; text-decoration: none; box-shadow: 0 4px 12px rgba(11,31,51,.05); }
.customer-mypage-cta span { font-size: 1.35rem; line-height: 1; }
.customer-mypage-cta:hover { color: var(--accent-dark); border-color: var(--accent); background: var(--accent-soft); }
body.is-application-focused .application-intro { display: none; }
body.is-application-focused .customer-mypage-entry { display: none; }
.footer-legal-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-legal-nav a { color: var(--navy-2); }
.footer-legal-nav a[aria-current="page"] { color: var(--accent-dark); font-weight: 800; }
.site-footer p { margin: 0; }

.info-body { background: #f8fafb; }
.info-header .brand { flex-shrink: 0; }
.top-back { display: inline-flex; align-items: center; min-height: 42px; color: var(--navy-2); font-size: .85rem; font-weight: 800; text-decoration: none; }
.top-back:hover { color: var(--accent-dark); }
.info-shell { width: min(880px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 80px; }
.info-hero { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.info-hero h1 { margin: 0; color: var(--navy-deep); font-size: clamp(2rem, 5vw, 3.15rem); font-weight: 700; line-height: 1.3; }
.info-hero > p:last-child { max-width: 660px; margin: 12px 0 0; color: var(--muted); }
.draft-banner { display: flex; gap: 12px; margin: 26px 0 32px; padding: 16px 18px; border-left: 3px solid #d99b28; background: #fff8e9; color: #6f571e; }
.draft-banner strong { flex: 0 0 auto; }
.draft-banner p { margin: 0; }
.policy-card { padding: 36px 42px; border: 1px solid rgba(11,31,51,.08); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.policy-section + .policy-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.policy-section h2 { margin: 0 0 10px; color: var(--navy); font-size: 1.2rem; }
.policy-section p { margin: 0; color: #405166; }
.policy-section p + p, .policy-section ul { margin-top: 10px; }
.policy-section ul { padding-left: 1.25em; color: #405166; }
.policy-section li + li { margin-top: 6px; }
.legal-copy a, .legal-table a { color: var(--accent-dark); font-weight: 700; }
.updated-at { margin: 34px 0 0; color: var(--muted); font-size: .78rem; text-align: right; }
.status-banner { display: grid; gap: 4px; margin: 26px 0 32px; padding: 17px 19px; border-left: 3px solid #d99b28; background: #fff8e9; color: #6f571e; }
.status-banner p { margin: 0; }
.legal-table { margin: 0; }
.legal-table > div { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid var(--line); }
.legal-table > div:first-child { border-top: 1px solid var(--line); }
.legal-table dt, .legal-table dd { padding: 18px; }
.legal-table dt { color: var(--navy); background: var(--soft); font-weight: 800; }
.legal-table dd { margin: 0; color: #405166; }
.legal-table dd small { display: block; margin-top: 8px; }
.service-list { margin: 16px 0; border-top: 1px solid var(--line); }
.service-list div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.service-list dt { color: var(--navy); font-weight: 800; }
.service-list dd { margin: 0; }
.contact-top { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.contact-top > p:first-child { margin: 0 0 8px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.email-cta { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-radius: 10px; color: white; background: var(--blue-strong); font-size: clamp(1rem, 3vw, 1.3rem); font-weight: 800; text-decoration: none; }
.contact-note { color: var(--muted); font-size: .82rem; }
.contact-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 30px; border: 1px solid var(--line); background: var(--line); }
.contact-kinds div { padding: 20px; background: white; }
.contact-kinds strong { color: var(--navy); }
.contact-kinds p { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.purchase-notice { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 24px 0 0; border: 1px solid var(--line); background: var(--line); }
.purchase-notice div { padding: 14px 16px; background: var(--soft); }
.purchase-notice dt { color: var(--muted); font-size: .75rem; }
.purchase-notice dd { margin: 4px 0 0; color: var(--navy); font-size: .85rem; font-weight: 700; }
.purchase-notice a, .confirmation-legal a { color: var(--accent-dark); }
.confirmation-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: .8rem; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { overflow: hidden; border: 1px solid rgba(11,31,51,.1); border-radius: 12px; background: white; box-shadow: 0 5px 18px rgba(11,31,51,.045); }
.faq-list summary { position: relative; padding: 20px 52px 20px 24px; color: var(--navy); font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 17px; right: 22px; color: var(--accent-dark); font-size: 1.35rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 24px 22px; color: #405166; }
.faq-list details a { color: var(--accent-dark); font-weight: 700; }
.policy-table { width: 100%; margin-top: 16px; border-collapse: collapse; }
.policy-table th, .policy-table td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; }
.policy-table th { color: var(--navy); background: var(--soft); font-size: .86rem; }
.policy-table td:last-child { font-weight: 800; }
.page-return { display: flex; justify-content: center; margin-top: 34px; }
.page-return a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border: 1px solid #9eb0bd; border-radius: 8px; color: var(--navy); font-weight: 800; text-decoration: none; background: white; }
.page-return a:hover { border-color: var(--accent); color: var(--accent-dark); }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.contact-card { padding: 34px 38px; border-radius: 16px; background: white; border: 1px solid rgba(11,31,51,.08); box-shadow: var(--shadow); }
.contact-card .field:last-of-type { margin-bottom: 16px; }
.contact-card select { width: 100%; padding: 13px 15px; border: 1px solid #cbd7df; border-radius: 9px; color: var(--ink); background: white; }
.contact-card .primary-button { width: 100%; }
.contact-aside { padding: 24px; border-radius: 14px; color: white; background: var(--navy); }
.contact-aside h2 { margin: 0 0 8px; font-size: 1.05rem; }
.contact-aside p { margin: 0; color: #c7d4df; font-size: .86rem; }
.contact-aside dl { margin: 20px 0 0; }
.contact-aside div { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.13); }
.contact-aside dt { color: #5fc4f2; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.contact-aside dd { margin: 3px 0 0; font-size: .86rem; }
.contact-mock-note { margin: 0 0 18px; color: var(--muted); font-size: .8rem; }
.contact-success { padding: 34px 26px; border-radius: 12px; background: var(--accent-soft); text-align: center; }
.contact-success[hidden] { display: none; }
.contact-success span { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; color: white; background: var(--accent); font-size: 1.3rem; font-weight: 900; }
.contact-success h2 { margin: 0; color: var(--navy); font-size: 1.35rem; }
.contact-success p { margin: 8px 0 0; color: var(--muted); }

.mypage-body { background: #f8fafb; }
.mypage-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 72px; }
.mypage-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.mypage-hero h1 { margin: 0; color: var(--navy-deep); font-size: clamp(2rem, 5vw, 3.15rem); font-weight: 700; line-height: 1.3; }
.mypage-hero p:last-child { margin: 10px 0 0; color: var(--muted); }
.sample-badge { flex: 0 0 auto; margin-top: 7px; padding: 6px 12px; border-radius: 30px; color: #755817; background: #fff0c8; font-size: .78rem; font-weight: 800; }
.mypage-notice { margin-bottom: 26px; }
.mypage-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.mypage-main { display: grid; gap: 24px; }
.mypage-section, .action-card, .support-card { border: 1px solid rgba(11,31,51,.08); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.mypage-section { padding: 30px 34px; }
#secure-booking { margin: 32px 0; }
.section-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading-row h2, .action-card h2, .support-card h2 { margin: 0; color: var(--navy); font-size: 1.25rem; }
.status-chip, .history-count { flex: 0 0 auto; padding: 4px 10px; border-radius: 30px; font-size: .74rem; font-weight: 800; }
.status-chip { color: var(--accent-dark); background: var(--accent-soft); }
.history-count { color: var(--muted); background: var(--soft); }
.booking-card { display: grid; grid-template-columns: 94px 1fr; gap: 24px; padding: 24px; border-radius: 13px; background: var(--navy); color: white; }
.booking-date { display: grid; place-items: center; align-content: center; min-height: 118px; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: rgba(255,255,255,.06); line-height: 1.15; }
.booking-date small { color: #5fc4f2; font-weight: 800; }
.booking-date strong { font-size: 2.35rem; }
.booking-date span { color: #c8d5df; font-size: .78rem; }
.booking-detail h3 { margin: 0; font-size: 1.08rem; }
.booking-time { margin: 2px 0 13px; color: #5fc4f2; font-size: 1.35rem; font-weight: 800; }
.booking-detail dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.booking-detail dl div { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.15); }
.booking-detail dt { color: #9fb0bf; font-size: .72rem; }
.booking-detail dd { margin: 2px 0 0; font-size: .86rem; font-weight: 700; }
.booking-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
.secondary-button { min-height: 43px; padding: 8px 17px; border: 1px solid #9eb0bd; border-radius: 8px; color: var(--navy); background: white; font-weight: 800; }
.secondary-button:hover { border-color: var(--accent); color: var(--accent-dark); }
.danger-text-button { min-height: 43px; padding: 8px 12px; border: 0; color: var(--danger); background: transparent; font-weight: 700; }
.receipt-button { display: inline-flex; align-items: center; justify-content: center; margin-right: auto; color: var(--accent-dark); border-color: #8dd4f4; text-decoration: none; }
.history-card { padding: 22px 0; border-top: 1px solid var(--line); }
.history-card:last-child { padding-bottom: 0; }
.history-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.history-head time { color: var(--muted); font-size: .78rem; }
.history-head h3 { margin: 3px 0 0; color: var(--navy); font-size: 1rem; }
.history-head > span { flex: 0 0 auto; padding: 3px 9px; border-radius: 5px; color: var(--muted); background: var(--soft); font-size: .72rem; font-weight: 700; }
.history-card details { margin-top: 14px; }
.history-card summary { color: var(--accent-dark); font-size: .84rem; font-weight: 800; cursor: pointer; }
.history-detail { margin-top: 12px; padding: 15px 17px; border-radius: 9px; background: var(--soft); }
.history-detail dl { margin: 0; }
.history-detail dl div + div { margin-top: 10px; }
.history-detail dt { color: var(--muted); font-size: .73rem; }
.history-detail dd { margin: 1px 0 0; color: #405166; font-size: .86rem; }
.repeat-link { display: inline-flex; margin-top: 14px; color: var(--navy); font-size: .84rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.repeat-link:hover { color: var(--accent-dark); }
.mypage-side { position: sticky; top: 24px; display: grid; gap: 18px; }
.action-card, .support-card { padding: 25px; }
.action-card p:not(.step-kicker), .support-card p { margin: 8px 0 18px; color: var(--muted); font-size: .86rem; }
.action-link { display: flex; align-items: center; justify-content: space-between; text-decoration: none; }
.support-card { box-shadow: none; }
.support-card .line-button { font-size: .88rem; }
.mypage-resend-card { max-width: 760px; margin: 30px 0 24px; }
.mypage-resend-card > p { margin: 0 0 20px; color: var(--muted); }
.mypage-resend-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.mypage-resend-form .field { margin: 0; }
.mypage-resend-form .primary-button { white-space: nowrap; }
.form-result { min-height: 1.7em; margin: 14px 0 0 !important; color: var(--navy) !important; font-weight: 700; }
.privacy-note { margin: 6px 0 0 !important; font-size: .76rem; }
.admin-filters { justify-content: flex-start; flex-wrap: wrap; }
.admin-filters button { min-height: 40px; padding: 7px 12px; border: 1px solid #b7c9d3; border-radius: 7px; color: var(--navy); background: white; font-weight: 700; }
.admin-filters button:hover { border-color: var(--accent); color: var(--accent-dark); }
.admin-list { display: grid; gap: 18px; margin-top: 24px; }
.admin-list article { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.admin-list article > strong { display: block; color: var(--navy); overflow-wrap: anywhere; }
.admin-list article > p { margin: 6px 0 16px; color: var(--muted); overflow-wrap: anywhere; }
.admin-list .summary-list { margin: 0; }
.admin-list .summary-list div { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid #d5e7ee; }
.admin-list .summary-list dt { color: var(--muted); font-size: .76rem; }
.admin-list .summary-list dd { min-width: 0; margin: 0; color: var(--navy); overflow-wrap: anywhere; word-break: break-word; }

.receipt-page-body { background: #eef3f5; }
.receipt-page-shell { width: min(850px, calc(100% - 40px)); margin: 0 auto; padding: 36px 0 72px; }
.receipt-draft { margin-top: 0; }
.receipt-document { position: relative; overflow: hidden; min-height: 880px; padding: 64px 70px 48px; border: 1px solid #d7dde1; background: white; box-shadow: 0 18px 50px rgba(11,31,51,.12); }
.receipt-watermark { position: absolute; top: 45%; left: 50%; color: rgba(5,162,233,.055); font-size: clamp(5rem, 15vw, 9rem); font-weight: 900; letter-spacing: .08em; transform: translate(-50%, -50%) rotate(-22deg); pointer-events: none; }
.receipt-document-head { position: relative; display: flex; justify-content: space-between; gap: 30px; padding-bottom: 30px; border-bottom: 2px solid var(--navy); }
.receipt-document-head p { margin: 0; color: var(--accent-dark); font-size: .72rem; font-weight: 900; letter-spacing: .18em; }
.receipt-document-head h1 { margin: 4px 0 0; color: var(--navy-deep); font-size: 2.65rem; font-weight: 700; letter-spacing: .18em; }
.receipt-document-head dl { margin: 4px 0 0; text-align: right; }
.receipt-document-head dl div + div { margin-top: 9px; }
.receipt-document-head dt { color: var(--muted); font-size: .68rem; }
.receipt-document-head dd { margin: 1px 0 0; color: var(--navy); font-size: .82rem; font-weight: 700; }
.receipt-customer { position: relative; padding: 42px 0 32px; }
.receipt-customer > p:first-child { margin: 0; padding-bottom: 7px; border-bottom: 1px solid #9baab4; font-size: 1.05rem; }
.receipt-customer > p:first-child strong { margin-right: 5px; color: var(--navy-deep); font-size: 1.6rem; font-weight: 700; }
.receipt-amount { margin: 34px 0 24px; padding: 21px 25px; border-block: 1px solid var(--navy); text-align: center; }
.receipt-amount small, .receipt-amount strong { display: block; }
.receipt-amount small { color: var(--muted); font-size: .75rem; }
.receipt-amount strong { margin-top: 3px; color: var(--navy); font-size: 2.4rem; letter-spacing: .04em; }
.receipt-customer > p:last-child { margin: 0; color: #405166; font-size: .86rem; text-align: center; }
.receipt-breakdown { position: relative; margin-top: 10px; }
.receipt-breakdown dl { margin: 0; border-top: 1px solid var(--line); }
.receipt-breakdown dl div { display: flex; justify-content: space-between; gap: 30px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.receipt-breakdown dt { color: var(--muted); font-size: .8rem; }
.receipt-breakdown dd { margin: 0; color: var(--navy); font-size: .82rem; font-weight: 700; text-align: right; }
.receipt-issuer { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 18px; width: 100%; margin: 46px 0 0; padding: 0; border: 0; color: #405166; text-align: right; }
.receipt-issuer strong { color: var(--navy); font-size: 1.05rem; }
.receipt-issuer p { margin: 3px 0 0; font-size: .76rem; }
.receipt-stamp { display: grid; place-items: center; width: 58px; height: 58px; border: 2px solid rgba(181,68,68,.7); border-radius: 50%; color: rgba(181,68,68,.8); font-size: .7rem; font-weight: 800; line-height: 1.3; text-align: center; }
.receipt-note { position: relative; margin: 38px 0 0; color: var(--muted); font-size: .7rem; text-align: center; }
.receipt-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.receipt-actions .secondary-button { display: inline-flex; align-items: center; text-decoration: none; }

@media (max-width: 900px) {
  body { background: white; }
  .page-shell { width: min(720px, calc(100% - 28px)); padding-top: 42px; }
  .application-layout { grid-template-columns: 1fr; }
  .summary-panel { position: static; order: -1; display: none; }
  .intro { margin-bottom: 26px; padding: 44px 46px; border-radius: 26px; }
  .lesson-preview { grid-template-columns: 1fr; }
  .lesson-preview figure { min-height: 330px; order: -1; }
}

@media (max-width: 620px) {
  .site-header { height: 66px; padding: 0 16px; }
  .brand-logo { width: 48px; height: 34px; }
  .brand-copy { padding-right: 0; border-right: 0; }
  .brand-service { display: none; }
  .secure-note { display: none; }
  .page-shell { width: calc(100% - 20px); padding: 30px 0 48px; }
  .intro { padding: 32px 26px 36px; border-radius: 20px; }
  .intro h1 { font-size: 2rem; }
  .intro > p:last-child { font-size: .92rem; }
  .lesson-preview { margin-bottom: 24px; }
  .lesson-preview figure { min-height: 230px; }
  .lesson-preview-copy { padding: 27px 22px; }
  .progress-wrap { padding: 21px 20px 18px; }
  .progress-dots small { display: none; }
  .progress-dots li { gap: 0; }
  .step { padding: 32px 22px 20px; }
  .step-heading { margin-bottom: 24px; }
  .lesson-grid, .two-column-fields, .contact-options { grid-template-columns: 1fr; }
  .goal-preset-grid { grid-template-columns: 1fr; }
  .goal-presets { padding: 15px; }
  .goal-presets-heading { display: block; }
  .goal-presets-heading button { margin-top: 10px; }
  .lesson-card { min-height: 230px; }
  .date-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .time-grid { grid-template-columns: repeat(2, 1fr); }
  .extension-option { grid-template-columns: auto 1fr; }
  .extension-option b { grid-column: 2; margin-top: -8px; }
  .form-actions { padding: 12px 22px 30px; }
  .form-actions { flex-wrap: wrap; }
  .restart-progress-button { order: 3; width: 100%; min-height: 38px; }
  .confirmation-row { grid-template-columns: 88px 1fr auto; gap: 9px; }
  .complete-step { padding: 45px 22px 36px; }
  .complete-summary { grid-template-columns: 1fr; }
  .site-footer { width: calc(100% - 32px); text-align: left; }
  .footer-inner { justify-items: stretch; }
  .customer-mypage-cta { min-height: 54px; padding: 13px 16px; font-size: .92rem; }
  .footer-legal-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .purchase-notice, .contact-kinds { grid-template-columns: 1fr; }
  .legal-table > div, .service-list div { grid-template-columns: 1fr; gap: 0; }
  .legal-table dt { padding-bottom: 8px; }
  .legal-table dd { padding-top: 8px; }
  .info-shell { width: calc(100% - 20px); padding: 36px 0 55px; }
  .info-hero { padding: 0 8px 24px; }
  .draft-banner { display: block; }
  .draft-banner strong { display: block; margin-bottom: 4px; }
  .policy-card, .contact-card { padding: 27px 22px; }
  .policy-table { font-size: .88rem; }
  .policy-table th, .policy-table td { padding: 10px 9px; }
  .contact-layout { grid-template-columns: 1fr; }
  .mypage-shell { width: calc(100% - 20px); padding: 36px 0 55px; }
  .mypage-hero { display: block; padding: 0 8px; }
  .sample-badge { display: inline-flex; margin-top: 15px; }
  .mypage-grid { grid-template-columns: 1fr; }
  .mypage-side { position: static; }
  .mypage-section { padding: 25px 22px; }
  #secure-booking { margin: 24px 0; }
  .mypage-resend-form { grid-template-columns: 1fr; }
  .mypage-resend-form .primary-button { width: 100%; }
  .admin-list article { padding: 18px; }
  .admin-list .summary-list div { grid-template-columns: 1fr; gap: 2px; }
  .booking-card { grid-template-columns: 72px 1fr; gap: 16px; padding: 18px; }
  .booking-date { min-height: 102px; }
  .booking-detail dl { grid-template-columns: 1fr; gap: 5px; }
  .booking-detail dl div { padding-top: 5px; border-top: 0; }
  .booking-actions { align-items: stretch; flex-direction: column; }
  .receipt-button { margin-right: 0; }
  .history-head { display: block; }
  .history-head > span { display: inline-block; margin-top: 8px; }
}

@media (max-width: 620px) {
  .receipt-page-shell { width: calc(100% - 20px); padding-top: 20px; }
  .receipt-document { min-height: 0; padding: 38px 24px 32px; }
  .receipt-document-head { display: block; }
  .receipt-document-head dl { margin-top: 18px; text-align: left; }
  .receipt-breakdown dl div { display: block; }
  .receipt-breakdown dd { margin-top: 3px; text-align: left; }
  .receipt-issuer { align-items: flex-end; }
  .receipt-actions { flex-direction: column-reverse; }
  .receipt-actions a, .receipt-actions button { justify-content: center; width: 100%; }
}

@media print {
  @page { margin: 15mm; size: A4 portrait; }
  .no-print { display: none !important; }
  .receipt-page-body { background: white; }
  .receipt-page-shell { width: auto; padding: 0; }
  .receipt-document { min-height: 0; padding: 12mm; border: 0; box-shadow: none; }
}

@media (max-width: 460px) {
  .header-actions { gap: 8px; }
  .mypage-link { padding: 6px 10px; }
  .booking-card { grid-template-columns: 1fr; }
  .booking-date { grid-template-columns: auto auto auto; justify-content: center; gap: 6px; min-height: 64px; }
  .booking-date strong { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
