/* ===================================
   ジョブローテーション
   デザイン：クリーン・ダイナミック・キャリア
=================================== */

:root {
    --primary-blue: #0077b6;
    --accent-blue: #0096c7;
    --dark-navy: #0f172a;
    --text-main: #334155;
    --text-sub: #64748b;
    --border-light: #f1f5f9;
    --bg-light: #f8fafc;
}

/* -----------------------------------
   共通・ユーティリティ
----------------------------------- */
.text-highlight {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: #ffffff;
    padding: 4px 16px;
    margin: 0 0.1em;
    border-radius: 2px;
    display: inline-block;
    font-weight: 700;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-label-num {
    font-family: var(--font-en);
    font-size: clamp(4rem, 12vw, 6rem);
    font-weight: 950;
    color: var(--primary-blue);
    opacity: 0.04;
    line-height: 0.7;
    margin-bottom: -0.3em;
    display: block;
}
.section-main-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 900;
    color: var(--dark-navy);
    letter-spacing: 0.1em;
    position: relative;
}
.section-main-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-blue);
    margin: 20px auto 0;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------------
   Main要素の最初の子要素にマージン
----------------------------------- */
.job-rotation-page > section:first-child {
    margin-top: 80px !important;
}

/* -----------------------------------
   ページヒーロー（ページ固有スタイル）
----------------------------------- */
.page-hero-rotation {
    margin-top: 0 !important;
}

.page-hero-rotation .page-hero-bg img {
    object-position: center center;
}

/* -----------------------------------
   Intro Section
----------------------------------- */
.section-intro {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
}

.intro-lead {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-weight: 800;
    line-height: 1.8;
    color: var(--dark-navy);
}

.intro-lead span { color: var(--primary-blue); }

@media (max-width: 768px) {
    .intro-lead {
        font-size: 1rem;
        line-height: 1.9;
        text-align: center;
    }
}

.intro-sub-text {
    margin-top: 40px;
    font-size: 1rem;
    line-height: 2;
    color: var(--text-main);
    font-weight: 500;
}

/* -----------------------------------
   Career Path Combined Section
----------------------------------- */
.section-roadmap-combined {
    padding: 0 0 120px;
    background: var(--bg-light);
    position: relative;
    margin-top: -60px;
    z-index: 5;
}

/* キャリアプラン見出しラッパー */
.career-plan-header-wrapper {
    position: relative;
    padding: 80px 0 40px;
    margin-bottom: 40px;
}

.career-plan-header {
    text-align: center;
}

.career-plan-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.career-plan-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.career-plan-lead {
    font-size: 1.125rem;
    color: var(--text-gray);
    letter-spacing: 0.05em;
}

.career-path-container {
    max-width: 1200px;
    margin: 60px auto 0;
    display: flex;
    align-items: stretch;
}

.path-block {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.path-step-header {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    min-height: 60px; /* 高さを縮小 */
}

/* ステップごとの背景色指定（深度表現） */
.step-1 .path-step-header { background: #48cae4; color: #ffffff; }
.step-2 .path-step-header { background: #00b4d8; }
.step-3 .path-step-header { background: #0096c7; }
.step-4 .path-step-header { background: #0077b6; }

.p-year {
    font-family: var(--font-en);
    font-size: 1rem;
    font-weight: 800;
}

.path-assignment {
    font-size: 0.9375rem;
    font-weight: 950;
    color: var(--primary-blue);
    margin-bottom: 15px;
    min-height: 3em; /* 高さを揃える */
    display: flex;
    align-items: center;
    justify-content: center;
}

.path-content {
    padding: 24px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.path-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.p-tag {
    background: var(--bg-light);
    color: var(--primary-blue);
    padding: 8px;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 800;
    border: 2px solid var(--primary-blue);
    text-align: center;
    line-height: 1.3;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 三角形・フロー装飾（横向き） */
.path-flow-divider {
    width: 25px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 5;
    flex-shrink: 0;
    margin-left: -1px;
}

.path-flow-divider::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 25px; /* 右向きの三角形 */
    border-color: transparent transparent transparent var(--border-light);
}

.path-flow-divider::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 18px 0 18px 23px; /* 内側の白い三角形 */
    border-color: transparent transparent transparent #ffffff;
    z-index: 1;
    left: 0;
}

/* 特徴見出し */
.path-features-wrapper {
    position: relative;
    padding: 80px 0 0;
    margin-top: 80px;
}

.path-features-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background-image: url('../../../images/work/buturyukanri.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 calc(100% - 50px));
}

.path-features-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.9) 0%, rgba(0, 150, 199, 0.85) 100%);
    clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 calc(100% - 50px));
}

.path-features-header {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 60px 0;
}

.path-features-label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.875rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3em;
    margin-bottom: 16px;
}

.path-features-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.path-features-lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 60px;
}

/* 詳細説明エリア */
.path-detail-grid {
    display: flex;
    gap: 0;
    margin-top: -20px;
    position: relative;
    z-index: 20;
}

.detail-item-v2 {
    flex: 1;
    padding: 60px 25px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    transform: translateY(0);
}

.detail-item-v2:nth-child(2) {
    transform: translateY(-30px);
}


