@charset "UTF-8";

#first {
    width: 100%;
    padding-bottom: 11rem;
    @media screen and (max-width: 767px) {
        padding-bottom: 4rem;
    }
    .block {
        .content-flex {
            gap: 10.2rem;
            display: flex;
            justify-content: space-between;
            @media screen and (max-width: 767px) {
                flex-direction: column-reverse;
                gap: 2rem;
            }
            .text-content {
                width: 90.5rem;
                @media screen and (max-width: 767px) {
                    width: 100%;
                }
                .dotted-underline-header {
                    font-family: var(--zenkaku);
                    font-style: normal;
                    font-weight: 700;
                    font-size: 4.1rem;
                    line-height: 7.6rem;
                    letter-spacing: 0.1em;
                    color: #212121;
                    border-bottom: #f08300 0.5rem dotted;
                    margin-bottom: 5rem;
                    display: inline-block;
                    @media screen and (max-width: 767px) {
                        font-size: 2.4rem;
                        line-height: 1.5;
                        margin-bottom: 3rem;
                    }
                }
            }
            .img-content {
                width: 39.3rem;
                @media screen and (max-width: 767px) {
                    width: 100%;
                }
                & img {
                    width: 100%;
                    vertical-align: top;
                }
            }
        }
    }
}

#anchor-link {
    width: 100%;
    margin-bottom: 12.2rem;
    @media screen and (max-width: 767px) {
        margin-bottom: 4rem;
    }
    & ul {
        display: flex;
        justify-content: center;
        gap: 3rem;
        @media screen and (max-width: 767px) {
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: flex-start;
        }
        & li {
            @media screen and (max-width: 767px) {
                width: 48%;
            }
            & a {
                width: 22rem;
                height: 7.4rem;
                border-radius: 5.2rem;
                background-color: #fff;
                border: 0.2rem solid #f08300;
                padding-left: 6.3rem;
                box-sizing: border-box;
                font-family: var(--zenkaku);
                font-style: normal;
                font-weight: 700;
                font-size: 2rem;
                line-height: 3.4rem;
                text-align: left;
                letter-spacing: 0.05em;
                color: #f08300;
                display: flex;
                align-items: center;
                position: relative;
                transition: all 0.3s ease-in;
                gap: 1.82rem;
                @media screen and (max-width: 767px) {
                    width: 100%;
                    height: 6.4rem;
                    border-radius: 45px;
                    padding-left: 4rem;
                    font-size: 1.8rem;
                    line-height: 1;
                    gap: 1.5rem;
                }
                &:after {
                    content: "";
                    position: relative;
                    /* right: 5.3rem;
                    top: 50%; */
                    width: 1.4rem;
                    background: url("../img/gray-arrow.svg") no-repeat center / 100% auto;
                    height: 0.7rem;
                    margin-top: 0.8rem;
                    transform: translateY(-50%);
                }
                &:hover,
                &.active {
                    opacity: 0.75;
                }
            }
        }
    }
}

.link-block {
    width: 100%;
    margin-bottom: 10rem;
    @media screen and (max-width: 767px) {
        margin-bottom: 5rem;
    }
    .header-h3 {
        font-family: var(--zenkaku);
        font-style: normal;
        font-weight: 700;
        font-size: 3.2rem;
        line-height: 150%;
        letter-spacing: 0.1em;
        color: #212121;
        padding-left: 3rem;
        box-sizing: border-box;
        position: relative;
        margin-bottom: 5.3rem;
        @media screen and (max-width: 767px) {
            font-size: 2.2rem;
            margin-bottom: 3rem;
            padding-left: 2.6rem;
        }
        &:after {
            content: "";
            position: absolute;
            background-color: #f08300;
            left: 0;
            top: 0.5rem;
            width: 0.6rem;
            height: 3.6rem;
            border-radius: 0.5rem;
            @media screen and (max-width: 767px) {
                height: 2.2rem;
                width: 0.4rem;
            }
        }
    }
    .link-flex {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 2.2rem;
        @media screen and (max-width: 767px) {
            gap: 1rem;
        }
        & li {
            width: 70.8rem;
            @media screen and (max-width: 767px) {
                width: 100%;
            }
            & a {
                width: 100%;
                background-color: #fff;
                border-radius: 1rem;
                padding: 4.7rem 8rem 4.7rem 4.7rem;
                box-sizing: border-box;
                position: relative;
                display: flex;
                gap: 3.9rem;
                align-items: center;
                border: 0.2rem transparent solid;
                transition: all 0.3s ease-in;
                @media screen and (max-width: 767px) {
                    padding: 3rem 2rem;
                    gap: 1rem;
                }
                &:after {
                    content: "";
                    position: absolute;
                    width: 4.15rem;
                    height: 4.15rem;
                    background: url("../../common/img/orange-arrow.svg") no-repeat center / 100% auto;
                    top: 50%;
                    right: 3rem;
                    transform: translateY(-50%);
                    @media screen and (max-width: 767px) {
                        width: 2.6rem;
                        height: 2.6rem;
                        right: 1rem;
                        top: unset;
                        transform: unset;
                        bottom: 1rem;
                    }
                }
                &:hover {
                    border: 0.2rem #f08300 solid;
                }
                .icon-img {
                    width: 9.4rem;
                    @media screen and (max-width:767px){
                    width: 6rem;
                    }
                    & img {
                        width: 100%;
                        vertical-align: top;
                    }
                }
                .link-text {
                    flex: 1;
                    .link-header {
                        font-family: var(--zenkaku);
                        font-style: normal;
                        font-weight: 700;
                        font-size: 2.4rem;
                        line-height: 3.5rem;
                        letter-spacing: 0.1em;
                        color: #212121;
                        margin-bottom: 1.9rem;
                        @media screen and (max-width:767px){
                        font-size: 1.8rem;
                        line-height: 1.3;
                        margin-bottom: 1rem;
                        }
                    }
                }
            }
        }
    }
}
.link-block:last-child {
    margin-bottom: 0;
}
