/* 新卒採用ページからの共通スタイルを流用 */
.page-top-image {
    width: 90%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    margin: 80px auto 30px;
    border-radius: 10px;
    display: block;
}
.heading-container {
    text-align: center;
    margin: 40px auto;
}
.heading-container h2 {
    font-size: 32px;
    font-weight: bold;
    color: red;
}
.section-header {
    max-width: 1200px;
    margin: 60px auto 20px;
    padding-left: 20px;
    text-align: left;
}
.section-header h3 {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}
.section-block {
    padding: 40px 0;
}
.bg-light-orange {
    background: linear-gradient(to bottom, 
    rgba(255, 243, 224, 0) 0%,   /* 上を透明にしてぼかす */
    rgba(255, 243, 224, 1) 20%, /* 中央にかけて色を濃く */
    rgba(255, 243, 224, 1) 80%, 
    rgba(255, 243, 224, 0) 100% /* 下も透明にしてぼかす */
    );
}
.bg-white {
    background-color: #ffffff;
}
        
/* 役職別仕事紹介ページ専用スタイル */
.yakusyoku-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}
.yakusyoku-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}
.yakusyoku-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.yakusyoku-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.yakusyoku-card:hover img {
    transform: scale(1.05);
}
.yakusyoku-text {
    padding: 20px;
}
.yakusyoku-text h4 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #003300;
}
.yakusyoku-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.yakusyoku-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}
.yakusyoku-flow-item {
    position: relative;
    flex-shrink: 0;
    width: 200px;
    padding: 15px;
    border: 2px solid #003300;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.yakusyoku-flow-item h4 {
    font-size: 18px;
    color: #003300;
    margin-bottom: 5px;
}
.yakusyoku-flow-item p {
    font-size: 14px;
    color: #666;
}
.yakusyoku-arrow {
    font-size: 40px;
    color: #003300;
    margin: 0 10px;
    display: block;
}
/* キャリアパス画像フェードイン */
.career-single {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 12px;
}

.career-single img {
    width: 100%;
    display: block;
}

/* 幕（左から右にスライドする） */
.career-single::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff3e0;
    transform: translateX(0);
    transition: transform 5.0s ease;
}

/* 表示開始時に幕を右にスライドさせる */
.career-single.visible::after {
    transform: translateX(100%);
}
        
/* レスポンシブデザインのメディアクエリ */
@media (max-width: 768px) {
    .page-top-image {
        margin-top: 120px;
        height: 250px;
    }
    .heading-container h2 {
        font-size: 24px;
    }
    .yakusyoku-gallery {
        flex-direction: column;
        align-items: center;
    }
    .yakusyoku-card {
        width: 90%;
    }
    .yakusyoku-flow {
        flex-direction: column;
    }
    .yakusyoku-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    /* モバイル専用スタイル */
    .bumon-intro {
        flex-direction: column;
    }
    .bumon-intro img {
        width: 100%;
        height: auto;
        border-radius: 12px 12px 0 0;
    }
    .bumon-intro-text {
        width: 100%;
        border-radius: 0 0 12px 12px;
        padding: 20px;
    }
}

/* ここから部門別仕事紹介のスタイル修正 */
.bumon-content-wrapper {
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;
    position: relative; /* 子要素を重ねるための基準 */
    min-height: 400px; /* コンテンツの高さに合わせて調整 */
}
.bumon-intro {
    position: absolute; /* 親要素内で重なるように配置 */
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row; /* デフォルトで横並び */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background-color: #fff;
    pointer-events: none; /* 非表示時にクリックを無効化 */
}
.bumon-intro.active {
    opacity: 1;
    z-index: 10; /* 表示するコンテンツを前面に */
    pointer-events: auto; /* 表示時にクリックを有効化 */
}
.bumon-intro img {
    width: 50%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
}
.bumon-intro-text {
    width: 50%;
    border-radius: 0 12px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}