/* ================================================================
  career-page-interview-detail.css
  インタビュー詳細ページ（/career/interview/{slug}/）
================================================================ */

html {
    scroll-behavior: smooth;
}

/* ── 1) ページ全体 ── */

.id-page {
    padding: 40px 0 160px;
}

/* ── 2) ヒーロー上書き（インタビューはgapが狭い） ── */

.id-page .cr-catd-hero-body {
    width: 475px;
    gap: 16px;
}

/* ── 3) ヒーロー内コンテンツ（cr-catd-hero-body 内のインタビュー固有要素） ── */

.id-hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.id-hero-labels {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.id-hero-recruit-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    color: #5c5c5c;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.28px;
    padding: 5px 12px 6px;
    border-radius: 2px;
    line-height: 1.4;
    flex-shrink: 0;
}

.id-hero-category {
    display: inline-block;
    background: #ff0024;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.28px;
    padding: 5px 12px 6px;
    border-radius: 2px;
    margin: 0;
    align-self: flex-start;
    line-height: 1.4;
}

.id-hero-date {
    margin: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.8px;
    color: #5c5c5c;
    line-height: 1;
}

.id-hero-title {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 3.2px;
    color: #191919;
}

.id-hero-position {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.12px;
    color: #191919;
    line-height: 1.5;
}

.id-hero-name-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.id-hero-name-wrap::before {
    content: "";
    display: block;
    width: 4px;
    height: 24px;
    background: #ff0024;
    border-radius: 2px;
    flex-shrink: 0;
}

.id-hero-name {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1.92px;
    color: #191919;
    line-height: 1.4;
}

.id-hero-biography {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1.28px;
    color: #5c5c5c;
}

.id-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.id-hero-tag {
    display: inline-block;
    background: #f8f8f8;
    border-radius: 80px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.12px;
    color: #191919;
    line-height: 1.4;
}

.id-hero-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.96px;
    color: #5c5c5c;
}

/* ── 3) 概要文（メインコンテンツ内） ── */

.id-excerpt-box {
    position: relative;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 64px;
}

.id-excerpt-box::before {
    content: "";
    position: absolute;
    width: 2050px;
    height: 100%;
    top: 0;
    left: -2000px;
    background-color: #f8f8f8;
    z-index: -1;
}

.id-excerpt-text {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1.28px;
    color: #5c5c5c;
}

/* ── 4) コンテンツエリア（2カラム） ── */

.id-content-area {
    overflow: visible;
}

.id-content-wrap {
    display: flex;
    gap: 80px;
    align-items: flex-start;
    margin-top: 80px;
    overflow: visible;
}

.id-content-main {
    flex: 1;
    min-width: 0;
    max-width: 800px;
}

.id-content-main > :last-child {
    margin-bottom: 0;
}

/* ── 5) 目次サイドバー ── */

.id-toc-wrap {
    width: 368px;
    flex-shrink: 0;
    /* sticky の制約先（ラッパー）に十分な高さを持たせる */
    align-self: stretch;
    min-height: 1px;
    position: relative;
}

.id-toc {
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 24px;
    box-sizing: border-box;
}

.id-toc-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.28px;
    color: #ff0024;
    line-height: 1.5;
}

.id-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.id-toc-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.id-toc-marker {
    display: block;
    width: 10px;
    height: 3px;
    background: #ff0024;
    border-radius: 1.5px;
    flex-shrink: 0;
}

.id-toc-link {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.28px;
    color: #191919;
    text-decoration: none;
    transition: color 0.25s;
}

.id-toc-link:hover {
    color: #ff0024;
    opacity: 1;
}

/* ── 6) セクションタイトル（h2装飾） ── */

.id-section-title {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 0 40px;
    scroll-margin-top: 120px;
}

.id-section-title::before {
    content: "";
    display: block;
    width: 116px;
    height: 3px;
    background: #ff0024;
    border-radius: 2px;
    flex-shrink: 0;
}

.id-section-title-text {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 2.24px;
    color: #191919;
}

/* ── 7) リッチテキストエリア ── */

.id-rich {
    margin-bottom: 64px;
}

.id-rich > :first-child {
    margin-top: 0;
}

.id-rich h1,
.id-rich h2 {
    position: relative;
    margin: 64px 0 32px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 2.24px;
    color: #191919;
    scroll-margin-top: 120px;
}

.id-rich h1::before,
.id-rich h2::before {
    content: "";
    display: block;
    width: 2000px;
    height: 3px;
    background: #ff0024;
    border-radius: 2px;
    flex-shrink: 0;
    position: absolute;
    left: -2016px;
    top: calc(0.5em * 1.4 - 1.5px);
    transform: translateX(-100%);
}

