/* ===============================================
   募集要項
   =============================================== */
#requirements {
    margin-top: 100px;
}
.requirements-table {
    border-top: 1px solid var(--border-color);
}
.requirements-table dt,
.requirements-table dd {
    display: inline-block;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}
.requirements-table dt {
    width: 25%;
    font-weight: 700;
    background-color: #f8f9fa;
}
.requirements-table dd {
    width: 75%;
    margin-left: -4px; /* for inline-block gap */
}


/* ===============================================
   業務内容 (オーバーラップレイアウト)
   =============================================== */
.business-overlap-wrapper {
    position: relative;
    margin: 80px auto;
    height: 500px;
}
.business-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
}
.business-images img {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    object-fit: cover;
}
.overlap-img-1 {
    width: 70%;
    height: auto;
    top: 0;
    left: 0;
    z-index: 1;
}
.overlap-img-2 {
    width: 60%;
    height: auto;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 5px solid white;
}
.business-text-content {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50%;
    background-color: white;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 3;
}
.business-text-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.5;
}
.business-text-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-color-light);
}


/* ===============================================
   1日のスケジュール (ジグザグタイムライン)
   =============================================== */
.schedule-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.schedule-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
.timeline-block {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}
.timeline-block:nth-child(odd) {
    left: 0;
}
.timeline-block:nth-child(even) {
    left: 50%;
}
.timeline-block::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 25px;
    background-color: var(--bg-light-blue);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}
.timeline-block:nth-child(odd)::after {
    right: -8px;
}
.timeline-block:nth-child(even)::after {
    left: -8px;
}
.timeline-content,
.timeline-img {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.timeline-img img {
    border-radius: 6px;
}
.timeline-content .timeline-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}
.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color-light);
}


/* ===============================================
   社員インタビュー
   =============================================== */
#interview .container {
    max-width: 1280px;
}
.interview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.interview-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.interview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* ▼▼▼ ここから修正 ▼▼▼ */
.interview-card-image {
    background-color: #eef5fa;
    text-align: center;
    padding: 30px 0; /* 上下の余白を確保 */
}
.interview-card-image img {
    width: 80%;
    height: 220px;
    object-fit: contain;
    object-position: center 20%;
    display: inline-block;
}
.interview-card-job {
    /* position: absolute を削除し、通常の要素として配置 */
    background-color: white;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: bold;
    color: var(--primary-color);
    width: 80%;
    box-sizing: border-box;
    font-size: 1.1rem;
    text-align: center;
    /* 上下のマージンで位置を調整 */
    margin: -25px auto 20px; /* ネガティブマージンで画像エリアに少し重ねる */
    position: relative; /* z-indexを効かせるため */
    z-index: 2;
}
.interview-card-job small {
    font-size: 0.8rem;
    display: block;
    font-weight: normal;
    margin-top: 2px;
}
.interview-card-body {
    padding: 20px 20px 20px; /* 上の余白を調整 */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
/* ▲▲▲ ここまで修正 ▲▲▲ */

.interview-card-text {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1;
}
.interview-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto;
}
.interview-card-name,
.interview-card-year {
    font-size: 0.9rem;
    color: var(--text-color-light);
}


/* ===============================================
   選考プロセス
   =============================================== */
.process-flow {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    text-align: center;
}
.process-flow li {
    width: 18%;
    padding: 20px;
    position: relative;
}
.process-flow li span {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
}
.process-flow li:not(:last-child)::after {
    content: '▶';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    font-size: 20px;
}


/* ===============================================
   Q&A
   =============================================== */
.qa-item {
    border-bottom: 1px solid #ddd;
}
.qa-item summary {
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    list-style: none;
}
.qa-item summary::-webkit-details-marker {
    display: none;
}
.qa-item summary::after {
    content: '+';
    position: absolute;
    right: 10px;
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.qa-item[open] summary::after {
    transform: rotate(45deg);
}
.qa-item p {
    padding: 0 20px 20px;
}


/* ===============================================
   ハンバーガーメニュー
   =============================================== */
#hamburger-menu-check {
    display: none;
}
.hamburger-menu-icon {
    display: none;
    position: relative;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1010;
}
.hamburger-menu-icon span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: all 0.4s;
}
.hamburger-menu-icon span:nth-of-type(1) { top: 0; }
.hamburger-menu-icon span:nth-of-type(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu-icon span:nth-of-type(3) { bottom: 0; }

#hamburger-menu-check:checked ~ .hamburger-menu-icon span:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
#hamburger-menu-check:checked ~ .hamburger-menu-icon span:nth-of-type(2) {
    opacity: 0;
}
#hamburger-menu-check:checked ~ .hamburger-menu-icon span:nth-of-type(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/* ===============================================
   レスポンシブ対応 (992px以下 / タブレット)
   =============================================== */
@media (max-width: 992px) {
    /* 業務内容 */
    .business-overlap-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        margin: 0;
    }
    .business-images,
    .business-text-content {
        position: static;
        width: 100%;
        transform: none;
    }
    .business-images {
        display: none;
    }
    .business-text-content {
        padding: 0;
        box-shadow: none;
    }

    /* 社員インタビュー */
    .interview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ===============================================
   レスポンシブ対応 (768px以下 / スマートフォン)
   =============================================== */
@media (max-width: 768px) {
    /* 全体 */
    .section-title { font-size: 2rem; }
    .card-grid { grid-template-columns: 1fr; }

    /* ヘッダー */
    .hamburger-menu-icon { display: block; }
    .header-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        padding-top: 100px;
        transition: right 0.5s;
        z-index: 1000;
    }
    .header-nav ul { flex-direction: column; align-items: center; gap: 0; }
    .header-nav li { width: 100%; text-align: center; }
    .header-nav a {
        display: block;
        padding: 20px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid var(--border-color);
    }
    .header-nav a::after { display: none; }
    #hamburger-menu-check:checked ~ .header-nav { right: 0; }

    /* 業務内容 */
    .business-text-content h3 { font-size: 1.5rem; }

    /* 1日のスケジュール */
    .schedule-timeline::after { left: 20px; }
    .timeline-block { width: 100%; padding-left: 50px; padding-right: 15px; left: 0 !important; }
    .timeline-block::after { left: 12px !important; }
    
    /* 募集要項 */
    .requirements-table dt,
    .requirements-table dd {
        display: block;
        width: 100%;
        margin-left: 0;
    }
    .requirements-table dt { border-bottom: none; padding-bottom: 5px; }
    .requirements-table dd { padding-top: 5px; }

    /* 社員インタビュー */
    .interview-grid { grid-template-columns: 1fr; }

    /* 選考プロセス */
    .process-flow { flex-direction: column; align-items: center; gap: 20px; }
    .process-flow li {
        width: 80%;
        max-width: 300px;
        padding-bottom: 40px;
    }
    .process-flow li:last-child { border-bottom: none; padding-bottom: 20px; }
    .process-flow li:not(:last-child)::after {
        content: '▼';
        top: auto;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}