.detail-item-v2:nth-child(1) {
    background: linear-gradient(180deg, var(--primary-blue) 0%, #005f8f 100%);
    clip-path: polygon(0 0, 100% 20px, 100% 100%, 0 calc(100% - 20px));
}

.detail-item-v2:nth-child(2) {
    background: linear-gradient(180deg, #0096c7 0%, #007090 100%);
}

.detail-item-v2:nth-child(3) {
    background: linear-gradient(180deg, #48cae4 0%, #00b4d8 100%);
    clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%);
}

.detail-num {
    display: block;
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.detail-title-v2 {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.5;
}

.detail-text-v2 {
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-align: center;
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
    .career-path-container {
        flex-direction: column;
    }
    
    .path-flow-divider {
        height: 15px;
        width: 100%;
        margin: -1px 0;
        justify-content: center;
        align-items: flex-start;
    }
    
    .path-flow-divider::after {
        border-width: 12px 15px 0 15px;
        border-color: var(--border-light) transparent transparent transparent;
    }
    
    .path-flow-divider::before {
        border-width: 10px 13px 0 13px;
        border-color: #ffffff transparent transparent transparent;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
    }

    .path-features-wrapper::before,
    .path-features-wrapper::after {
        height: 350px;
        clip-path: polygon(0 0, 100% 30px, 100% 100%, 0 calc(100% - 30px));
    }

    .path-detail-grid {
        flex-direction: column;
        gap: 0;
    }
    
    .detail-item-v2 {
        transform: translateY(0) !important;
    }
    
    .detail-item-v2:nth-child(1),
    .detail-item-v2:nth-child(3) {
        clip-path: none;
    }
}

@media (max-width: 768px) {
    .section-roadmap-combined {
        padding: 0 0 80px;
        margin-top: -30px;
    }
    
    .career-plan-header-wrapper {
        padding: 60px 0 30px;
        margin-bottom: 30px;
    }
    
    .career-plan-label {
        font-size: 0.75rem;
    }
    
    .career-plan-title {
        font-size: 1.5rem;
    }
    
    .career-plan-lead {
        font-size: 0.875rem;
    }
    
    .path-features-wrapper {
        margin-top: 60px;
        padding: 60px 0 0;
    }
    
    .path-features-wrapper::before,
    .path-features-wrapper::after {
        height: 300px;
        clip-path: none;
    }
    
    .path-features-header {
        padding: 40px 20px;
    }
    
    .path-features-title {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
    }
    
    .path-features-lead {
        margin-bottom: 40px;
    }
    
    .detail-item-v2 {
        padding: 30px 15px;
    }
    
    .detail-title-v2 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .detail-text-v2 {
        font-size: 0.8125rem;
        line-height: 1.7;
    }
    
    .path-features-label {
        font-size: 0.75rem;
    }
    
    .path-features-title {
        font-size: 1.25rem;
    }
    
    .path-features-lead {
        font-size: 0.875rem;
        margin-bottom: 30px;
    }
    
    .section-training {
        padding: 100px 0 80px;
        margin-top: -40px;
    }
    
    .section-training::before {
        display: none;
    }
    
    .training-footer {
        clip-path: polygon(0 20px, 100% 0, 100% calc(100% - 20px), 0 100%);
        padding: 60px 20px;
    }
}

/* -----------------------------------
   Training Section
----------------------------------- */
.section-training {
    padding: 150px 0 100px;
    background: #ffffff;
    position: relative;
    margin-top: -80px;
    z-index: 1;
}

.section-training::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url('../../../images/work/ekibiru.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.03;
    pointer-events: none;
}

.training-intro {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-navy);
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.training-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.training-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.training-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.training-card:hover .training-image img {
    transform: scale(1.05);
}

.training-content {
    padding: 30px;
    flex: 1;
}

.training-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-blue);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 2px;
    margin-bottom: 15px;
}

.training-title {
    font-size: 1.25rem;
    font-weight: 950;
    color: var(--dark-navy);
    margin-bottom: 15px;
}

.training-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-main);
    font-weight: 500;
}

.training-footer {
    text-align: center;
    margin-top: 100px;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    position: relative;
    clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
    border: 1px solid rgba(0, 119, 182, 0.08);
    position: relative;
}

.training-footer::before {
    display: none;
    border-radius: 2px;
}

.training-footer-message {
    display: flex;
    flex-direction: column;
    gap: 12px;
    line-height: 1.6;
}

.training-footer-message p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.tf-text {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.tf-keyword {
    font-size: 1.125rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 20px;
    margin: 0 4px;
    display: inline-block;
    transform: skewX(-5deg);
    position: relative;
}

.tf-emphasis {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.tf-highlight {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 950;
    color: #ffffff;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-5deg);
}

.footer-line-2 {
    margin-top: 8px !important;
}

.footer-line-3 {
    margin-top: 4px !important;
}

.footer-line-4 {
    margin-top: 12px !important;
}

@media (max-width: 768px) {
    .training-footer {
        padding: 40px 20px;
        margin-top: 60px;
    }
    
    .training-footer-message {
        gap: 8px;
    }
    
    .tf-text {
        font-size: 0.9375rem;
    }
    
    .tf-keyword {
        font-size: 1rem;
        padding: 3px 10px;
    }
    
    .tf-emphasis {
        font-size: 1.125rem;
    }
    
    .tf-highlight {
        font-size: 1.5rem;
    }
}

/* -----------------------------------
   Responsive
----------------------------------- */
@media (max-width: 1024px) {
    .career-roadmap, .training-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .career-roadmap, .training-grid {
        grid-template-columns: 1fr;
    }
    .detail-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .section-intro, .section-roadmap, .section-detail {
        padding: 60px 0;
    }
    .detail-card {
        padding: 40px 20px;
    }
}
