/*------------------
下層ページ (共通ネスト)
--------------------*/

.l-page[class*="lower"] [class*="ui-btn"] {
    width: 285px;
}

.l-page[class*="lower"] .ui-btn--black {
    width: 230px;
}

.l-page[class*="lower"] .title_block {
    margin-bottom: 16px;
}


@media (min-width:768px) {

    .l-page[class*="lower"] [class*="ui-btn"] {
        width: 230px;
    }

    .l-page[class*="lower"] .fv {
        margin-bottom: 100px;
    }

    .l-page[class*="lower"] .title_block {
        margin-bottom: 30px;
    }

}

/*------------------
下層の共通パーツ
--------------------*/

.l-page {
    padding-top: 50px;
    padding-bottom: 150px;
}

.fv {
    margin-bottom: 50px;
}

/* パンくず */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 15px 0 50px 20px;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
}

.breadcrumb-link,
.current {
    font-size: 12px;
    font-weight: 400;
    color: var(--sub-color);
    line-height: calc(24 / 12);
    font-family: var(--sub-font);
}

.home-icon {
    display: block;
    background: url(../images/common/ic_round-home.png) center / cover no-repeat;
    width: 16px;
    height: 16px;
}

.arrow {
    width: 5px;
    height: 5px;
    border: 0;
    border-top: solid 1px var(--sub-color);
    border-right: solid 1px var(--sub-color);
    transform: rotate(45deg);
    margin: 0 8px;
}

.fv_title_wrap {
    background: url(../images/common/common-page_title_bg.png) center / cover no-repeat;
    padding: 40px 117px 40px 20px;
    clip-path: polygon(0 0, 80% 0%, 100% 100%, 0 100%);
    margin-right: 35px;
}

.fv_title {
    font-size: 40px;
    font-weight: 500;
    color: var(--point-color);
    line-height: calc(40 / 40);
    font-family: var(--sub-font);
}

.fv_title.fv_small_title {
    font-size: 29px;
    line-height: calc(29 / 29);
}

.fv_subtitle {
    font-size: 20px;
    font-weight: bold;
    color: var(--point-color);
    line-height: calc(20 / 20);
    font-family: var(--main-font);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.fv_subtitle::before {
    content: "";
    width: 20px;
    height: 3px;
    background: var(--point-color);
}

section {
    overflow: inherit;
}

[class*="section_content"]:not(:last-child) {
    padding-bottom: 100px;
}

.content_space {
    width: calc(100% - 40px);
    margin: 0 auto;
}

.title_block {
    margin-bottom: 24px;
}

.section_title {
    font-size: 26px;
    font-weight: 500;
    color: var(--sub-color);
    line-height: calc(26 / 26);
    font-family: var(--sub-font);
    margin-bottom: 5px;
}

.sub_title {
    font-size: 14px;
    font-weight: bold;
    color: var(--main-color);
    line-height: calc(14 / 14);
    font-family: var(--main-font);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sub_title::before {
    content: "";
    background: var(--main-color);
    width: 16px;
    height: 2px;
}

.section_title.large_section_title {
    font-size: 36px;
    line-height: calc(36 / 36);
}

.sub_title.large_subtitle {
    font-size: 20px;
    line-height: calc(20 / 20);
}

.sub_title.large_subtitle::before {
    width: 20px;
    height: 3px;
}

/* h2 下層用 非表示 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.internal_link {
    margin-bottom: 70px;
}


.internal_link_list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.link_item_text {
    font-size: 16px;
    font-weight: bold;
    color: var(--sub-color);
    line-height: calc(28 / 16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 5px;
    border-bottom: 1px solid #999999;
}

.link_item_text::after {
    content: "";
    color: var(--sub-color);
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-left: 0;
    border-bottom: 0;
    box-sizing: border-box;
    transform: rotate(135deg);
    margin-right: 15px;
}


/* tab切り替え */

.ui-tab__panel {
    /* display: none; */
}

.ui-tab__panel.is-active {
    /* display: block; */
}

.ui-tab__list {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    margin: 0 auto 50px;
    padding-inline: 35px;
}

.l-page.lower--news .ui-tab__list {
    padding-inline: 15px;
}

/* ベースのグレーライン */
.ui-tab__list::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    margin: 0 auto;
    background: #999;
}

.ui-tab__item {
    cursor: pointer;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

/* アクティブ */

.ui-tab__item.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -1px;
    width: 90px;
    height: 3px;
    background: var(--sub-color);
}

.ui-tab__item.is-active .ui-tab__label {
    color: var(--sub-color);
}

.ui-tab__item.is-active .ui-tab__label a {
    color: var(--sub-color);
}

.ui-tab__label {
    font-size: 14px;
    font-weight: bold;
    color: #999999;
    line-height: calc(14 / 14);
}

.ui-tab__label a {
    font-size: 14px;
    font-weight: bold;
    color: #999999;
    line-height: calc(14 / 14);
}

.sp-nowrap {
    white-space: nowrap;
}

/* PC */
@media (min-width:768px) {

    .ui-tab {
        padding-inline: 20px;
    }

    .ui-tab__list {
        max-width: 1000px;
        margin: 0 auto 100px;
        justify-content: space-around;
        overflow: hidden;
        padding-inline: 0;
    }

    .ui-tab__item {
        padding-bottom: 5px;
    }

    .ui-tab__label {
        font-size: 16px;
        line-height: calc(28 / 16);
    }

    .ui-tab__item.is-active::after {
        left: 50%;
        width: 120px;
    }

    .ui-tab__list::before {
        width: 100%;
    }

    .sp-br {
        display: none;
    }

    .sp-nowrap {
        white-space: normal;
    }
}


/* ページネーション */

/* コンテナ */
.ui-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    width: 100%;
    margin: 0 auto;
}

