/*---------------------------------------
    市区×職種LP　共通スタイル
---------------------------------------*/
@charset "utf-8";

:root{
    --theme-color: #2E6CC9;
    --txt-color: #333333;
    --border-color: #dedede;
}

#subNavi {
    top: 45px !important;

    @media screen and (max-width: 767px) {
        display: none;
    }
}

#header {
    position: relative;
    display: grid;
    align-items: center;

    max-width: 980px;
    height: auto;
    margin: 0 auto 10px;

    grid-template-columns: auto auto 1fr;
    grid-template-areas:
        "title title title"
        "logo area nav";

    column-gap: 5px;

    h1 {
        grid-area: title;
        width: 100%;
        margin: 10px 0 5px;

        color: #000;
        font-size: 14px;
        font-weight: bold;
    }

    .logo {
        grid-area: logo;
    }

    .areaName {
        grid-area: area;

        margin-left: 0;
        padding-top: 5px;

        font-size: 28px;
        font-weight: bold;

        @media (max-width: 667px) {
            font-size: 20px;
            padding-top: 0;
        }
    }

    nav {
        grid-area: nav;
        justify-self: end;
    }

    @media screen and (max-width: 1024px) {
        max-width: 100%;
        margin-inline: 10px;
    }

    @media screen and (max-width: 767px) {
        margin-top: 0;
        padding-bottom: 5px;
    }

    @media screen and (max-width: 743px) {
        width: 93%;
        min-height: 82px;

        margin: 0 !important;
        padding: 0 10px 5px;

        grid-template-columns: 124px 1fr;
        grid-template-areas:
            "title title"
            "logo area";

        column-gap: 8px;

        h1 {
            width: 100%;
            padding: 0;

            font-size: 12px;
            line-height: 1.3;
        }

        .areaName {
            margin-left: 0;
            padding-top: 0;

            font-size: 20px;
        }

        nav {
            display: none;
        }

        .logo img {
            width: 124px;
            margin-bottom: 3px;
        }
    }
}

#bread {
    max-width: 980px;

    margin: 5px auto 15px;

    font-size: 12px;
    line-height: 1.3;

    a {
        color: #000;

        &:hover {
            color: #00a0e9;
        }
    }

    @media screen and (max-width: 1024px) {
        max-width: 100%;
        margin-top: 0;
        padding-inline: 10px;
    }

    @media screen and (max-width: 667px) {
        background-image: linear-gradient(to right, #ececec, #dbdbdb);
    }
}

/*---------------------------------
    共通スタイル
---------------------------------*/
body {
    font-family: Osaka, "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS P Gothic", Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    width: 100%;
}
#header {
    @media (max-width: 743px) {
        min-height: auto;
    }
}
#bread {
    @media (max-width: 743px) {
        margin-bottom: 0;
    }
}
.areaName {
    color: var(--theme-color);
}

img {max-width: 100%;}
a {overflow: hidden;outline: none;}
ul {margin: 0;padding: 0;}
li {list-style-type: none;}

