* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 16px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f8fafc;
    color: #1f2937;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow: hidden;
}

/* Header */

.site-header {
    text-align: center;
    background: #ffffff;
}

.site-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
}

.site-title-main {
    font-size: 32px;
    font-weight: 800;
    color: #334155;
}

.site-title-sub {
    margin-top: 6px;
    color: #64748b;
    letter-spacing: .15em;
}

/* Progress */

.progress-wrap {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 20px 40px;
}

.progress-item {
    position: relative;
    text-align: center;
}

.progress-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 3px;
    background: #dbeafe;
}

.progress-item.is-active:not(:last-child)::after {
    background: #94a3b8;
}

.progress-circle {
    width: 34px;
    height: 34px;
    margin: 0 auto;
    border-radius: 50%;
    background: #e5e7eb;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.progress-item.is-active .progress-circle {
    background: #475569;
    color: #ffffff;
}

.progress-label {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
}

/* Page Head */

.page-head {
    margin: 0 40px 20px;

    padding: 18px 24px;

    border-radius: 16px;

    background: #f1f5f9;
}

.page-head h1 {
    margin: 0;
    color: #ffffff;
}

.page-head-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-subtitle {
    margin: 8px 0 0;

    color: #64748b;

    font-size: 14px;
}

.step-badge {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 32px;

    padding: 0 16px;

    border-radius: 999px;

    background: #475569;

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;
}

.page-head-top h1 {
    margin: 0;

    font-size: 28px;
    font-weight: 800;

    color: #334155;
}

/* Form */

.form-card {
    margin: 0 40px 40px;
    padding: 35px;
    background: var(--theme-main);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,.20);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;

    padding: 20px;

    background: rgba(255,255,255,.15);

    border: 1px solid rgba(255,255,255,.35);

    border-radius: 18px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 8px 32px rgba(0,0,0,.15),
        inset 0 1px 0 rgba(255,255,255,.4);
}

label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
}

.required {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 26px;
    padding: 0 8px;
    background: var(--alert-main);
    border-radius: 999px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

input,
select {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #ffffff;
    color: #000000;
    font-size: 20px;
}

/* 自動入力・変更不可の住所欄 */
input[readonly],
.readonly-input {
    background: #e5e7eb;
    color: #475569;
    border: 2px dashed #94a3b8;
    cursor: not-allowed;
    font-weight: 700;
}

input[readonly]::placeholder,
.readonly-input::placeholder {
    color: #64748b;
}

.readonly-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 10px;
    padding: 8px 12px;

    background: rgba(255, 255, 255, .28);
    color: #ffffff;

    border-radius: 999px;

    font-size: 15px;
    font-weight: 700;
}

input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

select.placeholder-select {
    color: #94a3b8;
}

select option {
    color: #000000;
}

.checkbox-list {
    display: grid;

    gap: 12px;

    padding: 18px;

    background: rgba(255, 255, 255, .18);

    border-radius: 12px;
}

.checkbox-item {
    display: flex;

    align-items: center;

    gap: 12px;

    margin: 0;

    color: #ffffff;

    font-size: 20px;
    font-weight: 600;

    cursor: pointer;
}

.checkbox-item input {
    width: 22px;
    height: 22px;

    margin: 0;

    flex-shrink: 0;
}

.checkbox-item span {
    line-height: 1.5;
}

.input-note {
    margin-top: 12px;
    padding: 0;

    color: #ffce3a;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 500;
}

.input-note ul {
    margin: 0;
    padding-left: 1.2em;
}

.input-note li {
    margin: 2px 0;
}

.error {
    position: relative;

    display: inline-block;

    margin: 12px 0 0;

    padding: 10px 16px 10px 40px;

    background: var(--alert-main);
    color: #ffffff;

    font-size: 17px;
    font-weight: 900;

    line-height: 1.5;

    border-radius: 0;

    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        16px 100%,
        0 calc(100% - 16px)
    );
}

.error::before {
    content: "⚠";

    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    width: 20px;
    height: 20px;

    background: #ffffff;
    color: var(--alert-main);

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 900;
}

@keyframes errorMessageBlink {

    0% {
        background: #fee2e2;
    }

    50% {
        background: #fecaca;
    }

    100% {
        background: #fee2e2;
    }

}

.is-error {
    border: 2px solid var(--alert-main);

    animation: errorBlink 1.2s ease-in-out infinite;
}

