@charset "UTF-8";
:root{
    --jcom-pink:#FEF4F5;
    --jcom-gray:#707070;
}

/* common */
body {
    font-family: 'Noto Sans JP', 'meiryo', 'メイリオ', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'Osaka', 'ＭＳ Ｐゴシック', 'sans-serif';
    background-color: #f4f4f4;
}
main{
    place-items: center;
    background-color: #fff;
    overflow: hidden;
}

section{
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 50px 0;

    section {
        max-width: 1120px;
    }
}
.bg-gray {
    background-color: var(--jcom-gray);
}
.bg-pink {
    background-color: var(--jcom-pink);
}

/* commmon_title */
main {
    h1 {
        margin: auto;
        text-align: center;
        font-size: 2.4rem;
        font-weight: bold;
    }
    h1.bg-red{
        margin-bottom: 15px;
        padding: 20px 10px;
        color: var(--jcom-orange);
        background-color: var(--jcom-pink);
        border-radius: 10px;
    }
    h2 {
        margin-bottom: 1rem;
        font-size: 3.2rem;
        text-align: center;
        font-weight: bold;
    }
    h3 {
        margin-bottom: 1rem;
        font-size: 2.8rem;
        font-weight: bold;
        text-align: center;
    }
    h4 {
        font-weight: bold;

        .bg-red {
            place-self: center;
            display: inline-block;
            height: 3rem;
            width: 3rem;
            color: white;
            font-size: 1.6rem;
            text-align: center;
            line-height: 3rem;
            background-color: var(--jcom-orange);
            border-radius: 5px;
        }
    }
    h5 {
        font-weight: bold;
    }
    li {
        padding-left: 1rem;
        text-indent: -1rem;
    }
    .b{
        font-weight: bold;
    }
    .s{
        font-size: 1.2rem;
    }
    .u{
        text-decoration: underline;
    }
    .red {
        color: var(--jcom-orange);
        font-weight: bold;
    }
    .center {
        text-align: center;
    }
    figcaption {
        text-align: center;
        font-size: 1.4rem;
    }
}

/* common_モーダル */
.modal-list {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    column-gap: 1rem;
    row-gap: 1rem;
    width: 90%;
    margin: 3em auto 6rem;

    .modal_open {
        padding: 1.2em 1rem;
        text-align: center;
        text-indent: 0;
        font-size: 1.8rem;
        font-weight: bold;
        border: 2px solid #ccc;
        border-radius: 10px;
        background-color: #fff;
        transition: .2s;
    }
    .modal_open:hover {
        background-color: #EFF3F4;
    }
}
.modal_box {
    div.modal_wrap {
        padding-top: 80px;

        .bg-pink {
            display: grid;
            grid-template-columns: 1fr auto;
            width: 100%;
            max-height: 80px;
            padding: 15px;
            background-color: #F8C1B8;
            position: fixed;
            top: 0;
            left: 0;
        }

        .modal_inner {
            margin: 1em auto 70px;
            
            h2 {
                font-size: 2rem;
            }
            h3 {
                margin-top: 2rem;
                margin-bottom: 1rem;
                font-size: 1.6rem;
            }
            > p {
                margin-bottom: 1rem;
                text-align: center;
            }

            .border {
                display: grid;
                place-items: center;
                row-gap: 10px;
                max-width: 640px;
                margin: 1em auto;
                padding: 10px;
                border: solid 2px #ccc;
                border-radius: 5px;

                h4 {
                    font-weight: bold;
                    position: relative;
                }
                h4::before {
                    content: "";
                    display: inline-block;
                    width: 12px;
                    height: 12px;
                    background-color: var(--jcom-orange);
                    position: absolute;
                    top: 50%;
                    left: -12px;
                    translate: -50% -50%;
                }

                ol {
                    counter-reset: num;
                    display: grid;
                    row-gap: 7px;
                    width: 100%;
                    padding: 0 150px;

                    li {
                        counter-increment: num;
                        padding-left: 0;
                        text-indent: 0;
                        position: relative;

                        &::before {
                            content: counter(num);
                            display: inline-block;
                            width: 25px;
                            height: 25px;
                            border-radius: 50px;
                            text-align: center;
                            text-indent: 0;
                            line-height: 2;
                            font-size: 1.3rem;
                            font-weight: bold;
                            color: #fff;
                            background-color: #444;
                            position: absolute;
                            top: 1px;
                            left: -30px;
                        }
                        &.bg-red::before {
                            background-color: var(--jcom-orange);
                        }
                    }
                }
            }
        }

        > .modal_close {
            display: inline-block;
            width: 100%;
            height: 70px;
            background-position: center;
            background-color: #E8E8E8;
            background-size: 45px;
            position: sticky;
            bottom: 0;
            transition: 0.3s;
            opacity: 0;
            visibility: hidden;
        }
        > .modal_close.show {
            opacity: 1;
            visibility: visible;
        }
    }
}

