/*-------------------------
  Recruit 共通セクションタイトル
-------------------------*/
.recruit-page .section-title {
    margin-bottom: 32px;
    color: var(--primary);
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
}

.recruit-page .section-title__jp {
    font-size: 1rem;
    color: var(--text-light);
    position: relative;
    bottom: 20px;
    margin-left: 10px;
}

/*-------------------------
  Recruit Hero
-------------------------*/
.recruit-hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10%;
    margin-top: var(--header-height);
    overflow: hidden;
}

.recruit-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.recruit-hero__content {
    position: relative;
    z-index: 3;
    width: auto;
    max-width: 100%;
    padding: 0px;
}

.recruit-hero__title {
    color: #fff;
    text-align: left;
    font-size: 2.5rem;
    line-height: 1.8;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.05em;
}

/*-------------------------
  Recruit Jobs Section
-------------------------*/
.recruit-jobs {
    padding: 160px 20px;
}

.section-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 32px;
}

.recruit-page .section-title-wrapper .section-title {
    margin-bottom: 0;
}

.cert-marks {
    display: flex;
    gap: 16px;
}

.cert-mark {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.jobs-content {
    display: flex;
    gap: 32px;
    align-items: center;
    margin-top: 40px;
}

/* 左側 */
.jobs-visual {
    flex: 1;
    display: flex;
    gap: 48px;
    align-items: flex-start;
    height: auto;
}

.jobs-visual__img {
    width: calc(50% - 15px);
    height: auto;
    object-fit: cover;
}

.jobs-visual__img--back {
    position: static;
    top: auto;
    left: auto;
    width: calc(40% - 15px);
}

.jobs-visual__img--front {
    position: static;
    bottom: auto;
    right: auto;
    width: calc(40% - 15px);
    margin-top: 60px;
}

/* 右側 */
.jobs-list-wrapper {
    flex: 1;
}

.jobs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jobs-item {
    border-bottom: 1px solid #ddd;
}

.jobs-item:first-child {
    border-top: 1px solid #ddd;
}

.jobs-item__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.3s;
}

.jobs-item__link:hover {
    background-color: rgba(248, 125, 8, 0.03);
}

.jobs-item__category {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.jobs-item__title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.jobs-item__tags {
    display: flex;
    gap: 10px;
}

.job-tag {
    font-size: 0.8rem;
    color: var(--text-light);
}

.arrow-link-orange {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    border-radius: 50%;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.jobs-item__link:hover .arrow-link-orange {
    transform: translateX(5px);
}

/*-------------------------
  Image Break Section
-------------------------*/
.recruit-image-break {
    width: 100%;
    aspect-ratio: 4 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*-------------------------
  Q&A Section
-------------------------*/
.recruit-qa {
    padding: 160px 20px 150px;
}

.qa-list {
    margin-top: 40px;
    margin-bottom: 60px;
    border-top: 1px solid #eee;
    width: 100%;
}

.qa-item {
    border-bottom: 1px solid #eee;
}

.qa-question {
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    padding: 30px 20px 30px 40px;
    list-style: none;
}

.qa-question::-webkit-details-marker {
    display: none;
}

.qa-q-icon {
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.qa-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    color: #ccc;
    font-weight: normal;
    transition: transform 0.3s ease;
}

.qa-item[open] .qa-question::after {
    content: '-';
}

.qa-answer-wrapper {
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease-out;
}

.qa-answer {
    padding: 0 20px 30px 40px;
    color: var(--text-light);
    line-height: 1.8;
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.qa-item[open] .qa-answer {
    opacity: 1;
    transition: opacity 0.3s ease-out 0.1s;
}

/*-------------------------
  Responsive Adjustments
-------------------------*/
@media (max-width: 768px) {

    .recruit-jobs {
        padding: 80px 20px;
    }

    .recruit-qa {
        padding: 80px 20px 80px;
    }

    .recruit-page .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .recruit-page .section-title__jp {
        bottom: 0;
        margin-left: 0;
        margin-top: 5px;
    }

    .recruit-hero {
        margin-top: 60px;
        height: 65vh;
        min-height: 350px;
        justify-content: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .recruit-hero__bg {
        background-position: center top;
    }

    .recruit-hero__title {
        font-size: 1.5rem;
        text-align: center;
        line-height: 1.6;
    }

    .section-title-wrapper {
        align-items: flex-start;
        gap: 24px;
    }

    .cert-mark {
        width: 70px;
        height: 70px;
    }

    .cert-marks {
        gap: 12px;
    }

    .jobs-content {
        flex-direction: column;
        gap: 40px;
    }

    .jobs-visual {
        width: 100%;
        gap: 16px;
    }

    .jobs-visual__img,
    .jobs-visual__img--back,
    .jobs-visual__img--front {
        width: calc(50% - 8px);
        height: 260px;
    }

    .jobs-visual__img--front {
        margin-top: 30px;
    }

    .jobs-item__title {
        font-size: 1.25rem;
    }

    .jobs-item__link {
        padding: 20px 0;
    }

    .qa-question {
        padding: 20px 15px 20px 30px;
        font-size: 1rem;
    }

    .qa-answer {
        padding: 0 15px 20px 30px;
    }
}

@media (max-width: 576px) {
    .section-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cert-mark {
        width: 60px;
        height: 60px;
    }
}
