@charset "UTF-8";

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    color: #222;
    background: #f6f7f8;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Yu Gothic",
        "YuGothic",
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;
    line-height: 1.75;
}

button,
input,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

.uc-page {
    min-height: 100vh;
    padding: 48px 20px;
}

.uc-container {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 48px;
    background: #fff;
    border: 1px solid #e3e6e8;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.uc-header {
    margin-bottom: 38px;
    text-align: center;
}

.uc-header h1,
.uc-complete h1 {
    margin: 4px 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    line-height: 1.35;
}

.uc-header p,
.uc-complete p {
    margin: 0;
}

.uc-site-name {
    color: #666;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.uc-error {
    margin-bottom: 30px;
    padding: 18px 22px;
    color: #8a1f1f;
    background: #fff3f3;
    border: 1px solid #e9b9b9;
    border-radius: 8px;
}

.uc-error h2 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.uc-error ul {
    margin: 0;
    padding-left: 1.4em;
}

.uc-field {
    margin-bottom: 28px;
}

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

.uc-required,
.uc-optional {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.72rem;
    line-height: 1.5;
    vertical-align: 1px;
}

.uc-required {
    color: #fff;
    background: #b62929;
}

.uc-optional {
    color: #555;
    background: #eceff1;
}

.uc-field input,
.uc-field select,
.uc-field textarea {
    display: block;
    width: 100%;
    padding: 13px 14px;
    color: #222;
    background: #fff;
    border: 1px solid #bfc5ca;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.uc-field textarea {
    min-height: 180px;
    resize: vertical;
}

.uc-field input:focus,
.uc-field select:focus,
.uc-field textarea:focus {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.uc-consent {
    margin: 34px 0;
    padding: 18px;
    background: #f7f8f9;
    border-radius: 8px;
    text-align: center;
}

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

.uc-consent input {
    width: 18px;
    height: 18px;
    margin-top: 5px;
    flex: 0 0 auto;
}

.uc-consent a {
    text-decoration: underline;
}

.uc-actions {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.uc-actions-split {
    justify-content: space-between;
    gap: 16px;
}

.uc-actions-split form {
    margin: 0;
}

.uc-button {
    display: inline-flex;
    min-width: 220px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.uc-button:hover {
    opacity: 0.82;
}

.uc-button:active {
    transform: translateY(1px);
}

.uc-button-primary {
    color: #fff;
    background: #202428;
    border-color: #202428;
}

.uc-button-secondary {
    color: #202428;
    background: #fff;
    border-color: #9da4aa;
}

.uc-confirm-list {
    margin: 0;
    border-top: 1px solid #dfe3e6;
}

.uc-confirm-list > div {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    border-bottom: 1px solid #dfe3e6;
}

.uc-confirm-list dt,
.uc-confirm-list dd {
    margin: 0;
    padding: 18px 20px;
}

.uc-confirm-list dt {
    background: #f4f5f6;
    font-weight: 700;
}

.uc-prewrap {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.uc-complete {
    padding: 28px 0;
    text-align: center;
}

.uc-complete-mark {
    display: flex;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #202428;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
}

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

@media (max-width: 680px) {
    .uc-page {
        padding: 18px 12px;
    }

    .uc-container {
        padding: 28px 18px;
        border-radius: 8px;
    }

    .uc-header {
        margin-bottom: 28px;
    }

    .uc-confirm-list > div {
        display: block;
    }

    .uc-confirm-list dt,
    .uc-confirm-list dd {
        padding: 13px 14px;
    }

    .uc-actions-split {
        flex-direction: column-reverse;
    }

    .uc-actions-split form {
        width: 100%;
    }

    .uc-button {
        width: 100%;
        min-width: 0;
    }
}


.uc-privacy .uc-header {
    text-align: left;
}

.uc-privacy .uc-header h1 {
    margin-top: 8px;
}

.uc-privacy-intro {
    margin-top: 20px !important;
}

.uc-privacy-sections {
    border-top: 1px solid #dfe3e6;
}

.uc-privacy-section {
    padding: 26px 0;
    border-bottom: 1px solid #dfe3e6;
}

.uc-privacy-section h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.5;
}

.uc-privacy-section p {
    margin: 0;
    white-space: normal;
}
