@charset "UTF-8";
/* アバターアイコン
------------------------------------------------------- */
#non_sales_ai_chat {
    font-size: 14px;
    line-height: 1.4;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 40;
}

#non_sales_ai_chat p {
    margin: 0;
}

#non_sales_ai_chat img {
    width: 100%;
    height: auto;
}

#non_sales_ai_chat.open {
    z-index: 1000;
}

#non_sales_ai_avatar {
    width: 132px;
    margin: 0 16px 72px 0;
    position: relative;
    cursor: pointer;
}

#non_sales_ai_avatar_close {
    font-size: 25px;
    line-height: 1;
    font-weight: bold;
    text-shadow: -1px -1px #FFF, 1px -1px #FFF, -1px 1px #FFF, 1px 1px #FFF;
    position: absolute;
    width: 16px;
    height: 16px;
    bottom: 100%;
    right: 0;
}

/* チャット画面
------------------------------------------------------- */
#non_sales_ai_chat_area {
    background: url(images/bg.webp) no-repeat left bottom;
    background-size: cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    scrollbar-width: none;
}

#non_sales_ai_chat_area.md_open {
    overflow: hidden;
}

#non_sales_ai_chat_area::-webkit-scrollbar {
    display: none;
}

#non_sales_ai_chat_message {
    padding: 220px 0 160px;
}

/* 固定エリア */
#non_sales_ai_chat_area .non_sales_ai_fix_area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

/* ヘッダー */
#non_sales_ai_chat_area .non_sales_ai_header {
    color: #0c3e6d;
    background: #F1F1F1;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 0 16px;
    box-sizing: border-box;
}

#non_sales_ai_chat_area .non_sales_ai_header p {
    font-size: 22px;
    line-height: 1;
    padding: 16px 14px;
}

#non_sales_ai_chat_area .non_sales_ai_header div {
    width: 24px;
    height: 24px;
    border: 2px solid #0c3e6d;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0);
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}

#non_sales_ai_chat_area .non_sales_ai_header div::before,
#non_sales_ai_chat_area .non_sales_ai_header div::after {
    content: "";
    width: 2px;
    height: 13px;
    background: #0c3e6d;
    position: absolute;
    top: 50%;
    left: 50%;
}

/* ヘッダー縮小ボタン */
#non_sales_ai_chat_area .non_sales_ai_header #non_sales_ai_chat_minimize {
    margin: 0 0 0 auto;
}

#non_sales_ai_chat_area .non_sales_ai_header #non_sales_ai_chat_minimize::before {
    transform: translate(-50%, -50%) rotate(90deg);
}

#non_sales_ai_chat_area .non_sales_ai_header #non_sales_ai_chat_minimize::after {
    content: none;
}

/* 閉じるボタン */
#non_sales_ai_chat_area .non_sales_ai_header #non_sales_ai_chat_close::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#non_sales_ai_chat_area .non_sales_ai_header #non_sales_ai_chat_close::after {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* アバターアニメーション */
#non_sales_ai_chat .md_open .motion_avatar_area {
    display: none;
}

#non_sales_ai_chat .motion_avatar_area {
    text-align: center;
    margin: 0;
    background: url(images/bg.webp) no-repeat left -15vw;
    background-size: cover;
}

#non_sales_ai_chat .motion_avatar_area img {
    width: 220px;
    display: none;
    margin: 0 auto;
}

/* 初期画面 */
#non_sales_ai_chat_area .initial_value {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #074B73;
    display: none;
}

#non_sales_ai_chat_area .initial_value.open {
    display: block;
}

#non_sales_ai_chat_area .initial_value > div {
    color: #333;
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    width: calc(100% - 32px);
    background: #F5F5F5;
    border-radius: 32px;
    box-sizing: border-box;
    height: min(84vh, 560px);
    overflow: auto;
}

