/**
* eating CSS
* 食生活ページのスタイル
*/

#meal {

    /*ナビゲーション*/

    .list-boxed {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(166px, 1fr));

        li {
            a {
                color: var(--color-primary);
                font-size: clamp(0.813rem, 0.738rem + 0.32vw, 0.938rem);
                font-weight: 500;
                display: grid;
                align-items: center;
                grid-template-columns: auto 9.7px;
                height: 60px;
                line-height: 1.4;
                padding: 0 10px;
                width: 100%;


                &:after {
                    content: "\f054";
                    font-family: "Font Awesome 6 Free";
                    font-weight: bold;
                }
            }

        }

        /* カラーバリエーション */
        &.list-boxed--main {
            background: none;
            border-left: 1px solid var(--color-main);
            border-top: 1px solid var(--color-main);

            li {
                background: #E5F2FB;
                border-bottom: 1px solid var(--color-main);
                border-right: 1px solid var(--color-main);
                margin-bottom: 0;

                a {
                    &:after {
                        color: var(--color-main);
                    }
                }
            }
        }
    }

}

/*
---------------------
レビューアコーディオン
---------------------
*/

.accordion-003 {
    max-width: ;
    margin-bottom: 7px;
    border-bottom: 1px solid #d0d0d0;
}

.accordion-003 summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em;
    color: var(--bs-body-color);
    font-weight: 500;
    cursor: pointer;
}

.accordion-003 summary::-webkit-details-marker {
    /* display: none; */
    height: 0;
}

.accordion-003 summary::before,
.accordion-003 summary::after {
    width: 3px;
    height: .9em;
    border-radius: 0px;
    background-color: #aaa;
    content: '';
}

.accordion-003 summary::before {
    position: absolute;
    right: 2em;
    rotate: 90deg;
}

.accordion-003 summary::after {
    transition: rotate .3s;
}

.accordion-003[open] summary::after {
    rotate: 90deg;
}

.accordion-003 p {
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 2em 1.5em;
    color: var #212529 (--bs-body-color);
    ;
    transition: transform .5s, opacity .5s;
}

.accordion-003[open] p {
    transform: none;
    opacity: 1;
}



/* よくある質問アコーディオン */
.question {
    display: block;
    /*デフォルトの三角形を削除*/
    cursor: pointer;
    padding: 10px 20px 10px 40px;
    background: #cce6f6;
    border-bottom: 1px solid var(--color-main);
    font-weight: bold;
    font-size: 1rem;
    position: relative;

    &:before {
        content: 'Q';
        color: var(--color-main);
        font-size: 1.6rem;
        position: absolute;
        top: calc(50% - 0.5em);
        left: 10px;
        line-height: 1;
        padding: 0;
        pointer-events: none;
    }

    &:after {
        font-family: "Font Awesome 6 Free";
        content: '\f107';
        color: var(--color-main);
        font-size: 0.8rem;
        position: absolute;
        top: calc(50% - 0.5em);
        right: 10px;
        line-height: 1;
        padding: 0;
        pointer-events: none;
    }
}

.faq-acc[open] .question:after {
    content: '\f106';
}

.question::-webkit-details-marker {
    /* Safari-デフォルトの三角形を削除*/
    display: none;
}

.answer {
    overflow: hidden;
    /* padding・marginはここでは設定しない */
}

.answerInner {
    padding: 20px 20px 20px 36px;
    position: relative;

    &:before {
        position: absolute;
        top: 14px;
        left: 10px;
        content: 'A';
        color: var(--color-sub-deeppink);
        font-size: 1.6rem;
        position: absolute;
        font-weight: 900;
    }
}

/*タブ*/
.tab-3 {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
}

.tab-3>label {
    flex: 1 1;
    order: -1;
    min-width: 70px;
    padding: .7em 1em .5em;
    background-color: #f2f7fd;
    color: #666;
    font-weight: 500;
    font-size: 1.1em;
    text-align: center;
    cursor: pointer;
}

.tab-3>label:hover {
    opacity: .8;
}

.tab-3 input {
    display: none;
}

.tab-3>div {
    display: none;
    width: 100%;
    padding: 1.5em 1em;
    background-color: #ffffff;
}

.tab-3 label:has(:checked) {
    border-bottom: 4px solid #078cd0;
    color: #078cd0;
    font-weight: 700;
}

.tab-3 label:has(:checked)+div {
    display: block;
}