@charset "utf-8";

/* ===================================================
   共通・基本レイアウト
   =================================================== */
.header-inner {
    height: 100%;
}

.logowrap {
    display: grid;
    grid-template-rows: 15% 10% 70%;
    gap: 6%;
    justify-items: center;
    height: 100%;
    z-index: 20000;
}

.sp-hero-interview-d,
.sp-name-inner,
.sp-iv-catchcopy {
    display: none;
}

.interview-header {
    justify-self: end;
    text-align: end;
    width: fit-content;
    margin: 20% auto 10%;
}

.interview-wrapper {
    width:fit-content;
    max-width: 950px;
    margin: auto;
}

#iv-header-role {
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

#iv-header-role::before {
    content: 'Staff Interview';
    display: block;
    font-size: 12px;
    text-align: start;
}

#iv-header-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* ヒーロー画像 */
.iv-hero-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.iv-catchcopy {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 5em auto;
    line-height: 1.7;
}
@media screen and (min-width: 769px) {
    .interview-wrapper {
        width:fit-content;
        max-width: 80%;
        margin: auto;
    }
}
/* ===================================================
   メインインタビューコンテンツ（自動交互レイアウト・崩れ修正版）
   =================================================== */
.iv-block {
    width: 100%; 
    margin-bottom: 65px;
    box-sizing: border-box; 
}

.interview-wrap {
    display: flex;
    align-items: flex-start; /* 上揃えで画像の変形を防ぐ */
    gap: 50px;
    width: 100%;
    justify-content: left;
    text-align: center;
    margin-bottom: 0;
    box-sizing: border-box;
    align-items: center;
}

/* ----------------------------------
   画像とテキストのサイズ・比率を完全に固定
   ---------------------------------- */
.interview-wrap .iv-img {
    width: 35% ;  
    max-width: 300px ;
    flex-shrink: 0;
    height: 200px;
    object-fit: cover;     
    display: block;
    border-radius: 20px;
}

/* テキストコンテンツ側の外枠 */
.interview-wrap .iv-text-content {
    width: 64%;   /* ★全体の50%の幅に強制固定（隙間5%） */
    max-width: 600px;
    flex-shrink: 0;
    box-sizing: border-box;
    text-align: left;        /* 基本は必ず左揃え */
}

/* ----------------------------------
   PC版: JavaScriptのクラスと連動して配置を強制コントロール
   ---------------------------------- */
@media screen and (min-width: 769px) {
    
    /* 1番目（img-left）: 通常の横並び（左画像・右テキスト） */
    .img-left .interview-wrap {
        flex-direction: row !important;
        align-items: center;
    }

    /* 3番目（img-right）: 反転の横並び（右画像・左テキスト）★ここを強化 */
    .img-right .interview-wrap {
        flex-direction: row-reverse !important;
    }
    .img-right .iv-text-content {
        text-align: left; /* 反転しても、文字自体は読みやすいよう左揃え */
    }

    /* 2番目（text-center-block）: 画像なし・中央寄せ */
    .text-center-block .interview-wrap {
        display: block !important; /* 横並び機能を解除して1つの塊にする */
        width: 100%;
        text-align: center;
    }
    .text-center-block .interview-wrap .iv-img {
        display: none !important;  /* 画像は確実に非表示 */
    }
    .text-center-block .iv-text-content {
        width: 100% !important;    /* 横幅をいっぱいにして中央に寄せる */
        max-width: 700px !important;
        /* margin: 0 auto !important; */
        text-align: center;        /* 文章を中央寄せ */
    }
    .text-center-block .iv-q {
        justify-content: start;   /* 黄色丸ドットごと中央寄せ */
    }
    .text-center-block .iv-a {
        text-align: left;        /* 回答テキストを中央寄せ */
    }
}

/* ----------------------------------
   質問・回答テキストの基本装飾
   ---------------------------------- */
.iv-q {
    font-size: 20px;
    margin-top: 0; 
    margin-bottom: 1em;
    font-weight: 600;
    display: flex;
    gap: 12px;
    align-items: center;
    text-align: left;
    line-height: 1.4;
}

.iv-q::before {
    content: "";
    display: block;
    width: 25px;
    height: 25px;
    background-color: #ffd700;
    border-radius: 50%;
    flex-shrink: 0;
}

.iv-a {
    font-size: 14px;
    line-height: 2;
    text-align: left; 
}
/* ----------------------------------
   PC限定: JavaScriptのループ判定によるパターン適用
   ---------------------------------- */
@media screen and (min-width: 769px) {
    /* パターン1: 通常（左に画像、右にテキスト） */
    .pattern-1 .interview-wrap {
        flex-direction: row;
    }

    /* パターン2: 画像なし・中央寄せ（JS側で画像非出力、または念のため非表示） */
    .pattern-2 .interview-wrap {
        justify-content: center;
    }
    .pattern-2 .interview-wrap .iv-img {
        display: none;
    }
    .pattern-2 .iv-text-content {
        max-width: 700px;
        text-align: center;
        margin: 0 auto;
    }
    .pattern-2 .iv-a {
        text-align: center;
    }

    /* パターン3: テレコ（左にテキスト、右に画像） */
    .pattern-3 .interview-wrap {
        flex-direction: row-reverse;
    }
}