#non_sales_ai_chat_area .initial_value > div .headline_box {
    padding: 7vw 7vw 6vw;
    background: url(images/motion_avatar_start.webp) no-repeat calc(100% - 3vw) bottom/30vw, url(images/headline_bg.jpg) no-repeat center -10vw/cover;
}
#non_sales_ai_chat_area .initial_value > div .headline_box p {
    font-size: 3.8vw;
    line-height: 1.6;
}
#non_sales_ai_chat_area .initial_value > div .headline_box p.headline_txt {
    font-size: 7vw;
    font-weight: bold;
}

#non_sales_ai_chat_area .initial_value > div .method_box {
    padding: 20px 24px 0;
    overflow: hidden;
    background: #fff;
}
#non_sales_ai_chat_area .initial_value > div .method_box .chat_start {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 20px;
}
#non_sales_ai_chat_area .initial_value > div .method_box ul {
    display: flex;
    gap: 15px;
    margin: 0 0 30px;
    justify-content: center;
}
#non_sales_ai_chat_area .initial_value > div .method_box ul li {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: 2px solid #FD5925;
    padding: 10px 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    width: calc((100% - 15px) / 2);
    max-width: 172px;
    border-radius: 100px;
    cursor: pointer;
    transition: 0.5s;
}
#non_sales_ai_chat_area .initial_value > div .method_box ul li:hover {
    opacity: 0.5;
}
#non_sales_ai_chat_area .initial_value > div .method_box ul li span {
    line-height: 1;
    display: inline-block;
    background: no-repeat left center/24px;
    padding: 5px 0 5px 27px;
}
#non_sales_ai_chat_area .initial_value > div .method_box ul li.text_select span {
    background-image: url(images/ico_text.svg);
}
#non_sales_ai_chat_area .initial_value > div .method_box ul li.voice_select span {
    background-image: url(images/ico_voice.svg);
}

#non_sales_ai_chat_area .initial_value > div .method_box + p {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 0 0 8px;
    background: #fff;
}

#non_sales_ai_chat_area .initial_value > div .bg {
    background: #EFF9FF;
    padding-bottom: 15px;
}
#non_sales_ai_chat_area .initial_value > div .guard_wording {
    font-size: 12px;
    line-height: 1.7;
    padding: 10px 24px 16px;
}
#non_sales_ai_chat_area .initial_value > div .guard_wording p:not(:last-child) {
    margin: 0 0 8px;
}
#non_sales_ai_chat_area .initial_value .policy_area .policy {
    height: 100px;
    margin: 0 15px;
    padding: 15px;
    border: 2px solid #D1D1D1;
    background: #fff;
    overflow: auto;
    color: #666;
    font-size: 12px;
}
#non_sales_ai_chat_area .initial_value .policy_area .policy .policy-main-heading {
    font-weight: bold;
    font-size: 15px;
}
#non_sales_ai_chat_area .initial_value .policy_area .policy .policy-heading {
    margin: 10px 0 5px;
    font-weight: bold;
    font-size: 14px;
}
#non_sales_ai_chat_area .initial_value .policy_area .policy table {
    margin: 5px;
}
#non_sales_ai_chat_area .initial_value .policy_area .policy td {
    padding: 5px;
    border: 1px solid #333;
}
#non_sales_ai_chat_area .initial_value .policy_area .policy p {
    padding: 0 0 5px;
    font-size: 12px;
}
#non_sales_ai_chat_area .initial_value .policy_area .policy td.column1 {
    text-align: center;
    width: 20px;
}
#non_sales_ai_chat_area .initial_value .policy_area .policy td.column2 {
    width: 150px;
}
#non_sales_ai_chat_area .initial_value .policy_area .policy ul {
    margin: 0 10px;
}
#non_sales_ai_chat_area .initial_value .policy_area .policy .responsibility {
    margin-top: 10px;
    text-align: right;
}
#non_sales_ai_chat_area .initial_value .policy_area .policy a {
    text-decoration: underline;
    word-break: break-all;
    overflow-wrap: break-word;
}

