@charset "UTF-8";

/* =========================================
   ベース設定
========================================= */
:root {
    --font-2xs: 1vw;
}

.single-interview-container {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.8;
}

/* =========================================
   トップ背景・メインビジュアル
========================================= */
.top-bg-section {
    background-image: var(--bg-pc);
    background-size: cover;
    background-position: center 120px;
    background-repeat: no-repeat;
    width: 100%;
    padding-bottom: 1px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.main-visual {
    width: 100%;
    max-width: 90%;
    padding: 0;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
}

.main-visual img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* =========================================
   プロフィールセクション
========================================= */
.profile-section {
    width: 100%;
    max-width: 70%;
    margin: 50px auto -100px;
    padding: 0;
    position: relative;
    z-index: 3;
}

.profile-inner {
    background: #fff;
    display: flex;
    padding: 0;
    overflow: hidden;
}

.profile-img {
    flex: 0 0 55%;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-mask-image: linear-gradient(to right, #000 60%, transparent 100%);
    mask-image: linear-gradient(to right, #000 60%, transparent 100%);
}

.profile-content {
    flex: 1;
    padding: 5px 5px 40px 0px;
    margin-left: -10%;
    position: relative;
    z-index: 2;
}

.profile-title {
    color: var(--theme_color);
    font-size: var(--font-3xl);
    font-style: italic;
    font-weight: normal;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-top: -10px;
    margin-bottom: 35px;
    border-bottom: none;
    padding-bottom: 0;
    text-align: right;
    letter-spacing: 0.2em;
}

/* 名前の横に赤い縦線 */
.profile-meta {
    font-size: var(--font-s);
    margin-bottom: 25px;
    border-left: 12px solid var(--theme_color);
    padding: 0 2.5%;
    line-height: 1.5;
    font-weight: bold;
}

.profile-meta strong {
    font-size: var(--font-l);
    display: inline-block;
    margin-top: 5px;
}

.profile-text {
    font-size: var(--font-xs);
    line-height: 1.8;
    padding-right: 5%;
}

.profile-text p {
    margin-bottom: 15px;
}

/* =========================================
   Q&Aセクション (交互レイアウト)
========================================= */
.qa-section {
    width: 100%;
    max-width: 70%;
    margin: 230px auto 80px;
    padding: 0;
}

.qa-block {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
    position: relative;
    padding: 0 2.5%;
}

.qa-block:nth-child(even) {
    flex-direction: row-reverse;
}

/* 縦書きのオレンジラベル */
.qa-label {
    width: 44px;
    position: absolute;
    left: -44px;
    top: 15px;
    background: linear-gradient(to bottom, #ff7e00, var(--theme_color));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0;
    border-radius: 6px 0 0 6px;
    box-shadow: -3px 4px 10px rgba(0, 0, 0, 0.2);
}

.qa-block:nth-child(even) .qa-label {
    left: auto;
    right: -44px;
    border-radius: 0 6px 6px 0;
    box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.2);
}

.qa-label .qa-num {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: var(--font-s);
    font-weight: normal;
    margin-bottom: 12px;
    line-height: 1;
}

.qa-label .qa-text,
.qa-label span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2em;
    font-size: var(--font-xs);
}

.qa-label span {
    font-weight: bold;
}

.qa-content {
    flex: 1;
}

.qa-heading {
    font-size: var(--font-m);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.6;
}

.qa-text-wrap {
    font-size: var(--font-xs);
}

.qa-text-wrap p {
    margin-bottom: 1em;
}

.qa-img {
    flex: 0 0 50%;
}

.qa-img img {
    width: 100%;
    object-fit: cover;
    display: block;
}

/* テキスト枠を削らないように画像コンテナは50%に保ち、中の画像を広げてテキストに重ねる */
.qa-block .qa-img.is-fadeout {
    flex: 0 0 50%;
    margin-left: 0;
    z-index: 1;
}

.qa-block .qa-img.is-fadeout img {
    width: 120%;
    max-width: none;
    margin-left: -20%;
}

.qa-block .qa-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* 偶数番目: 画像が左にくる場合のレイアウト反転 */
.qa-block:nth-child(even) .qa-img.is-fadeout {
    margin-right: 0;
}

.qa-block:nth-child(even) .qa-img.is-fadeout img {
    margin-left: 0;
}

.qa-img.is-fadeout img {
    -webkit-mask-image: linear-gradient(to left, #000 70%, transparent 100%);
    mask-image: linear-gradient(to left, #000 70%, transparent 100%);
}

.qa-block:nth-child(even) .qa-img.is-fadeout img {
    -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 100%);
    mask-image: linear-gradient(to right, #000 70%, transparent 100%);
}

/* =========================================
   一覧へ戻るボタン
========================================= */
.back-btn-wrap {
    text-align: center;
    margin: 60px 0 100px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    padding: 12px 50px;
    border: 1px solid #333;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: var(--font-xs);
    font-weight: bold;
    letter-spacing: 0.2em;
    transition: all 0.15s ease-out;
    box-shadow: 2px 2px 0 #333;
}

.back-btn:hover {
    background: #808080;
    color: #fff;
    border-color: #333;
    transform: none;
    box-shadow: 2px 2px 0 #333;
}

/* =========================================
   レスポンシブ対応 (SP版)
========================================= */
@media screen and (max-width: 768px) {
    :root {
        --font-2xs: 3vw;
    }

    .main-visual {
        max-width: 100%;
        padding: 0;
    }

    .top-bg-section {
        background-image: var(--bg-sp);
    }

    /* --- プロフィールエリア --- */
    .profile-section {
        max-width: 100%;
        margin: 30px auto -350px;
        padding: 0 10% 0 0;
    }

    .profile-inner {
        flex-direction: column;
        padding: 0;
        position: relative;
        overflow: visible;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .profile-img {
        flex: auto;
    }

    .profile-img img {
        -webkit-mask-image: none;
        mask-image: none;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .profile-content {
        padding: 25px 5% 25px 10%;
        margin-left: 0;
        margin-top: 0;
        position: static;
    }

    .profile-title {
        display: block;
        position: absolute;
        top: 10px;
        left: 100%;
        transform: translateX(-3vw);
        color: #fff;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-weight: 100;
        font-size: var(--font-3xl);
        font-style: normal;
        text-align: center;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        z-index: 10;
    }

    .profile-meta {
        border-left: 8px solid var(--theme_color);
    }

    /* --- Q&Aセクション --- */
    .qa-section {
        max-width: 100%;
        margin: 400px auto 60px;
        padding: 0 10%;
    }

    .qa-block,
    .qa-block:nth-child(even) {
        flex-direction: column;
        gap: 0;
        position: relative;
        margin-bottom: 50px;
    }

    /* 1. 画像コンテナの配置（85vwで左右に寄せる） */
    .qa-block .qa-img,
    .qa-block .qa-img.is-fadeout {
        order: 1;
        flex: none !important;
        width: 88vw !important;
        margin-bottom: 15px;
    }

    /* 中の画像サイズとフェードアウト設定のリセット */
    .qa-block .qa-img img,
    .qa-block .qa-img.is-fadeout img {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        object-fit: cover;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    /* 奇数番目は右寄せ（画面右端まで突き抜ける） */
    .qa-block:nth-child(odd) .qa-img,
    .qa-block:nth-child(odd) .qa-img.is-fadeout {
        margin-left: auto !important;
        margin-right: calc(50% - 50vw) !important;
    }

    /* 偶数番目は左寄せ（画面左端まで突き抜ける） */
    .qa-block:nth-child(even) .qa-img,
    .qa-block:nth-child(even) .qa-img.is-fadeout {
        margin-right: auto !important;
        margin-left: calc(50% - 50vw) !important;
    }

    /* 2. 見出し・テキストブロック（親のpaddingに沿って配置） */
    .qa-content {
        order: 2;
        width: 90%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .qa-block:nth-child(odd) .qa-content,
    .qa-block:nth-child(even) .qa-content {
        margin: 0 auto !important;
        padding: 0;
    }

    .qa-heading {
        font-size: var(--font-m);
        margin-bottom: 10px;
        line-height: 1.5;
        width: auto;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* 3. ラベルの配置 */
    /* 3. ラベルの配置 */
    .qa-label {
        position: absolute;
        top: 0;
        margin: 0;
        font-size: var(--font-xs);
        padding: 1.5em 0;
        width: 2em;
        /* ← 幅を 2.5em から 2em に少し細くする */
        flex: none;
        z-index: 2;
        box-shadow: -1px 2px 4px rgba(0, 0, 0, 0.15);
    }

    .qa-block:nth-child(odd) .qa-label {
        left: calc(2vw - 2em + 1px);
        /* ← 幅に合わせて引く値を 2em に変更 */
        border-radius: 6px 0 0 6px !important;
    }

    .qa-block:nth-child(even) .qa-label {
        right: calc(2vw - 2em + 1px);
        /* ← 幅に合わせて引く値を 2em に変更 */
        left: auto;
        border-radius: 0 6px 6px 0 !important;
        box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.15);
    }

    .qa-label span {
        writing-mode: vertical-rl;
        text-orientation: upright;
        letter-spacing: 0.1em;
    }
}