@charset "UTF-8";

/* =========================================
   ベース設定・レイアウト
========================================= */
:root {
    --font-2xs: 1vw;
}

.interview-page-container {
    margin: 0 auto;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
    width: 100%;
}

/* =========================================
   トップ背景
========================================= */
.top-bg-section {
    background-image: var(--bg-pc);
    background-size: cover;
    background-position: center 120px;
    background-repeat: no-repeat;
    padding: 0 0 60px;
    width: 100%;
}

/* =========================================
   メインビジュアル
========================================= */
.main-visual {
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
    margin: 0 auto;
}

.main-visual img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* =========================================
   インタビュー検索セクション
========================================= */
.interview-search {
    width: 100%;
    padding: 4vw 10% 0;
    color: #fff;
    box-sizing: border-box;
}

.search-inner {
    width: 100%;
    max-width: 75%;
    margin: 0 auto;
}

.search-title {
    text-align: left;
    margin-left: 7vw;
    font-size: var(--font-xl);
    margin-bottom: 1.5vw;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.search-group {
    display: flex;
    flex-direction: column;
}

.search-row {
    display: flex;
    align-items: center;
    padding: 1.5vw 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.search-row:last-child {
    border-bottom: none;
}

.search-label {
    flex-shrink: 0;
    width: 5vw;
    height: 5vw;
    font-weight: bold;
    text-align: center;
    background: #fff;
    color: var(--theme_color);
    border-radius: 50%;
    margin-right: 2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-s);
    letter-spacing: 0.25em;
    text-indent: 0.25em;

}

.search-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8vw;
    align-items: center;
    min-height: 5vw;
}

/* =========================================
   検索ボタン（チェックボックス）
========================================= */
.search-checkbox-btn {
    display: inline-block;
    cursor: pointer;
}

/* 実際のチェックボックスは非表示にする */
.search-checkbox-btn input[type="checkbox"] {
    display: none;
}

/* チェックボックスの代わりの見た目 */
.search-checkbox-btn .btn-text {
    color: #333;
    background: #fff;
    padding: 8px 14px;
    letter-spacing: 0.2em;
    font-weight: bold;
    font-size: var(--font-xs);
    border: 1px solid #333;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 2px 2px 0 #333;
    transition: all 0.15s ease-out;
}

/* PC（マウス操作）のみホバー色を適用する */
@media (hover: hover) and (pointer: fine) {
    .search-checkbox-btn:hover .btn-text {
        background: #808080;
        color: #fff;
        border-color: #333;
        transform: none;
        box-shadow: 2px 2px 0 #333;
    }
}

/* チェックされている（選択中）時の色 */
.search-checkbox-btn input[type="checkbox"]:checked+.btn-text {
    background: #808080;
    color: #fff;
    border-color: #333;
    transform: none;
    box-shadow: 2px 2px 0 #333;
}

/* =========================================
   社員インタビュー一覧
========================================= */
.interview-list-wrap {
    width: 100%;
    max-width: 70%;
    margin: 60px auto;
    padding: 0;
}

.section-title {
    font-size: var(--font-xl);
    padding-left: 24px;
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.75vw;
    height: 1em;
    background-color: var(--theme_color);
}

.interview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.interview-card {
    margin: 0;
    padding: 0;
    height: 100%;
}

.interview-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.interview-card a:hover {
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 6%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: var(--font-xs);
    margin: 0 0 20px;
    line-height: 1.6;
    font-weight: bold;
}

.card-info {
    font-size: var(--font-2xs);
    color: #111;
    font-weight: bold;
    margin: 0;
    padding-left: 12px;
    position: relative;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

/* 枠線ではなくブロックとして赤い縦線を作る */
.card-info::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0;
    width: 0.5vw;
    height: 100%;
    background-color: var(--theme_color);
}

.card-info .tag {
    display: none;
}

/* =========================================
   ローディングアニメーション
========================================= */
.interview-grid {
    transition: opacity 0.3s ease;
}

.interview-grid.is-loading {
    opacity: 0.3;
    pointer-events: none;
}

.loading-spinner-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 200px;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--theme_color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   レスポンシブ対応 (SP版)
========================================= */
@media screen and (max-width: 768px) {
    :root {
        --font-2xs: 3vw;
    }

    .top-bg-section {
        background-image: var(--bg-sp);
        padding: 0 0 40px;
    }

    .main-visual {
        padding: 0;
    }

    .interview-search {
        padding: 20px 5%;
    }

    .search-inner {
        max-width: 100%;
    }

    .search-title {
        text-align: left;
        margin-left: 2vw;
        margin-bottom: 5px;
        padding-top: 15px;
    }

    .search-group {
        background: #fff;
        border-radius: 5px;
        padding: 0 15px;
    }

    .search-row {
        display: grid;
        grid-template-rows: auto 0fr;
        padding: 10px 2.5%;
        border-bottom: 1px solid var(--theme_color);
        transition: grid-template-rows 0.3s ease-out;
    }

    .search-row.is-active {
        grid-template-rows: auto 1fr;
    }

    .search-row:last-child {
        border-bottom: none;
    }

    .search-label {
        width: 100%;
        height: 50px;
        background: transparent;
        color: var(--theme_color);
        border-radius: 0;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: bold;
        cursor: pointer;
        position: relative;
        padding-right: 30px;
    }

    .search-label::after {
        content: "";
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 14px;
        height: 2px;
        background-color: var(--theme_color);
        transition: transform 0.3s ease;
    }

    .search-label::before {
        content: "";
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 14px;
        background-color: var(--theme_color);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .search-row.is-active .search-label::before {
        opacity: 0;
        transform: translateY(-50%) rotate(90deg);
    }

    .search-list {
        display: flex;
        min-height: 0;
        padding: 0;
        gap: 12px 8px;
        margin-top: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease-out, padding 0.3s ease-out, visibility 0.3s;
    }

    .search-row.is-active .search-list {
        padding: 10px 0 20px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .search-checkbox-btn .btn-text {
        padding: 10px 18px;
    }

    .interview-list-wrap {
        max-width: 100%;
        margin: 40px auto;
        padding: 0 5%;
    }

    .section-title {
        margin-bottom: 20px;
    }

    /* --- SP版 インタビューカード --- */
    .interview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 15px;
    }

    .interview-card a {
        border-radius: 8px;
        box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    }

    .interview-card a:hover {
        box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
        transform: none;
    }

    .card-content {
        padding: 12% 9%;
    }

    .card-title {
        font-size: var(--font-xs);
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .section-title::before {
        width: 1.5vw;
    }

    .card-info::before {
        width: 1vw;
    }
}