/* ページ番号の並び */
.ui-pagination__list {
    display: flex;
    gap: 24px;
}

/* 各ページボタン */
.ui-pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border: 1px solid var(--sub-color);
    font-size: 14px;
    color: var(--sub-color);
    line-height: calc(14 / 14);
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
}

/* アクティブ */
.ui-pagination__link.is-current {
    background: var(--sub-color);
    color: var(--point-color);
}

/* 矢印ボタン */
.ui-pagination__arrow {
    position: relative;
    width: 25px;
    height: 25px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.ui-pagination__arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--sub-color);
    border-right: 2px solid var(--sub-color);
}

/* 左矢印 */
.ui-pagination__arrow--prev::before {
    transform: rotate(-135deg);
}

/* 右矢印 */
.ui-pagination__arrow--next::before {
    transform: rotate(45deg);
}

@media (min-width:768px) {

    /* コンテナ */
    .ui-pagination {
        max-width: 260px;
    }

    /* ページ番号の並び */
    .ui-pagination__list {
        gap: 10px;
    }

    /* アクティブ */
    .ui-pagination__link.is-current {
        background: var(--sub-color);
        color: var(--point-color);
    }
}


@media (min-width:768px) {

    .l-page {
        padding-top: 140px;
        padding-bottom: 200px;
    }

    .fv {
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        flex-direction: row-reverse;
        gap: 60px;
        margin-bottom: 100px;
        padding-right: 20px;
    }

    /* パンくず */
    .breadcrumb {
        margin: 40px 0 0 0;
        padding-left: 20px;
    }

    .breadcrumb-link,
    .current {
        font-size: 13px;
        line-height: calc(19 / 13);
    }

    .home-icon {
        width: 18px;
        height: 18px;
    }

    .fv_title_wrap {
        max-width: 970px;
        width: 100%;
        margin: 0;
        padding: 110px 440px 110px 100px;
    }

    .fv_title {
        font-size: 85px;
        line-height: calc(85 / 85);
    }

    .fv_title.fv_small_title {
        font-size: 68px;
        line-height: calc(68 / 68);
    }

    .fv_subtitle {
        font-size: 23px;
        line-height: calc(23 / 23);
    }

    [class*="section_content"]:not(:last-child) {
        padding-bottom: 150px;
    }

    .content_space {
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
    }

    .title_block {
        margin-bottom: 40px;
    }

    .section_title {
        font-size: 55px;
        line-height: calc(55 / 55);
        margin-bottom: 5px;
    }

    .sub_title {
        font-size: 18px;
        line-height: calc(18 / 18);
        gap: 8px;
    }

    .sub_title::before {
        width: 25px;
        height: 3px;
    }

    .section_title.large_section_title {
        font-size: 55px;
        line-height: calc(55 / 55);
    }

    .sub_title.large_subtitle {
        font-size: 18px;
        line-height: calc(18 / 18);
    }

    .sub_title.large_subtitle::before {
        width: 25px;
        height: 3px;
    }

    /* ▼ 内側ボーダー（初期は透明） */
    [class*="ui-card_link"]::after {
        content: "";
        position: absolute;
        inset: 10px;
        /* 内側に入り込む量 */
        border: 1px solid rgba(255, 255, 255, 0);
        border-radius: 6px;
        transition: border-color 0.35s ease, inset 0.35s ease;
        pointer-events: none;
        /* hover干渉しない */
    }

    /* ▼ hover時だけボーダー出現 */
    [class*="ui-card_link"]:hover::after {
        border-color: rgba(255, 255, 255, 1);
    }

    .internal_link {
        margin-bottom: 215px;
    }

    .internal_link_list {
        max-width: max-content;
        margin: 0 auto;
        flex-direction: row;
        justify-content: center;
        gap: clamp(40px, calc(80px + 50vw - 570px), 80px);
    }

    .link_item_text {
        width: fit-content;
    }

}

