/* ページ全体の幅 */
/* .company-profile-section.recruit {
    max-width: 780px;
    margin: 0 auto;
    padding: 24px 16px;
    box-sizing: border-box;
} */

/* ナビゲーション */
.recruit-subnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    justify-content: center;
}

.btn-recruit-top,
.btn-recruit-qa {
    display: inline-block;
    padding: 10px 30px;
    width: 200px;
    background: #fff;
    color: #003074;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    border: 2px solid #003074;
    border-radius: 4px;
    transition: background .2s ease-in-out, color .2s ease-in-out;
}

.btn-recruit-top:hover,
.btn-recruit-qa:hover {
    background: #003074;
    color: #fff;
}

.btn-recruit-top,
.btn-recruit-qa {
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}


/* トップ部分 */
.recruit-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 24px;
}

.recruit-main-message {
    background: linear-gradient(300deg, #0D2EA0 0%, #3D5EEA 80%, #fff 100%);
    border-radius: 12px;
    padding: 2em 1.5em;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    text-align: center;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1.4;
}



.recruit-main-message span {
    white-space: nowrap;
}

.recruit-main-image img {
    width: 320px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}



/* 目次ナビゲーション */
.recruit-nav {
    margin-bottom: 32px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 12px 16px;
}

.recruit-nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.recruit-nav li a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.recruit-nav li a:hover {
    color: #003366;
}

.recruit-nav li a.external::after {
    content: "↗";
    display: inline-block;
    margin-left: 1px;
    font-size: 0.9em;
    color: #888;
    vertical-align: middle;
}

/* バナー */

.recruit-banner-wrapper {
    display: flex;
    justify-content: space-between;
    /* 左右端に配置 */
    align-items: center;
    /* 垂直方向中央揃え */
    width: 100%;
    /* 必要に応じて調整 */
    max-width: 700px;
    /* レイアウト崩れ防止例 */
    margin: 0 auto;
    /* 親要素自体を中央に */
    margin-top: 40px;
}

.recruit-banner {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 1.5em 1em;
    margin-bottom: 2em;
    text-align: center;
    display: inline-block;
    vertical-align: top;
}

.recruit-banner-blue {
    background: linear-gradient(90deg, #0D2EA0 0%, #3D5EEA 100%);
    color: #fff;
}

.recruit-banner-gray {
    background: linear-gradient(90deg, #f5f7fa 0%, #e3e6eb 100%);
    color: #0D2EA0;
}

.recruit-banner h3 {
    font-size: 1.3em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.recruit-banner p {
    font-size: 0.95em;
    margin-bottom: 1em;
}

.recruit-btn {
    display: inline-block;
    background: #fff;
    color: #0D2EA0;
    padding: 0.5em 1.2em;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 1px solid transparent;
}

.recruit-btn:hover {
    background: #0D2EA0;
    color: #fff;
    border: 1px solid #fff;
}

.recruit-btn-gray {
    background: #0D2EA0;
    color: #fff;
}

.recruit-btn-gray:hover {
    background: #3D5EEA;
    color: #fff;
}

/* 768px以下で縦並び＆中央寄せ */
@media (max-width: 768px) {
    .recruit-banner-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        gap: 24px;
    }

    .recruit-banner {
        width: 90%;
        /* 画面幅に応じて可変 */
        max-width: 350px;
    }
}

/* === 社員紹介 === */
.staff-profile {
    margin-bottom: 32px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.staff-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 12px;
}

.staff-content {
    position: relative;
    display: flex;
    gap: 24px;
    align-items: center;
    overflow: hidden;
    min-height: 340px;
    border-radius: 0px;
    padding: 24px;
    background: #fff;
}


/* 背景画像 */
.staff-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px) brightness(1.2);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;

}


/* 白っぽい半透明オーバーレイ */
.staff-content::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

/* 前面のコンテンツ */
.staff-photo,
.staff-info {
    position: relative;
    z-index: 2;
}

.staff-photo img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    /*     border-radius: 50%; */
    /*     border: 2px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
    margin: 10px;
}

.staff-info {
    flex: 1;
}

.staff-info dl {
    margin: 1em 0;
}

.staff-info dt {
    font-weight: bold;
    float: left;
    width: 6em;
    clear: left;
}

.staff-info dd {
    margin-left: 7em;
    margin-bottom: 0.5em;
}

/* === ある1日の流れ === */

/* 説明文が長すぎるとカードが重なってしまいますので注意 */

.staff-timeline {
    position: relative;
    width: 100%;
    max-width: 780px;
    margin: 40px auto;
    padding: 40px 0px 0px 0px;
}

.staff-timeline-item {
    position: relative;
    width: 100%;
    min-height: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 56px;
}

/* タイムラインの縦線（各点の下に表示） */
.staff-timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #66cccc;
    border-radius: 50%;
    z-index: 1;
}


