@charset "utf-8";

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --nerima-900: #073f2d;
    --nerima-800: #075a3b;
    --nerima-700: #087443;
    --nerima-600: #0a8a4b;
    --nerima-100: #dff4e8;
    --nerima-50: #f1faf5;
    --ink: #17342a;
    --muted: #60746c;
    --line: #cfe0d7;
    --paper: #ffffff;
    --warm: #fff8e8;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(36, 158, 91, 0.14), transparent 28rem),
        linear-gradient(180deg, #e9f7ef 0, #f6faf7 22rem, #f2f6f3 100%);
    color: var(--ink);
    font-family: "Yu Gothic", "Meiryo", sans-serif;
}

body > form {
    display: flow-root;
}

body::before {
    content: "";
    display: block;
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(7, 90, 59, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 90, 59, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

a {
    overflow: hidden;
    text-decoration: none;
}

input[type="button"],
input[type="submit"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.page-wrap {
    padding: 24px 12px 48px;
}

.contents,
.action-card,
.warning-intro,
.warning-section,
.warning-bottom,
.reservation-id-card {
    border: 1px solid rgba(207, 224, 215, 0.9);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(20, 71, 51, 0.09);
}

.contents {
    width: min(92%, 760px);
    margin: 28px auto 0;
    padding: 24px 28px;
    border-radius: 24px;
    text-align: center;
}

#pnlLink {
    width: min(92%, 900px);
    margin: 0 auto;
}

.action-card {
    padding: 30px 28px 22px;
    border-radius: 26px;
}

.action-card-header {
    max-width: 620px;
    margin: 0 auto 18px;
    text-align: center;
}

.action-card-text,
.page-description,
.reservation-id-description,
.warning-summary-text {
    color: var(--muted);
}

.action-card-text {
    font-size: 15px;
    line-height: 1.8;
}

.menu-area,
.sub-action-area,
.availability-action-area,
.action-buttons,
.reservation-id-actions {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.sub-action-area {
    margin-top: 18px;
}

.availability-action-area {
    margin-top: 28px;
}

.menu-btn-availability {
    border-color: #9eb6cc;
    background: #f2f7fb;
    color: #285782 !important;
}

.menu-btn-availability:hover {
    border-color: #7398bd;
    background: #e8f1f9;
}

.menu-btn {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 16px 20px;
    border: 1px solid #b7cec1;
    border-radius: 14px;
    background: #ffffff;
    color: var(--nerima-900) !important;
    box-shadow: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.menu-btn:hover {
    border-color: var(--nerima-600);
    background: var(--nerima-50);
    box-shadow: 0 8px 20px rgba(7, 90, 59, 0.1);
    transform: translateY(-1px);
}

.menu-btn-primary {
    border: 1px solid var(--nerima-700);
    background: linear-gradient(135deg, var(--nerima-700), var(--nerima-900));
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(7, 90, 59, 0.24);
}

.menu-btn-primary:hover {
    background: linear-gradient(135deg, var(--nerima-600), var(--nerima-800));
    box-shadow: 0 14px 28px rgba(7, 90, 59, 0.28);
}

.menu-btn-subtle,
.menu-btn.back-btn {
    border-color: #bfd3c7;
    background: #f5faf7;
    color: var(--nerima-800) !important;
}

.menu-btn.cancel-btn {
    border-color: #e0a5a5;
    background: #fff1f1;
    color: #a40000 !important;
}

.menu-btn.cancel-btn:hover {
    background: #ffe5e5;
}

.info-page {
    text-align: center;
}

.page-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--nerima-100);
    color: var(--nerima-800);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.legacy-reservation-notice {
    max-width: 640px;
    margin: 0 auto 22px;
    border: 2px solid #c53030;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(159, 36, 36, 0.14);
    overflow: hidden;
}

.legacy-reservation-notice a {
    display: block;
    padding: 20px 24px;
    background: #fff5f5;
    color: #a40000;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.legacy-reservation-notice a::after {
    content: "  →";
    font-size: 26px;
    vertical-align: -1px;
}

.legacy-reservation-notice a:hover,
.legacy-reservation-notice a:focus {
    background: #ffe5e5;
    color: #7d0000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-link-notice {
    max-width: 500px;
    margin: 0 auto 18px;
    border: 2px solid #0875c1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(8, 117, 193, 0.14);
}

.news-link-notice a {
    display: block;
    padding: 8px 16px;
    background: #ffffff;
    color: #1769aa;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.news-link-notice a::before {
    content: "📢";
    margin-right: 10px;
    font-size: 22px;
    vertical-align: -2px;
}

.news-link-notice a::after {
    content: " →";
    font-size: 22px;
    vertical-align: -1px;
}

.news-link-notice a:hover,
.news-link-notice a:focus {
    background: #e7f4ff;
    color: #07558f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-lead {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--nerima-900);
}

.page-description {
    max-width: 640px;
    margin: 14px auto 0;
    font-size: 16px;
    line-height: 1.9;
}

.document-name-emphasis {
    color: #c53030;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.info-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 0;
    text-align: left;
}

.info-summary-item {
    padding: 18px 20px;
    border: 1px solid #d9e0dc;
    border-left: 4px solid #829b8b;
    border-radius: 3px;
    background: #f6f8f7;
}

.info-summary-item-saturday {
    border-color: #d4e1ee;
    border-left-color: #7398bd;
    background: #f3f7fc;
}

.info-summary-item-saturday .info-summary-label,
.info-summary-item-saturday .info-summary-value {
    color: #285782;
}

.warning-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
    text-align: left;
}

.warning-summary-item,
.reservation-id-form {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, #f8fcf9, #edf8f1);
}

.info-summary-label,
.warning-summary-title,
.reservation-id-label {
    margin-bottom: 6px;
    color: var(--nerima-800);
    font-size: 14px;
    font-weight: 700;
}

.info-summary-value {
    margin: 0;
    color: var(--nerima-900);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

.page-note {
    margin-top: 16px;
    color: #c53030;
    font-size: 14px;
    line-height: 1.8;
}

.info-page-notes {
    text-align: left;
}

.info-page-notes p {
    margin: 0;
}

.info-page-notes p + p {
    margin-top: 8px;
}

.warning-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--warm);
    color: #69531c;
    font-size: 16px;
    text-align: center;
}

.inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #9cccad;
    border-radius: 999px;
    background: #ffffff;
    color: var(--nerima-800) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.inline-link:hover {
    border-color: var(--nerima-600);
    background: var(--nerima-50);
}

.warning-page {
    width: min(92%, 860px);
    margin: 24px auto 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.warning-intro {
    margin: 0 auto 22px;
    padding: 28px 28px 24px;
    border-radius: 20px;
    text-align: center;
}

.warning-intro-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--nerima-100);
    color: var(--nerima-800);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.warning-intro-title {
    margin-bottom: 18px;
    color: var(--nerima-900);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
}

.warning-summary {
    margin-top: 0;
    gap: 12px;
}

.warning-summary-item {
    padding: 18px 20px;
    border: 1px solid #d9e0dc;
    border-left: 4px solid #829b8b;
    border-radius: 3px;
    background: #f6f8f7;
}

.warning-summary-title {
    margin-bottom: 8px;
    font-size: 15px;
}

.warning-summary-text {
    font-size: 14px;
    line-height: 1.7;
}

.warning-body {
    padding: 0 4px;
}

.warning-section {
    margin-bottom: 18px;
    padding: 24px 26px;
    border-radius: 20px;
}

.warning-section-title {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    color: var(--nerima-900);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.warning-section-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 99px;
    background: var(--nerima-600);
}

.warning-section-text {
    padding-left: 20px;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.95;
    text-align: left;
    word-break: break-word;
}

.warning-list-text {
    padding-left: 24px;
}

.warning-subblock + .warning-subblock {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e8edf3;
}

.warning-subtitle {
    margin-bottom: 8px;
    color: var(--nerima-800);
    font-size: 15px;
    font-weight: 700;
}

.warning-bullet-list {
    margin: 0;
    padding-left: 1.2em;
}

.warning-bullet-list li {
    margin-bottom: 6px;
    line-height: 1.85;
}

.warning-bottom {
    width: min(92%, 860px);
    margin: 26px auto 0;
    padding: 26px 24px;
    border-radius: 22px;
    text-align: center;
}

.reservation-id-page,
.receive-location-page {
    width: min(100% - 32px, 900px);
    margin: 0 auto 48px;
}

.reservation-id-card {
    padding: 38px 44px 34px;
    border-top: 0;
    border-radius: 0 0 24px 24px;
    text-align: center;
}

.reservation-id-title,
.receive-location-title {
    color: var(--nerima-900);
}

.reservation-id-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.5;
}

