.chat-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.chat-window {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 320px;
    max-width: calc(100vw - 32px);
    height: 420px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 9998;
}
.chat-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #ffffff;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}
.chat-body {
    flex: 1;
    padding: 12px;
    background: #f8fafc;
    overflow-y: auto;
    font-size: 14px;
}
.chat-input {
    padding: 10px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    gap: 8px;
}
.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
}
.chat-input button {
    padding: 10px 14px;
    background: #1d4ed8;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 700;
}
.chat-message {
    margin-bottom: 10px;
    line-height: 1.5;
}
.chat-message.user {
    text-align: right;
}
.chat-message.bot {
    text-align: left;
}
        /* AIチャットボット */
        .chat-toggle {
            position: fixed;
            right: 20px;
            bottom: 20px;
            z-index: 9999;
            width: 56px;
            height: 56px;
            border-radius: 9999px;
            background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .chat-toggle:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(0,0,0,0.25);
        }
        .chat-window {
            position: fixed;
            right: 20px;
            bottom: 90px;
            width: 320px;
            max-width: calc(100vw - 32px);
            height: 420px;
            background: #ffffff;
            border: 1px solid #dbeafe;
            border-radius: 12px;
            box-shadow: 0 16px 40px rgba(0,0,0,0.22);
            overflow: hidden;
            display: none;
            flex-direction: column;
            z-index: 9998;
        }
        .chat-header {
            background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
            color: #ffffff;
            padding: 12px 14px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 700;
        }
        .chat-body {
            flex: 1;
            padding: 12px;
            background: #f8fafc;
            overflow-y: auto;
            font-size: 14px;
        }
        .chat-input {
            padding: 10px;
            border-top: 1px solid #e5e7eb;
            background: #ffffff;
            display: flex;
            gap: 8px;
        }
        .chat-input input {
            flex: 1;
            padding: 10px;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            outline: none;
        }
        .chat-input button {
            padding: 10px 14px;
            background: #1d4ed8;
            color: #ffffff;
            border-radius: 8px;
            font-weight: 700;
        }
        .chat-message {
            margin-bottom: 10px;
            line-height: 1.5;
        }
        .chat-message.user {
            text-align: right;
        }
        .chat-message.bot {
            text-align: left;
        }
@media (max-width: 640px) {
    .chat-toggle {
        right: 16px;
        bottom: 16px;
    }
    .chat-window {
        right: 16px;
        bottom: 80px;
        width: calc(100vw - 32px);
        height: 360px;
    }
}







