/* ==========================================
   社員インタビューページ専用スタイル
   ========================================== */

/* カラー定義 */
:root {
    --interview-primary: #186EA9;
    --interview-secondary: #5BA3AD;
    --interview-text: #333333;
    --interview-gray: #F5F5F5;
    --interview-border: #E5E5E5;
}

/* ==========================================
   ヒーローセクション
   ========================================== */
.interview-hero {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.interview-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a8b5c0 0%, #c8d0d8 100%);
    z-index: 1;
}

.interview-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interview-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-left: 8%;
}

.interview-hero-label {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    opacity: 0.95;
}

.interview-hero-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
}

/* ==========================================
　　=========================================
   インタビュー一覧ページ
   ==========================================
   ========================================== */
/* ==========================================
   INTERVIEW LIST - Updated Design
   ========================================== */

.interview-list-section {
    padding: 6rem 0 10rem;
    background: linear-gradient(180deg, #fff 0%, #f4f8fc 100%);
    overflow: hidden;
}

.interview-list-section .container{
    width: 92.5%;
    margin: 0 auto;
    max-width: 1440px;
    padding: 0;
}

.interview-list-tech {
    display: flex;
    flex-direction: column;
    gap: 8rem;
    /* アイテム間の余白 */
}

/* --- 個別アイテム設定 --- */
.interview-item-tech {
    position: relative;
    width: 100%;
    padding: 0 0 120px;
    border-bottom: 1px solid #CCC;
}

/* 最後のアイテムは線なし・余白なし */
.interview-item-tech:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* --- コンテンツレイアウト (3カラム) --- */
.interview-tech-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    width: 100%;
    gap: 3rem;
}

/* カラム幅設定 */
.interview-tech-col-profile {
    width: 30%;
    padding-top: 4rem;
    position: relative;
    /* 数字の配置基準点 */
}

.interview-tech-col-img {
    width: 38%;
    display: flex;
    justify-content: center;
}

.interview-tech-col-desc {
    width: 28%;
    padding-top: 4rem;
    /* 数字との被りを避ける */
}

/* --- 背景の巨大数字 --- */
.interview-tech-bg-number {
    position: absolute;
    /* PC配置: プロフィールの左上に少しはみ出す */
    top: -150px;
    left: -20px;
    font-size: clamp(8rem, 15vw, 15rem);
    font-weight: 900;
    line-height: 1;
    /* 色設定: TOSCOブルーの透明度8% */
    color: rgba(24, 110, 169, 0.08);
    font-family: 'Roboto', sans-serif;
    z-index: -1;
    /* 文字の下へ配置 */
    pointer-events: none;
    transition: transform 0.5s ease;
}

/* --- 左カラム：プロフィール --- */
.interview-tech-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--interview-primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.interview-tech-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--interview-primary);
    border-radius: 50%;
}

.interview-tech-catch {
    font-size: clamp(1.25rem, 1.8vw, 1.75rem);
    font-weight: 700;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2.5rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.interview-tech-data {
    border-left: 4px solid var(--interview-primary);
    padding-left: 1.25rem;
}

/* 職種と名前の横並びヘッダー */
.interview-tech-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 0.25rem;
}

.interview-tech-dept {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.interview-tech-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.interview-tech-year {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

/* 卒業学科・学部 */
.interview-tech-major {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* --- 中央カラム：画像（ホバーで楕円形） --- */
.interview-tech-img-link {
    display: block;
    width: 100%;
    max-width: 400px;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}



/* 画像枠：通常時は長方形、ホバー時は楕円形に変形 */
.interview-tech-img-shape {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    /* 通常時は角丸なし（長方形） */
    border-radius: 4px;
    transform: rotate(0deg);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 画像本体 */
.interview-tech-img-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1) rotate(0deg);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ★ホバー時のアクション：枠内で画像がズーム */
.interview-tech-img-link:hover .interview-tech-img-shape img {
    transform: scale(1.08);
}


/* --- 右カラム：説明＆ボタン --- */
.interview-tech-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    text-align: justify;
}

.btn-tech-arrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    group;
}

.btn-tech-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--interview-primary);
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.btn-tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--interview-primary);
    border-radius: 50%;
    color: var(--interview-primary);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.btn-tech-arrow:hover .btn-tech-icon {
    background: var(--interview-primary);
    color: white;
    transform: rotate(45deg);
}

.btn-tech-arrow:hover .btn-tech-text {
    color: #004a80;
}

