/* インタビュー詳細ページのスタイル */

@media (min-width: 769px) {
    .interview-detail-page:not(.training-page) {
        position: relative;
        background-image: none !important;
    }
}

.interview-detail-page .container {
    position: relative;
    max-width: 1204px;
}

.training-top .interview-detail-page .container {
    max-width: 1204px;
}

.interview-detail-page.training-page .container .breadcrumb-nav,
.interview-detail-page.training-page .container .page-header {
    max-width: 1080px;
    margin-inline: auto;
}

.interview-detail-page.training-page .container .breadcrumb-nav {
    margin-bottom: 30px;
}

.interview-detail-page .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    /* background-image: url(../img/page-header-bg.png); */
    background-repeat: no-repeat;
    background-size: 73% auto;
    background-position: right top;
    z-index: 3;
    pointer-events: none;
}

/* ヘッダーセクション */
.interview-header {
    margin-bottom: 60px;
    position: relative;
    padding-top: 110px;
    margin-top: -150px;
}

.interview-header-bg {
    position: relative;
    background-color: #FFA5A5;
    padding: 40px 0 60px;
    border-radius: 0 0 60px 60px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.interview-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background-image: url(../img/page-header-bg.png);
    background-repeat: no-repeat;
    background-size: 73% auto;
    background-position: right top;
    border-radius: 0 0 60px 60px;
    z-index: 1;
    pointer-events: none;
}

.interview-header-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    z-index: 2;
}

.interview-header-breadcrumb {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 50px;
    z-index: 2;
}

.interview-header-photo {
    flex: 0 0 480px;
    position: relative;
    order: 2;
    z-index: 3;
}

.interview-header-photo-frame {
    position: relative;
    width: 100%;
    height: auto;
}

.interview-header-photo-frame img {
    width: 480px;
    height: auto;
    display: block;
}



.interview-header-info {
    flex: 1;
    padding-top: 0;
    order: 1;
}

.interview-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.interview-label-icon {
    width: 28px;
    height: 22px;
    display: block;
}

.interview-label-text {
    font-size: 27px;
    font-weight: 500;
    font-style: italic;
    font-family: 'Afacad', sans-serif;
}

.interview-label-badge {
    display: inline-block;
    padding: 4px 16px;
    background-color: #fff;
    border: 1px solid #000;
    border-top-left-radius: 7px;
    border-bottom-right-radius: 7px;
    font-size: 14px;
    font-weight: 600;
}

.interview-header-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 30px;
    white-space: nowrap;
}

.interview-header-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 40px;
    padding-left: 15px;
    border-left: 1px solid #000;
}

.interview-header-position {
    font-size: 18px;
}

.interview-header-name-row {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.interview-header-name {
    font-size: 28px;
    font-weight: bold;
}

.interview-header-name-suffix {
    font-size: 16px;
    font-weight: 500;
    margin-left: 5px;
}

.interview-header-year {
    font-size: 16px;
}

.interview-header-lead {
    font-size: 18px;
    line-height: 1.9;
    margin-top: 30px;
}

/* メインコンテンツレイアウト */
.interview-main-wrapper {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    border: 1px solid #000;
    border-radius: 20px;
    padding: 40px;
    background-color: #fff;
}

.interview-main-left {
    flex: 1;
    max-width: 846px;
}

.interview-main-right {
    flex: 0 0 200px;
    position: sticky;
    top: 120px;
}

/* 目次セクション */
.interview-contents {
    background-color: transparent;
    padding: 0;
}

.interview-contents-title {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 0;
    font-family: 'Afacad', sans-serif;
    font-weight: 600;
    font-style: italic;
    color: #666;
}

.interview-contents-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.interview-contents-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    padding-left: 20px;
    border-bottom: 1px solid #000000;
    position: relative;
}

.interview-contents-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    transform: unset;
    width: 10px;
    height: 10px;
    border: 1px solid #000;
    border-radius: 50%;
    background-color: transparent;
}

.interview-contents-item-active::before {
    background-color: #000;
    border-color: #000;
}

.interview-contents-link {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.interview-contents-link::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-image: url(../img/arrow_down.png);
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-top: 8px;
}

.interview-contents-link:hover {
    color: #666;
}

.interview-contents-arrow {
    font-size: 12px;
}

.interview-contents-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.interview-contents-note-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    background-color: #FFEB01;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #000;
}

.interview-contents-note-text {
    font-size: 14px;
    line-height: 1.6;
}