/* common_アコーディオン */
.accordion-item {
    max-width: 960px;
    margin: 1.2rem auto;
    border: 1px solid #fafafa;
    border-radius: 5px;
    background-color: white;
    box-shadow: rgb(0 0 0 / 10%) 0px 1px 5px;

    .accordion-header {
        grid-template-columns: auto 1fr auto;
        column-gap: 1rem;
        place-items: center;
        place-self: center;
        width: 100%;
        padding: 1.5rem;
        padding-left: 3rem;
        transition: 0.3s;
        cursor: pointer;

        .img {
            width: 80px;
        }
        h3 {
            display: block;
            width: 100%;
            margin-bottom: 0;
            text-align: start;
            font-size: 1.6rem;
            line-height: 1.5;
        }
        &::after {
            display: inline-grid;
            place-items: center;
            width: 35px;
            height: 35px;
            text-align: center;
            font-size: 1.3rem;
            background: url(../img/common/qa_btn.png);
            background-repeat: no-repeat;
            background-size: cover;
        }
        &:hover {
            background-color: #eff3f4;
        }
    }

    .accordion-content {
        padding: 2rem 3rem;
    }
}

/* top */
#top {
    max-width: unset;
    padding: 0 0 50px;

    .bg {
        margin-bottom: 80px;
        background-color: #FCDEE1;

        .img {
            max-width: 700px;
        }
    }
    h1 {
        max-width: 960px;
        margin-bottom: 40px;
        font-size: 3.2rem;

        span {
            color: var(--jcom-orange);
        }
    }
    p {
        margin-bottom: 2rem;
        text-align: center;
    }
    nav {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        column-gap: 1%;
        max-width: 1120px;
        margin: 0 auto;
        padding: 0 1rem;

        .btn {
            a{
                display: grid;
                place-items: center;
                height: 110px;
                padding: 20px 0;
                text-align: center;
                font-size: 1.4rem;
                font-weight: bold;
                border: 2px solid var(--jcom-orange);
                border-bottom: 20px solid var(--jcom-orange);
                border-radius: 15px;
                background-color: white;
                position: relative;
                transition: .3s;

                &::before {
                    content: "";
                    width: 30px;
                    height: 30px;
                    background-color: var(--jcom-orange);
                    border-radius: 50px;
                    position: absolute;
                    bottom: -33px;
                    left: calc(50% - 15px);
                }
                &::after {
                    content: "";
                    width: 8px;
                    height: 8px;
                    border-top: 2px solid white;
                    border-right: 2px solid white;
                    transform: rotate(135deg);
                    position: absolute;
                    bottom: -22px;
                    left: calc(50% - 4px);
                }
                &:hover {
                    opacity: 0.7;
                }
            }
        }
    }
}

/* receive */
#receive {
    max-width: unset;

    p {
        text-align: center;
    }
    section{
        padding: 50px 1rem;

        .grid-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            column-gap: 1%;

            .grid-item {
                margin-top: 20px;
                padding: 1.25rem 1.5rem 1.5rem 1.5rem;
                border: solid 2px #ccc;
                border-radius: 5px;
                background-color: #fff;

                h4 {
                    text-align: center;
                }
                p {
                    text-align: start;
                }
            }
        }
    }

    section:last-of-type{
        figure {
            .grid-container {
                grid-template-columns: auto;

                .grid-item {
                    border: unset;
                }
            }
        }
    }
}