main {
    font-size: 15px;
    line-height: 2;
    color: var(--txt-color);
    font-feature-settings: 'palt';
    overflow: hidden;
    @media (max-width: 743px) {
        font-size: 14px;
        line-height: 1.8;
    }
    * {
        box-sizing: border-box;
    }
    a {
        color: var(--txt-color);
        text-decoration: none;
    }
    > section {
        position: relative;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 50px;

        @media (max-width: 743px) {
            padding: 0 20px;
        }
    }
    h3 {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 0.6em;
        font-size: 30px;
        font-weight: bold;
        line-height: 1.5;
        @media (max-width: 743px) {
            font-size: 22px;
        }
        &::before,
        &::after {
            content: '';
            aspect-ratio: 1 / 1;
            width: 0.5em;
            flex: 0 0 0.5em;
            margin-top: -0.05em;
            background: var(--theme-color);
            mask: url(../img/ico_cross.png) center center /contain no-repeat;
        }
    }
    .more-view-btn {
        width: fit-content;
        min-width: 480px;
        max-width: 800px;
        margin: 40px auto 0;
        @media (max-width: 743px) {
            width: 100%;
            min-width: 0;
            margin-top: 24px;
        }
        a {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0 0.8em;
            font-size: 18px;
            font-weight: bold;
            color: #ffffff;
            line-height: 1.5;
            padding: 1.5em;
            background: var(--theme-color);
            border-radius: 100vmax;
            transition: 0.3s;
            @media (max-width: 743px) {
                font-size: 14px;
            }
            &::after {
                content: '';
                aspect-ratio: 1 / 1;
                width: 1.111111em;
                flex: 0 0 1.111111em;
                margin-top: -0.05em;
                background: currentColor;
                mask: url(../img/ico_arrow_right.png) center center /contain no-repeat;
            }
            @media (any-hover: hover) {
                &:hover{
                    opacity: 0.8;
                }
            }
        }
    }
}

/*---------------------------------
    キービジュアル
---------------------------------*/
main > header {
    .hero {
        height: 290px;
        background: url(../img/pagetitle_bg.png) center bottom repeat-x var(--theme-color);
        position: relative;
        @media (max-width: 743px) {
            height: 160px;
            background-size: auto 70px;
        }
        .hero-inner {
            max-width: 1000px;
            height: 100%;
            padding: 0 10px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            @media (max-width: 743px) {
                justify-content: center;
            }
        }
        h2 {
            display: flex;
            flex-flow: column;
            align-items: center;
            gap: 20px;
            color: #ffffff;
            @media (max-width: 743px) {
                gap: 15px;
            }
            .main {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 8px;
                font-size: clamp( calc(44px*0.8),calc(44 / 1000 * 100vw), 44px);
                line-height: 1;
                @media (max-width: 743px) {
                    font-size: clamp( calc(26px*0.8),calc(26 / 375 * 100vw), 26px);
                }
                b {
                    color: var(--theme-color);
                    padding: 0.35em 0.3em 0.25em;
                    background: #ffffff;
                    border-radius: 5px;
                    @media (max-width: 743px) {
                        padding: 0.45em 0.4em 0.35em;
                    }
                }
            }
            .sub {
                font-size: 32px;
                line-height: 1;
                @media (max-width: 743px) {
                    font-size: 22px;
                }
            }
        }
        img {
            display: block;
            min-width: 0;
            flex: 0 0 calc(165 / 1000 * 100%);
            align-self: flex-end;
            @media (max-width: 743px) {
                position: absolute;
                bottom: 0;
                width: 60px;
                &:has(+ h2) {
                    left: 10px;
                }
                h2 + & {
                    right: 10px;
                }
            }
        }
    }
    p {
        max-width: 1000px;
        margin: 64px auto 0;
        padding: 0 50px;
        @media (max-width: 743px) {
            margin-top: 32px;
            max-width: 1000px;
            padding: 0 20px;
        }
    }
}

/*---------------------------------
    求人関連
---------------------------------*/
#new-kyujin {
    margin-top: 72px;
    @media (max-width: 743px) {
        margin-top: 48px;
    }
}

#end-kyujin {
    margin-top: 48px;
    @media (max-width: 743px) {
        margin-top: 32px;
    }
}

#other-kyujin {
    margin-top: 80px;
    @media (max-width: 743px) {
        margin-top: 48px;
    }
}

