/* ヒーロー画像 */
.hero {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro",
                 "Yu Mincho", "YuMincho", "MS PMincho", serif;
}

/* テキスト・表 */
table {
    width: 100%;
    border-collapse: collapse;
}
table td {
    padding: 10px 5px;
    vertical-align: top;
}
table td:first-child {
    font-weight: bold;
    width: 150px;
}

/* 見出し */
.section-title {
    font-size: 42px;
    font-weight: 600;
    color: #333333;
    margin-top: 0;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 1px;
}

/* 社員インタビュー画像（後ろの定義で統一） */
.member-card {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    width: 600px;
    margin: 20px; /* カードの周りに余白を追加 */
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */ /* アニメーション効果を削除 */
}
.member-wrapper {
    position: relative;
    display: inline-block;
}
.member-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease; /* 透明度の変化を滑らかにする */
}

.member-card:hover .member-image {
    opacity: 0.8; /* カーソルを合わせると少し透明にする */
}
.member-label {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    width: 180px; /* 横幅を固定 */
}

/* 社員インタビューカードのコンテナ */
.member-cards-container {
    text-align: center;
}

/* more link */
.more-link {
    width: 95%;
    text-align: right;
    margin: 0 0 40px 0;
}
.more-link a {
    color: #38a6cc;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
}

/* メインコンテンツとフッターの間の余白 */
.recruit {
    margin-bottom: 80px;
}

/* レスポンシブ対応 (768px以下) */
@media screen and (max-width: 768px) {
    /* ヒーロー画像 */
    .hero {
        height: 200px;
    }
    .hero-text {
        font-size: 2em;
    }

    /* 見出し */
    .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    /* テキスト・表 */
    table,
    table tbody,
    table tr,
    table td {
        display: block;
        width: 100% !important;
    }
    table td {
        text-align: left !important;
        padding: 10px 0;
    }
    table td:first-child {
        font-weight: bold;
    }

    /* 社員インタビューカードのコンテナ */
    .member-cards-container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding-left: 20px; /* コンテナの左に余白を追加 */
        padding-right: 20px; /* コンテナの右に余白を追加 */
    }

    /* カード内のラッパー */
    .member-wrapper {
        width: 100%;
    }

    /* 社員インタビューカード */
    .member-card {
        display: block; /* ブロックレベル要素に変更 */
        width: 100%;
        margin-bottom: 20px;
        margin-left: 0;
        margin-right: 0;
    }
    .member-card:hover {
        transform: none;
        box-shadow: none;
    }
    .member-label {
        font-size: 14px;
        padding: 6px 12px;
        width: 120px; /* ラベルの幅をさらに調整 */
    }

    /* more link */
    .more-link {
        text-align: center;
    }
}
