/* 求人応募ページのスタイル */

/* ページ全体のコンテナ */
.application-page-wrapper {
    background: #f9fafb;
    min-height: 100vh;
    padding: 20px 0;
}

.application-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* エラーメッセージ */
.error-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
}

.error-message h1 {
    color: #ef4444;
    margin: 0 0 20px 0;
    font-size: 2rem;
}

.error-message p {
    color: #6b7280;
    margin: 0 0 30px 0;
    font-size: 1.1rem;
}

.error-message .url-example {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0 0 30px 0;
}

.error-message .back-button {
    display: inline-block;
    padding: 15px 30px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
}

/* 成功・エラーメッセージ */
.success-message {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.success-message h2 {
    margin: 0 0 15px 0;
    color: #065f46;
}

.success-message p {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
}

.success-message .return-button {
    display: inline-block;
    padding: 12px 25px;
    background: #10b981;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.form-error-message {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #dc2626;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.form-error-message h2 {
    margin: 0 0 15px 0;
    color: #dc2626;
}

.form-error-message p {
    margin: 0;
    font-size: 1.1rem;
}

/* ページヘッダー */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px;
    border: 2px solid #f59e0b;
}

.page-header h1 {
    color: #92400e;
    margin: 0 0 15px 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.page-header h2 {
    color: #92400e;
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.page-header p {
    color: #d97706;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

/* 応募フォーム */
.application-form {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 35px rgba(0,0,0,0.12);
    border: 1px solid #e5e7eb;
}

/* フォームグリッド */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* 名前セクションのグリッド */
.name-section {
    margin-bottom: 30px;
}

.name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.furigana-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field-full {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

/* ラベル */
.form-label {
    font-weight: 700;
    color: #374151;
    font-size: 1.1rem;
}

.required-mark {
    color: #ef4444;
}

/* 入力フィールド */
.form-input {
    padding: 18px 20px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
    outline: none;
}

.form-textarea {
    padding: 18px 20px;
    border: 2px solid #d1d5db;
    border-radius: 12px;
    font-size: 1.1rem;
    resize: vertical;
    min-height: 140px;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.6;
}

.form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
    outline: none;
}

.form-textarea.experience {
    min-height: 120px;
}

/* 郵便番号検索 */
.postal-code-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.postal-code-input {
    width: 200px;
}

.address-search-button {
    padding: 18px 25px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.address-search-button:hover {
    background: #4f46e5;
}

/* 送信ボタン */
.submit-container {
    text-align: center;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.3);
    font-family: inherit;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(16, 185, 129, 0.4);
}

.submit-button .icon {
    font-size: 1.4rem;
}

/* 戻るリンク */
.return-link-container {
    text-align: center;
    margin-top: 40px;
}

.return-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.return-link:hover {
    color: #3b82f6;
}

/* バリデーションメッセージ */
.validation-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #dc2626;
    padding: 20px 30px;
    border-radius: 15px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    max-width: 90%;
    text-align: center;
}

.validation-message.success {
    background: #10b981;
    color: white;
    border: none;
    top: 20px;
    right: 20px;
    left: auto;
    transform: none;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* フィールドエラー状態 */
.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    background-color: #fef2f2;
}

.form-input.success {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    background-color: #f0fdf4;
}

.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    background-color: #fef2f2;
}

.form-textarea.success {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    background-color: #f0fdf4;
}

/* 住所フィールドの成功状態 */
.address-success {
    background-color: #f0f9ff;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .application-container {
        padding: 15px !important;
    }
    
    .form-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .name-grid,
    .furigana-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .application-form {
        padding: 30px 25px !important;
    }
    
    .page-header h1 {
        font-size: 1.8rem !important;
    }
    
    .page-header h2 {
        font-size: 1.3rem !important;
    }
    
    .postal-code-input {
        width: 100% !important;
    }
    
    .postal-code-container {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .address-search-button {
        width: 100%;
    }
    
    .submit-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}