/* ==============================
   チャットボット
============================== */
/* チャットボット固定アイコン　サイズ調整 */

#chatbot-toggle_button {
    width: 110px;
    height: fit-content;
    /* top: 130px; */
    right: 10px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0.5em 0.2em;
    background: #fff;
    opacity: 0;
    text-align: center;
    justify-content: center;
    overflow: visible;
}

.chatbotIcon {
    opacity: 1;
}

.chatbotIcon img {
    width: 100%;
    width: 130px;
}

#chatbot-toggle_button a img {
    width: 80% !important;
    margin: 0 auto;
}

.chatbotIcon .chatbot-text,
#chatbot-toggle_button .chatbot-text {
    font-size: 14px;
    margin-top: 4px;
    color: #111;
    line-height: 1.2;
    text-align: center;
    font-family: "Yu Gothic", "游ゴシック", "游ゴシック体", sans-serif;
}


/* チャットボット固定アイコン 閉じるボタン */
/* #chatbot-toggle_button::before {
    position: absolute;
    top: -3px;
    left: -3px;
    font-family: "Font Awesome 5 Free";
    background: #0b487e;
    content: "\f00d";
    font-weight: 900;
    font-size: 15px;
    color: #fff;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    padding-top: 2px;
} */


/* チャットボット固定アイコン 閉じるボタン */
#chatbot-hidden {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background: #0b487e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

#chatbot-hidden::before {
    content: "×";
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}


@media screen and (max-width: 767px) {

    .chatbotIcon {
        display: none;
    }

    #chatbot-toggle_button {
        width: 72px;
        height: 57px;
        padding: 0.2em;
        position: static !important;
        background: #eff4f6;
        border-radius: 5px !important;
        border: 1px solid #d0dbe0;
        box-shadow: none !important;
        opacity: 1;
    }

    #chatbot-hidden {
        display: none;
    }


}

/* チャットボットサービスページ */
.soubunAi-search {
    height: auto;
    max-width: 600px;
    width: 100%;
    margin-top: 10px;
}

#soubunAi-search-form {
    box-sizing: border-box;
    position: relative;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 60px;
    width: 100%;
    padding: 1em;
    display: flex;
    align-items: center;
    background: #fff;
}

#soubunAi-search-form input[type="text"] {
    border: none;
    width: 100%;
    min-width: 0;
}

#soubunAi-search-form input[type="text"]:focus {
    outline: 0;
    text-align: left;
}

#soubunAi-search-form .ai-submit {
    cursor: pointer;
    border: none;
    background: none;
    color: #ccc;
    font-size: 1.3em;
}

#soubunAi-search-form .ai-submit::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f061";
}

#soubunAi-search-form input:-webkit-autofill {
    box-shadow: 0 0 0 1000px white inset;
}

#soubunAi {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
    background: #eff4f6;
    margin-bottom: 50px;
    border-radius: 10px;
    padding: 40px 10px;
    margin: 0 auto 50px;
    width: calc(100% - 10px);
}

#soubunAi .ttl01 {
    font-size: 1.7rem;
    display: flex;
    align-items: center;
}

#soubunAi .ttl02 {
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1;
    font-weight: bold;
}

#soubunAi .searchWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 750px;
}

#soubunAi .searchInner {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}


@media screen and (max-width: 767px) {
    .soubunAi-search {
        width: 90%;
    }

    #soubunAi .ttl01 {
        font-size: min(3.5vw, 1.5rem);
        flex-direction: column;
        gap: 10px;
    }

    #soubunAi .ttl02 {
        font-size: min(4.6vw, 2.2rem);
    }

    #soubunAi {
        margin-bottom: 40px;
        padding: 25px 10px 38px;
    }

    #soubunAi .ttl01::before {
        width: 100px;
        background: url(../img/common_logo_ai.png)no-repeat;
        content: "";
        aspect-ratio: 200 / 172;
        /* width: 50px; */
        height: auto;
        display: inline-block;
        background-size: contain;
    }

    #soubunAi-search-form .ai-submit {
        font-size: 1em;
    }

    #soubunAi-search-form input[type="text"] {
        font-size: min(3.5vw, 1.6rem);
    }

    #chatbot-toggle_button .chatbot-text {
        font-size: 10px;
        font-weight: bold;
        color: #0b487e;
    }

    #chatbot-toggle_button a img {
        width: 50% !important;
    }
}

@media screen and (max-width: 700px) {
    #chatbot {
        /* miibo css上書き */
        height: 85svh !important;
    }
}