:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    color: #342e3b;
    background: #fff9ff;
    --aqua: #4fcfc7;
    --aqua-deep: #238f91;
    --lavender: #a8aaf4;
    --lavender-soft: #eee8ff;
    --pink-soft: #fff1fb;
    --gold: #caa34f;
    --gold-light: #f1dc9c;
    --ink: #342e3b;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    line-height: 1.75;
    font-weight: 500;
    background:
        radial-gradient(circle at 8% 4%, rgb(116 238 226 / 24%), transparent 22rem),
        radial-gradient(circle at 94% 12%, rgb(191 167 255 / 28%), transparent 24rem),
        linear-gradient(180deg, #fff8ff 0%, #fffdfd 45%, #f9f5ff 100%);
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    content: "";
    opacity: .48;
    background-image: radial-gradient(circle, rgb(202 163 79 / 25%) 1px, transparent 1.5px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, #000, transparent 45%);
}

.user-container { width: min(100% - 28px, 760px); margin: auto; padding: 30px 0 64px; }

.page-header { position: relative; margin-bottom: 28px; padding: 26px 18px 24px; text-align: center; }
.page-header::after {
    display: block; width: 150px; height: 1px; margin: 20px auto 0; content: "";
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    box-shadow: 0 0 10px var(--gold-light);
}
.page-header h1 { margin: 4px 0 8px; color: #51436e; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: clamp(27px, 7vw, 38px); font-weight: 700; letter-spacing: .08em; text-shadow: 0 2px 12px rgb(132 209 213 / 26%); }
.page-header p:last-child { margin-bottom: 0; }
.step { display: inline-block; margin: 0; padding: 4px 14px; border: 1px solid var(--gold-light); border-radius: 999px; color: #856b31; background: rgb(255 255 255 / 68%); font-family: "Hiragino Sans", "Yu Gothic", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; }

.user-card {
    margin-bottom: 20px; padding: 22px; overflow: hidden;
    border: 1px solid rgb(202 163 79 / 38%); border-radius: 20px;
    background: rgb(255 255 255 / 86%);
    box-shadow: 0 12px 36px rgb(106 83 139 / 10%), inset 0 1px rgb(255 255 255 / 85%);
    backdrop-filter: blur(10px);
}

.menu-list { display: grid; gap: 22px; }
.menu-selection-card { padding: 0; }
.selection-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: linear-gradient(135deg, #e6c9ff, #7ceade 52%, #abb2ff); }
.image-placeholder { display: grid; place-items: center; color: #fff; font-size: 26px; letter-spacing: .24em; text-shadow: 0 2px 8px rgb(71 65 105 / 45%); }
.selection-content { padding: 23px; }
.selection-content h2, .selected-menu h2 { margin: 0 0 8px; color: #51436e; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 700; letter-spacing: .04em; }
.menu-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.menu-meta strong { color: var(--aqua-deep); font-size: 21px; }

details { margin: 15px 0; padding: 13px 15px; border: 1px solid rgb(168 170 244 / 34%); border-radius: 12px; background: linear-gradient(135deg, rgb(255 242 253 / 80%), rgb(239 235 255 / 82%)); }
summary { color: #51436e; font-family: "Hiragino Sans", "Yu Gothic", sans-serif; font-weight: 700; cursor: pointer; }

.primary-button, .secondary-button {
    display: flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 20px;
    border-radius: 999px; font-family: "Hiragino Sans", "Yu Gothic", sans-serif; font-weight: 700;
    text-align: center; text-decoration: none; letter-spacing: .04em;
}
.primary-button { margin-top: 20px; border: 1px solid rgb(202 163 79 / 62%); color: #fff; background: linear-gradient(115deg, #3fcac3, #7bbfd7 48%, #9188dd); box-shadow: 0 8px 24px rgb(70 175 177 / 23%), inset 0 1px rgb(255 255 255 / 38%); }
.primary-button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.secondary-button { border: 1px solid rgb(154 137 203 / 48%); color: #655582; background: rgb(255 255 255 / 82%); }

.notice { margin: 18px 0; padding: 15px; border: 1px solid rgb(202 163 79 / 32%); border-radius: 12px; background: linear-gradient(120deg, #fff6fc, #f0edff); text-align: center; }
.selected-menu { display: flex; gap: 17px; align-items: center; background: linear-gradient(135deg, rgb(255 255 255 / 90%), rgb(242 237 255 / 84%)); }
.selected-thumbnail { width: 102px; height: 102px; border: 1px solid var(--gold-light); border-radius: 50%; object-fit: cover; box-shadow: 0 5px 16px rgb(96 81 124 / 16%); }

.calendar-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 18px; }
.calendar-nav h2 { margin: 0; color: #51436e; text-align: center; font-weight: 700; }
.calendar-nav a { color: var(--aqua-deep); font-family: "Hiragino Sans", "Yu Gothic", sans-serif; font-weight: 700; text-decoration: none; }
.calendar-nav a:last-child { text-align: right; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.weekday-row { margin-bottom: 7px; text-align: center; font-family: "Hiragino Sans", "Yu Gothic", sans-serif; font-size: 13px; font-weight: 700; }
.weekday-row span:first-child { color: #be6688; } .weekday-row span:last-child { color: #6675bf; }
.calendar-day { display: flex; min-width: 0; aspect-ratio: 1 / 1.12; flex-direction: column; align-items: center; justify-content: center; border-radius: 11px; color: #756e79; font-family: "Hiragino Sans", "Yu Gothic", sans-serif; font-weight: 600; text-decoration: none; }
.calendar-day small { font-size: 10px; white-space: nowrap; } .calendar-day.outside { opacity: .25; }
.calendar-day.available { border: 1px solid rgb(202 163 79 / 52%); color: #346d73; background: linear-gradient(145deg, #e7fffb, #eeeaff); box-shadow: 0 3px 10px rgb(82 181 177 / 12%); font-weight: 700; }
.calendar-day.available:active { color: #fff; background: linear-gradient(135deg, var(--aqua), var(--lavender)); }

.reservation-form h2 { margin-top: 30px; color: #51436e; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 700; }
.custom-fields-section { margin-top: 32px; padding-top: 2px; border-top: 1px solid rgb(202 163 79 / 38%); }
.field-help { margin: 6px 2px 0; color: #5c5561; font-size: 14px; font-weight: 500; }
.form-field { margin: 0 0 21px; padding: 0; border: 0; }
.form-field label, .form-field legend { display: block; margin-bottom: 7px; color: #5d5268; font-family: "Hiragino Sans", "Yu Gothic", sans-serif; font-weight: 700; }
.form-field input[type="text"], .form-field input[type="tel"], .form-field input[type="email"], .form-field select, .form-field textarea {
    width: 100%; min-height: 52px; padding: 12px 13px; border: 1px solid #c9bdd6; border-radius: 12px;
    outline: none; color: var(--ink); background: rgb(255 255 255 / 88%); font: inherit;
    box-shadow: inset 0 1px 4px rgb(84 62 102 / 5%);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgb(79 207 199 / 17%); }
.form-field textarea { min-height: 120px; resize: vertical; }
.choice-row { display: flex !important; min-height: 52px; align-items: flex-start; gap: 11px; padding: 13px; margin-bottom: 9px !important; border: 1px solid #ded4e6; border-radius: 12px; background: rgb(255 255 255 / 82%); font-weight: 400 !important; }
.choice-row input { width: 21px; height: 21px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--aqua-deep); }
.choice-row small { display: block; color: #57505d; font-weight: 500; }
.total-box { display: flex; align-items: center; justify-content: space-between; padding: 17px; border: 1px solid var(--gold-light); border-radius: 14px; background: linear-gradient(115deg, #fff3fb, #ecebff 58%, #e4fffb); }
.total-box strong { color: var(--aqua-deep); font-size: 25px; }
.agreement-section {
    margin: 30px 0;
    padding: 19px;
    border: 1px solid rgb(202 163 79 / 55%);
    border-radius: 16px;
    background: linear-gradient(135deg, rgb(255 250 243 / 94%), rgb(255 244 252 / 92%));
    box-shadow: 0 6px 18px rgb(111 84 59 / 7%);
}
.agreement-section h2 { margin: 3px 0 10px; }
.agreement-kicker {
    display: inline-block; margin: 0 0 4px; padding: 3px 10px;
    border-radius: 999px; color: #704e28; background: #f7e5b7;
    font-size: 13px; font-weight: 700;
}
.agreement-preview { margin: 0 0 7px; color: #342e3b; font-weight: 600; }
.agreement-guide { margin: 0; color: #665b6a; font-size: 14px; font-weight: 600; }
.agreement-details { margin: 15px 0 10px; background: rgb(255 255 255 / 86%); }
.agreement-full-text { padding-top: 12px; color: #342e3b; font-weight: 500; }
.agreement-open-note { margin: 4px 2px 0; color: #9a592f; font-size: 13px; font-weight: 700; }
.agreement-open-note.is-opened { color: #287174; }
.required-check { background: linear-gradient(120deg, #fffaf2, #fff4fc); }
.disabled-choice { opacity: .5; background: #eee; }
.submit-button { width: 100%; border-width: 1px; font: inherit; cursor: pointer; }

.confirmation-list dl { display: grid; grid-template-columns: 130px 1fr; margin: 0; }
.confirmation-list dt, .confirmation-list dd { margin: 0; padding: 11px 0; border-bottom: 1px solid #eee6ef; }
.confirmation-list dt { color: #51436e; font-weight: 700; } .confirmation-list dd { overflow-wrap: anywhere; font-weight: 500; }
.agreement-confirmed { padding: 15px; border: 1px solid rgb(79 207 199 / 28%); border-radius: 11px; color: #287174; background: #ebfbf7; }
.back-button { width: 100%; margin-top: 13px; font: inherit; cursor: pointer; }
.completion-card { padding-block: 44px; text-align: center; }
.completion-card h1 { color: #51436e; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 700; }
.completion-mark { width: 68px; height: 68px; margin: 0 auto 18px; border: 1px solid var(--gold-light); border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--aqua), var(--lavender)); box-shadow: 0 6px 20px rgb(108 126 195 / 23%); font-size: 40px; line-height: 68px; }

@media (max-width: 480px) {
    .user-container { width: min(100% - 22px, 760px); padding-top: 18px; }
    .page-header { padding-inline: 8px; }
    .user-card { padding: 16px; border-radius: 17px; }
    .selection-content { padding: 20px; }
    .selected-thumbnail { width: 78px; height: 78px; }
    .calendar-day { aspect-ratio: 1 / 1.25; border-radius: 8px; }
    .calendar-day small { font-size: 8px; }
    .confirmation-list dl { grid-template-columns: 1fr; }
    .confirmation-list dt { padding-bottom: 2px; border-bottom: 0; }
    .confirmation-list dd { padding-top: 2px; }
}

@media (prefers-reduced-motion: no-preference) {
    .primary-button { transition: transform .2s ease, filter .2s ease; }
}
