/*---------- タイトル ----------*/
.guide-section {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)),url(../images/guideline_top.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: 80px;
    color: #fff;
}
.guide-title{
    max-width: 1360px;
    padding: 90px 40px;
    margin: 0 auto;
}
span.section-en_title {
    color: #fff;
}
span.section-en_title::after{
    background: #fff;
}
p.guide-section__text {
    padding: 0 20px;
    font-size: 18px;
}
@media screen and (max-width: 1260px) {
    .guide-section {
        margin-top: 75px;
    }
    p.guide-section__text {
        padding: 0 15px;
    }
}
@media screen and (max-width: 760px) {
    p.guide-section__text {
        font-size: 16px;
    }
    .guide-title {
        padding: 45px 30px;
    }
}
@media screen and (max-width: 475px) {
    h3.section-sub_title {
        font-size: 24px !important;
    }
    h3.section-sub_title::after {
        height: 3px !important;
    }
}
@media screen and (max-width: 450px) {
    .guide-title {
        padding: 30px 20px;
    }
    h2.section-title {
        padding-bottom: 10px;
    }
    p.guide-section__text {
        padding: 0 5px;
    }
}


/*---------- 新卒採用 ----------*/
section.new-graduate-flow {
    margin-top: 100px;
}
h4.recruit-flow__subtitle {
    font-size: 28px;
    border-left: 4px solid var(--main-color);
    padding-left: 10px;
    margin-bottom: 30px;
}
@media screen and (max-width: 1260px) {
    h4.recruit-flow__subtitle {
        font-size: 22px;
    }
}
@media screen and (max-width: 760px) {
    h4.recruit-flow__subtitle {
        font-size: 20px;
    }
}

/*流れ*/
ul.recruit-flow__list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
}
li.recruit-flow__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}
img.recruit-flow__icon {
    max-width: 265px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    padding: 20px 30px;
}
p.recruit-flow__step {
    position: relative;
    background: #d1dbef;
    width: 100%;
    text-align: center;
    font-size: 20px;
    color: var(--main-color);
    font-weight: 600;
    padding: 10px 5px;
}
p.recruit-flow__step span {
    font-size: 30px;
    padding-left: 3px;
}
p.recruit-flow__step::before {
    content: "";
    width: 15px;
    height: 100%;
    background: #fff;
    position: absolute;
    left: 0;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    top: 0;
}
.recruit-flow__item:first-child > p.recruit-flow__step::before {
    display: none;
}
p.recruit-flow__step::after {
    content: "";
    width: 15px;
    height: 100%;
    top: 0;
    right: -15px;
    position: absolute;
    background: #d1dbef;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    z-index: 10;
}
p.recruit-flow__label {
    font-size: 20px;
    font-weight: 600;
    color: var(--main-color);
}
@media screen and (max-width: 1260px) {
    p.recruit-flow__step {
        font-size: 18px;
        padding: 6px 5px;
    }
    p.recruit-flow__step span {
        font-size: 28px;
    }
    img.recruit-flow__icon {
        max-width: 230px;
    }
    p.recruit-flow__label {
        font-size: 18px;
    }
}
@media screen and (max-width: 760px) {
    p.recruit-flow__step span {
        font-size: 24px;
    }
    p.recruit-flow__step {
        font-size: 16px;
    }
    p.recruit-flow__step {
        line-height: 1.3;
    }
    ul.recruit-flow__list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
        gap: 20px 5px;
    }
    img.recruit-flow__icon {
        max-width: 100%;
        padding: 0 10px;
    }
    p.recruit-flow__label {
        font-size: 15px;
    }
}

