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

body {
    margin: 0;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #f0f2f5;
}

.page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px 40px;
}

.card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 28px 24px 32px;
}

.guide-card {
    max-width: 640px;
}

.brand-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: -28px -24px 20px;
    padding: 0 20px;
    height: 76px;
    box-sizing: border-box;
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.brand-logo {
    display: block;
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.title {
    margin: 0 0 24px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
}

.guide-title {
    margin-bottom: 16px;
    font-size: 1.45rem;
    line-height: 1.4;
    word-break: keep-all;
}

.guide-note {
    text-align: center;
    color: #333;
    margin-bottom: 24px;
    white-space: pre-line;
    word-break: keep-all;
}

.section {
    margin-bottom: 24px;
}

.section-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.text {
    margin: 0 0 12px;
    color: #333;
}

.overview-box {
    background: #ececec;
    border-radius: 16px;
    padding: 28px 22px 22px;
    margin-bottom: 20px;
}

.overview-title {
    margin: 0 0 22px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    word-break: keep-all;
}

.info-list {
    margin: 0;
    padding: 0 8px;
}

.info-row {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
    padding: 8px 0;
}

.info-list dt {
    margin: 0;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6.5rem;
    min-width: 6.5rem;
    max-width: 6.5rem;
    height: 2rem;
    padding: 0 8px;
    border-radius: 999px;
    background: #555;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    box-sizing: border-box;
}

.info-list dd,
.info-value {
    margin: 0;
    min-width: 0;
    padding-top: 0.25rem;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.event-content-text {
    white-space: pre-line;
    text-align: left;
    font-weight: 500;
}

.event-note-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 88px;
    height: auto;
    margin: 0 0 20px;
    padding: 12px 8px;
    border: none;
    background: transparent;
    overflow: visible;
    box-sizing: border-box;
}

.guide-note-box {
    margin-top: 0;
}

.event-note-text {
    margin: 0;
    width: 100%;
    max-height: none;
    overflow: visible;
    text-align: center;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.5;
    color: #1a1a1a;
    white-space: pre-line;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.notice-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 18px 0 0;
    padding: 10px 14px;
    border: 1px dashed #9a9a9a;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.95rem;
    color: #333;
}

.notice-link {
    color: #333;
    text-decoration: underline;
}

.notice-link:hover {
    color: #b71c1c;
}

.overview-actions {
    margin-top: 22px;
}

.result-list {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.field {
    margin-bottom: 20px;
}

.field label,
.field .label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.required {
    color: #c0392b;
}

input[type="text"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 14px 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #b71c1c;
    border-color: #b71c1c;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.radio,
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio input,
.checkbox input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.privacy-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.privacy-title {
    margin: 0 0 12px;
    font-size: 1rem;
}

.privacy-list {
    margin: 0 0 12px;
    padding-left: 1.2rem;
    font-size: 0.95rem;
}

.privacy-note {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #666;
}

.field-hint {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.error {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: #c0392b;
}

.alert {
    background: #fdecea;
    color: #922b21;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.attend-error-message {
    text-align: center;
    font-weight: 700;
}

.success-message {
    text-align: center;
    font-size: 1.08rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px;
}

.qr-box {
    display: flex;
    justify-content: center;
    margin: 24px 0 8px;
}

.qr-image {
    width: 240px;
    height: 240px;
    max-width: 100%;
    image-rendering: pixelated;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.actions-row {
    flex-direction: row;
    gap: 12px;
}

.actions-row .btn {
    flex: 1;
}

.btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    min-height: 48px;
    line-height: 1.2;
}

.btn-primary {
    background: #e53935;
    color: #fff;
}

.btn-primary:hover {
    background: #d32f2f;
}

.btn-disabled {
    background: #e53935;
    color: #fff;
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary {
    background: #fff;
    color: #e53935;
    border: 2px solid #e53935;
}

.btn-secondary:hover {
    background: #fff5f5;
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: transparent;
    color: #555;
    font-weight: 500;
    padding: 10px;
}

.back-to-guide {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-weight: 700;
    text-decoration: underline;
    color: #1a1a1a;
}

.back-to-guide:hover {
    color: #b71c1c;
}

@media (max-width: 480px) {
    .page {
        padding: 12px 10px 32px;
    }

    .card {
        padding: 20px 16px 24px;
        border-radius: 8px;
    }

    .title,
    .guide-title {
        font-size: 1.25rem;
    }

    .brand-header {
        margin: -20px -16px 16px;
        padding: 0 16px;
        height: 64px;
        border-radius: 8px 8px 0 0;
    }

    .brand-logo {
        height: 52px;
    }

    .actions-row {
        flex-direction: column;
    }

    .overview-box {
        padding: 22px 14px 18px;
    }

    .info-list {
        padding: 0;
    }

    .info-row {
        grid-template-columns: 5.75rem minmax(0, 1fr);
        column-gap: 10px;
    }

    .info-badge {
        width: 5.75rem;
        min-width: 5.75rem;
        max-width: 5.75rem;
        font-size: 0.85rem;
    }

    .info-list dd,
    .info-value {
        font-size: 0.95rem;
    }

    .event-note-box {
        min-height: 72px;
        padding: 10px 4px;
    }

    .event-note-text {
        font-size: 1rem;
    }
}