/* ==========================================
   Responsive (Tablet & Mobile)
   ========================================== */

/* タブレット (〜1024px) */
@media (max-width: 1024px) {
    .interview-tech-bg-number {
        font-size: 10rem;
    }

    .interview-tech-content {
        gap: 2rem;
    }

    .interview-tech-col-profile {
        width: 30%;
    }

    .interview-tech-col-img {
        width: 35%;
    }

    .interview-tech-col-desc {
        width: 30%;
    }

    .interview-tech-catch {
        font-size: 1.25rem;
    }
}

/* スマホ (〜768px) */
@media (max-width: 768px) {
    .interview-list-tech {
        gap: 6rem;
    }

    .interview-item-tech {
        padding: 0 0 60px;
    }

    /* 縦積みレイアウト */
    .interview-tech-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* 1. 写真 */
    .interview-tech-col-img {
        width: 100%;
        order: 1;
        margin-bottom: 0.5rem;
    }

    .interview-tech-img-link {
        max-width: 100%;
        margin: 0 auto;
    }

    /* 2. プロフィール */
    .interview-tech-col-profile {
        width: 100%;
        order: 2;
        padding-top: 0;
        /* 数字の配置基準点となるため重要 */
        position: relative;
    }

    /* スマホ版 数字の配置修正 */
    .interview-tech-bg-number {
        /* プロフィール欄の右上に配置 */
        top: 80px;
        left: auto;
        right: 0;
        font-size: 7rem;
        opacity: 1;
        /* 色自体をrgbaで薄くしているためopacityは1でOK */
        z-index: 0;
    }
        .interview-tech-bg-number-high{
            top: 115px;
        }

    /* プロフィール文字が数字と被らないように幅を制限 */
    .interview-tech-catch {
        position: relative;
        z-index: 1;
        width: 100%;
        /* 数字スペースを空ける */
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
    }

    .interview-tech-data {
        width: 90%;
    }

    .interview-tech-header {
        gap: 8px;
        margin-bottom: 0.2rem;
    }

    .interview-tech-dept {
        font-size: 0.9rem;
    }

    .interview-tech-name {
        font-size: 1rem;
    }

    .interview-tech-year {
        font-size: 0.85rem;
    }

    .interview-tech-major {
        font-size: 0.85rem;
    }

    /* 3. 説明＆ボタン */
    .interview-tech-col-desc {
        width: 100%;
        order: 3;
        padding-top: 0;
    }

    .btn-tech-arrow {
        width: 100%;
        justify-content: flex-end;
    }
}


/* ==========================================
　　=========================================
   インタビュー詳細ページ
   ==========================================
   ========================================== */

/* ==========================================
   インタビュー本文セクション
   ========================================== */
.interview-content {
    padding: 8rem 0 0;
    background: white;
}

/* コンテンツ幅を広げる（JAL方式） */
.interview-content .container {
    max-width: calc(1480px + 10%);
    padding: 0 5%;
}