/* チャット終了モーダル */
#non_sales_ai_chat .non_sales_ai_chat_close_modal_wrap.open {
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#non_sales_ai_chat_close_modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    width: 80%;
    box-sizing: border-box;
}

#non_sales_ai_chat_close_modal p {
    text-align: center;
    color: #0C3E6D;
    width: 100%;
}

#non_sales_ai_chat_close_modal button {
    font-size: 13px;
    line-height: inherit;
    text-align: center;
    color: #fff;
    width: 100px;
    border: none;
    background: #0c3e6d;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
}

/* 入力エリア */
#non_sales_ai_chat_input_area {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    background: #F1F1F1;
    padding: 16px;
    box-sizing: border-box;
}

#non_sales_ai_chat_input_area > div[id$=_chat_area] {
    display: none;
}

/* 音声チャット */
#non_sales_ai_chat_input_area #voice_chat_area.open {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

#non_sales_ai_chat_area.md_open #voice_chat_area {
    display: none;
}

#non_sales_ai_chat_input_area > #voice_chat_area > * {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.26);
    border-radius: 10px;
    padding: 10px;
}

#non_sales_ai_chat_input_area > #voice_chat_area .chat_switching {
    font-size: 12px;
    text-align: center;
    font-weight: bold;
    color: #D1D1D1;
    padding: 47px 0 10px;
    background: url(images/ico_textchange_off.svg) no-repeat center 6px #fff;
    background-size: 40px;
    cursor: pointer;
    width: calc(36% - 8px);
    min-height: 37px;
}

#non_sales_ai_chat_input_area > #voice_chat_area .chat_switching:hover {
    color: #074B73;
    background-image: url(images/ico_textchange_on.svg);
}

#non_sales_ai_chat_input_area > #voice_chat_area .non_sales_ai_chat_microphone_btn {
    width: 64%;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 16px;
}

#non_sales_ai_chat_input_area > #voice_chat_area .non_sales_ai_chat_microphone_btn .voice_chat_ico {
    width: 60px;
    height: 60px;
    border: 3px solid #E6E6E6;
    border-radius: 100%;
    background: url(images/ico_microphone_on.svg) no-repeat center center;
    background-size: 32px;
}

#non_sales_ai_chat_input_area > #voice_chat_area .non_sales_ai_chat_microphone_btn .voice_chat_ico span {
    display: none;
}

#non_sales_ai_chat_input_area > #voice_chat_area .non_sales_ai_chat_microphone_btn[id]:not(#non_sales_ai_chat_microphone_open) .voice_chat_ico {
    background-color: #074B73;
    border-color: #BADEFD;
}

#non_sales_ai_chat_input_area > #voice_chat_area #non_sales_ai_chat_microphone_close .voice_chat_ico {
    background-image: url(images/ico_microphone_off.svg);
}

#non_sales_ai_chat_input_area > #voice_chat_area #non_sales_ai_chat_voice_skip .voice_chat_ico {
    background-image: url(images/ico_skip.svg);
    background-size: 24px;
}

#non_sales_ai_chat_input_area .chat_microphone_open_txt {
    display: none;
}

#non_sales_ai_chat_input_area .voice_chat_support {
    width: calc(100% - 86px);
}

#non_sales_ai_chat_input_area #non_sales_ai_chat_microphone_open .voice_chat_support .chat_microphone_open_txt {
    font-size: 14px;
    font-weight: bold;
    color: #074B73;
    display: block;
    min-height: 25px;
}

/* サウンドイコライザー */
#non_sales_ai_chat_input_area #voice_chat_area .voice_equalizer {
    display: flex;
    width: 96px;
    height: 24px;
    gap: 4px;
    animation: equalizer_scale 1s 0s;
    justify-content: center;
}

#non_sales_ai_chat_input_area #voice_chat_area .voice_equalizer span {
    background: #BADEFD;
    width: 4px;
    height: 0;
    border-radius: 4px;
}

#non_sales_ai_chat_input_area #voice_chat_area .voice_equalizer span:last-child {
    margin-right: 0px;
}