/* ----------------------------------
   下部ボタンリンク
   ---------------------------------- */
.link-wrapper {
    width: 100%;
    text-align: center;
}

.link-wrap {
    display: inline-block;
    text-align: center;
    color: #fff;
    background-color: #8A0104;
    padding: 0.8em 6em;
    border-radius: 20px;
    font-size: 12px;
    width: 180px;
    margin: 10% auto 0;
    text-decoration: none;
}

/* ===================================================
   フッタービジュアルエリア（テキスト重ね合わせ）
   =================================================== */
.iv-footer-visual-area {
    position: relative;
    width: 100%;
    margin: 10% auto 0;
    overflow: hidden;
}

/* PC用画像設定（初期状態） */
.iv-footer-img-pc {
    width: 100%;
    display: block;
    height: auto;
    border-radius: 40px;
}

/* スマホ用画像は初期状態では隠す */
.iv-footer-img-sp {
    display: none !important;
}

/* 重ね合わせ文字コンテナ */
.iv-footer-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    box-sizing: border-box;
    padding: 6% 8%;
    display: grid;
    /* grid-template-columns: 40% 60%; 右側に寄せる比率 */
     grid-template-columns: 50% 50%; 
    gap: 15px;
}

.iv-footer-q-wrap {
    grid-column: 1;
    align-self: center;
    margin-bottom: 20px;
    line-height: 2.2; /* 黄色い帯の行間隙間 */
}

.iv-footer-a-wrap {
    grid-column: 1;
    align-self: start;
}

/* 質問：黄色ラベル（行ごと折り返し対応） */
.iv-footer-q {
    background-color: #f1ca18;
    color: #000;
    font-weight: 500;
    margin: 0;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 4px 8px;
    font-size: clamp(22px, 3vw, 50px);
}

/* 回答：黒半透明マスク */
.iv-footer-a {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 20px 25px;
    line-height: 1.6;
    margin: 0;
    font-size: clamp(13px, 1.6vw, 16px);
    width: fit-content;
    border-radius: 4px;
}

/* ===================================================
   レスポンシブ表示（画面幅 768px 以下）
   =================================================== */
@media screen and (max-width: 768px) {
    .sp-hero-interview-d {
        display: grid;
        background: #8A0104;
    }

    .interview-header {
        max-width: 85vw;
        margin: 20% auto 10%;
    }

    .iv-hero-img {
        height: 50dvh;
        object-fit: cover;
    }

    /* メイン文章部分のスマホ最適化 */
    .iv-catchcopy {
        display: none;
    }

    .sp-iv-catchcopy {
        display: block;
        font-size: 16px;
        font-weight: 700;
        text-align: left;
        padding: 1em 0;
    }

    /* スマホでは全パターン共通で上画像・下テキストの縦並びにリセット */
    .interview-wrap,
    .pattern-1 .interview-wrap,
    .pattern-3 .interview-wrap {
        flex-direction: column;
        gap: 25px;
        /* align-items: flex-start; */
    }

    .interview-wrap .iv-text-content {
    width: 95%;   /* ★全体の50%の幅に強制固定（隙間5%） */
    max-width: 95% ;
    flex-shrink: 0;
    box-sizing: border-box;
    text-align: center;        /* 基本は必ず左揃え */
}

    .interview-wrap .iv-img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 2em auto 0;
    }

    /* パターン2（画像なし）と空欄時の中央揃えはスマホでも維持 */
    .pattern-2 .iv-text-content,
    .interview-wrap > .iv-text-content:only-child {
        text-align: center;
        width: 100%;
    }
    
    .pattern-2 .iv-a,
    .interview-wrap > .iv-text-content:only-child .iv-a {
        text-align: center;
    }

    .iv-block {
        width: 100%;
    }

    .iv-a {
        line-height: 1.7;
    }

    /* フッタービジュアルエリアのスマホ切り替え */
    .iv-footer-img-pc {
        display: none !important;
    }

    .iv-footer-img-sp {
        display: block !important;
        width: 100%;
        height: 520px;
        object-fit: cover;
        border-radius: 24px;
    }

    .iv-footer-overlay-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 20px;
    }

    .iv-footer-q-wrap,
    .iv-footer-a-wrap {
        width: 100%;
    }

    .iv-footer-q-wrap {
        line-height: 2.0;
        margin-bottom: 10px;
    }

    .iv-footer-q {
        font-size: 16px;
        padding: 5px 10px;
    }

    .iv-footer-a {
        font-size: 13px;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .site-footer {
        margin-top: -30px;
        position: relative;
    }
}