:root {
    --primary-blue: #007bff;
    --primary-blue-dark: #0056b3;
    --primary-blue-pale: #eef6ff;
    --dark-text: #1d1d1f;
    --body-text: #3f4650;
    --muted-text: #68707c;
    --page-bg: #f8f9fa;
    --line: #dfe3e8;
    --required: #e63946;
    --white: #ffffff;
    --focus: rgba(0, 123, 255, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--dark-text);
    background: var(--page-bg);
    font-family: "Noto Sans JP", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

button,
input,
select,
textarea {
    font: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--primary-blue-dark);
}

.container {
    width: min(1100px, calc(100% - 40px));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    padding: 10px 16px;
    color: var(--white);
    background: #111;
    border-radius: 4px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    background: var(--primary-blue);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.navbar-brand img {
    width: auto;
    height: 40px;
}

.site-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.site-nav a {
    margin-left: 15px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.navbar-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}

.navbar-toggle-lines,
.navbar-toggle-lines::before,
.navbar-toggle-lines::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    content: "";
}

.navbar-toggle-lines {
    position: relative;
    margin: 0 auto;
}

.navbar-toggle-lines::before {
    position: absolute;
    top: -7px;
}

.navbar-toggle-lines::after {
    position: absolute;
    top: 7px;
}

.page-header {
    position: relative;
    display: flex;
    align-items: center;
    height: 407px;
    overflow: hidden;
    color: var(--white);
    text-align: left;
    background:
        linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.72)),
        url("img/cta-bg.jpg") center / cover no-repeat;
    background-attachment: fixed;
}

.page-header-content {
    position: relative;
    z-index: 2;
    padding-bottom: 54px;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: #a9d5ff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.page-title-ja {
    margin: 0.2rem 0 1rem;
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1.25;
    text-wrap: balance;
}

.heading-line {
    display: block;
}

.phrase-lock {
    white-space: nowrap;
}