#non_sales_ai_chat_input_area #voice_chat_area .voice_equalizer span:nth-child(1) {
    animation: equalizer 0.5s 0s infinite linear;
}

#non_sales_ai_chat_input_area #voice_chat_area .voice_equalizer span:nth-child(2) {
    animation: equalizer 0.5s 0.2s infinite linear;
}

#non_sales_ai_chat_input_area #voice_chat_area .voice_equalizer span:nth-child(3) {
    animation: equalizer 0.5s 0.4s infinite linear;
}

#non_sales_ai_chat_input_area #voice_chat_area .voice_equalizer span:nth-child(4) {
    animation: equalizer 0.5s 0.6s infinite linear;
}

#non_sales_ai_chat_input_area #voice_chat_area .voice_equalizer span:nth-child(5) {
    animation: equalizer 0.5s 0.8s infinite linear;
}

#non_sales_ai_chat_input_area #voice_chat_area .voice_equalizer span:nth-child(6) {
    animation: equalizer 0.5s 1s infinite linear;
}

#non_sales_ai_chat_input_area #voice_chat_area .voice_equalizer span:nth-child(7) {
    animation: equalizer 0.5s 0.2s infinite linear;
}

@keyframes equalizer {
    0% {
        background: #BADEFD;
        margin-top: 6px;
        height: 6px;
    }
    50% {
        background: #a5c3e8;
        height: 100%;
        margin-top: 0;
    }
    100% {
        background: #BADEFD;
        margin-top: 6px;
        height: 6px;
    }
}
@keyframes equalizer_scale {
    0% {
        transform: scaleY(0);
    }
    100% {
        transform: scaleY(1);
    }
}
/* テキストチャット */
#non_sales_ai_chat_input_area #text_chat_area.open {
    display: block;
}

#non_sales_ai_chat_input_area #text_chat_area #customerMessageCharCount {
    font-size: 12px;
    margin: 0 0 4px;
}

#non_sales_ai_chat_input_area #text_chat_area .chat_switching {
    font-size: 14px;
    font-weight: bold;
    color: #074B73;
    width: fit-content;
    padding: 6px 0 6px 40px;
    background: url(images/ico_voicechanged.svg) no-repeat left center;
    background-size: 32px;
    margin: 16px auto 0;
    cursor: pointer;
}

#non_sales_ai_chat_input_area .non_sales_ai_chat_repletion {
    font-size: 13px;
    text-align: center;
    color: #fff;
    margin: 0 0 5px;
    width: 100%;
}

#non_sales_ai_chat_input_area .inner {
    background: #fff;
    display: flex;
    padding: 14px;
    border: none;
    box-sizing: border-box;
}

#non_sales_ai_chat_input_area .inner textarea {
    font-size: 18px;
    width: calc(100% - 24px);
    border: none;
    resize: none;
    scrollbar-width: none;
    max-height: 300px;
    min-width: 50px;
}

#non_sales_ai_chat_input_area .inner textarea:focus-visible {
    outline: none;
}

#non_sales_ai_chat_input_area .inner textarea::placeholder {
    color: #A2B6BE;
}

#non_sales_ai_chat_input_area .inner button {
    background: url(images/ico_sent.svg) no-repeat left top;
    background-size: 24px;
    width: 24px;
    height: 24px;
    border: none;
    cursor: pointer;
}

#non_sales_ai_chat_input_area .inner button span {
    display: none;
}

/* 吹き出し */
#non_sales_ai_chat .messagearea {
    margin: 16px;
    padding: 0 0 0 56px;
}

#non_sales_ai_chat .messagearea .messagebox {
    padding: 16px;
    border-radius: 16px;
    margin: 0 0 8px;
    word-wrap: break-word;
}

#non_sales_ai_chat .messagearea .reply_time {
    font-size: 12px;
    color: #fff;
}

#non_sales_ai_chat .messagearea a {
    color: #F26161;
    display: block;
    text-decoration: underline;
}