/* connect */
#connect {
    max-width: unset;
    text-align: center;

    section {
        padding: 50px 1rem;

        h3 {
            margin-bottom: 1rem;
            line-height: 1.2;
            font-size: 2.8rem;

            span {
                font-size: 1.6rem;
            }
        }
        h4 {
            margin: 2em auto 1rem;
            font-size: 2rem;
            font-weight: bold;
        }

        .tabs {
            .tab-btns {
                display: grid;
                grid-template-columns: 1fr 1fr;
                column-gap: 1rem;
                margin-bottom: 3rem;

                label {
                    padding: 1.15rem;
                    border-radius: 5px;
                    font-weight: bold;
                    position: relative;
                    transition: linear 0.1s;
                }
            }

            .tab-contents {
                .tab-content {
                    place-items: center;

                    h4 {
                        font-weight: bold;
                    }
                    p {
                        margin-top: 20px;
                    }
                    ol,ul {
                        width: fit-content;
                        margin: 1em 0;
                        text-align: start;
                    }
                }
            }
        }
        .tabs:has(#tab1:checked) label[for="tab1"],
        .tabs:has(#tab2:checked) label[for="tab2"] {
            background: var(--jcom-orange);
            transform: scale(1.02);
        }
        .tabs:has(#tab1:checked) label[for="tab1"]::after,
        .tabs:has(#tab2:checked) label[for="tab2"]::after {
            content: "";
            width: 30px;
            height: 30px;
            background-color: var(--jcom-orange);
            position: absolute;
            bottom: -14px;
            left: calc(50% - 15px);
            transform: rotate(45deg);
            transition: 0.2s;
            z-index: -1;
        }
    }
}

/* trouble */
#trouble {
    max-width: unset;
    padding: 50px;

    > p {
        text-align: center;
    }

    .accordion-item {
        .accordion-header {
            grid-template-columns: auto 1fr auto;
            column-gap: 1rem;
            place-items: center;
            place-self: center;
            width: 100%;
            padding: 1.5rem;
            background-color: #fff;
            transition: .3s;

            .img {
                width: 80px;
            }
            h3 {
                display: block;
                width: 100%;
                margin-bottom: 0;
                text-align: start;
                font-size: 1.6rem;
                line-height: 1.5;
            }
            &::after {
                width: 35px;
                height: 35px;
                text-align: center;
                font-size: 1.3rem;
                font-weight: bold;
                background: url(../img/common/qa_btn.png);
                background-repeat: no-repeat;
                background-size: cover;
            }
            &:hover {
                background-color: var(--bg-gray);
            }
        }

        .accordion-content {
            h4 {
                display: inline-grid;
                grid-template-columns: auto 1fr;
                column-gap: 0.7rem;
                margin: 2rem 0 1rem;
                font-size: 2rem;
            }
            h5 {
                margin-top: 3rem;
                text-align: center;
            }
            > .grid-container {
                display: grid;
                grid-template-columns: 1fr auto;
                margin-top: 1rem;
            
                .grid-item {
                    > p {
                        margin-bottom: 1rem;
                    }
                    
                    figure {
                        width: 350px;
                    }
                }
            }
        }
    }
}

/* visit */
#visit {
    > p {
        text-align: center;
    }
    .bg-gray {
        margin: 40px auto 20px;
        padding: 15px;
        text-align: center;
        color: white;
        font-weight: bold;
        border-radius: 10px;
        background-color: #707070;
    }

    .accordion-item {
        .accordion-header {
            grid-template-columns: 1fr auto;
            place-items: center;
            font-weight: bold;
            background-color: #fff;

            &:hover {
                background-color: var(--bg-gray);
            }
            h4 {
                width: 100%;
            }
        }

        .accordion-content {
            p {
                margin-bottom: 1rem;
            }
            .img {
                max-width: 600px;
            }
        }
    }
}