.kyujin-area {
    .kyujin-list-area {
        position: relative;
        z-index: 1;
        margin-top: 30px;
        padding: calc(44 / 1000 * 100%);

        @media (max-width: 743px) {
            margin-top: 20px;
            padding: 32px 0;
        }

        &::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: -1;
            opacity: 0.1;
            border-radius: 10px;
            background: var(--theme-color);
        }
    }

    .kyujin-list-wrapper {
        position: relative;

        @media (max-width: 743px) {
            width: 240px;
            margin: 0 auto;
        }
    }

    .kyujin-list {
        @media (min-width: 744px) {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
        }

        @media (max-width: 743px) {
            display: flex;
            gap: 16px;
        }

        article {
            position: relative;
            background: #fff;
            border-radius: 10px;

            @media (min-width: 744px) {
                display: grid;
                margin: 12px;
                grid-template-rows: subgrid;
                grid-row: span 5;
            }

            @media (max-width: 743px) {
                flex: 0 0 100%;
                min-width: 0;
            }

            a {
                position: relative;
                display: block;
                overflow: visible;
                color: var(--txt-color);
                text-decoration: none;

                @media (min-width: 744px) {
                    display: grid;
                    grid-template-rows: auto auto 1fr;
                }

                @media (max-width: 743px) {
                    height: 100%;
                }

                @media (any-hover: hover) {
                    &:hover {
                        .jobTitle {
                            color: var(--theme-color);
                        }
                    }
                }

                figure {
                    overflow: hidden;
                    border-radius: 10px 10px 0 0;
                    background: #fff;

                    @media (max-width: 743px) {
                        order: 2;
                        border-radius: 5px;
                    }

                    img {
                        width: 100%;
                        height: 100%;
                        aspect-ratio: 640 / 427;
                        object-fit: contain;
                    }
                }

                header {
                    margin-top: 18px;
                    padding: 0 20px;

                    @media (max-width: 743px) {
                        order: 3;
                        align-self: center;
                    }

                    h4 {
                        overflow: hidden;
                        display: -webkit-box;
                        font-size: 16px;
                        font-weight: bold;
                        line-height: 1.6;
                        text-overflow: ellipsis;
                        transition: 0.3s;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 2;

                        @media (max-width: 743px) {
                            font-size: 15px;
                        }
                    }

                    .company {
                        overflow: hidden;
                        display: -webkit-box;
                        margin-top: 0.2em;
                        margin-bottom: 10px;
                        opacity: 0.8;
                        font-size: 12px;
                        line-height: 1.7;
                        text-overflow: ellipsis;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 2;

                        @media (max-width: 743px) {
                            margin-top: 2px;
                        }
                    }
                }

                .labels {
                    position: absolute;
                    top: -8px;
                    left: 0;
                    z-index: 2;
                    display: flex;
                    flex-wrap: wrap;
                    gap: 2px;

                    li {
                        position: relative;
                        padding: 0.8em;
                        color: #fff;
                        font-size: 11px;
                        font-weight: bold;
                        line-height: 1;
                        background: var(--theme-color);
                        border-radius: 5px 5px 5px 0;

                        &:first-child::before {
                            content: '';
                            position: absolute;
                            left: 0;
                            bottom: 1px;
                            width: 6px;
                            aspect-ratio: 1;
                            background: var(--theme-color);
                            translate: 0 100%;
                            clip-path: polygon(0 0, 100% 0, 0 100%);
                        }

                        &:nth-child(n + 2) {
                            border-radius: 5px;
                        }
                    }
                }
            }

            .data {
                padding: 0 20px 20px;
                font-size: 13px;
                line-height: 1.5;

                @media (max-width: 743px) {
                    order: 4;
                    display: flex;
                    flex-wrap: wrap;
                    align-items: center;
                    gap: 5px 15px;
                    flex: 0 0 100%;
                }

                .place,
                .salary {
                    display: flex;
                    align-items: flex-start;
                    gap: 5px;

                    &::before {
                        content: '';
                        width: 15px;
                        aspect-ratio: 1;
                        flex: 0 0 15px;
                        background: #99A1AF;
                    }
                }

                .place {
                    &::before {
                        margin-top: 0.05em;
                        mask: url(../img/ico_place.png) center center / contain no-repeat;
                    }
                }

                .salary {
                    margin-top: 5px;
                    color: #ee0000;
                    font-size: 15px;
                    font-weight: bold;

                    @media (max-width: 743px) {
                        margin: 0;
                        font-size: 14px;
                    }

                    &::before {
                        margin-top: 0.15em;
                        mask: url(../img/ico_salary.png) center center / contain no-repeat;
                    }
                }
            }
        }
    }

    .no-jobs {
        text-align: center;
    }

    .slider-button-prev,
    .slider-button-next {
        position: absolute;
        z-index: 2;
        inset: 0 auto;
        width: 36px;
        height: 36px;
        margin: auto 0;
        background: var(--theme-color);
        mask: url(../img/slide_arrow.png) center center / contain no-repeat;

        @media (min-width: 744px) {
            display: none;
        }

        &::after {
            display: none;
        }

        &.is-disabled {
            opacity: 0.35;
            cursor: auto;
            pointer-events: none;
        }
    }

    .slider-button-prev {
        left: -10px;
        translate: -100% 0;
    }

    .slider-button-next {
        right: -10px;
        translate: 100% 0;
        scale: -1 1;
    }

    .is-static {
        .slider-button-prev,
        .slider-button-next {
            display: none;
        }
    }
}