.reservation-id-description {
    max-width: 580px;
    margin: 14px auto 0;
    font-size: 16px;
    line-height: 1.9;
}

.reservation-id-form {
    max-width: 560px;
    margin: 30px auto 28px;
    padding: 24px;
    text-align: left;
}

.reservation-guide-area {
    width: min(100%, 480px);
    margin: 0 auto 28px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(24, 73, 48, 0.10);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.reservation-guide-image {
    width: 100%;
    aspect-ratio: 210 / 297;
    border-radius: 9px;
    background: #ffffff url('../Resources/reservation-id-guide-sample.png') center / contain no-repeat;
    pointer-events: none;
}

.reservation-id-label {
    display: block;
    width: min(100%, 320px);
    margin-right: auto;
    margin-left: auto;
    font-size: 17px;
}

.reservation-id-input {
    display: block;
    box-sizing: border-box;
    width: min(100%, 320px);
    margin-right: auto;
    margin-left: auto;
    padding: 15px 16px;
    border: 2px solid #a9c4b5;
    border-radius: 12px;
    background: #ffffff;
    color: #172033;
    font-family: inherit;
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.12em;
    text-align: center;
    outline: none;
}

.reservation-id-input:focus {
    border-color: var(--nerima-600);
    box-shadow: 0 0 0 4px rgba(10, 138, 75, 0.13);
}

.reservation-id-help {
    width: min(100%, 320px);
    margin: 9px auto 0;
    color: #687386;
    font-size: 13px;
    line-height: 1.7;
}

.reservation-id-error {
    display: block;
    margin-top: 12px;
    color: #c53030;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.reservation-id-reserved {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #e2b5b5;
    border-radius: 8px;
    background: #fff4f4;
    color: #8f1d1d;
    font-size: 15px;
    line-height: 1.7;
}

.reservation-id-reserved strong {
    font-size: 17px;
}

.reservation-id-reserved-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 9px 16px;
    border: 1px solid #777777;
    border-radius: 5px;
    background: #ffffff;
    color: #333333 !important;
    font-weight: 700;
}

