/* enquete.css - アンケートページスタイル */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e7dd 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #b8e6d3 0%, #a8d8ea 100%);
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.header::before,
.header::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="8" fill="%23a8d8ea" opacity="0.6"/><circle cx="60" cy="30" r="12" fill="%23b8e6d3" opacity="0.5"/><circle cx="40" cy="60" r="6" fill="%236bb6ff" opacity="0.4"/></svg>') no-repeat;
    background-size: contain;
}

.header::before {
    top: 10px;
    left: 20px;
}

.header::after {
    top: 10px;
    right: 20px;
    transform: scaleX(-1);
}

.logo {
    color: #4a90a4;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.form-content {
    padding: 30px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.form-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #6bb6ff;
}

.form-description p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.benefits-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #bbdefb;
}

.benefits-title {
    font-size: 18px;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 15px;
}

.benefits-list {
    font-size: 14px;
    line-height: 1.7;
    color: #424242;
}

.section-header {
    background: #6bb6ff;
    color: white;
    padding: 15px 20px;
    margin: 30px -30px 20px -30px;
    font-weight: 600;
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.required {
    color: #e53e3e;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #6bb6ff;
    box-shadow: 0 0 0 3px rgba(107, 182, 255, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-item:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.radio-item input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.radio-item.checked {
    background: #ebf8ff;
    border-color: #6bb6ff;
}

.select-wrapper {
    position: relative;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    appearance: none;
}

.form-select:focus {
    outline: none;
    border-color: #6bb6ff;
    box-shadow: 0 0 0 3px rgba(107, 182, 255, 0.1);
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6bb6ff;
    pointer-events: none;
}

.textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #6bb6ff;
    color: white;
}

.btn-primary:hover {
    background: #5aa3f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 182, 255, 0.3);
    color: white;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
    color: #4a5568;
}

.helper-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* アラートスタイル */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    .form-content {
        padding: 20px;
    }
    
    .section-header {
        margin: 20px -20px 15px -20px;
        padding: 12px 20px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header::before,
    .header::after {
        width: 60px;
        height: 60px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .benefits-section {
        padding: 15px;
    }
    
    .benefits-list {
        font-size: 13px;
    }
}

/* フォーカス・アクセシビリティ改善 */
.form-input:focus,
.form-select:focus {
    outline: 2px solid #6bb6ff;
    outline-offset: 2px;
}

.radio-item input[type="radio"]:focus {
    outline: 2px solid #6bb6ff;
    outline-offset: 2px;
}

/* スクロール時のスムーズな動作 */
html {
    scroll-behavior: smooth;
}

/* プリント時の調整 */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .header {
        background: #f8f9fa !important;
        color: #333 !important;
    }
    
    .logo {
        color: #333 !important;
    }
    
    .section-header {
        background: #333 !important;
        color: white !important;
    }
}