@media (max-width:1280px) {
    .fv {
        flex-direction: column-reverse;
        gap: 0;
    }

}

/*-------▼以下は共通のコンテンツ--------*/

/*---------
CONTACT
----------*/


/* 共通ブロック */

.l-page .section_content--contact {
    background: url(../images/common/sp_contact_bg.jpg) center / cover no-repeat;
    padding: 40px 0;
}

.section_content--contact .section_title {
    text-align: center;
}

.section_content--contact .sub_title {
    justify-content: center;
}


/* コンテンツブロック */

.contact_intro {
    font-size: 16px;
    font-weight: 400;
    color: var(--sub-color);
    line-height: calc(28 / 16);
    font-family: var(--main-font);
    text-align: center;
    margin-bottom: 25px;
}

.contact_methods {
    background: #fff;
    border-radius: 5px;
    padding: 30px 20px 90px 19px;
}

.contact_method.contact_method_mail {
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #999999;
}

.contact_method_title {
    font-size: 16px;
    font-weight: 400;
    color: var(--sub-color);
    line-height: calc(28 / 16);
    font-family: var(--main-font);
    text-align: center;
}

.contact_method.contact_method_mail .contact_method_title {
    margin-bottom: 8px;
}

.contact_tel_number,
.contact_tel_number a {
    font-size: 33px;
    font-weight: bold;
    color: var(--sub-color);
    line-height: calc(48 / 33);
    font-family: var(--sub-font);
    text-align: center;
}

.contact_tel_time {
    font-size: 14px;
    font-weight: 500;
    color: var(--sub-color);
    line-height: calc(20 / 14);
    font-family: var(--main-font);
    text-align: center;
}


/*---------
RECRUIT
----------*/

/* 共通ブロック */

.l-page .section_content--recruit {
    padding-bottom: 50px
}

.section_content--recruit .content_space {
    width: 100%;
}

.section_content--recruit .ui-card_icon {
    position: absolute;
    bottom: 16px;
    right: 10px;
}

/* コンテンツブロック */

.recruit-card_box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    width: fit-content;
    margin: 0 auto;
}

.section_content--recruit [class*="ui-card_link"] {
    display: block;
    width: 320px;
    height: 185px;
    max-width: 100%;
    border-radius: 9px;
    padding: 25px 32px;
    position: relative;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.25);
}

.ui-card_link--numbers {
    background: linear-gradient(rgba(30, 30, 30, 0.6), rgba(30, 30, 30, 0.6)),
        url('../images/common/sp-card_numbers_img.jpg') center/cover no-repeat;
}

.ui-card_link--interview {
    background: linear-gradient(rgba(30, 30, 30, 0.6), rgba(30, 30, 30, 0.6)),
        url('../images/common/sp-card_interview_img.jpg') center/cover no-repeat;
}

.ui-card_link--recruit {
    background: linear-gradient(rgba(30, 30, 30, 0.6), rgba(30, 30, 30, 0.6)),
        url('../images/common/sp-card_recruit_img.jpg') center/cover no-repeat;
}

.recruit-card_title {
    font-size: 18px;
    font-weight: bold;
    color: var(--point-color);
    line-height: calc(27 / 18);
    font-family: var(--main-font);
    text-align: center;
    margin-bottom: 3px;
}

.recruit-card_subtitle {
    font-size: 16px;
    font-weight: bold;
    color: var(--point-color);
    line-height: calc(16 / 16);
    font-family: var(--main-font);
    text-align: center;
    margin-bottom: 11px;
}

