/* --- 変数定義（このページ固有で使用している色など） --- */
:root {
    --tosco-blue: #004493;
    --tosco-cyan: #00A0E9;
    --bg-gray: #F2F2F2;
    --font-base: 'Noto Sans JP', sans-serif;
    --font-en: 'Oswald', sans-serif;
}

/* 基本スタイル（body, img, aなど）や
   Header, Footer に関する記述は style.css で一元管理するため削除しました。
*/


/* --- Hero (スライドショー 6枚版) --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
}

/* --- アニメーション設定 (6枚構成) --- */
/* Total Duration: 30s (6s per slide)
   Fade Animation: fadeSlide (Common)
   Movement: Specific per slide
*/

/* 共通フェード設定：30秒で1周 */
.hero-slide {
    animation-duration: 30s;
    /* 全体で30秒 */
    animation-iteration-count: infinite;
    animation-name: fadeSlide;
    /* フェードの動きは共通 */
}

/* 個別の動き設定 (Movement) と 開始遅延 (Delay) */

/* 1. ズームイン */
.slide-1 {
    animation-delay: 0s;
    /* 動き: 7秒かけて1.25倍へ拡大 */
    animation-name: fadeSlide, zoomIn;
    animation-duration: 30s, 7s;
}

/* 2. 左へ移動 */
.slide-2 {
    animation-delay: 6s;
    animation-name: fadeSlide, moveLeft;
    animation-duration: 30s, 7s;
}

/* 3. ズームアウト（右下へ） */
.slide-3 {
    animation-delay: 12s;
    animation-name: fadeSlide, zoomOutRight;
    animation-duration: 30s, 7s;
}

/* 4. 右へ移動 */
.slide-4 {
    animation-delay: 18s;
    animation-name: fadeSlide, moveRight;
    animation-duration: 30s, 7s;
}

/* 5. 上へ移動 */
.slide-5 {
    animation-delay: 24s;
    animation-name: fadeSlide, moveUp;
    animation-duration: 30s, 7s;
}

/* 6. 大きくズームイン - 削除済み（5枚構成のため）
.slide-6 {
    animation-delay: 30s;
    animation-name: fadeSlide, zoomInBig;
    animation-duration: 30s, 7s;
}
*/


/* --- キーフレーム定義 --- */

/* フェード切り替え (30秒サイクルのうち6秒間だけ表示) */
/* 0%~20% が「自分の番」（5枚構成） */
@keyframes fadeSlide {
    0% {
        opacity: 0;
        z-index: 1;
    }

    2.5% {
        opacity: 1;
    }

    /* 0.75秒でフェードイン */
    19% {
        opacity: 1;
    }

    /* 5.7秒まで表示キープ */
    21% {
        opacity: 0;
        z-index: 0;
    }

    /* 6.3秒でフェードアウト */
    100% {
        opacity: 0;
    }
}

/* 動きのバリエーション (Duration: 7s - 少し長めにして動き続けるように) */

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.25);
    }

    /* 拡大率アップ */
}

@keyframes moveLeft {
    0% {
        transform: scale(1.15) translateX(0);
    }

    100% {
        transform: scale(1.15) translateX(-8%);
    }

    /* 移動距離アップ */
}

@keyframes zoomOutRight {
    0% {
        transform: scale(1.3) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(5%, 5%);
    }
}

@keyframes moveRight {
    0% {
        transform: scale(1.15) translateX(0);
    }

    100% {
        transform: scale(1.15) translateX(8%);
    }
}

@keyframes moveUp {
    0% {
        transform: scale(1.2) translateY(5%);
    }

    100% {
        transform: scale(1.2) translateY(-5%);
    }
}

@keyframes zoomInBig {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1.4);
    }

    /* 大きくズーム */
}


/* フィルターとコンテンツ（既存ママ） */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
    margin-top: 60px;
    color: #fff;
}

.hero-title-en {
    font-family: var(--font-en);
    font-size: 47px;
    line-height: 0.95;
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    line-height: 1.5;
}

