/* フォーム共通スタイル */
.form-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.page-subtitle {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 3px;
    opacity: 0.9;
    margin: 0;
}

/* フォーム通知 */
.form-notice {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-notice p {
    margin: 10px 0;
    line-height: 1.7;
}

.form-notice .required {
    color: #e74c3c;
    font-weight: bold;
}

.inline-link {
    color: #667eea;
    text-decoration: underline;
    font-weight: 600;
}

.inline-link:hover {
    color: #764ba2;
}

/* フォーム本体 */
.application-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1rem;
}

.form-group label.required::after {
    content: '';
}

.form-group .required {
    color: #e74c3c;
    margin-left: 4px;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 郵便番号・電話番号グループ */
.zipcode-group,
.phone-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zipcode-group input,
.phone-group input {
    flex: 1;
    min-width: 0;
}

.zipcode-group span,
.phone-group span {
    font-weight: 600;
    color: #7f8c8d;
}

/* ヘルプテキスト */
.help-text,
.notice-text {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-top: 6px;
    line-height: 1.6;
}

.notice-text {
    margin-bottom: 12px;
}

/* チェックボックスグループ */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.checkbox-label:hover {
    background: #f0f2f5;
    border-color: #667eea;
}

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

.checkbox-label input[type="checkbox"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

/* アコーディオンセクション */
.accordion-section {
    margin: 30px 0;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.accordion-button {
    width: 100%;
    padding: 18px 20px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.accordion-button:hover {
    background: #e9ecef;
}

.accordion-button[aria-expanded="true"] {
    background: #667eea;
    color: white;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.accordion-button[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 20px;
}

.accordion-content.active {
    max-height: 2000px;
    padding: 20px;
}

/* ボタン */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.btn-submit,
.btn-primary,
.btn-secondary {
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    letter-spacing: 1px;
}

.btn-submit,
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-submit:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* 確認画面 */
.confirm-data {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 2px solid #e0e6ed;
}

.confirm-data .data-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.confirm-data .data-row:last-child {
    border-bottom: none;
}

.confirm-data .data-label {
    font-weight: 700;
    color: #2c3e50;
}

.confirm-data .data-value {
    color: #34495e;
    line-height: 1.7;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .application-form {
        padding: 25px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-submit,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 14px 20px;
    }
    
    .confirm-data .data-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .confirm-data .data-label {
        padding-bottom: 5px;
        border-bottom: 2px solid #667eea;
    }
    
    .zipcode-group,
    .phone-group {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 40px 15px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .form-section {
        padding: 40px 15px;
    }
}
