/* -------------------------------------------
 * カジュアル面談ページ専用スタイル
 * ------------------------------------------- */

/* -------------------------------------------
 * ヘッダー背景
 * ------------------------------------------- */
 .site-header {
    background-image: url('../img/common/common_bg_header.jpg');
    background-size: cover;
    background-position: center;
    height: 250px;
    position: relative;
    overflow: hidden;
}

/* ヘッダーの下に白いカーブを作成 */
.site-header::after {
    content: '';
    position: absolute;
    bottom: -700px;
    left: -25%;
    width: 150%;
    height: 800px;
    background: white;
    border-radius: 50%;
}

/* ヘッダーコンテナの設定 */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    position: relative;
    z-index: 10;
    height: 100%;
}

.logo img {
    height: 2.5rem;
    width: auto;
}

/* ナビゲーションの文字色を調整 */
header nav a span {
    color: #000000;
}

header nav a .text-custom-orange {
    color: #E74C07;
}

/* メニュー内ロゴの初期設定（非表示） */
.logo-in-menu {
    display: none;
}

.main-nav ul {
    display: flex;
    flex-direction: column; /* スマホでは縦並び */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.main-nav li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.main-nav .nav-en {
    font-family: var(--font-jost);
    color: var(--custom-orange);
    font-weight: 700;
    font-size: 1.25rem;
}

.main-nav .nav-ja {
    font-weight: 700;
    font-size: 0.6875rem;
    margin-top: -0.25rem;
    color: #000;
}

/* -------------------------------------------
 * ハンバーガーメニュー
 * ------------------------------------------- */
 .hamburger-button {
    display: none; /* PCでは非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 1px;
    z-index: 1001; /* メニューより手前に */
}

.hamburger-bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-black);
    margin: 6px 0;
    transition: all 0.3s ease-in-out;
}

/* ハンバーガーメニューが開いた時の「×」印アニメーション */
.hamburger-button.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-button.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger-button.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* -------------------------------------------
 * フッター
 * ------------------------------------------- */
.site-footer {
    background-color: #fff;
    text-align: center;
}

.footer-container {
    padding: 2.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    height: 3rem;
    width: auto;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-links img {
    height: 1.5rem;
    width: 1.5rem;
}

.social-links a:last-child img {
    height: 2.25rem;
    width: auto;
}

.copyright {
    background-color: #000;
    color: #fff;
    font-size: 0.75rem;
    padding: 1rem 0;
}

/* -------------------------------------------
 * メインコンテンツ
 * ------------------------------------------- */
.main-container {
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}


/* -------------------------------------------
 * ぱんくずリスト
 * ------------------------------------------- */
.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    font-weight: 600;
}

/* -------------------------------------------
 * ページトップセクション
 * ------------------------------------------- */
.page-top-section {
    margin-bottom: 2rem;
}

.page-top-en {
    font-family: 'Jost', sans-serif;
    font-size: 1.25rem;
    color: #69b55c;
    margin-bottom: 0;
}

.page-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 2rem;
}

.page-subtitle {
    display: block;
    font-size: 0.75rem;
    margin-top: 0;
    font-weight: normal;
}

/* -------------------------------------------
 * コンテンツセクション
 * ------------------------------------------- */
.content-section {
    margin-bottom: 2rem;
}

.section-title {
    position: relative;
    padding-left: 2rem;
    display: inline-block;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0;
    margin-top: 0;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 8px;
    background-color: #69b55c;
    top: 45%;
    transform: translateY(-50%);
}

.section-subtitle {
    font-family: 'Jost', sans-serif;
    color: #aaaaaa;
    font-size: 1rem;
    padding-left: 2rem;
    margin-top: -0.7rem;
}

/* -------------------------------------------
 * 面談内容セクション
 * ------------------------------------------- */
.interview-content-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* 縦並びに変更 */
    align-items: center;   /* 中央揃えにする */
    margin-top: 3rem;
}

.interview-content-img {
    width: 100%;
    max-width: 600px; /* 画像が大きくなりすぎないように最大幅を指定 */
    height: auto;     /* 高さは自動で調整 */
}

.interview-content-text {
    position: static; /* position: absolute; から変更 */
    margin-top: -1rem; /* 画像との間に余白を追加 */
    width: 100%;      /* 幅を100%に設定 */
}

.highlight-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    padding-left: 2rem;
    line-height: 1.2;
    margin-top: 1.25rem;
}

.highlight-text span {
    text-decoration: underline;
    text-decoration-color: rgba(105, 181, 92, 0.5);
    text-decoration-thickness: 5px;
    text-underline-offset: 0;
}

.description-text {
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    margin-top: 2rem;
    padding-left: 2rem;
}

/* -------------------------------------------
 * 面談者グリッド
 * ------------------------------------------- */
.interviewer-grid {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
    gap: 3rem 2rem;
    padding: 0 2rem;
    margin-top: 2rem;
}

.interviewer-card {
    text-align: center;
}

.interviewer-img-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
}

.interviewer-img-wrapper .img-bg {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    width: 100%;
    height: 100%;
    background-color: rgba(105, 181, 92, 0.7);
    z-index: -1;
}

.interviewer-img-wrapper img {
    position: relative;
    z-index: 10;
}

.interviewer-title {
    font-weight: 500;
    font-size: 1rem;
    margin-top: 2rem;
    margin-bottom: 0rem;
}