/* インタビューセクション */
.interview-section {
    margin-bottom: -15px;
    position: relative;
}

#section1 {
    margin-top: -100px;
}

.interview-section:last-of-type {
    margin-bottom: 60px;
}

.interview-section-container {
    display: flex;
    gap: 60px;
    border: 1px solid #000;
    border-radius: 60px;
    padding: 40px;
    background-color: #fff;
    position: relative;
    z-index: 10;
    align-items: flex-start;
}

/* #section2のみにグレー背景を適用 */
#section2 .interview-section-container {
    background-color: #EFEFEF;
}

.interview-section-main {
    flex: 1;
    max-width: 846px;
}

/* スマホ用の共通目次はPC版では非表示 */
.interview-contents-wrapper-sp {
    display: none;
}

.interview-section-side {
    flex: 0 0 200px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.interview-section-wrapper {
    border-radius: 60px;
    padding: 40px 0 20px;
    position: relative;
}

.interview-section-wrapper.bg-white {
    background-color: transparent;
}

.interview-section-wrapper.bg-gray {
    background-color: transparent;
}

.interview-section-title {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.83;
    margin: 0 0 30px 0;
    padding: 0;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.interview-section-title::before {
    content: '';
    display: block;
    width: 50px;
    height: 10px;
    background-image: url(../img/interview-index-icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 20px;
}

.interview-section-title::after {
    display: none;
}

.interview-section-title.active::after {
    display: none;
}

.interview-section-content {
    padding: 0;
    display: block;
}

.interview-section-content.active {
    display: block;
}

.interview-section-text {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 60px;
}

.interview-section-heading {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 25px;
    color: #000;
}

.interview-section-heading:first-child {
    margin-top: 0;
}

.interview-section-image {
    margin: 50px 0 0;
    text-align: center;
}

.interview-section-image img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 30px;
}

/* インデックスに戻るボタン */
.interview-back {
    margin-top: 80px;
    margin-bottom: 60px;
    text-align: center;
}

.interview-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    padding: 15px 40px;
    border: 1px solid #000;
    border-radius: 30px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.interview-back-link:hover {
    background-color: #FFEB01;
    color: #000;
}

.interview-back-icon {
    width: 20px;
    height: 20px;
}

.recruit_wrapper {
    margin-top: 0;
    padding: 0 0 170px;
    /* margin-top: -150px; */
}

/* PC版 - セクションは常に開いている */
@media (min-width: 769px) {
    .interview-section-title {
        cursor: default;
    }
    
    .interview-section-title::after {
        display: none;
    }
    
    .interview-section-content {
        display: block !important;
    }
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .interview-detail-page {
        padding-top: 120px;
        margin-top: -100px;
        background-position: right -50px top;
        background-size: 90% auto;
    }
    
    .interview-header {
        margin-bottom: 30px;
        padding-top: 0;
        margin-top: 0;
    }

    .contents[class*="-page"]:not(.training-page) {
        padding-top: 0px;
        margin-top: -15px;
    }
    
    /* スマホ用の共通目次 */
    .interview-contents-wrapper-sp {
        display: block;
        margin-bottom: 30px;
        padding: 0;
    }
    
    /* PC用の各セクション内目次を非表示 */
    .interview-section-side {
        display: none;
    }
    
    /* スマホ用の共通目次 */
    .interview-contents-wrapper-sp {
        position: relative;
        z-index: 5;
        margin-bottom: 0;
    }
    
    /* スマホでもPC同様にセクションを重ねる */
    .interview-section {
        margin-bottom: -15px;
        position: relative;
    }
    
    #section1 {
        margin-top: 40px;
        z-index: 2;
    }
    
    #section2 {
        z-index: 3;
    }
    
    #section3 {
        z-index: 4;
    }
    
    /* セクションのコンテナ */
    .interview-section-container {
        position: relative;
    }
    
    .interview-section-wrapper {
        position: relative;
        z-index: 1;
    }
    
    .interview-header::before {
        display: none;
    }
    
    .interview-header-bg {
        padding: 30px 0 40px;
        border-radius: 0 0 30px 30px;
        position: relative;
    }
    
    .interview-header-bg::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-image: url(../img/interview-header-bg_sp.png);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: right top 180px;
        z-index: 1;
        pointer-events: none;
    }
    
    .interview-header-content {
        padding: 0 20px;
    }
    
    .interview-header-breadcrumb {
        padding: 0 15px;
        margin-bottom: 20px;
    }
    
    .interview-header-content {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .interview-header-photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
        order: 1;
    }
    
    .interview-header-photo-frame {
        width: 100%;
        height: auto;
    }
    
    .interview-header-photo-frame img {
        width: 100%;
    }
    
    .interview-header-info {
        padding-top: 0;
        text-align: left;
        order: 2;
    }
    
    .interview-label {
        justify-content: flex-start;
        margin-bottom: 15px;
    }
    
    .interview-label-icon {
        width: 22px;
        height: 17px;
    }
    
    .interview-label-text {
        font-size: 20px;
    }
    
    .interview-label-badge {
        padding: 3px 12px;
        font-size: 12px;
    }
    
    .interview-header-title {
        font-size: 28px;
        margin-bottom: 20px;
        text-align: left;
        white-space: wrap;
    }
    
    .interview-header-meta {
        font-size: 14px;
        align-items: flex-start;
        padding-left: 12px;
        border-left: 1px solid #000;
    }
    
    .interview-header-name-row {
        gap: 15px;
    }
    
    .interview-header-name {
        font-size: 22px;
    }
    
    .interview-header-name-suffix {
        font-size: 16px;
    }
    
    .interview-header-lead {
        text-align: left;
        font-size: 16px;
    }

    .interview-header-position {
        font-size: 16px;
    }
    
    .interview-main-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .interview-section-container {
        border-radius: 20px;
        padding: 20px;
    }
    
    .interview-main-right {
        flex: 0 0 auto;
        width: 100%;
        position: static;
    }
    
    .interview-contents-note {
        display: none;
    }
    
    .interview-contents {
        padding: 0;
    }
    
    .interview-contents-title {
        font-size: 18px;
        cursor: pointer;
        position: relative;
        padding-right: 30px;
        font-family: 'Afacad', sans-serif;
        margin-bottom: 0;
    }

    .interview-contents-item::before {
        top: 18px;
        transform: unset;
    }

    .crosstalk-detail-page .interview-contents-item {
        margin-bottom: 0 !important;
    }

    .interview-contents-link::after {
        margin-top: 8px;
    }
    
    .interview-contents-title::after {
        display: none;
    }
    
    .interview-contents-list {
        display: none;
        margin-top: 0;
    }
    
    .interview-contents-list.active {
        display: block;
    }
    
    /* スマホ用の共通目次内のリストは常に表示 */
    .interview-contents-wrapper-sp .interview-contents-list {
        display: block !important;
    }
    
    .interview-contents-item-active::before {
        background-color: transparent;
    }
    
    .interview-contents-item {
        margin-bottom: 0;
        padding: 15px 0 15px 20px;
        border-bottom: 1px solid #000000;
    }

    .interview-detail-page .interview-contents-item {
        padding-top: 10px;
    }
    
    .interview-section {
        margin-bottom: 30px;
        margin-top: -40px;
    }

    #section1 {
        margin-top: 40px;
    }
    
    .interview-section-wrapper {
        border-radius: 45px;
        padding: 0;
    }
    
    .interview-section-title {
        font-size: 18px;
        line-height: 1.6;
        padding: 20px;
    }
    
    .interview-section-content {
        padding: 0 20px 20px 20px;
    }
    
    .interview-section-text {
        font-size: 16px;
        line-height: 1.875;
        margin-bottom: 40px;
    }
    
    .interview-section-heading {
        font-size: 16px;
    }
    
    .interview-section-image {
        margin: 30px 0;
    }
    
    .interview-section-image img {
        border-radius: 15px;
    }
    
    .interview-section-side {
        opacity: 1 !important;
    }
    
    .interview-back {
        margin-top: 50px;
        margin-bottom: 40px;
    }
    
    .interview-back-link {
        font-size: 16px;
        padding: 12px 30px;
    }
}

@media (max-width: 767.98px) {
    .recruit_wrapper {
        padding: 150px 0 90px;
        margin-bottom: 36px;
    }
}

@media (max-width: 600px) {
    .interview-header-title {
        font-size: 28px;
    }
    
    .interview-section-title {
        font-size: 20px;
        padding: 15px 0;
    }
    
    .interview-section-content {
        padding: 0 0 15px;
    }

    .interview-header-bg::before {
        background-position: right top 300px;
    }

    .recruit_wrapper {
        padding: 0 0 90px;
    }

    .recruit_wrapper {
        margin-bottom: 36px;
    }

}