/* 最後の点の下には線を表示しない */
.staff-timeline-item:last-child .staff-timeline-dot::after {
    display: none;
}


/* 左側（奇数） */
.staff-timeline-item:nth-child(odd) .staff-timeline-card {
    position: absolute;
    right: 50%;
    transform: translateX(-25%) translateX(40px);
    width: 320px;
}


/* 右側（偶数） */
.staff-timeline-item:nth-child(even) .staff-timeline-card {
    position: absolute;
    left: 50%;
    transform: translateX(40px);
    width: 320px;
}

.staff-timeline-card {
    background: #f8fafd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 48, 116, 0.07);
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    z-index: 1;
}

.staff-timeline-time {
    font-weight: bold;
    color: #66cccc;
    font-size: 1.15em;
    margin-bottom: 6px;
}

.staff-timeline-title {
    font-size: 1.15em;
    font-weight: bold;
    color: #003074;
    margin-bottom: 8px;
}

.staff-timeline-desc {
    font-size: 1em;
    color: #333;
    margin-bottom: 12px;
}

.staff-timeline-photo {
    width: 300px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    background: #eee;
    align-self: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .staff-timeline-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 36px;
        position: relative;
    }

    .staff-timeline-dot {
        position: relative;
        margin-right: 12px;
        left: auto;
        top: auto;
        transform: none;
    }

    .staff-timeline-item:last-child .staff-timeline-dot::after {
        display: none;
    }

    .staff-timeline-card {
        position: static !important;
        transform: none !important;
        width: 90vw !important;
        margin: 0 auto;
        padding: 16px 12px;
    }
}

.staff-timeline-dot-line {
    position: absolute;
    left: 50%;
    top: calc(100% + 3px);
    /* ←ここを変更！ */
    transform: translateX(-50%);
    width: 4px;
    background: #003074;
    z-index: 10;
    height: 0;
    transition: height 0.3s;
}

/* 右側（奇数：カードは左、線は右に伸ばす） */
.staff-timeline-item:nth-child(odd) .staff-timeline-dot-connect {
    right: 150%;
    top: 50%;
    width: 20px;
    height: 0.25px;
    background: #333;
    position: absolute;
    transform: translateY(-50%);
    z-index: 2;
}

/* 左側（偶数：カードは右、線は左に伸ばす） */
.staff-timeline-item:nth-child(even) .staff-timeline-dot-connect {
    left: 150%;
    top: 50%;
    width: 20px;
    /* 線の長さは調整 */
    height: 0.25px;
    background: #333;
    position: absolute;
    transform: translateY(-50%);
    z-index: 2;
}


@media (max-width: 768px) {
    .staff-timeline-dot-connect {
        display: none;
    }
}


/* === Q&Aリスト === */
.interview-qa-list {
    /* 背景やパディングは必要に応じて解除/追加してください */
    max-width: 700px;
    margin: 2em auto;
}

.interview-qa-list dt,
.interview-qa-list dd {
    padding-left: 1em;
    /* 他のpadding値は必要に応じて調整 */
}

.interview-qa-list dt {
    font-size: 1.25em;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 0.5em;
    /* Q.の前に余白を追加 */
}

.interview-qa-list dt::before {
    content: "Q. ";
    color: #66cccc;
    font-weight: bold;
    margin-right: 0.5em;
}

.interview-qa-list dd {
    display: flex;
    gap: 24px;
    /* テキストと画像の間隔 */
    align-items: flex-start;
    /* 上揃え。中央揃えならcenter */
    margin: 0 0 1.5em 0;
    padding: 1em;
    background: #fff;
    border-radius: 4px;
    line-height: 1.7;
    font-size: 0.98em;
}

.interview-qa-list dd:last-child {
    margin-bottom: 0;
}

/* テキスト部分を伸ばす */
.interview-qa-text {
    flex: 1 1 0%;
    min-width: 0;
    /* はみ出し防止 */
}

