/*//////// トップページ ////////CSS */

/* 共通設定 */
:root {
    --main-color: #7dbee0;
}

div#contents\ top2025-07 {
    overflow: hidden;

    * {
        font-family: "Zen Kaku Gothic Antique", sans-serif;
    }

    p {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        line-height: 2.5;
        margin-bottom: 20px;
    }

    img {
        display: inline;
        max-width: 100%;
        vertical-align: middle;
    }

    section {
        padding: 60px 15px;
    }

    .container {
        max-width: 1100px;
        position: relative;
        margin: 0 auto;
    }

    .pc {
        display: block;
    }

    .tab {
        display: none;
    }

    .sp {
        display: none;
    }

    /*Slick slider*/
    .sliderArea {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .sliderArea ul.slider01 {
        list-style: none;
        padding: 0;
        margin-bottom: 80px;

        li:nth-of-type(2n) {
            width: 20vw;
        }
    }

    .slick-slide {
        margin: 0;
    }

    .slick-track {
        display: flex;
        align-items: center;
        gap: 25px;

        li {
            width: 25vw;
            border-radius: 15px;
            overflow: hidden;
        }

        /* スライド画像 */
        img {
            width: 100%;
            height: auto;
            object-fit: cover;
            transition: 0.3s;
        }
    }

    /* FV */
    .top-fv {
        padding: 60px 0 0;
    }

    .slider-fv .slick-track {
        align-items: center;
        gap: 0;

        li {
            border-radius: 70px 70px 0 0;
            overflow: hidden;
        }

        /* スライド画像 */
        img {
            width: 100%;
            height: 80vh;
            object-fit: cover;
            transition: 0.3s;
        }
    }

    .fv-img img {
        margin: 0 auto;
    }

    .fv-title {
        text-align: center;
        padding: 60px 15px 150px;
    }

    /* フェードインCSS　*/
    .fade-up {
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade-up.show {
        opacity: 1;
        transform: translateY(0);
    }

    .opacity {
        opacity: 0;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .opacity.show {
        opacity: 1;
    }

    /* section1 */
    .tab-wrapper {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        justify-content: center;
        padding: 0 20px 40px;
        font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    }

    .tab-item {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 60px;
        padding: 0 25px;
        border-radius: 30px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        position: relative;

        /* 通常時のスタイル（白背景） */
        background-color: #ffffff;
        border: 1px solid #e0e0e0;
        color: #333333;

        transition: all 0.3s ease;
    }

    /* --- アイコン設定 --- */
    .dot {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        margin-right: 10px;
        display: flex;
        align-items: center;
        justify-content: center;

        /* 通常時のアイコン色（水色） */
        background-color: #5ba4bc;
        transition: background-color 0.3s;
    }

    /* アイコンの中の「∨」マーク */
    .dot::after {
        content: "";
        width: 6px;
        height: 6px;
        border-right: 2px solid #ffffff;
        border-bottom: 2px solid #ffffff;
        transform: rotate(45deg);
        margin-top: -3px;
        transition: border-color 0.3s;
    }

    /* --- 吹き出しの三角形 --- */
    .arrow-down {
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%) translateY(-5px);
        width: 0;
        height: 0;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;

        /* 三角形の色を変更 */
        border-top: 12px solid #E4D04B;

        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
    }

    /* --- ホバー時の動作 --- */
    .tab-item:hover {
        /* 背景と枠線を変更 */
        background-color: #E4D04B;
        border-color: #E4D04B;
        color: #ffffff;
    }

    /* ホバー時のアイコンの色変更 */
    .tab-item:hover .dot {
        background-color: #ffffff;
    }

    /* ホバー時にアイコンの中のチェックマークの色を変更 */
    .tab-item:hover .dot::after {
        border-color: #E4D04B;
    }

    /* ホバー時に三角形を表示 */
    .tab-item:hover .arrow-down {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .top-section1 {
        position: relative;
        padding: 100px 0;

        img.left {
            position: absolute;
            top: 15px;
            left: 5px;
            z-index: -1;
        }

        img.right {
            position: absolute;
            bottom: 15px;
            right: 5px;
            z-index: -1;
        }

        h2 {
            font-size: 60px;
            font-weight: 900;
            letter-spacing: 8px;
            text-align: center;
            margin: 50px 0;
        }

        .assignment-wrap {
            position: relative;
            max-width: 780px;
            padding: 15px;
            margin: 0 auto;

            p {
                margin-bottom: 30px;
            }
        }

        .assignment-btn {
            position: absolute;
            bottom: 50px;
            right: 50px;
        }

        .fade-up-text {
            opacity: 0;
            transform: translateY(30px);
            display: inline-block;
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .fade-up-text.show {
            opacity: 1;
            transform: translateY(0);
        }
    }


    /* section2 */
    .top-section2 {
        background: #7dbee0;

        .container {
            position: relative;
            background: #fff;
            padding: 70px;
            border-radius: 20px;
        }

        .logo-center {
            text-align: center;
            margin-bottom: 50px;
        }

        h2 {
            text-align: center;
            font-size: 38px;
            font-weight: 600;
            margin: 60px 0;

            .text-small {
                font-size: 18px;
                margin-bottom: 20px;
            }

            span {
                color: #7dbee0;
            }
        }

        .section02-img img {
            width: 100%;
            height: 470px;
            object-fit: cover;
            border-radius: 20px;
        }

        p {
            text-align: center;
        }

        .section2-btn {
            position: relative;
            bottom: 0;
            right: 10px;
            text-align: right;
            margin-top: -100px;
        }

        .service-section {
            margin: 0 auto;
            padding: 40px 5px 100px;
            box-sizing: border-box;
        }

        span.top-swipe {
            display: none;
        }

        .service-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
        }

        .service-col {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .col-img {
            width: 100%;
            aspect-ratio: 16 / 9;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .col-img__label {
            font-family: monospace;
            font-size: 12px;
            color: #7a8288;
        }

        .col-body {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .col-title {
            margin: 0;
            font-size: 22px;
            font-weight: 700;
            color: #7ebee0;
            letter-spacing: 0.01em;
            text-align: center;
        }

        .col-text {
            margin: 0;
            font-size: 14px;
            line-height: 1.9;
        }

        .service-btn {
            display: block;
            background: #333;
            color: #fff;
            WIDTH: 50%;
            text-align: center;
            margin: 0 auto;
            padding: 3px 0 8px;
            border-radius: 50px;
        }

        .service-btn img {
            width: 15px;
        }

        /* PC：js-slider（スマホ用スライダー）は隠す */
        .js-slider {
            display: none;
        }

        .js-slider-track {
            display: flex;
            transition: transform 0.7s ease;
        }

        .js-slider-slide {
            flex: 0 0 100%;
            width: 100%;
            box-sizing: border-box;
            padding: 0 4px;
        }

        .js-slider img {
            pointer-events: none;
            -webkit-user-drag: none;
            -webkit-touch-callout: none;
            user-select: none;
        }

        /* スマホ：3カラムグリッドを隠し、自動再生スライダーに切替 */
        @media (max-width: 767px) {
            .service-section {
                padding: 40px 0px;
            }

            span.top-swipe {
                display: flex;
                margin: 5px auto;
                background: #7ebee04a;
                color: #008db7;
                font-size: 12px;
                width: 181px;
                border-radius: 50px;
                justify-content: center;
            }

            .service-grid {
                display: none;
            }

            .js-slider {
                position: relative;
                display: block;
                overflow: hidden;
                box-sizing: border-box;
            }

            .js-slider-track {
                display: flex;
                transition: transform .5s ease;
                touch-action: pan-y;
                -webkit-user-select: none;
                user-select: none;
            }

            .js-slider-dots {
                display: flex;
                justify-content: center;
                margin-top: 25px;
            }

            .js-slider-dot {
                height: 8px;
                border-radius: 999px;
                transition: width 0.3s ease, background 0.3s ease;
            }
        }
    }


    /* section3 */
    .top-section3 {
        h2 {
            font-size: 50px;
            font-weight: 600;
            text-align: center;
            margin: 50px 50px 80px;

            span {
                color: #7dbee0;
            }
        }

        .branding-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
        }

        .brandeing-center {
            display: flex;
            align-items: center;
            gap: 40px;
        }


        .branding-img img {
            width: 330px;
            border-radius: 20px;
            overflow: hidden;
        }

        h3 {
            font-size: 33px;
            font-weight: 600;
            margin-bottom: 30px;
        }

        .news-btn {
            width: 300px;
            margin: 50px auto;
            background: #222;
            border-radius: 50px;

            img {
                margin: 0;
            }

            a {
                color: #fff;
                display: flex;
                align-items: center;
                gap: 15px;
                justify-content: center;
                padding: 15px 0;
            }
        }
    }

    /* section4 */
    .top-section4 {
        h2 {
            margin-bottom: 50px;
        }

        .future-wrap {
            position: relative;
            display: flex;
            justify-content: space-between;
            padding: 50px;
            margin-bottom: 80px;
            background: #7dbee0;
            border-radius: 20px;

            &::before {
                content: '';
                position: absolute;
                top: 0px;
                left: -50%;
                width: 60%;
                height: 100%;
                background: #7dbee0;
                z-index: -1;
            }

            .future-img {
                max-width: 460px;
                border-radius: 15px;
                overflow: hidden;
            }
        }

        h4 {
            font-size: 28px;
            line-height: 1.7;
            color: #fff;
            margin: 30px 0;
            padding: 10px 20px 10px 12px;
        }

        .future-text p {
            color: #fff;
        }

        .family-career {
            position: relative;
            padding: 40px;

            .quote.center {
                text-align: center;
                font-weight: 600;
            }

            .quote.left {
                position: absolute;
                top: 0;
                left: 30px;
                z-index: -1;
            }

            .quote.right {
                position: absolute;
                bottom: 0;
                right: 30px;
                z-index: -1;
            }

            h2 {
                font-size: 38px;
                margin-bottom: 50px;
            }
        }

        .news-btn {
            width: 300px;
            margin: 50px auto;
            background: #222;
            border-radius: 50px;

            img {
                margin: 0;
            }

            a {
                color: #fff;
                display: flex;
                align-items: center;
                gap: 15px;
                justify-content: center;
                padding: 15px 0;
            }
        }

        p.katsudo {
            text-align: right;
            margin-right: 10%;
        }
    }

    /* section5 */

    .top-section5 .container {
        text-align: center;
        background: #7dbee0;
        padding: 60px 0;
        border-radius: 15px;

        h3 a {
            font-size: 28px;
            color: #fff;
            letter-spacing: 5px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 30px;
        }

        p {
            color: #fff;
            letter-spacing: 4px;
            font-weight: 600;
        }
    }

    /* section6 */
    .top-section6 {
        h2 {
            text-align: center;
            margin-bottom: 50px;
        }

        .newposts-wrap {
            max-width: 950px;
            margin: 0 auto;
        }

        .news-item {
            display: flex;
            justify-content: space-between;
            padding: 15px;
            margin-bottom: 15px;
        }

        .news-img {
            width: 260px;
            border-radius: 15px;
            overflow: hidden;
        }

        .news-text {
            width: 620px;

            .news-date {
                font-size: 16px;
                font-weight: 600;
            }

            .news-category {
                font-size: 12px;
                font-weight: 600;
                background: #7dbee0;
                padding: 2px 15px 4px;
                border-radius: 30px;
            }

            .date-category,
            p {
                font-size: 14px;
                margin: 15px 0;
            }

            .news-title {
                font-size: 22px;
            }
        }

        .news-btn {
            width: 300px;
            margin: 50px auto;
            background: #222;
            border-radius: 50px;

            img {
                margin: 0;
            }

            a {
                color: #fff;
                display: flex;
                align-items: center;
                gap: 15px;
                justify-content: center;
                padding: 15px 0;
            }
        }

    }

    /* section7 */
    .top-section7 {
        background: #7dbee0;

        h2 {
            text-align: center;
            margin: 50px 0;
            color: #fff;
            font-size: 35px;
            font-family: "Poppins", sans-serif;
            letter-spacing: 1.7px;
        }

        .service-wrap {
            display: flex;
            justify-content: space-between;
            margin-bottom: 50px;
        }

        img.sns-icon {
            width: 40px;
        }

        img.sns-icon-sub {
            width: 100px;
        }

        .service-item {
            width: 265px;
            background: #fff;
            border-radius: 20px;
            padding: 40px 20px;

            h3 {
                font-size: 18px;
                color: #7dbee0;
                margin-bottom: 20px;
            }

            li a {
                font-size: 16px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding-bottom: 10px;
                margin-bottom: 10px;
                border-bottom: 1px solid #7dbee0;

                img {
                    width: 20px;
                    height: 20px;
                    object-fit: contain;
                }
            }
        }

        .news-btn {
            width: 300px;
            margin: 50px auto;
            background: #222;
            border-radius: 50px;

            img {
                margin: 0;
            }

            a {
                color: #fff;
                display: flex;
                align-items: center;
                gap: 15px;
                justify-content: center;
                padding: 15px 0;
            }
        }
    }

    /* section8 */
    .top-section8 {
        padding: 60px 0;

        .contact-bg {
            position: relative;
            background-image: url(https://shufukomachi.com/test/wp-content/themes/jinr-child/top-img/section08-bg.png);
            background-size: cover;
            background-position: top center;
            padding: 300px 0 0;
        }

        .contact-wrap {
            display: flex;
            justify-content: center;
            gap: 50px;
        }

        span {
            display: block;
            color: #fff;
            text-align: center;
        }

        .cta-mail {
            display: block;
            width: 450px;
            margin: 20px auto;
            padding: 20px 20px;
            background: #222;
            color: #fff;
            border-radius: 50px;
            text-align: center;
            font-size: 18px;
        }

        /* slide02 */
        .sliderArea ul.slider02 {
            position: relative;
            bottom: -50px;
            list-style: none;
            padding: 0;
            margin: 80px 0;
        }

        .slick-track {
            display: flex;
            align-items: center;
            gap: 25px;

            li {
                width: 25vw;
            }

            /* スライド画像 */
            img {
                width: 100%;
                height: auto;
                object-fit: cover;
                transition: 0.3s;
            }
        }
    }

    /* タブレット表示 */
    @media(max-width:800px) {
        .pc {
            display: none;
        }

        .tab {
            display: block;
        }

        .sp {
            display: none;
        }
    }

    /* スマホ表示 */
    @media(max-width:600px) {
        .pc {
            display: none;
        }

        .tab {
            display: none;
        }

        .sp {
            display: block;
        }

        section {
            padding: 20px 15px;
        }

        /* FV */
        .fv-title {
            text-align: center;
            padding: 50px 15px;
        }

        .slider-fv .slick-track {
            li {
                border-radius: 40px 40px 0 0;
                overflow: hidden;
            }

            /* スライド画像 */
            img {
                height: 60vh;
            }
        }


        /* section1 */
        .top-section1 {
            padding: 50px 0 150px;

            .assignment-btn {
                width: 150px;
                bottom: -125px;
                right: 20px;

            }

            h2 {
                font-size: 24px;
                margin-left: 15px;

                span {
                    font-size: 30px;
                    line-height: 2;
                }
            }

            img.left {
                width: 70px;
            }

            img.right {
                width: 70px;
            }

            .assignment-wrap {
                p {
                    margin-bottom: 30px;
                    line-height: 1.5;
                }
            }
        }

        /* section2 */
        .top-section2 {
            .container {
                padding: 15px;
            }

            .container {
                padding: 15px;
            }

            h2 {
                font-size: 26px;

                .text-small {
                    font-size: 16px;
                    margin-bottom: 20px;
                }
            }

            .section02-img img {
                width: 100%;
                height: 250px;
                object-fit: cover;
                border-radius: 20px;
            }

            .section2-btn {
                position: absolute;
                width: 130px;
                right: 10px;
                bottom: 10px;
            }

            p.sec-p {
                font-size: 14px !important;
            }


        }

        /* section3 */
        .top-section3 {
            padding: 50px 10px;

            h2 {
                font-size: 33px;
                margin: 50px 45px 65px;
            }

            .branding-wrap {
                gap: 10px;

                .sp {
                    width: 23px;
                }

                h3 {
                    font-size: 24px;
                    margin-top: 20px;
                }

                .brandeing-center {
                    width: 85%;
                    flex-direction: column;
                }

                p {
                    line-height: 2;
                }
            }
        }

        /* section4 */
        .top-section4 {
            h2 {
                text-align: center;
            }

            .future-wrap {
                flex-direction: column;
                padding: 20px 15px 50px 10px;
                border-radius: 10px;
            }

            .family-career {
                padding: 40px 20px;

                h2 {
                    font-size: 24px;
                }

                .quote.left {
                    width: 60px;
                    top: -30px;
                    left: 10px;
                }

                .quote.center p {
                    text-align: justify;
                }

                .quote.right {
                    width: 60px;
                    right: 10px;
                }
            }
        }

        /* slide1 */
        .sliderArea ul.slider01 {

            li:nth-of-type(2n) {
                width: 55vw;
            }
        }

        .slick-track {
            li {
                width: 70vw;

            }
        }

        /* section5 */
        .top-section5 {
            padding: 20px 0;

            .container {
                border-radius: 0;

                h3 a {
                    font-size: 19px;
                }

                p {
                    font-size: 14px;
                }
            }
        }

        /* section6 */
        .top-section6 {
            h2 {
                margin: 50px;
            }

            .news-item {
                padding: 15px 0;
                gap: 10px;
            }

            .news-img {
                width: 150px;
            }

            .news-text {
                width: 100%;

                .news-title {
                    font-size: 14px;
                }

                .date-category,
                p {
                    font-size: 14px;
                    margin: 0 -15px 15px;
                }
            }
        }

        /* section7 */
        .top-section7 {
            padding-bottom: 70px;

            h2 {
                font-size: 28px;
                line-height: 1.3;
            }

            .service-wrap {
                display: flex;
                flex-direction: column;
                gap: 20px;
                align-items: center;
            }
        }

        /* section8 */
        .top-section8 {
            .contact-wrap {
                padding: 15px;
                gap: 20px;
            }

            .contact-bg {
                padding: 150px 0 0;
            }

            .contact-item {
                &:nth-of-type(2) {
                    position: absolute;
                    top: 170px;
                    left: 50%;
                    transform: translate(-50%);
                }

                .cta-mail {
                    width: 300px;
                    font-size: 17px;
                }

            }

            .slick-track {
                li {
                    width: 65vw;
                }
            }

            .sliderArea ul.slider02 {
                margin: 0;
            }
        }
    }
}

/* =========================*/
/* 2026.03追加 
/* =========================*/
.hero-d__doc-wrap {
    position: relative;
    z-index: 3;
    transform: rotate(-4deg);
    transition: transform 0.4s ease;
    width: 300px;
    margin: 0 3rem;
}

.hero-d__doc-wrap:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-d__doc-shadow {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    transform: translate(12px, 16px);
    filter: blur(20px);
}

.hero-d__doc-img {
    position: relative;
    z-index: 1;
    width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: block;
}

.hero-d__doc-badge {
    position: absolute;
    top: -23px;
    right: -19px;
    z-index: 4;
    width: 100px;
    height: 100px;
    background: #e8c84a;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif JP', serif;
    font-size: 10px;
    font-weight: 700;
    color: #1a2b38;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custom-list {
    list-style: none;
    padding: 0 0 15px;
    margin: 0;
    font-weight: 600;
    color: #333;
}

.custom-list li {
    padding: 6px 0 3px 1.2em;
    position: relative;
    font-size: 20px;
}

.custom-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #7dbee0;
}

@media(max-width:600px) {
    .hero-d__doc-wrap {
        width: 250px;
        transform: rotate(0deg) scale(1.02);
    }

    .custom-list li {
        font-size: 18px;
    }
}

/* バナー追加 */
div#contents\ top2025-07 {

    .top-bn {
        max-width: 900px;
        padding: 0 15px 60px;
        margin: 0 auto;
    }

    @media (max-width: 1024px) {
        .top-bn {
            max-width: 780px;
        }
    }

    @media (max-width: 600px) {
        .top-bn {
            padding: 0 15px;
        }

    }

}