.interviewer-name {
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 0;
}

.interviewer-info {
    margin-top: 1.5rem;
    text-align: left;
}

.interviewer-info h4 {
    font-weight: 600;
    color: #aaaaaa;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    margin: 0 0 0.5rem 0;
}

.interviewer-info h4::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: rgba(170, 170, 170, 0.3);
    margin-left: 0.5rem;
}

.interviewer-info p {
    font-size: 0.9375rem;
    margin: 0;
}

/* -------------------------------------------
 * レスポンシブ設定 (スマートフォン)
 * ------------------------------------------- */
@media (max-width: 767px) {
    .site-header::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: -25%;
        width: 150%;
        height: 200px;
        background: white;
        border-radius: 50%;
    }

    .main-container {
        padding: 1rem;
        margin-top: -6rem;
    }

    .breadcrumb {
        margin-bottom: 2.5rem;
    }

    .main-nav ul {
        gap: 0.5rem; /* 例：スマホではナビゲーションの間隔を詰める */
    }

    .breadcrumb {
        margin-bottom: 2.5rem;
    }

    .page-top-en {
        font-size: 1rem;
        margin-bottom: 0;
    }

    .page-title {
        margin-top: -0.5rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-top: -2rem;
    }

    .section-title::before {
        width: 20px;
        height: 6px;
        left: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
        margin-top: -0.9rem;
    }

    .interview-content-wrapper {
        margin-top: 2.5rem;
    }

    .highlight-text {
        font-size: 1rem;
        line-height: 0.5;
        padding-left: 1rem;
    }

    .description-text {
        font-size: 0.84rem;
        padding-left: 1rem;
        padding-right: 0rem;
        margin-top: 1.2rem;
        line-height: 1.3;
    }

    .interview-content-img {
        width: 80%;
        max-width: 600px; /* 画像が大きくなりすぎないように最大幅を指定 */
        height: auto;     /* 高さは自動で調整 */
        margin-top: -2rem;
    }

    .interviewer-grid {
        gap: 0 1rem;
        padding: 0 1rem;
        margin-top: -1rem;
        margin-bottom: -2rem;
    }

    .interviewer-img-wrapper .img-bg {
        position: absolute;
        top: 0.3rem;
        left: 0.3rem;
        width: 100%;
        height: 100%;
        background-color: rgba(105, 181, 92, 0.7);
        z-index: -1;
    }

    .interviewer-title {
        font-weight: 500;
        font-size: 0.63rem;
        margin-top: 1rem;
        margin-bottom: 0rem;
        line-height: 1;
    }
    
    .interviewer-name {
        font-weight: 600;
        font-size: 1rem;
        margin-top: 0;
        margin-bottom: 0.5rem;
    }
    
    .interviewer-info {
        display: none;
    }
    .hamburger-button {
        display: block; /* スマホでは表示 */
    }
    
    .main-nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        /* メニュー内の配置を調整 */
        flex-direction: column;
        justify-content: flex-start; /* 上から配置 */
        align-items: center;
        padding-top: 0;
        box-sizing: border-box;


        /* 初期状態は画面の外(右)で非表示 */
        transform: translateX(100%);
        visibility: hidden;
        /* なめらかな動きのためのtransition設定 */
        transition: transform 0.4s ease-in-out, visibility 0.4s;
    }
    
    .main-nav.is-active {
        transform: translateX(0);
        visibility: visible;
    }
    
    .main-nav.is-active .logo-in-menu {
        display: block;
        position: absolute; /* ← 要素を独立させる */
        top: 2rem;          /* ← 上からの位置を指定 */
        left: 2rem;         /* ← 左からの位置を指定 */
    }

    .logo-in-menu img {
        height: 2.5rem; /* ヘッダーロゴと同じ高さを指定 */
        width: auto;
    }
    /* メニュー項目を縦並びに */
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        padding-top: 10rem; /* ← ロゴと被らないように上部に余白を追加 */
        width: 100%;       /* 中央揃えを維持するために幅を指定 */
    }
    
}

/* -------------------------------------------
 * レスポンシブ対応
 * ------------------------------------------- */
@media (min-width: 768px) {
    .interviewer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .main-nav ul {
        flex-direction: row; /* デスクトップでは横並び */
        gap: 2rem;
    }

    .page-top-section {
        margin-bottom: 6rem;
    }

    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.25rem;
    }
    .content-section {
        margin-bottom: 0rem;
    }

    .grid-container {
        grid-template-columns: repeat(12, 1fr);
        gap: 3rem;
    }
    
    .main-content {
        grid-column: span 8 / span 8;
    }

    .sidebar {
        grid-column: span 4 / span 4;
    }

    .sidebar-sticky {
        position: sticky;
        top: 1rem;
    }

    .interview-content-wrapper {
        position: relative;
    }

    .interview-content-img {
        width: auto;           /* 幅を自動調整に戻す */
        height: 320px;         /* デスクトップでの高さを固定 */
        max-width: none;       /* 最大幅の制限を解除 */  
        display: block;     
        margin-left: auto;
        transform: translateY(-8rem);  
    }

    .interview-content-text {
        position: absolute;
        bottom: 6rem;
        left: 0;
        margin-top: 2rem;
    }

    .highlight-text {
        font-size: 1.5rem;
        line-height: 1; 
    }

    .description-text {
        font-size: 1.125rem; 
    }
}