/* wifi */
#wifi {
    max-width: unset;
    padding: 50px;

    p {
        text-align: center;
    }
    .btn {
        width: 80%;
        max-width: 960px;
        margin: 1em auto 1rem;
        padding: 20px 0;
        box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 8px;
        border-radius: 10px;
        background-color: white;
        text-align: center;
        font-size: 2rem;
        font-weight: bold;
        position: relative;
        cursor: pointer;

        &::after {
            content: "";
            width: 12px;
            height: 12px;
            border-right: 4px solid var(--jcom-orange);
            border-top: 4px solid var(--jcom-orange);
            position: absolute;
            top: calc(50% - 6px);
            right: 24px;
            transform: rotate(45deg);
        }
    }
}

/* service */
#service {
    > p {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    h3 {
        margin-top: 3rem;
    }

    .btn-container {
        display: grid;
        grid-template-columns: repeat(4,1fr);
        column-gap: 1rem;
        width: 90%;
        margin: 0 auto 2rem;

        .btn {
            display: block;
            width: 100%;
            padding: 10px;
            text-align: center;
            font-size: 2.6rem;
            color: #fff;
            border-radius: 5px;
            background-color: var(--jcom-orange);
        }
    }

    .border {
        margin-top: 1rem;
        padding: 1.5rem;
        border: solid 2px #ccc;
        border-radius: 5px;

        h4 {
            width: 100%;
            margin-bottom: 20px;
            text-align: center;
            font-size: 2rem;
            font-weight: bold;
        }
        p {
            text-align: center;
        }
        .btn {
            width: 100%;
            margin: 2em auto 1rem;
            box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 8px;
            border-radius: 10px;
            background-color: white;
            text-align: center;
            font-size: 2rem;
            font-weight: bold;
            position: relative;
            cursor: pointer;

            a {
                display: block;
                padding: 10px 0;
            }
            &::after {
                content: "";
                width: 12px;
                height: 12px;
                border-right: 4px solid var(--jcom-orange);
                border-top: 4px solid var(--jcom-orange);
                position: absolute;
                top: calc(50% - 6px);
                right: 24px;
                transform: rotate(45deg);
            }
        }

        > .img {
            margin-top: 3rem;
        }
    }
}