@media (max-width: 743px) {
    .kyujin-area:not(.js-slider) {
        .kyujin-list-area {
            &:has(.kyujin-list-wrapper) {
                padding: 0;
            }
        }

        .kyujin-list-wrapper {
            width: auto;
        }

        .kyujin-list {
            display: block;

            article {
                flex: none;
                padding: 20px;
                background: none;
                border-top: 1px solid rgba(0, 0, 0, 0.1);
                border-radius: 0;

                &:first-child {
                    border-top: none;
                }

                &:nth-child(n + 6) {
                    display: none;
                }

                a {
                    position: relative;
                    display: flex;
                    flex-flow: row wrap;
                    align-items: flex-start;
                    gap: 0;

                    &::after {
                        content: '';
                        position: absolute;
                        right: 0;
                        bottom: 2px;
                        width: 18px;
                        aspect-ratio: 1;
                        background: var(--theme-color);
                        mask: url(../img/ico_arrow_right.png) center center / contain no-repeat;
                        pointer-events: none;
                    }

                    figure {
                        flex: 0 0 120px;
                    }

                    header {
                        @media (max-width: 743px) {
                            order: 3;
                            align-self: center;
                            flex: 0 0 calc(100% - 120px);
                            margin-top: 0;
                            padding: 0 10px 0 20px;

                            .company {
                                font-size: 11px;
                            }
                        }
                    }

                    .labels {
                        position: static;
                        order: 1;
                        flex: 0 0 100%;
                        margin-bottom: 5px;

                        li {
                            font-size: 9px;
                            border-radius: 5px;

                            &:first-child::before {
                                display: none;
                            }
                        }
                    }

                    .data {
                        order: 4;
                        display: flex;
                        flex-wrap: wrap;
                        align-items: center;
                        gap: 5px 15px;
                        flex: 0 0 100%;
                        margin-top: 10px;
                        padding: 0 30px 0 0;
                        font-size: 14px;
                    }
                }
            }
        }
    }
}