/* 吹き出し-オペレーター */
#non_sales_ai_chat .operator {
    background: url(images/ico_avatar.webp) no-repeat left top;
    background-size: 48px;
}

#non_sales_ai_chat .operator .messagebox {
    color: #0C3E6D;
    background: rgba(255, 255, 255, 0.9);
    border-top-left-radius: 0;
}

/* 吹き出し-カスタマー */
#non_sales_ai_chat .customer .messagebox {
    color: #fff;
    background: rgba(12, 62, 109, 0.8);
    border: 2px solid #E7EBF0;
    border-bottom-right-radius: 0;
}

#non_sales_ai_chat .customer .reply_time {
    text-align: right;
}

@media (orientation: landscape) and (max-width: 767px) {
    #non_sales_ai_chat_area .initial_value > div {
        top: 100px;
        transform: translate(-50%, 0);
    }
}
@media screen and (min-width: 768px) {
    /* アバターアイコン
    ------------------------------------------------------- */
    #non_sales_ai_avatar {
        margin: 0 32px 72px 0;
        width: 200px;
    }
    #non_sales_ai_avatar_close {
        font-size: 32px;
        text-shadow: -2px -2px #FFF, 2px -2px #FFF, -2px 2px #FFF, 2px 2px #FFF;
        width: 20px;
        height: 25px;
    }
    /* チャット画面
    ------------------------------------------------------- */
    #non_sales_ai_chat_area {
        width: 500px;
        max-height: 700px;
        left: auto;
        top: auto;
        right: 0;
        bottom: 0;
    }
    /* ヘッダー */
    #non_sales_ai_chat_area .non_sales_ai_fix_area {
        left: auto;
        right: 0;
        top: max(0px, 100% - 700px);
        width: 500px;
    }
    #non_sales_ai_chat_input_area .inner textarea {
        resize: vertical;
        scrollbar-width: auto;
    }
    /* チャット終了モーダル */
    #non_sales_ai_chat .non_sales_ai_chat_close_modal_wrap.open {
        max-width: 500px;
        max-height: 700px;
        left: auto;
        top: auto;
        right: 0;
        bottom: 0;
    }
    #non_sales_ai_chat_close_modal {
        position: absolute;
    }
    /* 入力エリア */
    #non_sales_ai_chat_input_area {
        width: 500px;
    }
    /* 初期画面 */
    #non_sales_ai_chat_area .initial_value > div {
        max-height: 550px;
        max-width: 440px;
        /* スクロールバー非表示（ブラウザ毎対応）*/
        -ms-overflow-style: none;
        scrollbar-width: none;

    }
    /* スクロールバー非表示（ブラウザ毎対応） */
    #non_sales_ai_chat_area .initial_value > div::-webkit-scrollbar{
        display: none;
      }
    #non_sales_ai_chat_area .initial_value > div .headline_box {
        padding: 24px 46px 12px;
        background-position: calc(100% - 10px) bottom, center -20px;
        background-size: 116px, cover;
    }
    #non_sales_ai_chat_area .initial_value > div .headline_box p {
        font-size: 14px;
    }
    #non_sales_ai_chat_area .initial_value > div .headline_box p.headline_txt {
        font-size: 32px;
    }
    #non_sales_ai_chat_area .initial_value > div .headline_box br:nth-child(2) {
        display: none;
    }
    #non_sales_ai_chat_area .initial_value > div .method_box {
        padding: 20px 34px 0;
    }
    #non_sales_ai_chat_area .initial_value > div .method_box .chat_start {
        font-size: 18px;
        margin: 0 0 16px;
    }
    #non_sales_ai_chat_area .initial_value > div .method_box ul {
        gap: 24px;
        margin: 0 0 27px;
    }
    #non_sales_ai_chat_area .initial_value > div .method_box ul li {
        font-size: 18px;
    }
    #non_sales_ai_chat_area .initial_value > div .method_box + p {
        font-size: 14px;
    }
    #non_sales_ai_chat_area .initial_value > div .guard_wording {
        padding: 14px 20px 18px;
    }
}