@charset "utf-8";

/* チャットボット 共通設定
---------------------------------------------- */
#chat_bot {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#chat_bot.is-visible {
    opacity: 1;
}

.chat_bot-inactive {
    position: fixed;
    bottom: 8%;
    left: 0;
    z-index: 9999;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s, visibility 0.3s;
}
.chat_bot-icon {
    width: 100px;
    height: 100px;
    border-radius: 0 10px 10px 0;
    color: #fff;
}
.chat_bot-icon img {
    width: 100%;
    height: auto;
    border-radius: 0 10px 10px 0;
}
.chat_bot-icon.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.chat_bot-active {
    display: none;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}
.chat_bot-active.is-active {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9999;
    width: 400px;
    height: auto;
    visibility: visible;
    pointer-events: auto;
}
.chat_bot-inner {
    width: 100%;
}
.chat_bot-head {
    padding: 12px 20px;
    color: #fff;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat_bot-head.-shochu {
    background-color: #00A0E9;
}
.chat_bot-head.-mochu {
    background-color: #796CA4;
}
.chat_bot-head.-kanchu {
    background-color: #B69569;
}
.chat_bot-head.-hikkoshi {
    background-color: #70B92E;
}
.chat_bot-body {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    height: 65vh;
    max-height: 600px;
}
.chat_bot-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}
.chat_bot-minimize {
    width: 32px;
    height: 32px;
    color: #fff;
    position: relative;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 4px;
}
.chat_bot-minimize:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.chat_bot-minimize:active {
    background-color: rgba(255, 255, 255, 0.3);
}
.chat_bot-minimize::before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 8px;
    width: 16px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    transform: translateY(-50%);
}
.chat_bot iframe {
    width: 100%;
    height: 100%;
    border: none;
} 

/* 閉じるボタン */
#chat_bot .bnr_f_close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 100%;
    transform: translate(-50%, -50%);
    background: #BBBBBB;
    color: #fff;
    cursor: pointer;
}
#chat_bot .bnr_f_close::before,
#chat_bot .bnr_f_close::after {
    display: inline-block;
    content: "";
    width: 4px;
    height: 23px;
    position: absolute;
    top: 6px;
    left: 16px;
    background: #fff;
}
#chat_bot .bnr_f_close::before {
	transform: rotate(45deg);
}
#chat_bot .bnr_f_close::after {
	transform: rotate(-45deg);
}