/*
Theme Name: MICS Theme
Author: Gemini
Description: A custom theme for MICS.
Version: 1.0
*/

/* ========================================
   FAQ - サービスから探すメニュー - 最大3カラム対応
   ======================================== */

/* FAQメニューボタンを最大3カラムに調整 */
.l-faq_Main .l-faq_Main__Menu__Unit.m-anchor {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
}

/* すべてのボタンのベーススタイル */
.l-faq_Main .l-faq_Main__Menu__Unit.m-anchor .l-faq_Main__Menu__Btn {
    display: block !important;
    box-sizing: border-box !important;
}

/* モバイル: 1カラム */
.l-faq_Main .l-faq_Main__Menu__Unit.m-anchor .l-faq_Main__Menu__Btn {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* タブレット以上: 2カラム */
@media screen and (min-width: 768px) {
    .l-faq_Main .l-faq_Main__Menu__Unit.m-anchor .l-faq_Main__Menu__Btn {
        flex: 0 0 calc(50% - 0.5rem) !important;
        width: calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        min-width: 0 !important;
    }
}

/* デスクトップ: 最大3カラム */
@media screen and (min-width: 1000px) {
    .l-faq_Main .l-faq_Main__Menu__Unit.m-anchor .l-faq_Main__Menu__Btn {
        flex: 0 0 calc(33.333% - 0.67rem) !important;
        width: calc(33.333% - 0.67rem) !important;
        max-width: calc(33.333% - 0.67rem) !important;
        min-width: 0 !important;
    }
}



/* ========================================
   問い合わせの必須アイコン
   ======================================== */
.u-icon.-required:after {
    content: "必須";
    background: #003f90;
    color: #fff;
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 0 1rem;
    min-width: 4.8rem;
    padding: 0 1rem;
    text-align: center;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}