.hero-title-jp {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-nav-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--tosco-blue);
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-family: var(--font-en);
    font-size: 14px;
    letter-spacing: 1px;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(0, 68, 147, 0.5);
    transition: 0.3s;
}

.hero-nav-btn:hover {
    background: var(--tosco-cyan);
    transform: translateY(-3px);
}

/* PC用背景画像のSP非表示設定 */
.hero-bg-pc {
    display: none;
}



/* --- Environment --- */
.env-section {
    background: #fff;
    padding-top: 80px;
    padding-bottom: 0;
    position: relative;
    z-index: 2;
}

.env-header {
    position: relative;
    z-index: 2;
    width: 92.5%;
    max-width: 1440px;
    margin: 0 auto 60px;
}

.env-title {
    font-family: 'Oswald', sans-serif;
    font-size: 44px;
    font-weight: 700;
    margin: 0;
    line-height: 0.9;
    text-transform: uppercase;
    color: #111;
    transform: scaleY(1.1);
}

.env-sub {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    display: block;
    margin-top: 12px;
}

.env-skew-wrapper {
    width: 100%;
    transform: skewY(-10deg);
    transform-origin: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.env-row {
    display: block;
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
    border-bottom: 5px solid #fff;
}

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

.env-content {
    width: 100%;
    height: 100%;
    position: relative;
    transform: skewY(10deg) scale(1.5);
    transform-origin: center;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.env-img {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    filter: brightness(0.75);
    transition: transform 0.4s ease;
}

.env-text-group {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 10px;
    margin: 15px 0 0;
}

.env-text-group h3 {
    font-size: 19px;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.env-text-group p {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.env-row:hover .env-img {
    transform: scale(1.05);
    filter: brightness(0.85);
}


/* --- MEMBER SECTION --- */
.member-section {
    position: relative;
    padding: 40px 0 60px;
    background: transparent;
    z-index: 1;
    overflow: hidden;
    /* PCのはみ出し対策 */
}

/* 白背景と斜めカット（下側） */
.member-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* SP: グリッドレイアウト */
.member-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.member-card {
    display: block;
}

/* SP: 偶数番目を下にずらす（ジグザグ） */
.member-card:nth-child(even) {
    margin-top: 40px;
}

/* SP: 8番目以降（ループ用クローン）のみ非表示 = 7人全員表示 */
.member-card:nth-child(n+8) {
    display: none;
}

/* 画像シェイプ（SPは長方形のまま） */
.member-img-shape {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: rotate(0deg);
    /* 初期化 */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1) rotate(0deg);
    /* 初期化 */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.member-info {
    margin-top: 15px;
}

/* 職種と名前の横並びヘッダー */
.m-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
}

.m-role {
    font-size: 13px;
    color: #444;
    font-weight: 500;
}

.m-name {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.m-year {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin: 0 0 2px;
}

/* 卒業学科・学部 */
.m-dept {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

/* ボタンエリア */
.btn-area {
    text-align: center;
    position: relative;
    z-index: 10;
    margin-bottom: -50px;
}

.btn-interview {
    display: inline-block;
    background: #0088EA;
    color: #fff;
    padding: 15px 60px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(0, 136, 234, 0.4);
    position: relative;
}

.btn-interview::after {
    content: '>';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    background: #fff;
    color: #0088EA;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 白背景と斜めカット（下側） */
.member-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.member-container {
    width: 92.5%;
    max-width: 1200px;
    margin: 0 auto;
}

.member-header {
    text-align: right;
    margin-bottom: 40px;
}

.member-title {
    font-family: 'Oswald', sans-serif;
    font-size: 44px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    transform: scaleY(1.1);
    color: #111;
}

.member-sub {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-top: 12px;
    display: block;
}

.member-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.member-card {
    display: block;
}

.member-card:nth-child(even) {
    margin-top: 40px;
}

.member-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-info {
    margin-top: 15px;
}

/* 職種と名前の横並びヘッダー */
.m-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 3px;
}

.m-role {
    font-size: 13px;
    color: #444;
    font-weight: 500;
}

.m-name {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.m-year {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin: 0 0 2px;
}

/* 卒業学科・学部 */
.m-dept {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

/* ボタンエリア */
.btn-area {
    text-align: center;
    position: relative;
    z-index: 10;
    margin-bottom: -50px;
}

.btn-interview {
    display: inline-block;
    background: #0088EA;
    color: #fff;
    padding: 15px 60px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(0, 136, 234, 0.4);
    position: relative;
}

.btn-interview::after {
    content: '>';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    background: #fff;
    color: #0088EA;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- BOTTOM GRAY WRAPPER --- */
.bottom-gray-wrapper {
    position: relative;
    z-index: 1;
    margin-top: -80px;
    padding-top: 150px;
    padding-bottom: 60px;
}

/* 斜めにカットされた背景（トスコロゴ風グラデーション） */
.bottom-gray-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0068B7 0%, #00A0E9 50%, #8DC21F 85%, #D4E600 100%);
    z-index: -1;
    clip-path: polygon(0 650px, 100% 0, 100% 100%, 0% 100%);
}


/* --- Stacked Links --- */
.stacked-links {
    width: 100%;
    padding: 40px 0;
}

.stack-item {
    display: block;
    position: relative;
    width: 80%;
    height: 140px;
    overflow: visible;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* SP用: 画像コンテナ */
.stack-bg-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* SP用: PC用コンテンツを非表示 */
.stack-content {
    display: none;
}

.stack-item.right-align {
    margin-left: auto;
}

.stack-item.left-align {
    margin-right: auto;
}

.stack-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.stack-item:hover .stack-bg {
    transform: scale(1.05);
}

.stack-label {
    position: absolute;
    bottom: 20px;
    background: #fff;
    padding: 10px 20px 10px 15px;
    font-size: 13px;
    font-weight: bold;
    color: #004493;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

/* ラベル位置調整 - 画面端から出る */
.stack-item.right-align .stack-label {
    left: -25%;
    border-radius: 0 50px 50px 0;
}

.stack-item.left-align .stack-label {
    right: -25%;
    border-radius: 50px 0 0 50px;
    flex-direction: row-reverse;
}

.stack-label span {
    background: #004493;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* --- Culture Header --- */
.culture-header {
    width: 92.5%;
    max-width: 1440px;
    margin: 0 auto 40px;
}

.culture-title {
    font-family: 'Oswald', sans-serif;
    font-size: 44px;
    font-weight: 700;
    margin: 0;
    line-height: 0.9;
    text-transform: uppercase;
    color: #000;
    transform: scaleY(1.1);
}

.culture-sub {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    display: block;
    margin-top: 12px;
}

/* --- Join Us --- */
.join-section {
    text-align: center;
    padding: 80px 20px 40px;
    color: #fff;
}

.join-title {
    font-family: 'Oswald', sans-serif;
    font-size: 50px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.join-desc {
    font-size: 13px;
    margin-top: 15px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.join-banners {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
}

.join-banner-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.join-banner-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.join-banner-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 旧スタイル（使用しない場合は削除可） */
.external-btn {
    display: block;
    background: #fff;
    color: #333;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sub-banners {
    display: flex;
    gap: 10px;
}

.external-btn.small {
    flex: 1;
    font-size: 12px;
    padding: 10px;
}

.nav-brand {
    color: #00A0E9;
    font-weight: 900;
    margin-right: 5px;
}

.btn-highlight {
    color: #00A0E9;
}

.btn-highlight-red {
    color: #f00;
}


/* ========================================
   レスポンシブ対応（PC画面）
======================================== */

/* タブレット（768px〜1023px） */
@media (min-width: 768px) {
    /* ヒーローセクション */
    .hero {
        padding: 150px 40px 60px;
        text-align: center;
    }

    .hero-title-en {
        font-size: 60px;
        margin-bottom: 40px;
    }

    .hero-title-jp {
        font-size: 24px;
        margin-bottom: 40px;
        list-style: 1.5;
    }

    .hero-nav-btn {
        max-width: 400px;
        margin: 0 auto;
        padding: 18px 30px;
        font-size: 16px;
    }

    /* MEMBERセクション */
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .member-card:nth-child(even) {
        margin-top: 40px;
    }

    .member-img {
        height: 300px;
    }
}


/* =========================================
   PC LAYOUT (min-width: 1024px)
   ========================================= */
@media screen and (min-width: 1024px) {

    /* --- Hero (PC) --- */
    .hero {
        padding: 0;
        height: 100vh;
        min-height: 700px;
        display: flex;
        align-items: center;
        position: relative;
    }

    .hero-content {
        text-align: left;
        padding-left: 10%;
        /* 左端からの余白 */
        margin-top: 0;

        /* ▼▼▼ 修正箇所：左半分に寄せる設定 ▼▼▼ */
        width: 100%;
        /* 横幅を画面の50%に制限 */
        margin-left: 0;
        /* 左寄せ */
        margin-right: auto;
        /* ▲▲▲ 修正ここまで ▲▲▲ */
    }

    .hero-title-en {
        font-size: 6vw;
        margin-bottom: 40px;
        line-height: 1.1;
    }

    .hero-title-jp {
        font-size: 30px;
    }

    .hero-bg-pc {
        display: none !important;
    }

    /* --- Environment (PC) - 画面幅いっぱいのセンターカット --- */
    .env-section {
        padding: 120px 0 0;
        overflow: hidden;
    }

    .env-header {
        margin-bottom: 80px;
    }

    .env-title {
        font-size: 60px;
    }
        .env-sub{
            font-size: 24px;
        }

        /* レイアウトコンテナ */
        .env-skew-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            /* 上下と左右の隙間を分離 */
            row-gap: 15px;
            column-gap: 0;
            width: 100%;
            max-width: none;
            margin: 0;
            padding: 0;
            transform: none;
            background: #fff;
        }
    
        /* 個別アイテム共通設定 */
        .env-row {
            height: 400px;
            border: none;
            border-radius: 0;
            overflow: hidden;
            position: relative;
            transform: none;
            transition: transform 0.3s ease;
        }
    
        /* === 左列（奇数番目）=== */
        .env-row:nth-child(odd) {
            /* 右に80pxはみ出す */
            width: calc(100% + 80px);
            /* 右下を削る斜めカット */
            clip-path: polygon(0 0, 100% 0, calc(100% - 180px) 100%, 0 100%);
        }
    
        /* === 右列（偶数番目）=== */
        .env-row:nth-child(even) {
            /* 左に80pxはみ出す + margin-leftで左にずらす */
            width: calc(100% + 80px);
            margin-left: -80px;
            /* 左上を削る斜めカット */
            clip-path: polygon(180px 0, 100% 0, 100% 100%, 0 100%);
        }
    
                .env-row:hover .env-img {
                    transform: scale(1.1);
                    /* 画像のみズーム */
                    filter: brightness(0.85);
                }

    /* 画像 */
    .env-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.7);
        transition: transform 0.5s ease, filter 0.3s ease;
    }

    /* コンテンツ（Skew解除・中央配置） */
    .env-content {
        transform: none;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .env-text-group {
        margin: 0;
    }
        .env-text-group-left{
            margin-right: 80px;
        }
        .env-text-group-right{
            margin-left: 80px;
        }

    .env-text-group h3 {
        font-size: 28px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .env-text-group p {
        font-size: 16px;
        letter-spacing: 2px;
    }


    /* --- Member (PC) --- */
    .member-section {
        padding: 120px 0 150px;
        overflow: hidden;
    }

    .member-section::before {
        clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    }

        .member-title{
            font-size: 60px;
        }
        .member-sub{
            font-size: 24px;
        }

    .member-container {
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .member-header {
        margin-bottom: 80px;
        text-align: left;
    }

    /* Flexレイアウト（2行：上4名、下3名）- 下段中央寄せ */
    .member-track {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
        width: 100%;
        padding: 0;
        animation: none;
    }

    /* クローンカードを非表示 */
    .member-card.clone-card {
        display: none;
    }

    .member-card:nth-child(n+5) {
        display: block;
    }

    .member-card {
        width: calc(25% - 30px);
        max-width: 300px;
        margin-top: 0;
        text-decoration: none;
        color: inherit;
    }

    /* 上下のずれをなくす */
    .member-up {
        transform: none;
    }

    .member-down {
        transform: none;
    }

    .member-img-shape {
        height: 400px;
        border-radius: 8px;
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        overflow: hidden;
    }

    .member-img {
        height: 100%;
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* ホバーアクション（枠内で画像がズーム） */
    .member-card:hover .member-img {
        transform: scale(1.08);
    }

    .member-info {
        margin-top: 25px;
        text-align: left;
        padding-left: 10px;
    }

    .m-header {
        gap: 10px;
        margin-bottom: 5px;
    }

    .m-role {
        font-size: 15px;
    }

    .m-name {
        font-size: 18px;
    }

    .m-year {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .m-dept {
        font-size: 14px;
    }

    /* --- Button Area --- */
    .btn-area {
        margin-top: 60px;
        margin-bottom: -40px;
    }

    .btn-interview {
        padding: 20px 80px;
        font-size: 18px;
    }

    /* --- Bottom Gray Wrapper (PC) --- */
    .bottom-gray-wrapper {
        margin-top: -125px;
        padding-bottom: 100px;
    }

    .bottom-gray-wrapper::before {
        clip-path: polygon(0 1200px, 100% 0, 100% 100%, 0% 100%);
    }

    /* --- Culture Header (PC) --- */
    .culture-header {
        width: 100%;
        text-align: left;
        margin-bottom: -40px;
        padding: 0;
    }

    .culture-title {
        font-size: 60px;
    }
        .culture-sub{
            font-size: 24px;
        }        

    /* --- Stacked Links (PC) - POPデザイン & 左右配置 --- */
    .stacked-links {
        display: flex;
        flex-direction: column;
        gap: 120px;
        width: 92.5%;
        max-width: 1440px;
        margin: 0 auto;
        padding-bottom: 150px;
        padding-top: 50px;
        box-sizing: border-box;
    }

    .stack-item {
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 60px;
        margin-bottom: 0;
        text-decoration: none;
        color: #333;
        box-shadow: none;
        background: transparent;
        overflow: visible;
    }

    .stack-item.right-align {
        flex-direction: row;
    }

    .stack-item.left-align {
        flex-direction: row-reverse;
    }

    .stack-bg-wrapper {
        flex: 0 0 50%;
        height: 350px;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .stack-bg {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }

    /* ホバーで画像のみ枠内ズーム */
    .stack-item:hover .stack-bg {
        transform: scale(1.08);
    }

    .stack-content {
        flex: 0 0 45%;
        position: relative;
        display: flex;
        align-items: flex-start;
        gap: 30px;
    }

    /* POPな丸バッジ */
    .stack-badge-circle {
        flex-shrink: 0;
        width: 140px;
        height: 140px;
        background: linear-gradient(135deg, #0066CC 0%, #00A3E0 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #fff;
        font-weight: 700;
        font-size: 22px;
        line-height: 1.3;
        box-shadow: 0 10px 25px rgba(0, 102, 204, 0.3);
        transform: rotate(-8deg);
        border: 4px solid #fff;
        outline: 4px solid rgba(0, 102, 204, 0.1);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .stack-item:hover .stack-badge-circle {
        transform: rotate(0deg) scale(1.1);
    }

    .stack-badge-circle span {
        display: block;
        transform: translateY(2px);
    }

    .stack-text-wrap {
        padding-top: 10px;
        flex: 1;
    }

    .stack-title {
        font-size: 24px;
        font-weight: 700;
        margin-bottom: 20px;
        line-height: 1.5;
        color: #111;
    }

    .stack-description {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 30px;
        color: #000;
    }

    .stack-link-button {
        display: inline-block;
        background: #fff;
        color: #333;
        border: 2px solid #333;
        padding: 12px 40px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 15px;
        transition: all 0.3s;
    }

    .stack-item:hover .stack-link-button {
        background: #333;
        color: #fff;
    }

    .stack-badge,
    .stack-label {
        display: none;
    }

    /* --- Join Us (PC) --- */
    .join-section {
        padding-top: 50px;
    }

    .join-title {
        font-size: 80px;
    }

    .join-desc {
        font-size: 16px;
        margin-bottom: 60px;
    }

    .join-banners {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        max-width: 900px;
    }

    .join-banner-link {
        flex: 1;
        max-width: 280px;
    }
}

/* 大画面PC（1440px以上） */
@media (min-width: 1440px) {
    .env-row {
        height: 450px;
    }

    .member-img-shape {
        height: 450px;
    }

    .stack-bg-wrapper {
        height: 450px;
    }
}

/* ループアニメーション定義 */
@keyframes scrollMembers {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* ==========================================
   採用TOPゲートウェイ (Gateway)
   ========================================== */

/* 既存の変数がない場合に備えてローカル定義（あれば削除可） */
.recruit-gateway {
    --gateway-blue: #186EA9;
    --gateway-dark: #0f2d4a;
    --gateway-bg: #f4f8fc;
    --gateway-text: #333;
}

.recruit-gateway {
    padding: 6rem 0 10rem;
    background: #f4f8fc;
    /* 薄い青グレー背景 */
    position: relative;
}

/* 導入テキスト */
.recruit-intro-box {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.recruit-intro-text {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 2;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .recruit-intro-text {
        text-align: left;
    }
}

/* グリッドレイアウト */
.gateway-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* カード本体リンク */
.gateway-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    /* テック・エッジ形状 */
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease;
}

.gateway-card:hover {
    transform: translateY(-8px);
    filter: drop-shadow(0 20px 40px rgba(24, 110, 169, 0.2));
}

/* カード内部（クリップパス適用） */
.gateway-card-inner {
    background: #fff;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    /* テック形状：左上と右下をカット */
    clip-path: polygon(30px 0,
            100% 0,
            100% calc(100% - 30px),
            calc(100% - 30px) 100%,
            0 100%,
            0 30px);
    position: relative;
    overflow: hidden;
    border-top: 5px solid #186EA9;
    /* 上部にアクセントライン */
}

/* ラベルエリア */
.gateway-label-area {
    padding: 3.5rem 3rem 1.5rem;
    position: relative;
}

/* 背景装飾（薄い数字とか英語とか） */
.gateway-label-area::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #f0f4f8 0%, #fff 50%);
    z-index: -1;
    border-radius: 0 0 0 100%;
}

.gateway-en {
    display: block;
    font-family: 'Roboto', sans-serif;
    /* 英字フォント */
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #186EA9;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.gateway-jp {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    margin: 0;
}

/* ボディエリア */
.gateway-body {
    padding: 0 3rem 3.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gateway-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* リンクテキストと矢印 */
.gateway-link-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: #186EA9;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
}

.gateway-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eaf4fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* ホバー時の矢印変化 */
.gateway-card:hover .gateway-arrow {
    background: #186EA9;
    color: #fff;
    transform: translateX(5px);
}

/* ==========================================
   レスポンシブ対応
   ========================================== */

@media (max-width: 768px) {
    .recruit-gateway {
        padding: 4rem 0 6rem;
    }

    .gateway-grid {
        grid-template-columns: 1fr;
        /* 1列に変更 */
        gap: 2.5rem;
    }

    .gateway-card-inner {
        min-height: auto;
        clip-path: polygon(20px 0,
                100% 0,
                100% calc(100% - 20px),
                calc(100% - 20px) 100%,
                0 100%,
                0 20px);
    }

    .gateway-label-area {
        padding: 2.5rem 2rem 1rem;
    }

    .gateway-body {
        padding: 0 2rem 2.5rem;
    }

    .gateway-jp {
        font-size: 1.8rem;
    }

    .gateway-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
}


/* ==========================================
   採用サイドメニュー（スクロール追従・修正版）
   ========================================== */

/* 追従ナビゲーションコンテナ */
.recruit-floating-nav {
    position: fixed;
    right: 0;
    top: 100px;
    /* ヘッダーの下 */
    z-index: 990;
    display: flex;
    flex-direction: column;
    /* 縦並び */
    align-items: flex-end;
    /* ★重要：常に右端（画面端）に寄せる */
    gap: 10px;
    /* ボタン間の隙間 */
    transform: translateX(120%);
    /* 初期状態は隠す */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    /* 隠れている時はクリック不可 */
}

/* 表示状態 */
.recruit-floating-nav.visible {
    transform: translateX(0);
    pointer-events: auto;
}

/* --- 1. メニュートグルボタン --- */
.recruit-sidebar-toggle {
    background: linear-gradient(135deg, #186EA9 0%, #003366 100%);
    color: white;
    padding: 1rem 0.5rem;
    border-radius: 0.5rem 0 0 0.5rem;
    cursor: pointer;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 72px;
    /* 幅固定 */
    height: 72px;
    /* 正方形に近づける */
    transition: width 0.3s ease;
    /* 幅のみアニメーション */
}

.recruit-sidebar-toggle:hover {
    width: 82px;
    /* ホバーで左に伸びる（右寄せなので左へ広がる） */
}

/* ラベル（横書き） */
.recruit-sidebar-toggle-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    writing-mode: horizontal-tb;
    margin-bottom: 0;
    text-align: center;
    white-space: nowrap;
}

.recruit-sidebar-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
}

.recruit-sidebar-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
}

.recruit-sidebar-toggle-menu {
    display: none;
}


/* --- 2. 独立エントリーボタン --- */
.recruit-floating-entry {
    background: linear-gradient(90deg, #FF6600 0%, #FF8C00 100%);
    /* オレンジ */
    color: white;
    padding: 0.8rem 0.5rem;
    border-radius: 0.5rem 0 0 0.5rem;
    text-decoration: none;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 72px;
    height: 72px;
    transition: width 0.3s ease;
    /* 幅のみアニメーション */
}

.recruit-floating-entry:hover {
    width: 82px;
    /* ホバーで左に伸びる */
    /* transform: translateX(-5px); を削除しました */
}

.recruit-floating-entry .entry-label {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.05em;
}

.recruit-floating-entry svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}


/* --- サイドバー本体 --- */
.recruit-sidebar {
    position: fixed;
    right: 0;
    top: 100px;
    width: 280px;
    max-height: calc(100vh - 120px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 995;
}

/* アクティブ（開いた）状態 */
.recruit-sidebar.active {
    transform: translateX(0);
}

/* メニューが開いている時はフローティングナビを隠す */
.recruit-sidebar.active~.recruit-floating-nav {
    transform: translateX(120%);
    opacity: 0;
}

.recruit-sidebar-content {
    background: #fff;
    border-radius: 0.5rem 0 0 0.5rem;
    overflow: hidden;
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

/* メニューヘッダー */
.recruit-sidebar-menu {
    background: linear-gradient(135deg, #186EA9 0%, #003366 100%);
    padding: 1.5rem;
    color: #fff;
}

.recruit-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.recruit-sidebar-title {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}

.recruit-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* メニューリスト */
.recruit-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recruit-sidebar-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recruit-sidebar-list a {
    color: white;
    font-size: 0.9rem;
    display: block;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.recruit-sidebar-list a:hover {
    padding-left: 10px;
    color: #ffd700;
}

/* ==========================================
   スマホメニュー（採用サイト専用カスタマイズ）
   ========================================== */
@media (max-width: 768px) {

    /* 下部固定バーは削除（非表示） */
    .recruit-floating-nav {
        display: none !important;
    }

    /* メニューオーバーレイ全体を青くする */
    .recruit-menu-overlay {
        background: #186EA9;
        /* TOSCOブルー */
    }

    /* --- 閉じるボタン（白ボタン・青文字仕様） --- */
    .recruit-menu-overlay .recruit-menu-close {
        background: #fff !important;
        /* 白背景 */
        border: none !important;
        border-radius: 0 0 0 8px;
        /* 左下を角丸に（ハンバーガーと統一） */
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 12px 16px;
        min-width: 70px;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 10;
    }

    /* ×印のアニメーションパーツを青くする */
    .recruit-menu-overlay .recruit-menu-close .menu-close-icon span {
        background-color: #186EA9 !important;
    }

    /* MENUテキストを表示して青くする */
    .recruit-menu-overlay .recruit-menu-close .menu-close-text {
        display: block !important;
        color: #186EA9;
        font-size: 0.625rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        margin-top: 2px;
        line-height: 1;
    }

    /* ボタンエリア */
    .recruit-menu-overlay .menu-buttons {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    /* サイトTOPボタン */
    .btn-site-top {
        background: transparent;
        border: 1px solid #fff;
        color: #fff;
    }

    /* お問い合わせボタン（白背景に） */
    .recruit-menu-overlay .btn-contact {
        background: #fff;
        color: #186EA9;
    }

    /* --- 採用専用ナビゲーション（1列・縦並び） --- */
        .recruit-menu-nav {
            padding: 0 10px;
            /* ▼ 追加：スクロール設定 ▼ */
            flex: 1;
            /* 上下の要素以外のスペースを全て埋める */
            overflow-y: auto;
            /* 内容が多い場合は縦スクロールさせる */
            -webkit-overflow-scrolling: touch;
            /* iOSでのスクロールを滑らかにする */
            min-height: 0;
            /* Flexbox内でのスクロール不具合防止 */
        }

    .recruit-menu-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .recruit-menu-list li {
        margin: 0;
        padding: 0;
        border: none;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    }

    .recruit-menu-list li a {
        display: block;
        padding: 18px 0;
        color: #fff;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        line-height: 1.4;
        position: relative;
    }

    /* 矢印アイコン */
    .recruit-menu-list li a::after {
        content: '›';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-family: Arial, sans-serif;
        font-weight: 400;
        font-size: 1.2rem;
    }

    /* --- エントリーボタン --- */
    .recruit-menu-entry {
        margin-top: 40px;
        padding: 0 10px 40px;
    }

    .btn-recruit-menu-entry {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 16px;
        background: linear-gradient(90deg, #FF6600 0%, #FF8C00 100%);
        color: #fff;
        font-weight: 700;
        font-size: 1.1rem;
        border-radius: 50px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        text-decoration: none;
    }

    .btn-recruit-menu-entry svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }
}

/* ==========================================
   スマホ用 固定エントリーボタン
   ========================================== */

/* PCでは非表示 */
.recruit-sticky-entry {
    display: none;
}

@media (max-width: 768px) {
    .recruit-sticky-entry {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        /* 高さ50px */
        background: linear-gradient(90deg, #FF6600 0%, #FF8C00 100%);
        color: #fff;
        text-decoration: none;
        font-weight: 700;
        font-size: 1rem;
        letter-spacing: 0.05em;
        z-index: 990;
        /* メニューオーバーレイ(1100想定)より下、コンテンツより上 */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    /* アイコンサイズ調整 */
    .recruit-sticky-entry svg {
        width: 18px;
        height: 18px;
        margin-top: -2px;
        /* 視覚調整 */
    }

    /* フッターがボタンに隠れないように余白確保 */
    .footer-sp {
        padding-bottom: 60px;
    }
}