.is-error:focus {
    animation: none;

    background: #ffffff;
}
@keyframes errorBlink {
    0% {
        background: #ffffff;
    }

    50% {
        background: var(--alert-light);
    }

    100% {
        background: #ffffff;
    }
}



/* Consent / Notice */

.consent-group {
    padding: 22px 24px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 16px;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, .14),
        inset 0 1px 0 rgba(255, 255, 255, .35);
}

.consent-description {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.75;
    text-shadow: 0 1px 2px rgba(15, 23, 42, .15);
}

.consent-item {
    display: inline-flex;
    width: auto;
    min-height: 48px;
    margin: 0;
    padding: 11px 16px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 12px;
    color: #ffffff;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.consent-item:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .55);
    transform: translateY(-1px);
}

.consent-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.consent-item span {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
}


/* Terms */

.terms-card {
    margin: 0 40px 40px;

    padding: 35px;

    background: #ffffff;

    border-radius: 20px;

    border: 1px solid #e5e7eb;

    box-shadow:
        0 10px 25px rgba(0,0,0,.05);
}

.terms-box {
    height: 420px;

    padding: 25px;

    overflow-y: auto;

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 12px;

    color: #334155;

    line-height: 1.8;
}

.terms-box h3 {
    margin-top: 0;

    color: #0f172a;

    font-size: 20px;
}

.no-border {
    border-top: none;

    padding-top: 30px;
}

/* Complete */

.complete-card {
    margin: 40px 40px;
    padding: 46px 36px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
}

.complete-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--theme-main);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 800;
}

.complete-card h1 {
    margin: 0;
    color: #475569;
    font-size: 30px;
}

.complete-message {
    margin-top: 18px;
    color: #475569;
    line-height: 1.8;
}

.registration-box {
    max-width: 420px;
    margin: 30px auto;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.registration-label {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.registration-number {
    color: var(--theme-main);
    font-size: 34px;
    font-weight: 900;
    letter-spacing: .05em;
}

.complete-note {
    color: #64748b;
    font-size: 14px;
}

.complete-actions {
    margin-top: 30px;
    text-align: center;
}

.badge-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    padding: 14px 28px;
    border-radius: 8px;
    background: #e71a29;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.badge-button:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

/* Button */

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,.20);
}

.btn {
    min-width: 220px;
    height: 54px;

    border: none;
    border-radius: 999px;

    background: #334155;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.15);

    transition: all .2s ease;
}

.btn:hover {
    background: #475569;

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.15);
}

.btn:active {
    transform: translateY(1px);

    box-shadow:
        0 3px 8px rgba(0,0,0,.20);
}

/* Footer */

.site-footer {
    padding: 30px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
}

.footer-title {
    margin-bottom: 10px;
    color: #0f172a;
    font-weight: 700;
}

/* Mobile */

@media (max-width: 768px) {

    body {
        padding: 10px;
    }

    .container {
        width: 100%;
        border-radius: 12px;
    }

    .site-header {
        padding: 20px 15px;
    }

    .site-logo {
        max-width: 100%;
    }

    .progress-wrap {
        padding: 16px 20px;
        gap: 6px;
    }

    .progress-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .progress-label {
        font-size: 10px;
    }

    .page-head {
        margin: 0 10px 15px;
        padding: 16px;
    }

    .page-head-top {
        gap: 10px;
    }

    .page-head-top h1 {
        font-size: 24px;
    }

    .step-badge {
        height: 28px;
        padding: 0 10px;
        font-size: 12px;
    }

    .page-subtitle {
        font-size: 14px;
        line-height: 1.6;
    }

    .form-card {
        margin: 0 10px 20px;
        padding: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        padding: 14px;
        margin-bottom: 16px;
    }

    label {
        font-size: 20px;
        line-height: 1.4;
    }

    .required {
        min-width: 44px;
        height: 24px;
        font-size: 13px;
        padding: 0 8px;
    }

    input,
    select {
        height: 58px;
        font-size: 20px;
    }

    input::placeholder {
        font-size: 16px;
    }

    .error {
        font-size: 18px;
    }

    .checkbox-item {
        font-size: 20px;
    }

    .btn {
        width: 100%;
        height: 60px;
        font-size: 20px;
    }


    .consent-group {
        padding: 16px;
    }

    .consent-description {
        margin-bottom: 14px;
        font-size: 15px;
        line-height: 1.7;
    }

    .consent-item {
        display: flex;
        width: 100%;
        min-height: 52px;
        padding: 12px 14px;
    }

    .consent-item span {
        font-size: 18px;
    }

}