.id-rich h1.is_active::before,
.id-rich h2.is_active::before {
    animation: titleLineSlide 0.8s linear 0.3s forwards;
}

.id-rich h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 20px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1.76px;
    color: #191919;
    scroll-margin-top: 120px;
}

.id-rich h3::before {
    content: "";
    display: block;
    width: 12px;
    height: 8px;
    background: #ff0024;
    border-radius: 1px;
    flex-shrink: 0;
}

.id-rich p {
    margin: 0 0 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1.28px;
    color: #191919;
}

.id-rich figure {
    width: 100%;
    margin: 24px 0;
}

.id-rich img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;
    width: max-content;
}

.id-rich ul,
.id-rich ol {
    margin: 0 0 24px;
    padding-left: 24px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 1.28px;
    color: #191919;
}

.id-rich li + li {
    margin-top: 8px;
}

.id-rich blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 4px solid #ff0024;
    background: #f8f8f8;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 1.28px;
    color: #5c5c5c;
}

/* ── 8) スケジュールセクション ── */

.id-schedule {
    margin-bottom: 64px;
    scroll-margin-top: 120px;
}

.id-schedule .dl-page-title-wrap {
    position: relative;
    margin-bottom: 40px;
}

.id-schedule .dl-page-title-line {
    display: none;
}

.id-schedule .dl-page-title {
    position: relative;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 2.24px;
    color: #191919;
}

.id-schedule .dl-page-title::before {
    content: "";
    display: block;
    width: 2000px;
    height: 3px;
    background: #ff0024;
    border-radius: 2px;
    position: absolute;
    left: -2016px;
    top: calc(0.5em * 1.4 - 1.5px);
    transform: translateX(-100%);
}

.id-schedule .dl-page-title.is_active::before {
    animation: titleLineSlide 0.8s linear 0.3s forwards;
}

.id-schedule-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 16px;
}

.id-schedule-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    column-gap: 32px;
    align-items: start;
    padding: 0;
}

.id-schedule-side {
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
    row-gap: 16px;
    min-height: 100%;
}

.id-schedule-time {
    width: 90px;
    margin: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.6px;
    color: #ff0024;
}

.id-schedule-rail {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 85%;
}

.id-schedule-rail-line {
    width: 0;
    min-height: 100%;
    border-left: 2px dashed #d9d9d9;
}

.id-schedule-body {
    flex: 1;
    min-width: 0;
}

.id-schedule-heading {
    margin: 0 0 14px;
    padding-top: 3px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1.76px;
    color: #191919;
}

.id-schedule-desc {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1.28px;
    color: #5c5c5c;
}

/* ── 9) 関連インタビュースライダーセクション ── */

.id-interview-section {
    margin-top: 80px;
    padding: 80px 0 160px;
    overflow: hidden;
}

.id-interview-section .inner {
    margin-bottom: 64px;
}

/* dl-page-title-line の縦位置は --dl-title-line-box（フォント×行高）で決まる。
   .dl-page-title だけ line-height を 1.4 にすると変数と不一致で赤線がずれるため wrap で揃える */
.id-interview-section .dl-page-title-wrap {
    --dl-title-font-size: 32px;
    --dl-title-line-height: 1.4;
}

.id-interview-section .dl-page-title {
    font-size: 32px;
    line-height: 1.4;
    letter-spacing: 2.56px;
}

@media screen and (max-width: 1100px) {
    .id-content-wrap {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
    }

    .id-content-main {
        max-width: 100%;
    }

    .id-toc-wrap {
        width: 100%;
        align-self: auto;
        order: -1;
    }

    .id-toc {
        position: static;
        top: auto;
    }
}

/* ================================================================
   レスポンシブ — タブレット
================================================================ */

@media screen and (max-width: 1024px) {
    .id-page .cr-catd-hero-body {
        width: 340px;
    }

    .id-hero-title {
        font-size: 32px;
        letter-spacing: 2.56px;
    }

    .id-hero-name {
        font-size: 22px;
    }

    .id-content-wrap {
        gap: 48px;
        margin-top: 64px;
    }

    .id-toc-wrap {
        width: 100%;
    }

    .id-section-title-text {
        font-size: 24px;
    }

    .id-rich h2 {
        font-size: 24px;
    }

    .id-rich h3 {
        font-size: 20px;
    }

    .id-schedule-time {
        font-size: 28px;
        width: 90px;
    }

    .id-schedule-heading {
        font-size: 20px;
    }
}