/* インタビュー対象者情報(画像+テキストボックス) */
.interview-person-intro {
    position: relative;
    margin-bottom: 10rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.interview-intro-image {
    width: 73%;
    position: relative;
    z-index: 1;
}

.interview-intro-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.interview-intro-text {
    position: absolute;
    left: 0;
    width: 37%;
    background: white;
    padding: 3rem 3.5rem;
    z-index: 2;
    border-radius: 7px;
}

.interview-intro-label {
    font-size: clamp(0.6875rem, 0.9vw, 0.875rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--interview-text);
    margin-bottom: 1.5rem;
}

.interview-intro-title {
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    font-weight: 700;
    color: var(--interview-primary);
    line-height: 1.7;
    margin-bottom: 3rem;
}

.interview-intro-info {
    border-top: 1px solid #E5E5E5;
    padding-top: 2rem;
}

/* 職種と名前の横並びヘッダー */
.interview-intro-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.interview-intro-department {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: var(--interview-primary);
    font-weight: 500;
}

.interview-intro-name {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 500;
    color: var(--interview-text);
}

.interview-intro-joined {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #666;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* 卒業学科・学部 */
.interview-intro-major {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #666;
    font-weight: 500;
}

/* インタビューブロック共通 */
.interview-block {
    display: flex;
    gap: 6rem;
    margin-bottom: 10rem;
    align-items: flex-start;
}

.interview-block-image {
    flex: 0 0 48%;
}

.interview-block-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 4px;
}

.interview-image-placeholder {
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 4px;
    position: relative;
}

.interview-image-placeholder::after {
    content: 'IMAGE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #999;
    letter-spacing: 0.2em;
}

.interview-block-text {
    flex: 1;
}

.interview-question {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--interview-primary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.interview-answer {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    line-height: 2.0;
    color: var(--interview-text);
}

.interview-answer p {
    margin-bottom: 2rem;
}

.interview-answer p:last-child {
    margin-bottom: 0;
}

/* Q&Aセット用のコンテナ */
.interview-qa-set {
    margin-bottom: 3rem; /* Q&Aセット間の余白を広く */
}

.interview-qa-set:last-child {
    margin-bottom: 0;
}

/* 質問テキスト用スタイル */
.interview-answer p.interview-q {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--interview-primary);
    line-height: 1.8;
    margin-bottom: 0.5rem; /* QとAの間の余白を狭く */
}

/* 回答テキスト用スタイル */
.interview-a {
    font-size: clamp(0.9375rem, 1.1vw, 1rem);
    font-weight: 400;
    color: var(--interview-text);
    line-height: 2.0;
    margin-bottom: 0; /* 回答の下は.interview-qa-setで制御 */
}

/* 左配置（画像左・テキスト右） */
.interview-block-left {
    flex-direction: row;
}

/* 右配置（テキスト左・画像右） */
.interview-block-right {
    flex-direction: row-reverse;
}

/* 全幅画像ブロック */
.interview-block-full {
    margin-bottom: 5rem;
    position: relative;
}

.interview-full-image {
    margin-bottom: 0;
    position: relative;
}

.interview-full-image img {
    width: 100%;
    height: auto;
    display: block;
}

.interview-full-image .interview-image-placeholder {
    padding-top: 45%; /* 16:7 aspect ratio */
}

.interview-block-full .interview-block-text {
    position: relative;
    max-width: 850px;
    margin: -80px auto 0;
    background: white;
    padding: 3rem 4rem;
    z-index: 2;
    border-radius: 7px;
}

.interview-block-full .interview-question {
    text-align: center;
}

/* ==========================================
   OTHER PERSONセクション
   ========================================== */
.interview-other {
    padding: 0 0 8rem;
    background: white;
}

.interview-other-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: left;
    margin-bottom: 5rem;
    color: var(--interview-text);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.interview-other-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E5E5;
}

.interview-other-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.interview-other-card {
    position: relative;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.interview-other-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
}

.interview-other-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background-image: inherit;
    background-size: cover;
    background-position: center center;
    transition: transform 1050ms cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    z-index: 1;
}

.interview-other-image::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    background-image: linear-gradient(
        to bottom,
        hsla(0, 0%, 0%, 0) 0%,
        hsla(0, 0%, 0%, 0.009) 11.7%,
        hsla(0, 0%, 0%, 0.034) 22.1%,
        hsla(0, 0%, 0%, 0.072) 31.2%,
        hsla(0, 0%, 0%, 0.123) 39.4%,
        hsla(0, 0%, 0%, 0.182) 46.6%,
        hsla(0, 0%, 0%, 0.249) 53.1%,
        hsla(0, 0%, 0%, 0.320) 58.9%,
        hsla(0, 0%, 0%, 0.394) 64.3%,
        hsla(0, 0%, 0%, 0.468) 69.3%,
        hsla(0, 0%, 0%, 0.540) 74.1%,
        hsla(0, 0%, 0%, 0.607) 78.8%,
        hsla(0, 0%, 0%, 0.668) 83.6%,
        hsla(0, 0%, 0%, 0.721) 88.7%,
        hsla(0, 0%, 0%, 0.762) 94.1%,
        hsla(0, 0%, 0%, 0.790) 100%
    );
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1400ms cubic-bezier(0.19, 1, 0.22, 1), opacity 700ms cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2;
}

.interview-other-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 960 / 1339;
    position: relative;
    z-index: 0;
}

.interview-hover-text {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    text-align: center;
    color: white;
    font-size: clamp(0.8125rem, 1.2vw, 0.9rem);
    line-height: 1.8;
    z-index: 3;
    opacity: 0;
    transition: opacity 700ms cubic-bezier(0.19, 1, 0.22, 1);
}

.interview-hover-text p {
    margin: 0;
    font-weight: 500;
}

.interview-other-image .interview-image-placeholder {
    padding-top: 139.48%; /* 1339/960 = 1.3948 */
    border-radius: 0;
}

