/* recruit pages UI Enhancements */
/* Version 1.0.0 - 採用ページ専用UIエンハンスメント */

/* ========================================
   1. 採用カード ホバーエフェクト
   ======================================== */

/* 募集職種カード */
.position-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.position-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 122, 123, 0.05) 0%, rgba(79, 209, 197, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.position-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.position-card:hover::before {
    opacity: 1;
}

/* 勤務地カード */
.clinic-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.clinic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.clinic-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.clinic-card:hover::before {
    opacity: 1;
}

/* 福利厚生カード */
.benefit-card {
    transition: all 0.3s ease;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 募集要項カード */
.requirements-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.requirements-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ========================================
   2. セクションタイトル統一デザイン
   ======================================== */

.section-title-recruit {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
    text-align: center;
}

.section-title-recruit::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2C7A7B, #4FD1C5);
    border-radius: 2px;
}

.section-title-recruit h2 {
    font-size: 2.2rem;
    color: #2C7A7B;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title-recruit p {
    font-size: 1.05rem;
    color: #4A5568;
    line-height: 1.7;
}

/* ========================================
   3. CTAボタン強化
   ======================================== */

.btn-recruit-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2C7A7B, #4FD1C5);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(44, 122, 123, 0.3);
}

.btn-recruit-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-recruit-cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn-recruit-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 122, 123, 0.4);
}

.btn-recruit-cta:active {
    transform: translateY(-1px);
}

/* 応募ボタン（強調版） */
.btn-apply {
    background: linear-gradient(135deg, #F6AD55, #FBD38D);
    box-shadow: 0 4px 15px rgba(246, 173, 85, 0.3);
}

.btn-apply:hover {
    box-shadow: 0 8px 25px rgba(246, 173, 85, 0.4);
}

/* ========================================
   4. スクロールアニメーション
   ======================================== */

/* フェードイン from bottom */
.fade-in-up-recruit {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up-recruit.visible {
    opacity: 1;
    transform: translateY(0);
}

/* フェードイン（通常） */
.fade-in-recruit {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in-recruit.visible {
    opacity: 1;
}

/* 左からスライドイン */
.slide-in-left-recruit {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left-recruit.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 右からスライドイン */
.slide-in-right-recruit {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right-recruit.visible {
    opacity: 1;
    transform: translateX(0);
}

/* スケールアップアニメーション */
.scale-up-recruit {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-up-recruit.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   5. アイコンボックス
   ======================================== */

.icon-box-recruit {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2C7A7B, #4FD1C5);
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(44, 122, 123, 0.2);
    transition: all 0.3s ease;
}

.icon-box-recruit:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 6px 18px rgba(44, 122, 123, 0.3);
}

/* 福利厚生アイコン */
.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4FD1C5, #81E6D9);
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.benefit-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* ========================================
   6. バッジ・タグ
   ======================================== */

.badge-recruit {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.badge-recruit:hover {
    transform: scale(1.05);
}

.badge-fulltime {
    background: linear-gradient(135deg, #2C7A7B, #4FD1C5);
    color: white;
}

.badge-parttime {
    background: linear-gradient(135deg, #F6AD55, #FBD38D);
    color: white;
}

.badge-urgent {
    background: linear-gradient(135deg, #EF4444, #F87171);
    color: white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ========================================
   7. グリッドレイアウト改善
   ======================================== */

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ========================================
   8. テーブルスタイル
   ======================================== */

.requirements-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.requirements-table tr {
    transition: background-color 0.3s ease;
}

.requirements-table tr:hover {
    background-color: #F0F9FF;
}

.requirements-table th {
    background: linear-gradient(135deg, #2C7A7B, #4FD1C5);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: left;
}

.requirements-table td {
    padding: 1rem;
    border-bottom: 1px solid #E2E8F0;
}

/* ========================================
   9. ヘロー・メッセージセクション
   ======================================== */

.recruit-hero {
    background: linear-gradient(135deg, #2C7A7B, #4FD1C5);
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.recruit-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

.recruit-message-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.recruit-message-box:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* ========================================
   10. レスポンシブ調整
   ======================================== */

@media screen and (max-width: 768px) {
    .position-card:hover,
    .clinic-card:hover {
        transform: translateY(-4px);
    }
    
    .section-title-recruit h2 {
        font-size: 1.8rem;
    }
    
    .section-title-recruit::after {
        width: 60px;
        height: 3px;
    }
    
    .btn-recruit-cta {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .positions-grid,
    .clinics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .icon-box-recruit {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .fade-in-up-recruit,
    .slide-in-left-recruit,
    .slide-in-right-recruit,
    .scale-up-recruit {
        /* モバイルではアニメーション無効化（パフォーマンス向上） */
        opacity: 1 !important;
        transform: none !important;
    }
    
    .recruit-message-box {
        padding: 25px;
    }
    
    .section-title-recruit h2 {
        font-size: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   11. アクセシビリティ改善
   ======================================== */

.position-card:focus,
.clinic-card:focus,
.btn-recruit-cta:focus {
    outline: 3px solid #4FD1C5;
    outline-offset: 3px;
}

/* リンクのアクティブ状態 */
.position-card:active,
.clinic-card:active {
    opacity: 0.9;
}

/* ========================================
   12. プリント対応
   ======================================== */

@media print {
    .position-card,
    .clinic-card,
    .benefit-card,
    .requirements-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .fade-in-up-recruit,
    .slide-in-left-recruit,
    .slide-in-right-recruit,
    .scale-up-recruit {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .btn-recruit-cta {
        background: #2C7A7B;
        color: white;
    }
}
