/*
CSS style
---------------------------------------------------------------- */

.t__main{

    --color-blue: #0068B7;

    /* 加入電話の回線使用料の改定についてTOP */
    &#price_revision {

        .startdate {
            gap: 0;
            grid-template-columns: 1fr 1.7fr;
            border-radius: 4px;
            border: 3px solid #D6D6D6;
            font-weight: bold;
            align-items: center;
            text-align: center;

            dt {
                font-size: 2.0rem;
                color: #fff;
                background: #666;
                padding: 30px 0;
            }
            dd {
                font-size: 2.4rem;
            }
            
            @media only screen and
            (max-width : 767px) {

                grid-template-columns: 1fr;

                dt {
                    font-size: 1.5rem;
                    padding: 10px 0;
                }
                dd {
                    font-size: 1.8rem;
                    padding: 16px 0;
                }
            }
        }

        .accordion {

            padding: 0;

            h2.title {
                font-size: 2.6rem;
                margin: 0;
                padding: 36px 0;
                
                &::after{
                    content: none;
                }

                &:hover {
                    cursor: pointer;
                }

                .toggle {
                    display: inline-block;
                    width: 20px;
                    height: 20px;
                    position: absolute;
                    right: 28px;
                    top: 0;
                    bottom: 0;
                    margin: auto 0;

                    &::before, &::after {
                        content: "";
                        width: 100%;
                        height: 2px;
                        background: var(--color-blue);
                        position: absolute;
                        top: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%);
                        -webkit-transform: translate(-50%, -50%);
                        -ms-transform: translate(-50%, -50%);
                        transition: .2s;
                    }
                    &::before {
                        transform: translate(-50%, -50%) rotate(90deg);
                        -webkit-transform: translate(-50%, -50%) rotate(90deg);
                        -ms-transform: translate(-50%, -50%) rotate(90deg);
                    }
                }

                &.open {
                    .toggle {
                        &::before {
                            transform: translate(-50%, -50%) rotate(0deg);
                            -webkit-transform: translate(-50%, -50%) rotate(0deg);
                            -ms-transform: translate(-50%, -50%) rotate(0deg);
                        }
                    }
                }
            }

            .body {
                border-top: 1px solid #DFDFDF;
                margin-top: 0;
                padding: 40px 50px 0;
                display: none;
            }
            
            @media only screen and
            (max-width : 767px) {

                padding: 0;

                h2.title {
                    font-size: 2.0rem;
                    padding: 20px 0;

                    .toggle {
                        right: 20px;
                    }

                }

                .body {
                    padding: 20px 20px 0;
                    display: none;
                }
            }
        }

        .after_revision {
            border-radius: 4px;
            background: #fff;
            padding: 20px;
            border: 1px solid #D6D6D6;

            @media only screen and
            (max-width : 767px) {
                padding: 12px;
            }
        }
            
        @media only screen and
        (max-width : 767px) {
            .tableWrapper img {
                height: auto;
            }
        }
    }
    
    /* 加入電話の回線使用料の改定について_よくあるご質問 */
    &#question_answer {

        .question:last-of-type {
            border-bottom: 1px solid #DBDBDB;
        }

        .question h2 {
            border-top: 1px solid #DBDBDB;
            position: relative;
            font-weight: 700;
            padding: 28px 40px 28px 56px;
            cursor: pointer;
            font-size: 1.7rem;
            text-align: left;
            margin: 0;

            &::after {
                content: none;
            }
        }
        .question h2 span {
            position: absolute;
            top: 21px;
            left: 0px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 999px;
            width: 40px;
            height: 40px;
            font-weight: 500;
            font-size: 1.8rem;
            line-height: 1;
            background: var(--color-blue);
            color: #fff;
            line-height: 1.5;
        }

        .question h2.qa_clicked {
            margin: 0;
        }
        .question .body {
            display: none;
        }
        .question .body .text {
            position: relative;
            padding: 5px 52px 28px 56px;
            text-align: left;
            margin: 0;
        }
        .question .body .text span {
            position: absolute;
            top: 0px;
            left: 0px;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 999px;
            width: 40px;
            height: 40px;
            font-weight: 500;
            font-size: 1.8rem;
            line-height: 1;
            background: #fff;
            color: var(--color-blue);
            border: 1px solid var(--color-blue);
            line-height: 1.5;
        }

        .question .toggle {
            display: inline-block;
            width: 20px;
            height: 20px;
            position: absolute;
            right: 20px;
            top: 30px;
        }
        .question .toggle::before, .question .toggle::after {
            content: "";
            width: 100%;
            height: 2px;
            background: var(--color-blue);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            -webkit-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
            transition: .2s;
        }
        .question .toggle::before {
            transform: translate(-50%, -50%) rotate(90deg);
            -webkit-transform: translate(-50%, -50%) rotate(90deg);
            -ms-transform: translate(-50%, -50%) rotate(90deg);
        }
        .question h2.open .toggle::before {
            transform: translate(-50%, -50%) rotate(0deg);
            -webkit-transform: translate(-50%, -50%) rotate(0deg);
            -ms-transform: translate(-50%, -50%) rotate(0deg);
        }
            
        @media only screen and
        (max-width : 767px) {
            .question h2 {
                padding: 20px 32px 20px 48px;
                font-size: 1.6rem;
            }
            .question h2 span {
                top: 21px;
                width: 36px;
                height: 36px;
                font-size: 1.6rem;
            }
            .question .body .text {
                position: relative;
                padding: 0 0 20px 48px;
                font-size: 1.5rem;
            }
            .question .body .text span {
                width: 36px;
                height: 36px;
                font-size: 1.6rem;
            }

            .question .toggle {
                right: 0;
                top: 0;
                bottom: 0;
                margin: auto 0;
            }
       }
    }

}