/*---------------------------------
    人気の条件から検索
---------------------------------*/
#sort-area {
    margin-top: 80px;
    padding: 64px 0;

    @media (max-width: 743px) {
        margin-top: 48px;
        padding: 48px 0;
    }

    &::before,
    &::after{
        content: '';
        position: absolute;
        inset: auto -2000px;
        height: 1px;
        background: var(--border-color);
    }
    &::before {
        top: 0;
    }
    &::after {
        bottom: 0;
    }

    div {
        margin-top: 32px;
        padding: 0 50px;
        @media (max-width: 743px) {
            margin-top: 24px;
            padding: 0 20px;
        }
        nav {
            margin-bottom: 20px;
            &:last-child{
                margin-bottom: 0;
            }
            h4 {
                display: flex;
                align-items: center;
                gap: 0.3em;
                font-size: 16px;
                font-weight: bold;
                line-height: 1.6;
                margin-bottom: 0.6em;
                @media (max-width: 743px) {
                    font-size: 15px;
                }
                &::before {
                    content: '';
                    aspect-ratio: 1 / 1;
                    width: 1em;
                    flex: 0 0 1em;
                    margin-top: -0.35em;
                    background: var(--theme-color);
                    mask: url(../img/ico_star.png) center center /contain no-repeat;
                }
            }
            ul {
                display: flex;
                flex-wrap: wrap;
                gap: 8px;
                li {
                    flex: 0 0 auto;
                    a {
                        display: block;
                        font-size: 14px;
                        line-height: 1;
                        padding: 1em 1.5em;
                        border: 1px solid currentColor;
                        border-radius: 100vmax;
                        transition: 0.3s;
                        @media (max-width: 743px) {
                            font-size: 12px;
                        }
                        @media (any-hover: hover) {
                            &:hover{
                                color: var(--theme-color);
                            }
                        }
                    }
                }
            }
        }
    }
}

/*---------------------------------
    よくある質問
---------------------------------*/
#faq-area {
    margin-top: 80px;
    @media (max-width: 743px) {
        margin-top: 48px;
    }

    dl {
        margin-top: 32px;
        @media (max-width: 743px) {
            margin-top: 24px;
        }
        div {
            position: relative;
            &::before,
            &::after{
                content: '';
                position: absolute;
                inset: auto -2000px;
                height: 1px;
                background: var(--border-color);
            }
            &::before {
                top: 0;
            }
            &::after {
                bottom: 0;
            }
            &:not(:first-child)::before {
                display: none;
            }
            dt {
                display: flex;
                align-items: center;
                gap: 20px;
                padding: 30px 0;
                cursor: pointer;
                @media (max-width: 743px) {
                    gap: 10px;
                    padding: 20px 0;
                }
                &::before {
                    content: 'Q';
                    align-self: flex-start;
                    font-family: Arial, Helvetica, sans-serif;
                    aspect-ratio: 1 / 1;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    width: 48px;
                    flex: 0 0 48px;
                    font-size: 18px;
                    font-weight: bold;
                    color: #ffffff;
                    line-height: 1;
                    background: var(--theme-color);
                    border-radius: 50%;
                    @media (max-width: 743px) {
                        width: 30px;
                        flex: 0 0 30px;
                        font-size: 13px;
                    }
                }
                p {
                    font-size: 18px;
                    font-weight: bold;
                    transition: 0.3s;
                    @media (max-width: 743px) {
                        font-size: 15px;
                    }
                }
                span {
                    position: relative;
                    aspect-ratio: 1 / 1;
                    width: 16px;
                    flex: 0 0 16px;
                    margin-left: auto;
                    @media (max-width: 743px) {
                        width: 13px;
                        flex: 0 0 13px;
                    }
                    &::before,
                    &::after {
                        content: '';
                        position: absolute;
                        inset: 0;
                        width: 100%;
                        height: 2px;
                        margin: auto;
                        background: var(--txt-color);
                        border-radius: 100vmax;
                    }
                    &::after {
                        rotate: 90deg;
                        transition: 0.3s;
                    }
                }
                &.js-open {
                    span {
                        &::after{
                            rotate: 0deg;
                        }
                    }
                }
                @media (any-hover: hover) {
                    &:hover{
                        color: var(--theme-color);
                    }
                }
            }
            dd {
                display: none;
                padding-bottom: 40px;
                @media (max-width: 743px) {
                    padding-bottom: 24px;
                }
                p {
                    position: relative;
                    z-index: 1;
                    padding: 32px 40px;
                    @media (max-width: 743px) {
                        padding: 20px 24px;
                    }
                    &::before {
                        content: '';
                        position: absolute;
                        z-index: -1;
                        inset: 0;
                        background: var(--theme-color);
                        border-radius: 10px;
                        opacity: 0.1;
                    }
                }
            }
        }
    }
}

