@charset "utf-8";

/* チャットボット 共通設定
---------------------------------------------- */
.chat_bot-inactive {
    position: fixed;
    bottom: min(calc(380 * 100vw / 750), 380px);
    right: 0;
    z-index: 9999;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s, visibility 0.3s;
}
.chat_bot-icon {
    width: min(calc(140 * 100vw / 750), 140px);
    height: min(calc(140 * 100vw / 750), 140px);
    border-radius: min(calc(10 * 100vw / 750), 10px) 0 0 min(calc(10 * 100vw / 750), 10px);
    color: #fff;
}
.chat_bot-icon.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.chat_bot-active {
    display: none;
    visibility: hidden;
    pointer-events: none;
}
.chat_bot-active.is-active {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    height: auto;
    visibility: visible;
    pointer-events: auto;
}
.chat_bot-inner {
    width: 100%;
}
.chat_bot-head {
    padding: min(calc(16 * 100vw / 750), 16px) min(calc(24 * 100vw / 750), 24px);
    font-size: min(calc(28 * 100vw / 750), 28px);
    border-radius: min(calc(8 * 100vw / 750), 8px) min(calc(8 * 100vw / 750), 8px) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}
.chat_bot-icon img {
    width: 100%;
    height: auto;
    border-radius: min(calc(10 * 100vw / 750), 10px) 0 0 min(calc(10 * 100vw / 750), 10px);
}
.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 min(calc(8 * 100vw / 750), 8px) min(calc(8 * 100vw / 750), 8px);
    overflow: hidden;
    /* height: 80vh; */
    height: calc(100vh - min(calc(156 * 100vw / 750), 156px));
}
.chat_bot-buttons {
    display: flex;
    gap: min(calc(8 * 100vw / 750), 8px);
    align-items: center;
}
.chat_bot-minimize {
    width: min(calc(64 * 100vw / 750), 64px);
    height: min(calc(64 * 100vw / 750), 64px);
    color: #fff;
    position: relative;
    cursor: pointer;
    display: inline-block;
    border-radius: min(calc(8 * 100vw / 750), 8px);
}
.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: min(calc(16 * 100vw / 750), 16px);
    width: min(calc(32 * 100vw / 750), 32px);
    height: min(calc(8 * 100vw / 750), 8px);
    background: #fff;
    border-radius: min(calc(4 * 100vw / 750), 4px);
    transform: translateY(-50%);
}
.chat_bot iframe {
    width: 100%;
    height: 100%;
    border: none;
} 

/* 閉じるボタン */
#chat_bot .bnr_f_close {
    width: min(calc(48 * 100vw / 750), 48px);
    height: min(calc(48 * 100vw / 750), 48px);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    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: min(calc(4 * 100vw / 750), 4px);
    height: min(calc(32 * 100vw / 750), 32px);
    position: absolute;
    top: min(calc(7 * 100vw / 750), 7px);
    left: min(calc(22 * 100vw / 750), 22px);
    background: #fff;
}
#chat_bot .bnr_f_close::before {
    transform: rotate(45deg);
}
#chat_bot .bnr_f_close::after {
    transform: rotate(-45deg);
}

@media screen and (min-width: 920px) {
.chat_bot-inactive {
    bottom: 300px;
}
.chat_bot-icon {
    width: 100px;
    height: 100px;
    border-radius: 10px 0 0 10px;
}
.chat_bot-active.is-active {
    width: 400px;
}
.chat_bot-head {
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 10px 10px 0 0;
}
.chat_bot-icon img {
    border-radius: 10px 0 0 10px;
}
.chat_bot-body {
    height: min(600px, 80vh);
}
.chat_bot-buttons {
    gap: 8px;
}
.chat_bot-minimize {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}
.chat_bot-minimize::before {
    left: 8px;
    width: 16px;
    height: 4px;
    border-radius: 2px;
}

/* 閉じるボタン */
#chat_bot .bnr_f_close {
    width: 38px;
    height: 38px;
}
#chat_bot .bnr_f_close::before,
#chat_bot .bnr_f_close::after {
    width: 4px;
    height: 23px;
    top: 7px;
    left: 17px;
}
}

/* ワンスクロール後表示
---------------------------------------------- */
#chat_bot {
    opacity: 0;
    transition: all 0.3s ease;
}
#chat_bot.is-visible {
    opacity: 1;
}