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

body {
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", "メイリオ", Meiryo, sans-serif;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
}

a {
    color: #2e93e6;
}

/* ========== Layout ========== */

.wrap {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

header {
    background: #2e93e6;
    color: #fff;
    padding: 16px 20px;
    text-align: center;
}

header h1 {
    font-size: 20px;
    font-weight: bold;
}

footer {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

/* ========== Form Section ========== */

.form-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h2 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #f0f7ff;
    border-left: 4px solid #2e93e6;
}

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

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.form-label .must {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: normal;
}

.form-label .optional {
    background: #aaa;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    font-weight: normal;
}

/* ========== Inputs ========== */

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

select {
    background: #fff;
}

textarea {
    height: 100px;
    resize: vertical;
}

.input-half {
    width: 48%;
    display: inline-block;
}

.hint {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
}

.error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
}

/* ========== Radio / Checkbox ========== */

.radio-group label,
.checkbox-group label {
    display: inline-block;
    margin-right: 20px;
    cursor: pointer;
    padding: 4px 0;
    line-height: 1.6;
}

.checkbox-group label {
    display: block;
    margin-right: 0;
}

.radio-group input,
.checkbox-group input {
    margin-right: 4px;
}

/* ========== Area Input ========== */

.area-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.area-input input[type="tel"] {
    width: 120px;
    flex-shrink: 0;
}

.area-unit label {
    margin-right: 12px;
}

/* ========== Zipcode ========== */

.zipcode-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.zipcode-row input {
    width: 160px;
}

.btn-zipcode {
    padding: 8px 12px;
    background: #666;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.btn-zipcode:hover {
    background: #444;
}

/* ========== Address Block ========== */

.address-block {
    margin-top: 12px;
    display: none;
}

/* ========== Submit Button ========== */

.btn-submit {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 24px auto;
    padding: 16px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.btn-submit:hover {
    background: #c0392b;
}

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ========== Accept Area ========== */

.accept-area {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* ========== Email Input Row ========== */

.email-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.email-input-row input[type="radio"] {
    width: auto;
    flex-shrink: 0;
}

.email-input-row input[type="email"] {
    flex: 1;
}

/* ========== Multi Select Dropdown ========== */

.multi-select {
    position: relative;
}

.multi-select-trigger {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
    flex-wrap: wrap;
    gap: 4px;
}

.multi-select-trigger::after {
    content: '▼';
    font-size: 10px;
    color: #666;
    flex-shrink: 0;
    margin-left: 4px;
}

.multi-select.open .multi-select-trigger::after {
    content: '▲';
}

.multi-select-trigger.disabled {
    background: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

.multi-select-placeholder {
    color: #999;
}

.multi-select-tag {
    display: inline-flex;
    align-items: center;
    background: #e8f3fd;
    color: #2e93e6;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 12px;
    gap: 4px;
}

.multi-select-tag-remove {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: #2e93e6;
}

.multi-select-tag-remove:hover {
    color: #c0392b;
}

.multi-select-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.multi-select.open .multi-select-dropdown {
    display: block;
}

.multi-select-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    gap: 8px;
    font-size: 14px;
    transition: background 0.1s;
}

.multi-select-option:hover {
    background: #f0f7ff;
}

.multi-select-option input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.multi-select-option.checked {
    background: #e8f3fd;
}

/* ========== Complete Page ========== */

.complete-section {
    padding: 40px 20px;
    text-align: center;
}

.complete-section h2 {
    font-size: 22px;
    color: #2e93e6;
    margin-bottom: 20px;
}

.complete-section p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.complete-section .note {
    font-size: 13px;
    color: #666;
    margin-top: 20px;
    line-height: 1.6;
}

/* ========== Responsive ========== */

@media screen and (max-width: 600px) {
    .input-half {
        width: 100%;
        display: block;
        margin-bottom: 8px;
    }

    .area-input {
        flex-wrap: wrap;
    }

    header h1 {
        font-size: 16px;
    }
}