/*---------------------------------
    市区×職業について
---------------------------------*/
#point-area {
    margin-top: 80px;
    max-width: 1100px;

    @media (max-width: 743px) {
        margin-top: 48px;
        h3 {
            margin-bottom: 24px;
        }
    }

    section {
        display: flex;
        align-items: flex-start;
        gap: 0 calc(64 / 1000 * 100%);
        padding: 56px 0;
        position: relative;

        &:first-of-type {
            @media (min-width: 744px) {
                padding: 96px 0 56px 0;
            }
            &::before{
                margin-top: 40px;
                content: '';
                position: absolute;
                inset: auto -2000px;
                height: 1px;
                background: var(--border-color);
                top: 0;
                @media (max-width: 743px) {
                    margin-top: 0px;
                }
            }
        }
        &::after{
            content: '';
            position: absolute;
            inset: auto -2000px;
            height: 1px;
            background: var(--border-color);
            bottom: 0;
        }

        @media (max-width: 743px) {
            flex-flow: column;
            align-items: center;
            gap: 20px;
            padding: 30px 0;
        }
        figure {
            flex: 0 0 calc(360 / 1000 * 100%);
            border-radius: 10px;
            overflow: hidden;
            @media (max-width: 743px) {
                flex: none;
                width: 80%;
                max-width: 360px;
            }
            img {
                aspect-ratio: 360 / 246;
                object-fit: contain;
                width: 100%;
                height: 100%;
            }
        }
        div {
            flex: 1 1 auto;
            align-self: center;

            span {
                position: relative;
                display: block;
                width: fit-content;
                font-family: Arial, Helvetica, sans-serif;
                font-size: 18px;
                font-weight: bold;
                line-height: 1;
                color: var(--theme-color);
                margin-bottom: 24px;
                padding-bottom: 10px;
                border-bottom: 1px solid currentColor;
                @media (max-width: 743px) {
                    font-size: 16px;
                    margin-bottom: 18px;
                }
                &::before {
                    content: '';
                    position: absolute;
                    left: 10px;
                    bottom: -1px;
                    width: 10px;
                    height: 1px;
                    background: #ffffff;
                }
                &::after {
                    content: '';
                    position: absolute;
                    left: 20px;
                    bottom: -1px;
                    width: 1px;
                    height: 10px;
                    background: currentColor;
                    rotate: 45deg;
                    translate: 0 100%;
                    transform-origin: right top;
                }
            }
            h4 {
                font-size: 24px;
                font-weight: bold;
                line-height: 1.6;
                @media (max-width: 743px) {
                    font-size: 20px;
                }
            }
            p {
                margin-top: 16px;
                @media (max-width: 743px) {
                    margin-top: 10px;
                }
            }
        }
    }
}

