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

/* ハニーポットフィールド（スパム対策） - 人間には見えない */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    background: linear-gradient(135deg, #e60310 0%, #b30208 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #e60310 0%, #b30208 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

header h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

form {
    padding: 50px 40px;
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
}

label.required::after {
    content: " *";
    color: #e60310;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #ffffff;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
textarea:hover {
    border-color: #cbd5e0;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #e60310;
    box-shadow: 0 0 0 4px rgba(230, 3, 16, 0.1);
    background: #ffffff;
}

textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
    background: #ffffff;
}

.radio-label:hover {
    background: #fff5f5;
    border-color: #e60310;
}

.radio-label input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #e60310;
}

.name-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.phone-group {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

.phone-group span {
    color: #718096;
    font-weight: 600;
    font-size: 18px;
}

input[type="file"] {
    padding: 12px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f7fafc;
}

input[type="file"]:hover {
    border-color: #e60310;
    background: #fff5f5;
}

.help-text {
    margin-top: 10px;
    font-size: 13px;
    color: #718096;
    line-height: 1.7;
    background: #f7fafc;
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 3px solid #e60310;
}

.form-actions {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f7fafc;
}

.submit-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 16px 70px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.3);
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(107, 114, 128, 0.4);
    background: linear-gradient(135deg, #7c8592 0%, #5a6573 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.message {
    margin: 0;
    padding: 25px 30px;
    display: none;
    text-align: center;
    font-weight: 700;
    font-size: 17px;
    border-bottom: 3px solid;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.message.success::before {
    content: "✓ ";
    font-size: 22px;
    margin-right: 8px;
}

.message.error {
    display: block;
    background: #ffe5e8;
    color: #b30208;
    border-color: #e60310;
}

.message.error::before {
    content: "⚠ ";
    font-size: 22px;
    margin-right: 8px;
}

footer {
    padding: 25px 40px;
    background: linear-gradient(to bottom, #f7fafc, #edf2f7);
    border-top: 1px solid #e2e8f0;
}

.ssl-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

.ssl-icon {
    font-size: 20px;
    color: #e60310;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    form {
        padding: 30px 20px;
    }

    header {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 22px;
    }

    .name-group,
    .phone-group {
        grid-template-columns: 1fr;
    }

    .phone-group span {
        display: none;
    }

    .submit-btn {
        padding: 14px 50px;
        font-size: 16px;
        width: 100%;
    }

    .message {
        margin: 0 20px 20px;
        padding: 15px;
        font-size: 14px;
    }
}
