.home {
    margin-top: -18px;

    p {
        line-height: 2em;
    }

    .pc {
        display: block;
    }

    .sp {
        display: none;
    }

    .button_area {
        width: 100%;
        text-align: right;
    }

    .txt2 a:not(.l-btn.more-btn) {
        float: none;
    }

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

        .sp {
            display: block;
        }
    }

    @media screen and (max-width: 480px) {

        .txt2 p,
        .message p,
        .company-info p {
            line-height: 2em;
        }
    }

    #agent-header-outer .row {
        max-width: inherit !important;
        margin: 0 -15px;
    }

    .top_bg {
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
    }

    .top_bg video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }

    #top {
        position: relative;

        .header {
            background-image: url(../../images/top/header_copy_bg.png);
            background-position: right bottom;
            background-repeat: no-repeat;
            background-size: cover;

            @media screen and (max-width: 480px) {
                margin-top: 20px;
            }

            .row {
                max-width: 100% !important
            }

            h2 {
                letter-spacing: 0.2em;

                span {
                    font-size: 42px;
                    line-height: 1.5em;
                    font-weight: bold;

                    @media screen and (max-width: 480px) {
                        font-size: 22px;
                    }
                }

                .copy-1 span,
                .copy-2 span,
                .copy-3 span {
                    animation-name: text;
                    animation-duration: 0.25s;
                    animation-timing-function: linear;
                    animation-delay: 3s;
                    animation-iteration-count: 1;
                    animation-fill-mode: forwards;
                    opacity: 0;
                    position: relative;
                }
            }


        }
    }

    #top .splash-image video {
        background-image: inherit !important;
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }

    .mv_copy {
        width: 100%;
        padding-top: 65vh !important;
        padding-right: 5vw;
        margin-left: 0;
        margin-right: 0;
        bottom: 0;
        right: 0;

        @media screen and (max-width: 480px) {
            padding-top: 60vh !important;
        }

        #agent-splash-text * {
            font-family: "Noto Sans JP", sans-serif;
        }

        .agent-splash-text-h2 {
            text-align: right;
        }
    }

    .separator {
        padding-top: 90px !important;
    }

    @media screen and (max-width: 480px) {
        .separator {
            padding-top: 60px !important;
        }
    }

    /* 見出し */

    .separator .title,
    .separator2 .title,
    .separator3 .title {
        background-color: inherit;
    }

    .separator .title .liner,
    .separator2 .title .liner,
    .separator3 .title .liner,
    #contact .title .liner {
        color: #1F1F1F;
        font-size: 42px;
        top: 20px;
        left: 0;
        font-weight: bold;
        /* font-weight: normal; */
        position: absolute;
        z-index: 1;
    }

    .separator .title {
        position: relative;
        margin-bottom: 4em;
    }

    #section-3 .separator .title .romaji,
    #section-4 .separator .title .romaji,
    #section-5 .separator .title .romaji,
    .separator2 .title .romaji,
    .separator3 .title .romaji,
    #contact .title .romaji {
        color: #E8E8E8;
        font-size: 66px;
        position: absolute;
        top: 0;
        left: 20px;
        z-index: 0;
    }

    #section-4 .separator .title .romaji,
    #contact .title .romaji {
        color: #CEDBE2;
    }

    @media screen and (max-width:769px) {

        .separator .title .liner,
        .separator2 .title .liner,
        .separator3 .title .liner {
            font-size: 38px !important;
        }

        #section-3 .separator .title {
            padding: 0 4%;
        }

        #contact .title .liner {
            font-size: 25px !important;
            margin-top: 20px !important;
        }

        #section-3 .separator .title .romaji,
        #section-4 .separator .title .romaji,
        #section-5 .separator .title .romaji,
        .separator2 .title .romaji,
        .separator3 .title .romaji,
        #contact .title .romaji {
            font-size: 50px !important;

        }

        #section-3 .container {
            padding: 0 !important;
        }
    }

    /* mv下 section */

    #section-two {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-top: 10vh !important;
        background: linear-gradient(45deg, #0E4D8F, #5ACFD6);
    }

    #section-two .container {
        background-color: #fff;
        width: 94%;
        margin: 0 auto;
    }

    #section-two .desc1 h3 {
        color: #0C4B8E;
        font-size: 34px;
        margin-bottom: 45px;
    }

    #section-two .txt1 h3 {
        font-family: "Noto Sans JP", sans-serif;
    }

    @media screen and (max-width: 769px) {
        .text-center_in {
            flex-direction: column;
            align-items: center;
        }
    }

    @media screen and (max-width:479px) {
        #section-two .txt1 h3 {
            font-size: 20px;
        }

        #section-two figure.sec1_logo img {
            max-width: 129px
        }
    }

    /* 事業紹介 */

    #section-3 {
        width: 100vw;
        background-color: rgba(255, 255, 255, 1);
        margin: 7vh auto;
        min-height: 80vh;
        height: auto;
        padding-bottom: 7vh;
    }

    #section-3 .separator .title {
        margin-bottom: 8em;
    }

    #section-3 .separator {
        padding-top: 90px;
    }

    #section-3 .container {
        margin: 0 auto;
        padding: 0;
        width: 92%;
    }

    #section-3 .text-center_in {
        display: block;
    }

    #section-3 .txt2 {
        max-width: 100%;
    }

    .service_list {
        display: flex;
        justify-content: space-between;
    }

    .service_list_single {
        width: 30%;
        height: 30%;
        aspect-ratio: 1/1;
        background-size: cover;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2vw;
        padding: 1vw;
        color: #fff;
        position: relative;
    }

    .service_list1:after,
    .service_list2:after {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        display: block;
        content: "";
        background-color: rgba(0, 0, 0, 0.25);
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
    }

    .service_list_single dt {
        position: relative;
        z-index: 1;
        font-size: 1.5vw;
    }

    .service_list_single dd {
        position: relative;
        z-index: 1;
        font-size: 1vw;
    }

    .service_list1 {
        background-image: url(../../images/top/service_1.png);
    }

    .service_list2 {
        background-image: url(../../images/top/service_2.png);
    }

    .service_list3 {
        background-image: url(../../images/top/service_3.png);
    }

    @media screen and (max-width:900px) {
        .service_list {
            flex-direction: column;
            width: 100vw;
            margin-left: -30px;
        }

        .service_list_single:after,
        .service_list_single {
            width: 100%;
            height: auto;
            aspect-ratio: 2/1;
            background-position: center;
        }

        .service_list_single dt {
            font-size: 5.5vw;
        }

        .service_list_single dd {
            font-size: 4vw;
        }
    }

    /* 会社案内 */

    #section-4 {
        background-color: #E2F0F8;
    }

    #section-4 .separator {
        padding-top: 90px;
    }

    #section-4 .container,
    #section-5 .container {
        width: 92%;
    }

    #section-4 .container.row {
        width: 100%;
        padding: 0;
    }

    .org-hedding {
        border-bottom: 1px #707070 solid;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .org-hedding::before {
        display: none;
    }

    #section-4 h5 {
        text-align: left;
        font-size: 28px;
        margin-bottom: 1em;
    }

    .message {
        max-width: 100%;
        justify-content: space-between;
        display: flex;
    }

    .message_left {
        width: 40%;

        img {
            width: 95%;
            display: block;
            margin-bottom: 20px;
        }
    }

    .message_right {
        width: 55%;

        p {
            text-align: left;
        }

        .read-more_area {
            text-align: right;
        }
    }

    @media screen and (max-width:900px) {
        .message {
            flex-direction: column;
        }

        .message_left {
            width: 100%;
        }

        .message_right {
            width: 100%;
        }

    }

    @media screen and (max-width:479px) {
        #section-4 .org-hedding {
            padding-left: 0;
        }

        #section-4 h5 {
            color: #1F1F1F;
            font-size: 22px;
        }

        #section-4 .message p {
            padding: 0;
            margin-bottom: 60px;
        }
    }

    #section-5 {
        background-color: #fff;
        height: auto;
        margin: 10vh 0;
        width: 100vw;
    }

    #section-5 .separator {
        padding-top: 90px;
    }

    .news-list li {
        border-bottom: none;
    }

    #section-5 .news-list,
    .news-list li a {
        max-width: 100%;
    }

    #section-5 .row {
        text-align: right;
    }

    #recruit {
        margin-bottom: 10vh;

        h3 {
            font-family: "Noto Sans JP", sans-serif;
        }

        p {
            color: #fff;
            font-size: 24px;
            width: 60%;

            @media screen and (max-width:479px) {
                width: 100%;
            }
        }

        .container {
            background-image: url(../../images/top/recruit_bg2.jpg);
            background-size: cover;
            background-position: center top;
            width: 100vw;
            height: auto;
            /* aspect-ratio: 2/1; */
            padding: 90px 0;
        }

        .more-btn {
            width: 230px;
        }

    }

    @media screen and (max-width: 769px) {
        #recruit .container {
            padding: 0 2%;
            box-sizing: border-box;
        }

        #recruit .row,
        #recruit .container {
            aspect-ratio: 576 / 675;
            margin: 0;
        }

        #recruit .row {
            align-items: center;
            margin: 0 auto;
        }

        #recruit .container:before {
            aspect-ratio: 576 / 675 !important;
        }
    }

    /* お問い合わせ */

    #contact {
        background-color: #E2F0F8;

        .container {
            width: 92%;
        }

        .title {
            height: 160px;
        }

        .section.form_container .wpcf7 {
            max-width: 1280px;
        }

        .wpcf7 {
            background-color: inherit;
            border: 0;
        }

        .wpcf7 .contact-item.submit .btn_1 input[type=submit] {
            text-align: center;
        }
    }

    @media screen and (max-width: 769px) {
        #contact .title {
            padding: 0 4%;
        }
    }

    /* フッター上　ロゴエリア */
    .recruit-splash {
        display: none;
    }

    .section.container-fluid {
        background-color: #fff;
    }

    /* 以下　幅狭くする場合の記述 */

    .row {
        max-width: 1180px !important;
        margin: 0 auto;
    }

    #recruit {
        .container {
            display: flex;
        }

        .container:before {
            width: 100vw;
            height: auto;
            display: block;
            /* aspect-ratio: 2/1; */
            background-color: rgba(0, 0, 0, 0.35);
            position: absolute;
            top: 0;
            left: 0;
            z-index: 0;
        }

        h3 {
            margin-bottom: 30vh;
        }

        @media screen and (max-width: 769px) {
            h3 {
                margin-bottom: 7vh;
            }
        }

        h3,
        p {
            position: relative;
            z-index: 1;
        }
    }

    .copyright {
        text-align: center;
        margin: 0 auto;
        display: block;
        position: static;
    }
}

@keyframes text {
    0% {
        opacity: 0;
        top: 15px;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        top: 0;
    }
}