@charset "UTF-8";
/* ===================================================================
   etsjapaninterview.css
   世界とつながる国際教育 ― 先進校の取り組み ページ専用スタイル
=================================================================== */

/* 余白解消：etsjapantopprogram.css と同様に body の余白を削除（interview-hero がヘッダー直下に配置） */
body:has(.interview-hero):has(.custom-header) {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

@media only screen and (max-width: 979px) {
    body:has(.interview-hero):has(.custom-header) {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

@media only screen and (max-width: 690px) {
    body:has(.interview-hero):has(.custom-header) {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* 隙間の原因になりうる要素を完全に非表示（CMSで高さ・余白が付与される場合の対策） */
body.page-interview #hs-web-interactives-top-push-anchor,
body.page-interview .pc_gnavi_bg {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* ヒーローエリア（左：画像コラージュ、右：タイトル・説明） */
.interview-hero {
    margin-top: 0;
    padding: 130px 0 60px;
    background: #ffffff;
}

body.page-interview:has(.custom-header):not(:has(.main-visual-carousel)) .interview-hero {
    padding-top: 130px;
}

.interview-hero-container {
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1120px;
    width: 94%;
    margin: 0 auto;
    padding: 0 3%;
}

/* 左：画像コラージュ */
.interview-hero-left {
    flex: 1;
    min-width: 0;
}

.interview-hero-collage {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

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

/* 右：タイトル・説明 */
.interview-hero-right {
    flex: 1;
    min-width: 0;
}

.interview-hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    color: #343579;
    line-height: 1.4;
    margin: 0 0 24px;
}

.interview-hero-description {
    font-size: 1.56rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

/* メインコンテンツ（インタビュー一覧） */
.interview-main {
    padding: 0 0 60px;
    background: #f8f9fa;
}

body.page-interview .interview-main .container {
    max-width: 1120px;
    width: 94%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 3%;
    padding-right: 3%;
}

/* カードグリッド（PC: 3列） */
.interview-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.interview-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s, transform 0.2s;
}

.interview-card:hover {
    box-shadow: 0 8px 24px rgba(52, 53, 121, 0.15);
    transform: translateY(-2px);
}

/* 画像エリア（画像の高さに合わせる） */
.interview-card-image {
    position: relative;
    width: 100%;
    background: #e8e8e8;
    overflow: hidden;
}

.interview-card-image img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

/* テキストエリア */
.interview-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.interview-card .interview-school {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px;
}

.interview-card .interview-meta {
    font-size: 1.3125rem;
    color: #666;
    margin: 0;
}

.interview-card:hover .interview-school,
.interview-card:hover .interview-meta {
    color: #343579;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    body.page-interview:has(.custom-header):not(:has(.main-visual-carousel)) .interview-hero {
        padding-top: 80px;
    }

    .interview-hero {
        padding-bottom: 40px;
    }

    .interview-hero-container {
        flex-direction: column;
        gap: 32px;
    }

    .interview-hero-right {
        order: -1;
    }

    .interview-hero-title {
        font-size: 2.34rem;
        text-align: center;
    }

    .interview-hero-description {
        font-size: 1.43rem;
        text-align: center;
    }

    .interview-hero-collage {
        max-width: 360px;
    }

    .interview-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .interview-card .interview-school {
        font-size: 1.425rem;
    }

    .interview-card .interview-meta {
        font-size: 1.2rem;
    }

    .interview-card-content {
        padding: 12px;
    }
}

@media screen and (max-width: 480px) {
    body.page-interview:has(.custom-header):not(:has(.main-visual-carousel)) .interview-hero {
        padding-top: 70px;
    }

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

    .interview-hero-description {
        font-size: 1.3rem;
    }

    .interview-hero-collage {
        max-width: 280px;
    }

    .interview-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
