/* ==========================================================================
   下層ページ（仕事内容・募集要項など）専用スタイル
   ========================================================================== */

/* --- 下層共通ヒーローエリア --- */
.sub-hero {
    padding: 160px 0 80px;
    text-align: center;
    color: #fff;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* 各ページのヒーロー背景画像 */
.work-hero { background-image: url('images/image.05.jpg'); } /* 仕事内容用 */
.recruit-hero { background: #004ea2; } /* 募集要項用（青） */

.sub-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 78, 162, 0.7); /* 青いオーバーレイ */
    z-index: 1;
}

.sub-hero-inner {
    position: relative;
    z-index: 2;
}

.sub-hero-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.sub-hero-title span {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 15px;
    letter-spacing: 0.2em;
}

/* --- コンテナ設定 --- */
.sub-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #004ea2;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #ffd43b; /* 黄色のアクセント */
}

/* ==========================================================================
   仕事内容ページ（work.html）専用
   ========================================================================== */

/* --- 仕事紹介ブロック（横並びレイアウト） --- */
.work-intro-block {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 120px;
}

.work-text {
    flex: 1;
}

.eyecatch {
    display: inline-block;
    color: #004ea2;
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
}

.work-text h3 {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 900;
    margin-bottom: 30px;
}

.work-text p {
    line-height: 2;
    color: #555;
    font-size: 1.05rem;
}

.work-image {
    flex: 1;
}

.work-image img {
    width: 100%;
    height: auto;
    box-shadow: 20px 20px 0 #ffd43b; /* 黄色の影でかわいく＆目立たせる */
    border-radius: 8px;
}

/* --- よくある質問（アコーディオン） --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: 0.3s;
}

/* Qの部分 */
.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.accordion-header:hover {
    background-color: #f8fbff;
    color: #004ea2;
}

/* プラス・マイナスアイコン */
.accordion-header .icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.accordion-header .icon::before,
.accordion-header .icon::after {
    content: "";
    position: absolute;
    background-color: #004ea2;
    transition: 0.3s;
}

/* 横棒 */
.accordion-header .icon::before {
    width: 100%;
    height: 2px;
    top: 7px;
    left: 0;
}

/* 縦棒 */
.accordion-header .icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 7px;
}

/* Aの部分（基本は非表示） */
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* なめらかに開閉 */
}

.accordion-content {
    padding: 0 25px 25px; /* 上の余白をなくす */
    line-height: 1.8;
    color: #666;
    font-size: 0.95rem;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* ★アクティブ時（開いた時）のスタイル */
.accordion-item.active .accordion-header {
    background-color: #004ea2;
    color: #fff;
}

/* 開いた時はアイコンを「マイナス」に */
.accordion-item.active .accordion-header .icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.accordion-item.active .accordion-header .icon::before {
    background-color: #fff;
}

/* JavaScriptでmax-heightを計算して開く */
.accordion-item.active .accordion-body {
    max-height: 500px; /* 十分な高さを設定（コンテンツに合わせて自動調整される） */
}

/* ==========================================================================
   募集要項ページ（requirements.html）専用
   ========================================================================== */
.recruit-section { padding: 80px 0; background-color: #fff; }
.recruit-container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.recruit-lead { text-align: center; font-size: 1.1rem; margin-bottom: 50px; color: #444; line-height: 2; }
.recruit-table { width: 100%; border-collapse: collapse; border-top: 4px solid #004ea2; margin-bottom: 50px; }
.recruit-table th, .recruit-table td { padding: 25px; border-bottom: 1px solid #eee; line-height: 1.8; }
.recruit-table th { width: 25%; background-color: #f8fbff; color: #004ea2; text-align: left; font-weight: 900; vertical-align: top; }
.recruit-table td { background-color: #fff; }
.salary-main { font-size: 1.3rem; font-weight: 900; color: #d32f2f; margin-bottom: 10px; }
.salary-details ul, .holiday-details ul { margin: 10px 0; padding-left: 20px; font-size: 0.95rem; }
.holiday-badge { display: inline-block; background: #004ea2; color: #fff; padding: 2px 12px; font-weight: 900; border-radius: 4px; margin-bottom: 10px; }
.small-info { font-size: 0.85rem; color: #777; margin-top: 5px; }
.support-text { display: block; margin-top: 5px; color: #004ea2; font-weight: 700; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; padding: 0; }
.benefit-grid li::before { content: "●"; color: #004ea2; margin-right: 8px; }

/* --- 下層共通CTA --- */
.work-bottom-cta, .recruit-bottom-cta { text-align: center; background: #f8fbff; padding: 60px 20px; border-radius: 10px; margin-top: 80px; }
.work-bottom-cta p, .recruit-bottom-cta p { font-weight: 900; font-size: 1.2rem; margin-bottom: 30px; }

/* --- レスポンシブ設定 --- */
@media (max-width: 768px) {
    .sub-hero { padding: 120px 0 60px; }
    .sub-hero-title { font-size: 2rem; }
    .work-intro-block { flex-direction: column; gap: 30px; text-align: center; }
    .work-text h3 { font-size: 1.8rem; }
    .accordion-header { font-size: 1rem; padding: 15px 20px; }
    .recruit-table th, .recruit-table td { display: block; width: 100%; box-sizing: border-box; }
    .recruit-table th { background-color: #004ea2; color: #fff; padding: 10px 20px; }
    .benefit-grid { grid-template-columns: 1fr; }
}
/* --- 社員の声ページ（voice.html）専用 --- */

.voice-section {
    padding: 100px 0;
    background-color: #f8f9fa; /* 薄いグレーでカードを浮かせる */
}

/* グリッドレイアウト */
.staff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* スタッフカード */
.staff-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
}

/* 画像エリア */
.staff-image {
    position: relative;
    width: 100%;
    height: 300px; /* 少し高さを出しました */
}

.staff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 入社年数バッジ（クラス名を tenure-badge から staff-tag に変更した場合） */
.staff-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 78, 162, 0.9); /* 青色を統一 */
    color: #fff;
    padding: 6px 15px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
}

/* コンテンツエリア */
.staff-content {
    padding: 30px;
    text-align: left;
}

.staff-role {
    color: #004ea2; /* 青色を統一 */
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.staff-name {
    font-size: 1.6rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-weight: 900;
}

.staff-text {
    line-height: 1.9;
    color: #555;
    font-size: 1rem;
}

/* 下部CTA（他の下層ページと共通のデザインにする場合） */
.sub-bottom-cta {
    margin-top: 80px;
    text-align: center;
}

.sub-bottom-cta p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: bold;
}

/* レスポンシブ（スマホ対応） */
@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
    .staff-image {
        height: 250px;
    }
}