@charset "UTF-8";

/* =========================================
   ベース設定
========================================= */
.single-interview-container {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.8;
}

/* =========================================
   トップ背景・メインビジュアル
========================================= */
.top-bg-section {
    background-size: cover;
    background-position: center 120px;
    background-repeat: no-repeat;
    width: 100%;
    padding-bottom: 1px;
}


.main-visual {
    width: 100%;
    padding: 0 5%;
    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 {
    margin: 50px auto -100px;
    padding: 0 12.5%;
    position: relative;
    z-index: 3;
}

.profile-inner {
    background: #fff;
    display: flex;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    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: #e60012;
    font-size: 42px;
    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: 14px;
    margin-bottom: 25px;
    border-left: 4px solid #e60012;
    padding-left: 15px;
    line-height: 1.5;
    font-weight: bold;
}

.profile-meta strong {
    font-size: 22px;
    display: inline-block;
    margin-top: 5px;
}

.profile-text {
    font-size: 14px;
    line-height: 1.8;
}

.profile-text p {
    margin-bottom: 15px;
}

/* =========================================
   Q&Aセクション (交互レイアウト)
========================================= */
.qa-section {
    max-width: 1000px;
    margin: 230px auto 80px;
    padding: 0 5%;
}

/* stretchを解除し、上揃えに変更 */
.qa-block {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
}

/* 偶数番目は要素の並びを左右反転させる */
.qa-block:nth-child(even) {
    flex-direction: row-reverse;
}

/* 縦書きのオレンジラベル */
.qa-label {
    flex: 0 0 40px;
    background: linear-gradient(to bottom, #ff7e00, #e60012);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 0;
    border-radius: 4px 0 0 4px;
    margin-top: 15px;
}

/* 偶数番目のラベルの角丸の向きを反転 */
.qa-block:nth-child(even) .qa-label {
    border-radius: 0 4px 4px 0;
}

.qa-label span {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-weight: bold;
    letter-spacing: 0.2em;
    font-size: 15px;
}

.qa-content {
    flex: 1;
}

.qa-heading {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.6;
}

.qa-text {
    font-size: 14px;
}

.qa-text p {
    margin-bottom: 1em;
}

.qa-img {
    flex: 0 0 45%;
}

.qa-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   一覧へ戻るボタン
========================================= */
.back-btn-wrap {
    text-align: center;
    margin: 60px 0 100px;
}

.back-btn {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #333;
    color: #fff;
}

/* =========================================
   レスポンシブ対応 (SP版)
========================================= */
@media screen and (max-width: 768px) {

    .main-visual {
        padding: 0;
    }

    /* --- プロフィールエリア --- */
    .profile-section {
        margin: 30px auto -50px;
        padding: 0 10% 0 0;
    }

    .profile-inner {
        flex-direction: column;
        padding: 0;
        position: relative;
        overflow: visible;
    }

    .profile-img img {
        -webkit-mask-image: none;
        mask-image: none;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .profile-content {
        padding: 25px 20px 30px 60px;
        margin-left: 0;
        margin-top: 0;
        position: static;
    }

    .profile-title {
        display: block;
        position: absolute;
        top: 20px;
        right: -55px;
        color: #fff;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-weight: 100;
        font-size: 40px;
        font-style: normal;
        text-align: center;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        z-index: 10;
    }

    .profile-img {
        flex: auto;
    }

    /* --- Q&Aセクション --- */
    .qa-section {
        margin: 100px auto 60px;
        padding: 0 5%;
    }

    /* ブロック全体を縦積みにし、ラベル配置の基準とする */
    .qa-block,
    .qa-block:nth-child(even) {
        flex-direction: column;
        gap: 0;
        position: relative;
        margin-bottom: 50px;
    }

    /* 画像を一番上(1番目)に配置 */
    .qa-img {
        order: 1;
        width: calc(100% - 35px);
        margin-bottom: 15px;
    }

    .qa-img img {
        width: 100%;
        height: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    /* 奇数番目は画像を右寄せ */
    .qa-block:nth-child(odd) .qa-img {
        margin-left: auto;
        margin-right: -5%;
    }

    /* 偶数番目は画像を左寄せ */
    .qa-block:nth-child(even) .qa-img {
        margin-left: -5%;
        margin-right: auto;
    }

    /* テキストを画像の下(2番目)に配置 */
    .qa-content {
        order: 2;
        padding: 0;
        width: calc(100% - 35px);
    }

    /* 奇数番目はテキストも右寄せ（左側に余白） */
    .qa-block:nth-child(odd) .qa-content {
        margin-left: auto;
        margin-right: 0;
    }

    /* 偶数番目はテキストも左寄せ（右側に余白） */
    .qa-block:nth-child(even) .qa-content {
        margin-left: 0;
        margin-right: auto;
    }

    /* 縦書きラベルを画像に重ねる */
    .qa-label {
        position: absolute;
        top: 0;
        margin: 0;
        padding: 15px 0;
        width: 35px;
        flex: none;
        z-index: 2;
    }

    /* 奇数番目：画像の左端に配置 */
    .qa-block:nth-child(odd) .qa-label {
        left: 5%;
        border-radius: 4px 0 0 4px !important;
    }

    /* 偶数番目：画像の右端に配置（PC版に合わせた交互レイアウト） */
    .qa-block:nth-child(even) .qa-label {
        right: 5%;
        left: auto;
        border-radius: 0 4px 4px 0 !important;
    }

    /* SP版でも縦書きを維持する */
    .qa-label span {
        writing-mode: vertical-rl;
        text-orientation: upright;
        letter-spacing: 0.1em;
    }

    .qa-heading {
        font-size: 16px;
        margin-bottom: 10px;
        line-height: 1.5;
    }
}