* {
    box-sizing: border-box;
}

:root {
    --navy: #183a5a;
    --navy-dark: #102a42;
    --gold: #b88b3f;
    --text: #24282d;
    --muted: #6c737c;
    --line: #dce1e6;
    --bg: #f4f5f6;
    --white: #fff;
    --red: #bd312a;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
        "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.75;
}

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

.ue-page {
    padding: 54px 18px 80px;
}

.ue-wrap {
    width: min(920px, 100%);
    margin: 0 auto;
}

.ue-header {
    margin-bottom: 30px;
    text-align: center;
}

.ue-header h1,
.ue-complete h1 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.35;
}

.ue-header p {
    margin: 0;
    color: var(--muted);
}

.ue-en {
    margin: 0 0 7px;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
}

.ue-section {
    margin-bottom: 24px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 28px rgba(25, 45, 65, .05);
}

.ue-section h2 {
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--navy);
    color: var(--navy);
    font-size: 1.2rem;
}

.ue-field + .ue-field,
.ue-grid + .ue-field,
.ue-field + .ue-grid {
    margin-top: 22px;
}

.ue-field > label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.required,
.optional {
    display: inline-block;
    margin-left: 7px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: .72rem;
    line-height: 1.6;
    vertical-align: 1px;
}

.required {
    background: var(--red);
    color: #fff;
}

.optional {
    background: #e9edf1;
    color: #59616b;
}

.ue-field input[type="text"],
.ue-field input[type="email"],
.ue-field input[type="tel"],
.ue-field input[type="number"],
.ue-field select,
.ue-field textarea,
.ue-date select {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid #bfc7cf;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    outline: none;
}

.ue-field textarea {
    min-height: 115px;
    resize: vertical;
}

.ue-field input:focus,
.ue-field select:focus,
.ue-field textarea:focus,
.ue-date select:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(24, 58, 90, .13);
}

.ue-grid {
    display: grid;
    gap: 20px;
}

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

.ue-unit {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ue-unit input {
    flex: 1;
}

.ue-date {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 12px;
}

.help {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .86rem;
}

.ue-errors {
    margin-bottom: 24px;
    padding: 20px 24px;
    border: 1px solid #e5aaa6;
    border-radius: 10px;
    background: #fff3f1;
    color: #a42620;
}

.ue-errors h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.ue-errors ul {
    margin: 0;
    padding-left: 1.25em;
}

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

.ue-consent {
    margin: 27px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.ue-consent label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.ue-consent input {
    width: 20px;
    height: 20px;
    accent-color: var(--navy);
}

.ue-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.ue-actions-2 form {
    margin: 0;
}

.ue-btn {
    display: inline-flex;
    min-width: 220px;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ue-primary {
    background: var(--navy);
    color: #fff;
}

.ue-primary:hover {
    background: var(--navy-dark);
}

.ue-secondary {
    border-color: #aeb7bf;
    background: #fff;
    color: var(--text);
}

.ue-area-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 16px;
    margin-bottom: 24px;
    padding: 22px 25px;
    border-left: 5px solid var(--gold);
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
}

.ue-area-box span {
    grid-row: 1 / 3;
    align-self: center;
    color: #d7e0e9;
    font-size: .85rem;
}

.ue-area-box strong {
    font-size: 1.35rem;
}

.ue-area-box a {
    color: #fff;
    font-size: .9rem;
}

.ue-confirm {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.ue-confirm > div {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.ue-confirm > div + div {
    border-top: 1px solid var(--line);
}

.ue-confirm dt,
.ue-confirm dd {
    margin: 0;
    padding: 17px 20px;
}

.ue-confirm dt {
    background: #f0f3f6;
    color: var(--navy);
    font-weight: 700;
}

.ue-confirm dd {
    overflow-wrap: anywhere;
    white-space: normal;
}

.ue-complete {
    padding: 54px 34px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    text-align: center;
    box-shadow: 0 8px 30px rgba(25, 45, 65, .06);
}

.ue-check {
    width: 64px;
    height: 64px;
    margin: 0 auto 19px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 2rem;
    line-height: 64px;
}

.ue-link {
    margin-top: 18px;
}

@media (max-width: 680px) {
    .ue-page {
        padding: 30px 12px 55px;
    }

    .ue-section {
        padding: 22px 17px;
    }

    .ue-grid-2,
    .ue-date {
        grid-template-columns: 1fr;
    }

    .ue-confirm > div {
        display: block;
    }

    .ue-confirm dt {
        padding-bottom: 8px;
    }

    .ue-confirm dd {
        padding-top: 8px;
    }

    .ue-actions {
        flex-direction: column-reverse;
    }

    .ue-actions form,
    .ue-btn {
        width: 100%;
    }

    .ue-area-box {
        display: block;
    }

    .ue-area-box span,
    .ue-area-box strong,
    .ue-area-box a {
        display: block;
    }

    .ue-area-box strong {
        margin: 4px 0;
    }
}


.ue-consent-guide {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: .92rem;
}

.ue-consent a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ue-consent a:hover {
    color: var(--gold);
}

.ue-privacy-section {
    font-size: .98rem;
}

.ue-privacy-section > p {
    margin: 0 0 16px;
}

.ue-privacy-section h2 {
    margin-top: 34px;
}

.ue-privacy-section ol {
    margin: 0 0 20px;
    padding-left: 1.5em;
}

.ue-privacy-section li + li {
    margin-top: 8px;
}

.ue-contact-box {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f7f9fb;
}

.ue-contact-box > p {
    margin: 0 0 6px;
}

.ue-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.ue-contact-grid > div {
    padding: 18px;
    border-radius: 8px;
    background: #fff;
}

.ue-contact-grid h3 {
    margin: 0 0 8px;
    color: var(--navy);
}

.ue-contact-grid p {
    margin: 0;
}

.ue-contact-grid a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 680px) {
    .ue-contact-grid {
        grid-template-columns: 1fr;
    }
}


.ue-origin-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px 18px;
    padding: 22px 24px;
    border-left: 5px solid var(--gold);
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
}

.ue-origin-label {
    color: #d7e0e9;
    font-size: .86rem;
}

.ue-origin-card strong {
    font-size: 1.08rem;
}

.ue-origin-card a {
    grid-column: 2;
    color: #fff;
    font-size: .9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 680px) {
    .ue-origin-card {
        display: block;
    }

    .ue-origin-label,
    .ue-origin-card strong,
    .ue-origin-card a {
        display: block;
    }

    .ue-origin-label:not(:first-child) {
        margin-top: 12px;
    }

    .ue-origin-card a {
        margin-top: 12px;
    }
}