.lead {
    max-width: 720px;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.wave-container {
    position: relative;
    z-index: 5;
    width: 100%;
    margin-top: -50px;
    line-height: 0;
}

.wave-container svg {
    width: 100%;
    height: 60px;
}

.wave-container path {
    fill: var(--page-bg);
}

.form-wrapper {
    position: relative;
    z-index: 10;
    padding-bottom: 80px;
    margin-top: -20px;
}

.noscript-notice {
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #8a1c25;
    background: #fff4f4;
    border: 1px solid #f0b9be;
    border-radius: 8px;
    font-weight: 700;
}

.form-paper {
    padding: clamp(26px, 5vw, 54px);
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.form-introduction {
    max-width: 820px;
    padding-bottom: 34px;
}

.step-label,
.notice-eyebrow,
.result-label {
    margin: 0 0 8px;
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.form-introduction h2,
.prototype-result h2 {
    padding-left: 15px;
    margin: 0 0 18px;
    border-left: 5px solid var(--primary-blue);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.4;
}

.form-introduction > p:not(.step-label) {
    margin: 0;
    color: var(--body-text);
}

.prototype-status {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 13px 16px;
    margin-top: 22px;
    color: #204f78;
    background: var(--primary-blue-pale);
    border-left: 4px solid var(--primary-blue);
}

.prototype-status strong {
    flex: 0 0 auto;
}

.field-guide {
    padding: 14px 16px;
    margin: 0 0 12px;
    color: var(--muted-text);
    background: #f7f8fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 2px 7px;
    margin-left: 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.5;
    vertical-align: 0.08em;
}

.badge-required {
    color: var(--white);
    background: var(--required);
}

.badge-optional {
    color: #58616c;
    background: #e8ebef;
}

.form-section {
    padding: 46px 0 50px;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.form-section legend {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
    color: var(--dark-text);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 900;
    line-height: 1.4;
}

.section-number {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-right: 12px;
    color: var(--white);
    background: var(--primary-blue);
    border-radius: 50%;
    font-size: 1rem;
}

.section-description {
    margin: 10px 0 30px 50px;
    color: var(--muted-text);
}

.field {
    min-width: 0;
    margin-bottom: 26px;
}

.field:last-child {
    margin-bottom: 0;
}

.field label:not(.choice):not(.check-row),
.field-label {
    display: block;
    margin-bottom: 8px;
    color: #3f4349;
    font-size: 0.95rem;
    font-weight: 700;
}

.field-help {
    margin: -1px 0 12px;
    color: var(--muted-text);
    font-size: 0.88rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    color: var(--dark-text);
    background: var(--white);
    border: 1px solid #cfd4da;
    border-radius: 8px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea {
    min-height: 124px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #88919c;
    opacity: 1;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.12);
}

input:disabled {
    color: #717984;
    background: #eef0f2;
    cursor: not-allowed;
}

.form-grid {
    display: grid;
    gap: 0 26px;
}

.form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid,
.choice-row {
    display: grid;
    gap: 12px;
}

.choice-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-row {
    grid-template-columns: repeat(3, minmax(0, max-content));
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 52px;
    padding: 13px 15px;
    color: var(--body-text);
    background: var(--white);
    border: 1px solid #cfd4da;
    border-radius: 8px;
    cursor: pointer;
}

.choice:hover {
    border-color: #8ebff0;
    background: #fbfdff;
}

.choice:has(input:checked) {
    color: #124c80;
    background: var(--primary-blue-pale);
    border-color: var(--primary-blue);
}

.choice input,
.check-row input,
.consent-row input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 3px 0 0;
    accent-color: var(--primary-blue);
}

.choice span {
    display: block;
}

.choice strong {
    display: block;
    margin-bottom: 2px;
}

.choice small {
    display: block;
    color: var(--muted-text);
    line-height: 1.5;
}

.choice-inline {
    min-height: 48px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    color: var(--body-text);
    background: #f7f8fa;
    border-radius: 8px;
    cursor: pointer;
}

.check-row-compact {
    min-height: 50px;
}

.input-suffix {
    display: flex;
    align-items: stretch;
}

.input-suffix input {
    border-radius: 8px 0 0 8px;
}

.input-suffix span {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    color: #555e68;
    background: #eef0f2;
    border: 1px solid #cfd4da;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
}

.conditional-field,
.conditional-panel {
    padding: 20px;
    margin-top: 18px;
    background: #f7fbff;
    border-left: 4px solid var(--primary-blue);
}

.conditional-panel .field {
    margin-bottom: 22px;
}

.conditional-panel .form-grid {
    margin-bottom: -22px;
}

[hidden] {
    display: none !important;
}

.copy-note {
    padding: 18px 20px;
    color: #204f78;
    background: var(--primary-blue-pale);
    border-left: 4px solid var(--primary-blue);
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    margin-top: 30px;
    color: #343940;
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.reservation-notice {
    padding: clamp(24px, 4vw, 36px);
    margin-top: 4px;
    background: #fff8f8;
    border: 1px solid #efc5c9;
    border-left: 6px solid var(--required);
}

.notice-eyebrow {
    color: var(--required);
}

.reservation-notice h3 {
    margin: 0 0 16px;
    color: #7c2028;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 900;
}

.reservation-notice ul {
    padding-left: 1.4em;
    margin: 0;
}

.reservation-notice li + li {
    margin-top: 8px;
}

.submit-area {
    padding-top: 38px;
    text-align: center;
}

.btn-submit {
    width: 100%;
    max-width: 430px;
    padding: 17px 38px;
    color: var(--white);
    background: var(--primary-blue);
    border: 0;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
    font-weight: 900;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.btn-submit:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.btn-submit:disabled {
    cursor: wait;
    opacity: .7;
    transform: none;
}

.submit-area p {
    margin: 13px 0 0;
    color: var(--muted-text);
    font-size: 0.85rem;
}

.prototype-result {
    max-width: 860px;
    padding: 10px 0 0;
    margin: 0 auto;
}

.result-message {
    padding: 18px 20px;
    color: #204f78;
    background: var(--primary-blue-pale);
    border-left: 4px solid var(--primary-blue);
}

.confirmation-summary {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    margin: 30px 0;
    border-top: 1px solid var(--line);
}

.confirmation-summary dt,
.confirmation-summary dd {
    padding: 14px 12px;
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.confirmation-summary dt {
    color: #4b535d;
    background: #f7f8fa;
    font-weight: 700;
}

.confirmation-summary dd {
    overflow-wrap: anywhere;
}

.result-notice {
    padding: 20px;
    margin-bottom: 28px;
    color: #7c2028;
    background: #fff8f8;
    border-left: 5px solid var(--required);
    font-weight: 700;
}

.result-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.result-actions .btn-submit,
.result-actions .btn-secondary {
    margin: 0;
    min-height: 52px;
}

.submission-status {
    color: var(--muted-text);
    font-weight: 700;
    margin: 16px 0 0;
    text-align: center;
}

.submission-status.is-error {
    color: var(--required);
}

.btn-secondary,
.btn-back {
    display: inline-block;
    padding: 12px 30px;
    color: var(--white);
    background: #333;
    border: 0;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover,
.btn-back:hover {
    color: var(--white);
    background: #111;
}

.back-link-wrap {
    margin: 44px 0 0;
    text-align: center;
}

.site-footer {
    padding: 26px 0;
    color: #6c757d;
    background: var(--white);
    border-top: 1px solid var(--line);
    text-align: center;
}

.site-footer a {
    color: inherit;
}

@media (max-width: 991px) {
    .navbar-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: 60px;
        right: 0;
        left: 0;
        display: none;
        padding: 12px 20px 18px;
        background: var(--primary-blue);
        border-top: 1px solid rgba(255, 255, 255, 0.28);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
    }

    .site-nav.is-open {
        display: grid;
    }

    .site-nav a {
        padding: 9px 0;
        margin: 0;
        text-align: center;
    }

    .page-header {
        height: 380px;
        background-attachment: scroll;
    }

    .form-wrapper {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 30px, 1100px);
    }

    .navbar-brand img {
        height: 34px;
    }

    .page-header {
        height: 350px;
    }

    .page-header-content {
        padding-bottom: 40px;
    }

    .page-title-ja {
        font-size: clamp(1.82rem, 8vw, 2.45rem);
        letter-spacing: 0.015em;
    }

    .lead {
        font-size: 0.96rem;
        line-height: 1.7;
    }

    .wave-container {
        margin-top: -40px;
    }

    .wave-container svg {
        height: 46px;
    }

    .form-wrapper {
        width: 100%;
        padding-bottom: 58px;
    }

    .form-paper {
        padding: 28px 20px;
        border-radius: 0;
        box-shadow: none;
    }

    .prototype-status {
        display: block;
    }

    .prototype-status span {
        display: block;
        margin-top: 3px;
    }

    .form-section {
        padding: 38px 0 42px;
    }

    .section-description {
        margin: 10px 0 26px;
    }

    .form-grid-2,
    .choice-grid-2,
    .choice-grid-3,
    .choice-row {
        grid-template-columns: 1fr;
    }

    .choice-row {
        gap: 10px;
    }

    .choice {
        min-height: 50px;
    }

    .conditional-field,
    .conditional-panel {
        padding: 18px 16px;
    }

    .reservation-notice {
        padding: 22px 18px;
    }

    .btn-submit {
        padding: 16px 22px;
    }

    .confirmation-summary {
        grid-template-columns: 1fr;
    }

    .confirmation-summary dt {
        padding-bottom: 5px;
        border-bottom: 0;
    }

    .confirmation-summary dd {
        padding-top: 5px;
    }

    .back-link-wrap {
        padding-inline: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