/*---------------------------------
    市区×職種のトピックス
---------------------------------*/
.job-topics {
    margin-top: 80px;

    > p {
        max-width: 1000px;
        margin: 40px auto;
    }

    > input {
        display: none;
    }

    @media (max-width: 743px) {
        margin-top: 48px;

        h3 {
            gap: 0.5em;
            font-size: 20px;
        }

        > p {
            margin-top: 24px;
            margin-bottom: 0;
        }

        div:first-of-type {
            margin-top: 24px;
            position: relative;
            max-height: 360px;
            overflow: hidden;

            &::after {
                content: "";
                position: absolute;
                inset: auto 0 0 0;
                height: 80px;
                background: linear-gradient(to bottom,rgba(255, 255, 255, 0) 0%,rgba(255, 255, 255, 1) 100%);
                pointer-events: none;
                transition: opacity 0.3s ease;
            }
        }
        label {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.8em;
            max-width: 160px;
            margin:  0 auto;
            padding: 1em;
            border: 1px solid var(--theme-color);
            border-radius: 5px;
            color: var(--theme-color);
            font-size: 13px;
            font-weight: bold;
            line-height: 1;

            span::before {
                content: "続きを見る";
            }

            &::after {
                content: "";
                width: 0.4em;
                height: 0.4em;
                border-right: 2px solid currentColor;
                border-bottom: 2px solid currentColor;
                transform: rotate(45deg) translate(0,-40%);
            }
        }
        > input:checked ~ div:first-of-type {
            max-height: none;

            &::after {
                opacity: 0;
            }
        }
        > input:checked ~ label {
            margin-top: 20px;

            span::before {
                content: "閉じる";
            }

            &::after {
                transform: rotate(-135deg) translate(0,-40%);
            }
        }
    }

    article {
        position: relative;
        counter-increment: topics-child-num;

        @media (min-width: 744px) {
            margin-top: 40px;
        }

        h4 {
            display: flex;
            font-size: 22px;
            font-weight: bold;
            line-height: 1.6;
            gap: 0.5em;

            &::before {
                content: counter(topics-child-num, decimal-leading-zero);
                color: var(--theme-color);
                flex: 0 0 auto;
            }

            @media (max-width: 743px) {
                padding-top: 30px;
                font-size: 18px;
            }
        }

        &:first-of-type {
            @media (min-width: 744px) {
                h4 {
                    padding-top: 48px;
                }
            }

            &::before {
                content: '';
                position: absolute;
                inset: auto -2000px;
                height: 1px;
                background: var(--border-color);
                top: 0;
            }
        }

        &::after{
            content: '';
            position: absolute;
            inset: auto -2000px;
            height: 1px;
            background: var(--border-color);
            bottom: 0;
        }

        p {
            font-size: 14px;
            margin-top: 12px;
            padding-bottom: 48px;
            @media (max-width: 743px) {
                margin-top: 10px;
                padding-bottom: 30px;
            }
        }
    }
}

/*---------------------------------
    お役立ち情報
---------------------------------*/
#column-area {
    position: relative;
    z-index: 1;
    margin-top: 100px;
    padding: 80px 0 72px;
    max-width: none;

    @media (max-width: 743px) {
        margin-top: 48px;
        padding: 48px 0 32px;
    }

    &::before {
        content: '';
        position: absolute;
        z-index: -1;
        inset: 0;
        background: var(--theme-color);
        opacity: 0.1;
    }
    ul {
        max-width: 1100px;
        margin: 40px auto 0;
        padding: 0 50px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0 calc(50 / 1000 * 100%);

        @media (max-width: 743px) {
            margin-top: 20px;
            padding: 0 20px;
            grid-template-columns: repeat(auto-fit ,minmax(150px, 1fr));
        }

        li {
            display: grid;
            grid-template-rows: subgrid;
            grid-row: span 2;

            @media (max-width: 743px) {
                margin: 10px 0;
            }

            a {
                display: grid;
                grid-template-rows: subgrid;
                grid-row: span 2;
                transition: 0.3s;

                @media (any-hover: hover) {
                    &:hover{
                        opacity: 0.8;
                    }
                }

                figure {
                    max-width: 300px;
                    margin: 0 auto;
                    background: rgba(255,255,255,0.3);
                    overflow: hidden;
                    img {
                        aspect-ratio: 300 / 200;
                        object-fit: contain;
                        width: 100%;
                        height: 100%;
                    }
                }
                div {
                    text-align: center;
                    align-content: center;
                    width: fit-content;
                    line-height: 1.8;
                    text-decoration: underline;
                    margin: 0.8em auto 0;

                    @media (max-width: 743px) {
                        font-size: 12px;
                    }
                }
            }
        }
    }
}