/* 画像部分のスタイル */
.interview-qa-list img {
    width: 250px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    /* 画像が縮みすぎないように */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .interview-qa-list dd {
        flex-direction: column;
        gap: 12px;
        padding: 1em 0.5em;
    }

    .interview-qa-list img {
        width: 100%;
        max-width: 600px;
        align-self: center;
        margin-top: 0.5em;
    }
}

/* Q&A */
.recruit-interview-qa-list {
    margin: 0;
    padding: 0;
}

.recruit-interview-qa-list dt {
    font-weight: bold;
    margin-top: 16px;
    color: #0066cc;
}

.recruit-interview-qa-list dd {
    margin: 0 0 8px 16px;
    color: #333;
}



/* === 採用Q&Aリスト（details/summary型） === */
.recruit-qa-details-list {
    max-width: 700px;
    margin: 2em auto 0 auto;
}

.recruit-qa-details-list details {
    margin-bottom: 1.5em;
    background: #fff;
    border-radius: 4px;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 1em;
}

.recruit-qa-details-list summary {
    font-size: 1.25em;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 0.5em;
    list-style: none;
    cursor: default;
    outline: none;
}

.recruit-qa-details-list summary::before {
    content: "Q. ";
    color: #66cccc;
    font-weight: bold;
    margin-right: 0.5em;
}

.recruit-qa-details-list details[open]>summary {
    /* summary直下の内容が開いている時のスタイル（常時オープンの場合も） */
}

.recruit-qa-details-list details>*:not(summary) {
    /* summary以外の内容（回答部分） */
    line-height: 1.7;
    font-size: 0.98em;
    padding-left: 0.5em;
}

.recruit-qa-details-list details>*:not(summary)::before {
    content: "A. ";
    color: #003074;
    font-weight: bold;
    margin-right: 0.5em;
}

/* === 採用Q&Aリスト（dt/dd型） === */
.recruit-qa-list {
    max-width: 700px;
    margin: 2em auto 0 auto;
}

.recruit-qa-list dt,
.recruit-qa-list dd {
    padding-left: 1em;
}

.recruit-qa-list dt {
    font-size: 1.25em;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

.recruit-qa-list dd {
    margin: 0 0 1.5em 0;
    padding-right: 1em;
    padding-bottom: 1em;
    background: #fff;
    border-radius: 4px;
    line-height: 1.7;
    font-size: 0.98em;
}

.recruit-qa-list dt::before {
    content: "Q. ";
    color: #66cccc;
    font-weight: bold;
    margin-right: 0.5em;
}

.recruit-qa-list dd::before {
    content: "A. ";
    color: #003074;
    font-weight: bold;
    margin-right: 0.5em;
}

.recruit-qa-list dd:last-child {
    margin-bottom: 0;
}


/* モバイル対応 */
@media (max-width: 768px) {
    .company-profile-section.recruit {
        padding: 16px 4px;
    }

    .recruit-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .recruit-main-image img {
        width: 100%;
        max-width: 320px;
    }

    .recruit-nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .staff-content {
        gap: 12px;
        min-height: 120px;
    }

    .staff-photo img {
        width: 200px;
        height: 200px;
    }

    .interview-toggle {
        background: #f0f6ff;
        color: #0066cc;
        border: 1px solid #b3d4fc;
        border-radius: 4px;
        font-size: 0.95em;
        padding: 4px 12px;
        margin-left: 12px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .interview-toggle[aria-expanded="true"] {
        background: #e0f0ff;
        color: #004080;
    }

    .interview-content {
        margin-top: 12px;
        padding: 14px 14px 0 0;
        background: #f9fbfd;
        border-left: 4px solid #b3d4fc;
        border-radius: 4px;
        transition: max-height 0.3s;
    }

    @media (max-width: 768px) {
        .interview-content {
            padding-right: 0;
        }
    }

    .interview-block details {
        margin-bottom: 1em;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        background: #f7fafc;
        padding: 0.5em 1em;
        transition: box-shadow 0.2s;
    }

    .interview-block details[open] {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        background: #e6f0fa;
    }

    .interview-block summary {
        font-weight: bold;
        cursor: pointer;
        padding: 0.5em 0;
    }

    .interview-block div {
        margin-top: 0.5em;
        line-height: 1.7;
    }


}