.interview-other-info {
    position: relative;
    padding: 2rem 1.5rem;
    z-index: 3;
}

/* 職種と名前の横並びヘッダー */
.interview-other-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.interview-other-department {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    color: var(--interview-primary);
    font-weight: 500;
}

.interview-other-name {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: 500;
    color: var(--interview-text);
}

.interview-other-joined {
    font-size: clamp(0.85rem, 1vw, 0.9rem);
    color: #666;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* 卒業学科・学部 */
.interview-other-major {
    font-size: clamp(0.85rem, 1vw, 0.9rem);
    color: #666;
    font-weight: 500;
}

/* ホバーアニメーション（画像部分のみ） */
@media (hover: hover) and (min-width: 768px) {
    .interview-other-card:hover .interview-other-image::before {
        transform: translateY(-4%);
    }
    
    .interview-other-card:hover .interview-other-image::after {
        transform: translateY(-50%);
        opacity: 1;
    }
    
    .interview-other-card:hover .interview-hover-text {
        opacity: 1;
        transition-delay: 200ms;
    }
}

/* ==========================================
   関連情報リンクリスト
   ========================================== */
/* ==========================================
   レスポンシブ対応
   ========================================== */

/* タブレット */
@media (max-width: 1024px) {
    /* インタビュー対象者情報 */
    .interview-intro-image {
        width: 70%;
    }

    .interview-intro-text {
        width: 50%;
        padding: 3rem 2.5rem;
    }

    .interview-block {
        gap: 4rem;
        margin-bottom: 6rem;
    }

    .interview-other-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ */
@media (max-width: 767px) {
    .interview-hero {
        height: 350px;
    }

    .interview-hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding-left: 5%;
    }

    .interview-hero-label {
        font-size: 0.75rem;
    }

    .interview-hero-title {
        font-size: 1.75rem;
    }

    .interview-content {
        padding: 5rem 0;
    }

    /* インタビュー対象者情報をスマホで縦並び */
    .interview-person-intro {
        flex-direction: column;
        margin-bottom: 5rem;
        justify-content: flex-start;
    }

    .interview-intro-image {
        width: 100%;
        order: -1;
    }

    .interview-intro-text {
        position: relative;
        left: 0;
        width: 90%;
        padding: 2.5rem 2rem;
        margin-top: -3rem;
    }

    .interview-intro-label {
        font-size: 0.6875rem;
        margin-bottom: 1rem;
    }

    .interview-intro-title {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .interview-intro-info {
        padding-top: 1.5rem;
    }

    .interview-intro-header {
        gap: 8px;
        margin-bottom: 0.4rem;
    }

    .interview-intro-department {
        font-size: 0.85rem;
    }

    .interview-intro-name {
        font-size: 0.95rem;
    }

    .interview-intro-joined {
        font-size: 0.85rem;
    }

    .interview-intro-major {
        font-size: 0.85rem;
    }

    /* インタビューブロックを縦並びに */
    .interview-block {
        flex-direction: column;
        gap: 2.5rem;
        margin-bottom: 5rem;
    }

    .interview-block-left,
    .interview-block-right {
        flex-direction: column;
    }

    .interview-block-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .interview-question {
        font-size: 1.375rem;
        margin-bottom: 2rem;
    }

    .interview-answer {
        font-size: 1rem;
        line-height: 1.9;
    }

    .interview-block-full {
        margin-bottom: 5rem;
    }

    .interview-full-image {
        margin-bottom: 0;
    }

    .interview-full-image .interview-image-placeholder {
        padding-top: 60%; /* スマホでは3:2に */
    }

    .interview-block-full .interview-block-text {
        margin: -60px auto 0;
        padding: 2rem 1.5rem;
    }

    /* OTHER PERSON */
    .interview-other {
        padding: 5rem 0;
    }

    .interview-other-title {
        font-size: 1.75rem;
        margin-bottom: 3.5rem;
    }

    .interview-other-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .interview-other-info {
        padding: 1.5rem 1rem;
    }

    .interview-other-header {
        gap: 6px;
        margin-bottom: 0.4rem;
    }

    .interview-other-department {
        font-size: 0.8rem;
    }

    .interview-other-name {
        font-size: 0.9rem;
    }

    .interview-other-joined {
        font-size: 0.8rem;
    }

    .interview-other-major {
        font-size: 0.8rem;
    }
}

/* 極小スマホ */
@media (max-width: 480px) {
    .interview-other-grid {
        grid-template-columns: 1fr;
    }
}
