/* ヒーロー画像 */
.hero {
    position: relative;
    height: 400px;
    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: #fff;
    font-size: 3em;
    font-weight: bold;
    text-align: center;
    font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro",
                 "Yu Mincho", "YuMincho", "MS PMincho", serif;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
    background-color: rgba(0, 0, 0, 0.3); /* 半透明の背景を追加 */
    padding: 20px 40px; /* テキストの周りに余白を追加 */
    border-radius: 10px; /* 角を丸くする */
}

/* テキスト・表 */
table {
    width: 100%;
    border-collapse: collapse;
}
table td {
    padding: 10px 5px;
    vertical-align: top;
}
table td:first-child {
    font-weight: bold;
    width: 150px;
}

/* 見出し */
.section-title1 {
    font-size: 42px;
    font-weight: 600;
    color: #333;
    text-align: center;
    letter-spacing: 1px;
    max-width: 1110px; /* コンテンツ幅と合わせる */
    margin: 10px auto; /* 上下の余白を保ちつつ中央揃え */
}

.section-title2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-align: cente;
    letter-spacing: 1px;
    max-width: 1110px; /* コンテンツ幅と合わせる */
    margin: 40px auto; /* 上下の余白を保ちつつ中央揃え */
    border-bottom: 2px solid #38a6cc;
    padding-bottom: 10px;
}

/* 社員インタビュー画像（後ろの定義で統一） */
.member-card {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    width: 540px;
    transition: opacity 0.3s ease; /* アニメーション効果を変更 */
}
.member-card:hover {
    opacity: 0.8; /* カーソルが乗ったら少し透明にする */
}
.member-wrapper {
    position: relative;
    display: inline-block;
}
.member-image {
    width: 100%;
    height: auto;
    display: block;
}
.member-label {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    min-width: 120px; /* ラベルの最小幅を指定 */
    min-height: 30px; /* ラベルの最小の高さを指定 */
    display: inline-flex; /* テキストを中央揃えにするため */
    align-items: center; /* テキストを垂直方向に中央揃え */
}

/* 社員インタビューカードのコンテナ */
.member-cards-container {
    max-width: 1110px; /* コンテナの最大幅を指定 */
    margin: 0 auto; /* コンテナを中央揃え */
    display: flex;
    gap: 30px; /* カード間の距離 */
    justify-content: flex-start; /* 左揃えにする */
    flex-wrap: wrap; /* 折り返しを許可 */
}

/* more link */
.more-link {
    max-width: 1110px; /* コンテナの最大幅と合わせる */
    margin: 0 auto 40px auto; /* 上下左右のmarginで見栄えを調整し、中央揃え */
    text-align: right;
    padding-right: 20px; /* 右側に余白を追加して左に寄せる */
    box-sizing: border-box; /* paddingを含めて幅を計算 */
}
.more-link a {
    color: #38a6cc;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    transition: color 0.3s ease;
}
.more-link a:hover {
    color: #005f7f; /* マウスオーバーで色が変わるように */
}

/* 募集要項画像 */
.job-section {
    max-width: 1110px;
    margin: 40px auto; /* 上下左右のmarginで見栄えを調整し、中央揃え */
    line-height: 1.8;
    font-size: 16px;
    padding: 0 20px; /* スマホ表示なども考慮し、左右に少し余白を追加 */
    box-sizing: border-box; /* paddingを含めて幅を計算 */
}
/* 募集要項カードのコンテナ */
.job-cards-container {
    max-width: 1110px; /* コンテナの最大幅を指定 */
    margin: 0 auto; /* コンテナを中央揃え */
    display: flex;
    flex-direction: row;
    gap: 30px; /* カード間の距離 */
    margin-bottom: 60px; /* フッターとの間に余白を追加 */
}
.job-card {
    width: 540px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease; /* アニメーション効果を変更 */
}
.job-card:hover {
    opacity: 0.8; /* カーソルが乗ったら少し透明にする */
}
.job-wrapper {
    position: relative;
    display: inline-block;
}
.job-photo {
    width: 100%;
    height: auto;
    display: block;
}
.job-label {
    position: absolute;
    top: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    pointer-events: none;
    width: 320px; /* 幅を固定 */
    height: 50px; /* 高さを固定 */
    display: flex; /* テキストを中央揃えにするため */
    justify-content: center; /* 水平方向に中央揃え */
    align-items: center; /* 垂直方向に中央揃え */
    border-radius: 4px; /* 角を少し丸くする */
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    /* ヒーロー画像 */
    .hero {
        height: 250px; /* スマートフォン表示時の高さを調整 */
    }
    .hero-text {
        font-size: 1.8em; /* 文字サイズを調整 */
        padding: 15px 20px; /* 余白を調整 */
        width: 90%; /* 横幅を画面に合わせる */
    }

    /* 見出し */
    .section-title {
        font-size: 28px; /* 文字サイズを調整 */
        text-align: center; /* 中央揃えに変更 */
        margin-top: 30px;
        margin-bottom: 30px;
        border-bottom: 2px solid #38a6cc;
        padding-bottom: 10px;
    }

    /* 社員インタビュー */
    .member-cards-container {
        flex-direction: column; /* 縦並びに変更 */
        align-items: stretch; /* 両端揃えに変更 */
        gap: 20px;
    }
    .member-card {
        width: 100%; /* 横幅を画面に合わせる */
    }

    /* more link */
    .more-link {
        width: 100%;
        text-align: center; /* 中央揃えに変更 */
        margin: 20px 0 40px 0;
        padding-right: 0; /* 右側の余白をリセット */
    }

    /* 募集要項 */
    .job-section {
        width: 90%;
        padding-left: 0; /* 左の余白を削除 */
        margin: 30px auto; /* 中央に配置 */
    }
    .job-cards-container {
        padding-left: 0; /* 左の余白を削除 */
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .job-label {
        font-size: 16px; /* 文字サイズを調整 */
    }
    .job-card {
        width: 100%; /* 横幅を画面に合わせる */
    }
}