/* ================================================================
   レスポンシブ — SP
================================================================ */

@media screen and (max-width: 768px) {
    .id-page {
        padding: 24px 0 80px;
    }

    /* ── ヒーロー内コンテンツ（SP） ── */
    .id-page .cr-catd-hero-body {
        width: 100%;
    }

    .id-hero-title {
        font-size: 24px;
        letter-spacing: 1.92px;
    }

    .id-hero-position {
        font-size: 12px;
    }

    .id-hero-name-wrap::before {
        width: 4px;
        height: 24px;
    }

    .id-hero-name {
        font-size: 20px;
        letter-spacing: 1.6px;
    }

    .id-hero-biography {
        font-size: 14px;
        letter-spacing: 1.12px;
    }

    .id-hero-tags {
        gap: 6px;
    }

    .id-hero-tag {
        font-size: 12px;
        padding: 6px 14px;
    }

    .id-hero-note {
        font-size: 11px;
    }

    /* ── 概要文 ── */
    .id-excerpt-box {
        padding: 12px;
        margin-bottom: 32px;
    }

    .id-excerpt-text {
        font-size: 12px;
        letter-spacing: 0.08em;
    }

    /* ── コンテンツ ── */
    .id-content-wrap {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
    }

    .id-content-main {
        max-width: 100%;
    }

    /* ── 目次 ── */
    .id-toc-wrap {
        width: 100%;
        position: static;
        order: -1;
    }

    .id-toc {
        padding: 20px;
    }

    /* ── セクションタイトル ── */
    .id-section-title {
        gap: 16px;
        margin-bottom: 24px;
    }

    .id-section-title::before {
        width: 60px;
    }

    .id-section-title-text {
        font-size: 20px;
        letter-spacing: 1.6px;
    }

    /* ── リッチテキスト ── */
    .id-rich {
        margin-bottom: 40px;
    }

    .id-rich h1,
    .id-rich h2 {
        font-size: 20px;
        letter-spacing: 1.6px;
        margin: 40px 0 20px;
    }

    .id-rich h3 {
        font-size: 16px;
        letter-spacing: 1.28px;
        margin: 24px 0 12px;
    }

    .id-rich p {
        font-size: 14px;
        letter-spacing: 1.12px;
    }

    .id-rich ul,
    .id-rich ol {
        font-size: 14px;
        letter-spacing: 1.12px;
    }

    .id-rich blockquote {
        font-size: 14px;
        padding: 12px 16px;
    }

    /* ── スケジュール ── */
    .id-schedule {
        margin-bottom: 40px;
    }

    .id-schedule .dl-page-title-wrap {
        margin-bottom: 24px;
    }

    .id-schedule .dl-page-title {
        font-size: 20px;
        letter-spacing: 1.6px;
    }

    .id-schedule-item {
        grid-template-columns: 72px 1fr;
        column-gap: 16px;
        padding: 0;
    }

    .id-schedule-side {
        row-gap: 16px;
    }

    .id-schedule-time {
        font-size: 24px;
        width: 72px;
    }

    .id-schedule-heading {
        font-size: 16px;
        letter-spacing: 1.28px;
    }

    .id-schedule-desc {
        font-size: 14px;
        letter-spacing: 1.12px;
    }

    /* ── 関連インタビュー ── */
    .id-interview-section {
        margin-top: 40px;
        padding: 40px 0 80px;
    }

    .id-interview-section .inner {
        margin-bottom: 32px;
    }

    .id-interview-section .dl-page-title-wrap {
        --dl-title-font-size: 24px;
        --dl-title-line-height: 1.4;
    }

    .id-interview-section .dl-page-title {
        font-size: 24px;
        letter-spacing: 1.92px;
    }
}

/* ================================================================
   レスポンシブ — 小型SP
================================================================ */

@media screen and (max-width: 450px) {
    .id-hero-title {
        font-size: 22px;
        letter-spacing: 1.76px;
    }

    .id-hero-name {
        font-size: 18px;
    }

    .id-section-title::before {
        width: 40px;
    }

    .id-section-title-text {
        font-size: 18px;
    }

    .id-rich h1,
    .id-rich h2 {
        font-size: 18px;
    }

    .id-rich h3 {
        font-size: 15px;
    }

    .id-schedule .dl-page-title {
        font-size: 18px;
    }

    .id-schedule-time {
        font-size: 22px;
    }

    .id-schedule-heading {
        font-size: 15px;
    }
}