.reservation-id-actions .menu-btn:last-child {
    margin-bottom: 0;
}

.receive-location-header {
    width: min(100% - 32px, 900px);
    margin: 24px auto 0;
    overflow: hidden;
    border: 0;
    border-radius: 24px 24px 0 0;
    background: var(--nerima-900);
    box-shadow: 0 18px 45px rgba(7, 63, 45, 0.18);
}

.receive-location-office,
.receive-location-subtitle {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: center;
}

.receive-location-office {
    padding: 24px 24px 10px;
    color: #ffffff;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
}

.receive-location-subtitle {
    padding: 8px 24px 22px;
    color: #c8f0d8;
    font-size: clamp(15px, 2.4vw, 19px);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.receive-location-page {
    padding: 38px clamp(18px, 5vw, 54px) 46px;
    border-radius: 0 0 24px 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(7, 63, 45, 0.12);
    text-align: center;
}

.receive-location-title {
    margin: 0 0 28px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.5;
}

.receive-location-notice {
    width: 100%;
    margin: 0 auto 28px;
    padding: 20px 26px;
    border: 1px solid #ead8a4;
    border-radius: 16px;
    background: var(--warm);
    color: #5d4b20;
    font-size: 15px;
    line-height: 1.8;
    text-align: left;
}

.receive-location-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.receive-location-button,
.receive-location-back {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border: 1px solid #bdd5c7;
    border-radius: 18px;
    background: #ffffff;
    color: var(--nerima-900) !important;
    box-shadow: 0 7px 18px rgba(7, 90, 59, 0.07);
    cursor: pointer;
}

.receive-location-button {
    min-height: 88px;
    flex-direction: column;
    padding: 14px 18px;
}

.receive-location-button:hover,
.receive-location-back:hover {
    border-color: var(--nerima-600);
    background: linear-gradient(135deg, #ffffff, #edf9f2);
}

.receive-location-button-saturday {
    border-color: #d4e1ee;
    background: #f3f7fc;
    box-shadow: 0 7px 18px rgba(40, 87, 130, 0.09);
}

.receive-location-button-saturday .receive-location-main {
    color: #285782;
}

.receive-location-button-saturday:hover {
    border-color: #7398bd;
    background: #e8f1f9;
}

.receive-location-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--nerima-900);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.receive-location-day {
    font-size: 0.72em;
    line-height: 1;
}

.receive-location-sub {
    display: block;
    padding-top: 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.receive-location-selection {
    display: block;
    min-height: 24px;
    margin-top: 18px;
    color: var(--nerima-700);
    font-size: 15px;
    font-weight: 700;
}

.receive-location-actions {
    width: min(100%, 360px);
    margin: 18px auto 0;
}

.receive-location-back {
    height: 58px;
    font-size: 20px;
    font-weight: 700;
}

@media screen and (max-width: 640px) {
    .page-wrap {
        padding: 16px 10px 32px;
    }

    .contents {
        width: calc(100% - 24px);
        margin-top: 18px;
        padding: 18px 16px;
    }

    .action-card {
        padding: 20px 16px 18px;
        border-radius: 18px;
    }

    .menu-btn {
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 16px;
    }

    .page-lead {
        font-size: 24px;
    }

    .page-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .info-summary-grid,
    .warning-summary {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }

    .warning-intro {
        margin-bottom: 18px;
        padding: 22px 18px 18px;
        border-radius: 18px;
    }

    .warning-intro-title {
        font-size: 22px;
    }

    .warning-section {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .warning-section-title {
        font-size: 18px;
    }

    .warning-section-text,
    .warning-list-text {
        padding-left: 0;
        font-size: 15px;
        line-height: 1.85;
    }

    .reservation-id-page,
    .receive-location-header,
    .receive-location-page {
        width: calc(100% - 20px);
    }

    .reservation-id-page {
        margin-bottom: 32px;
    }

    .reservation-id-card {
        padding: 26px 16px 22px;
        border-radius: 0 0 18px 18px;
    }

    .reservation-id-title {
        font-size: 23px;
    }

    .reservation-id-form {
        margin: 24px auto 22px;
        padding: 18px 16px;
        border-radius: 15px;
    }

    .receive-location-header {
        margin-top: 10px;
        border-radius: 18px 18px 0 0;
    }

    .receive-location-page {
        padding: 24px 16px 28px;
        border-radius: 0 0 18px 18px;
    }

    .receive-location-title {
        margin-bottom: 22px;
        font-size: 22px;
    }

    .receive-location-button {
        min-height: 76px;
    }

    .receive-location-main {
        font-size: 23px;
    }
}