/*---------- 募集要項 ----------*/
.recruit-jobs__wrapper{
    margin-top: 80px;
}
ul.recruit-jobs__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
li.recruit-jobs__item {
    cursor: pointer;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    padding: 20px 40px;
    transition:
        border-top 0.3s ease-out,
        padding-top 0.3s ease-out,
        padding-bottom 0.3s ease-out;
}
.recruit-jobs__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.recruit-jobs__title-block {
    display: flex;
    gap: 15px;
    align-items: center;
}
p.recruit-jobs__department {
    font-size: 22px;
    font-weight: 600;
}
img.recruit-jobs__icon {
    width: 50px;
    height: 50px;
}
p.recruit-jobs__employment-type {
    font-size: 18px;
    font-weight: 500;
}
.recruit-jobs__button.jobs-info_btn {
    position: relative;
    width: 45px;
    height: 45px;
    background: var(--main-color);
    border-radius: 50%;
}
.recruit-jobs__button.jobs-info_btn::before {
    content: "";
    position: absolute;
    background: #fff;
    width: 3px;
    height: 22px;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease, top 0.3s ease; /* top もアニメーション */
}
.recruit-jobs__button.jobs-info_btn::after {
    content: "";
    position: absolute;
    background: #fff;
    width: 22px;
    height: 3px;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* アコーディオン開閉コンテンツ */
.recruit-jobs__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.recruit-jobs__item.active .recruit-jobs__body {
    max-height: 1000px;
}
.recruit-jobs__item.active .recruit-jobs__button.jobs-info_btn::before {
    transform: translateY(-50%) rotate(90deg);
    top: 50%;
}
.recruit-jobs__item.active .recruit-jobs__button.jobs-info_btn::after {
    opacity: 0; 
}

/*内容*/
table.recruit-jobs__table {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 30px 10px;
}
.recruit-jobs__table tr {
    border-bottom: 2px dotted var(--main-color);
    padding: 30px 0;
    display: flex;
    width: 100%;
}
th.recruit-jobs__table-heading {
    font-size: 17px;
    color: var(--main-color);
    width: 230px;
    text-align: left;
    padding: 0 10px;
}
td.recruit-jobs__table-data {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}
p.recruit-jobs__sub-department-name {
    position: relative;
    font-weight: 500;
    margin-bottom: 5px;
    padding-left: 1.2em;
}
p.recruit-jobs__sub-department-name::after {
    position: absolute;
    content: "";
    width: 8px;
    height: 8px;
    background: var(--main-color);
    border-radius: 50%;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}
p.recruit-jobs__sub-department-description {
    padding-left: 1em;
}
/*募集終了*/
li.recruit-jobs__item-close {
    position: relative;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    padding: 20px 40px;
    overflow: hidden; /* はみ出し防止 */
    order: 999;
}
li.recruit-jobs__item-close ::before {
    content: "";
    position: absolute;
    inset: 0;              /* 全体に広げる */
    background: rgba(0, 0, 0, 0.05); /* 薄いグレーのオーバーレイ */
    pointer-events: none;  /* クリックを邪魔しないように */
}
li.recruit-jobs__item-close .recruit-jobs__button.jobs-info_btn {
    position: relative;
    width: 45px;
    height: 45px;
    background: #5f5f5f;
    border-radius: 50%;
}
p.recruit-now_close {
    font-size: 20px;
}

@media screen and (max-width: 1260px) {
    p.recruit-jobs__employment-type {
        font-size: 15px;
    }
    p.recruit-jobs__department {
        font-size: 18px;
    }
    li.recruit-jobs__item,
    li.recruit-jobs__item-close {
        padding: 15px 35px;
    }
    .recruit-jobs__button.jobs-info_btn,
    li.recruit-jobs__item-close .recruit-jobs__button.jobs-info_btn {
        width: 35px;
        height: 35px;
    }
    .recruit-jobs__button.jobs-info_btn::before {
        width: 2px;
        height: 18px;
    }
    .recruit-jobs__button.jobs-info_btn::after {
        width: 18px;
        height: 2px;
    }
    p.recruit-now_close {
        font-size: 16px;
    }
    th.recruit-jobs__table-heading {
        font-size: 16px;
    }
    td.recruit-jobs__table-data {
        font-size: 15px;
    }
    p.recruit-jobs__sub-department-name::after {
        width: 6px;
        height: 6px;
    }
}
@media screen and (max-width: 930px) {
    table.recruit-jobs__table {
        margin: 25px 0px;
    }
    .recruit-jobs__table tr {
        padding: 20px 0;
    }
    th.recruit-jobs__table-heading {
        width: 170px;
    }
}
@media screen and (max-width: 760px) {
    .recruit-jobs__button.jobs-info_btn,
    li.recruit-jobs__item-close .recruit-jobs__button.jobs-info_btn {
        width: 30px;
        height: 30px;
    }
    .recruit-jobs__button.jobs-info_btn::before {
        height: 14px;
    }
    .recruit-jobs__button.jobs-info_btn::after {
        width: 14px;
    }
    li.recruit-jobs__item,
    li.recruit-jobs__item-close {
        padding: 10px 25px;
    }
    .recruit-jobs__table tr {
        flex-direction: column;
        gap: 20px;
    }
    p.recruit-jobs__sub-department-name {
        font-size: 15px;
    }
    td.recruit-jobs__table-data {
        font-size: 14px;
        padding-left: 20px;
    }
    td.recruit-jobs__table-data {
        gap: 10px;
    }
    p.recruit-now_close {
        font-size: 14px;
    }
}
@media screen and (max-width: 560px) {
    .recruit-jobs__table tr {
        gap: 15px;
    }
    th.recruit-jobs__table-heading {
        padding-left: 5px;
    }
    td.recruit-jobs__table-data {
        padding-left: 10px;
    }
    li.recruit-jobs__item, li.recruit-jobs__item-close {
        padding: 10px 15px;
    }
    p.recruit-now_close {
        position: absolute;
        background: rgba(255, 255, 255, 0.75);
        font-size: 16px;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 100%;
        padding: 25px 0;
        border-radius: 10px;
        text-align: center;
    }
}