@media screen and (max-width: 768px){
    /* common */
    section {
        padding: 20px 10px;
    }
    .pc_only { display: none !important; }
    .sp_only { display: block !important; }
    .pc-img { display: none !important; }
    .sp-img { display: unset !important; }

    /* commmon_title */
    main {
        h1 {
            font-size: 2rem;
        }
        h1.bg-red{
            margin-bottom: 15px;
            padding: 10px;
        }
        h2 {
            margin-bottom: 20px;
            font-size: 2.8rem;
            line-height: 1.3;
        }
        h3 {
            font-size: 2.2rem;
        }
        h4 {
            font-size: 1.8rem;

            .bg-red {
                height: 2.8rem;
                width: 2.8rem;
                font-size: 1.6rem;
                line-height: 2.8rem;
            }
        }
    }

    /* commmon_ボタンリンク */
    .btn {
        width: 100%;
        font-size: 1.4rem;
        padding: 1.1rem 2rem;
    }
    .btn_blank::after{
        top: calc(50% - 7px);
        right: 1rem;
    }

    /* common_topボタン */
    #btn-top {
        width: 55px;
        height: 55px;
        bottom: 35px;
        right: 12px;
    }

    /* common_モーダル */
    .modal-list {
        grid-template-columns: repeat(2,1fr);
        column-gap: 10px;
        row-gap: 10px;
        width: 100%;
        margin: 3em auto 0;

        .modal_open {
            padding: 13px 0;
            font-size: 1.6rem;
        }
    }
    .modal_box {
        div.modal_wrap {
            padding-top: 80px;

            .bg-pink {
                h1 {
                    font-size: 1.8rem;
                    line-height: 1;
                }
            }

            .modal_inner {
                margin: 1em auto 50px;
                padding: 0 9px;

                h2 {
                    font-size: 1.8rem;
                }
                .border {
                    ol {
                        padding: 0;
                        padding-left: 2em;

                        li {
                            padding-left: 0em;
                            text-indent: 0em;
                        }
                    }
                }
            }
            > .modal_close {
                height: 60px;
            }
        }
    }


    /* common_アコーディオン */
    .accordion-item {

        .accordion-header {
            padding: 1.5rem;
        }
        .accordion-content {
            padding: 1.5rem;
        }
    }

    /* 訪問作業を予約 */
    div.visit {
        a {
            .img {
                width: 60px;
            }
            p {
                font-size: 1.6rem;
            }
        }
    }

    /* top */
    #top {
        .bg {
            margin-bottom: 2em;
            padding-top: 1em;

            .img {
                max-width: 330px;
            }
        }
        h1 {
            font-size: 2.8rem;
        }
        nav {
            grid-template-columns: auto;
            padding-left: 5rem;

            .btn {
                a {
                    display: inline-block;
                    height: auto;
                    padding: unset;
                    border: unset;
                    text-align: start;

                    &::before {
                        width: 22px;
                        height: 22px;
                        top: 50%;
                        bottom: unset;
                        left: -17px;
                        translate: -50% -50%;
                    }
                    &::after {
                        content: none;
                    }
                }
            }
        }
    }


    /* receive */
    #receive {
        section {
            padding: 3rem 0;

            .grid-container {
                grid-template-columns: auto;
                row-gap: 1%;

                .grid-item {
                    margin-top: 10px;
                    padding: 1em;
                }
            }
            &:last-of-type {
                figure {
                    .grid-container {
                        .grid-item {
                            padding: 1em 0 0;
                        }
                    }
                }
            }
        }
    }

    /* connect */
    #connect {
        section {
            padding: 40px 0em;

            h3 {
                font-size: 2rem;
            }

            .tabs {
                .tab-btns {
                    column-gap: 7px;
                    margin-bottom: 35px;

                    label {
                        padding: 1rem;
                        font-size: 1.6rem;
                        line-height: 1.5;
                    }
                }
                .tab-contents {
                    .tab-content {
                        h4 {
                            margin: 0 auto;
                            font-size: 1.6rem;
                        }
                    }
                }
            }
        }
    }


    /* trouble */
    #trouble {
        padding: 20px 10px;

        .accordion-item {
            .accordion-header {
                column-gap: 1rem;

                .img {
                    width: 50px;
                }
                h3 {
                    font-weight: normal;
                }
            }

            .accordion-content {

                h4 {
                    column-gap: 0.5rem;
                    font-size: 1.8rem;
                }

                > .grid-container {
                    grid-template-columns: auto;
                    margin: 1em auto;
                
                    .grid-item {
                        > p {
                            margin-bottom: 1em;
                        }
                        
                        figure {
                            width: 90%;
                            margin: auto;
                        }
                    }
                }
            }
        }
    }

    /* visit */
    #visit {
        .bg-gray {
            margin: 40px auto 20px;
            padding: 15px 0;
            font-size: 1.6rem;
        }

        .accordion-item {
            .accordion-header {
                column-gap: 0.5rem;
            }
        }
    }

    /* wifi */
    #wifi {
        padding: 20px 10px;

        .btn {
            width: 100%;
            padding: 15px 0;
            font-size: 1.6rem;
            font-weight: normal;
        }
    }

    /* service */
    #service {
        .btn-container {
            grid-template-columns: repeat(2,1fr);
            column-gap: 1rem;
            row-gap: 1rem;

            .btn {
                padding: 1rem;
                font-size: 2rem;
            }
        }

        .border {
            margin-top: 1rem;
            padding: 2rem;
            border: solid 2px #ccc;
            border-radius: 5px;

            h4 {
                width: 100%;
                margin-bottom: 1rem;
                text-align: center;
                font-size: 1.8rem;
                font-weight: bold;
            }
            p {
                text-align: center;
            }
            .btn {
                margin: 2rem auto 1rem;
                padding: 0;
                font-size: 2rem;

                a {
                    padding: 1.5rem 4rem;
                }
            }
            > .img {
                margin-top: 2.5rem
            }
        }
    }
}