.recruit-card_text {
    font-size: 13px;
    font-weight: 500;
    color: var(--point-color);
    line-height: calc(24 / 13);
    font-family: var(--main-font);
    text-align: center;
    max-width: 250px;
}


/*---------
SDGs
----------*/

.sdgs_inner_box {
    display: block;
    width: 100%;
    height: 300px;
    max-width: 100%;
    border-radius: 9px;
    padding: 70px 50px 25px;
    position: relative;
    background: linear-gradient(rgba(98, 7, 16, 0.69), rgba(98, 7, 16, 0.69)),
        url('../images/common/sp-sdgs_img.jpg') center/cover no-repeat;
}

.sdgs_title_block {
    margin-bottom: 11px;
}

.sdgs_box .sdgs_title {
    font-size: 30px;
    font-weight: bold;
    color: var(--point-color);
    line-height: calc(30 / 30);
    font-family: var(--main-font);
    text-align: center;
    margin-bottom: 8px;
}

.sdgs_box .sdgs_subtitle {
    font-size: 16px;
    font-weight: bold;
    color: var(--point-color);
    line-height: calc(16 / 16);
    font-family: var(--main-font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sdgs_box .sdgs_subtitle::before {
    content: "";
    background: var(--point-color);
    width: 20px;
    height: 3px;
}

.sdgs_box .sdgs_text {
    font-size: 13px;
    font-weight: 500;
    color: var(--point-color);
    line-height: calc(24 / 13);
    font-family: var(--main-font);
    text-align: center;
    max-width: 335px;
    margin: 0 auto 50px;
}


.sdgs_box .ui-card_icon {
    position: static;
    width: 32px;
    height: 32px;
    max-width: 32px;
    margin: 0 auto;
}

.sdgs_box .ui-card_icon::before {
    border: 1px solid var(--point-color);
    border-left: 0;
    border-bottom: 0;
}



@media (min-width:768px) {


    /* 共通ブロック */

    .l-page .section_content--contact {
        background: url(../images/common/pc_contact_bg.jpg) center / cover no-repeat;
        padding: 40px 20px;
    }


    .section_content--contact .sub_title {
        justify-content: center;
    }


    /* コンテンツブロック */

    .contact_intro {
        font-size: 16px;
        font-weight: 400;
        color: var(--sub-color);
        line-height: calc(28 / 16);
        font-family: var(--main-font);
        text-align: center;
        margin-bottom: 25px;
    }

    .contact_methods {
        background: #fff;
        border-radius: 5px;
        padding: 20px 60px 20px 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 151px;
        min-height: 203px;
        max-width: 830px;
        margin: 0 auto;
        position: relative;
    }


    .contact_methods::after {
        content: "";
        position: absolute;
        background: #999999;
        width: 1px;
        height: 163px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .contact_method.contact_method_mail {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

    .contact_method_title {
        font-size: 16px;
        font-weight: 400;
        color: var(--sub-color);
        line-height: calc(28 / 16);
        font-family: var(--main-font);
        text-align: center;
    }

    .contact_method.contact_method_mail .contact_method_title {
        margin-bottom: 8px;
    }

    .contact_tel_number {
        font-size: 33px;
        font-weight: bold;
        color: var(--sub-color);
        line-height: calc(48 / 33);
        font-family: var(--sub-font);
        text-align: center;
        display: block;
    }

    .contact_tel_number a {
        pointer-events: none;
    }

    .contact_tel_time {
        font-size: 14px;
        font-weight: 500;
        color: var(--sub-color);
        line-height: calc(20 / 14);
        font-family: var(--main-font);
        text-align: center;
    }


    /* RECRUIT */


    /* 共通ブロック */

    .l-page .section_content--recruit {
        padding-bottom: 70px;
        padding-inline: 20px;
    }

    .section_content--recruit .content_space {
        width: 100%;
        max-width: 100%;
    }

    .section_content--recruit .ui-card_icon {
        bottom: 20px;
        right: 20px;
        width: 100%;
        height: 32px;
        max-width: 32px;
    }

    .ui-card_icon::before {
        content: "";
        width: 8px;
        height: 8px;
        border: 1px solid var(--point-color);
        border-left: 0;
        border-bottom: 0;
        box-sizing: border-box;
        transform: rotate(45deg);
    }

    .section_content--recruit .section_title {
        text-align: center;
    }

    .section_content--recruit .sub_title {
        justify-content: center;
    }

    /* コンテンツブロック */

    .recruit-card_box {
        flex-direction: row;
        gap: 20px;
    }

    .section_content--recruit [class*="ui-card_link"] {
        width: 100%;
        height: 427px;
        max-width: 320px;
        overflow: hidden;
        /* ← テキストがはみ出さないように */
    }

    .l-page[class*="lower"] [class*="ui-card_link"]:last-child {
        margin-top: 50px;
    }


    .recruit-card_title {
        font-size: 23px;
        line-height: calc(32 / 23);
        margin-bottom: 7px;
    }

    .recruit-card_subtitle {
        font-size: 16px;
        line-height: calc(16 / 16);
        margin-bottom: 0;
    }

    .recruit-card_text {
        font-size: 15px;
        line-height: calc(27 / 15);
        max-width: 250px;
    }

    .ui-card_link--numbers {
        background: linear-gradient(rgba(30, 30, 30, 0.6), rgba(30, 30, 30, 0.6)),
            url('../images/common/pc-card_numbers_img.jpg') center/cover no-repeat;
    }

    .ui-card_link--interview {
        background: linear-gradient(rgba(30, 30, 30, 0.6), rgba(30, 30, 30, 0.6)),
            url('../images/common/pc-card_interview_img.jpg') center/cover no-repeat;
    }

    .ui-card_link--recruit {
        background: linear-gradient(rgba(30, 30, 30, 0.6), rgba(30, 30, 30, 0.6)),
            url('../images/common/pc-card_recruit_img.jpg') center/cover no-repeat;
    }

    /* テキストアニメーション */

    .recruit-card_head {
        margin-top: 159px;
    }

    .recruit-card_title,
    .recruit-card_subtitle,
    .recruit-card_text {
        transition: transform 0.35s ease, opacity 0.35s ease, max-height 0.35s ease;
    }

    /* 本文は最初は隠す */
    .recruit-card_text {
        opacity: 0;
        transform: translateY(10px);
        /* 少し下に */
        max-height: 0;
        overflow: hidden;
    }

    /* タイトル & サブタイトルを上にふわっと */
    .section_content--recruit [class*="ui-card_link"]:hover .recruit-card_title,
    .section_content--recruit [class*="ui-card_link"]:hover .recruit-card_subtitle {
        transform: translateY(-20px);
    }

    /* 本文を表示 */
    .section_content--recruit [class*="ui-card_link"]:hover .recruit-card_text {
        opacity: 1;
        max-height: 200px;
        /* 文章量に合わせて調整 */
    }

    /* SDGs */

    .sdgs_inner_box {
        padding: 116px 50px 25px;
        position: relative;
        background: linear-gradient(rgba(98, 7, 16, 0.69), rgba(98, 7, 16, 0.69)),
            url('../images/common/pc-sdgs_img.jpg') center/cover no-repeat;
    }

    .sdgs_inner_box::before {
        content: "";
        position: absolute;
        inset: 10px;
        border: 1px solid rgba(255, 255, 255, 0);
        border-radius: 6px;
        transition: border-color 0.35s ease, inset 0.35s ease;
        pointer-events: none;
    }

    .sdgs_inner_box:hover::before {
        border-color: rgba(255, 255, 255, 1);
    }

    .sdgs_title_block {
        width: fit-content;
        margin: 0 auto 13px;
    }

    .sdgs_box .sdgs_title {
        font-size: 35px;
        line-height: calc(35 / 35);
        margin-bottom: 13px;
    }

    .sdgs_box .sdgs_subtitle {
        font-size: 18px;
        line-height: calc(18 / 18);
        justify-content: flex-start;
    }

    .sdgs_box .sdgs_subtitle::before {
        width: 25px;
    }

    .sdgs_box .sdgs_text {
        display: block;
    }

    .sdgs_box .ui-card_icon {
        margin: 0 auto;
        position: absolute;
        left: 50%;
        top: 85%;
        transform: translate(-50%, -50%);
    }

    /* テキストアニメーション */

    /* 本文は最初は隠す */
    .sdgs_box .sdgs_text {
        max-width: 100%;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        display: block;
        font-size: 15px;
        font-weight: 500;
        color: var(--point-color);
        line-height: calc(27 / 15);
        font-family: var(--main-font);
        text-align: center;
        margin: 0;
    }

    /* 本文を表示 */
    .sdgs_inner_box:hover .sdgs_text {
        opacity: 1;
        max-height: 63px;
        /* 文章量に合わせて調整 */
    }

}