@charset "utf-8";
/**********************************/
#golfland-chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-family: 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

/* トグルボタン（バルーン） */
#chat-toggle-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #0d8a43; /* ゴルフランドイメージカラーを想定したグリーン */
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, background-color 0.2s;
}

#chat-toggle-btn:hover {
    transform: scale(1.05);
    background-color: #0a6c34;
}

/* チャットウインドウ */
#chat-window {
    display: none;
    width: 370px;
    height: 520px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    border: 1px solid #e2e8f0;
    position: absolute;
    bottom: 80px;
    right: 0;
    flex-direction: column;
    overflow: hidden;
}

#chat-window.active {
    display: flex;
}

/* ヘッダー */
.chat-header {
    background-color: #0d8a43;
    color: #ffffff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
}

.chat-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* メッセージ履歴エリア */
.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f7fafc;
}

/* メッセージの構造 */
.chat-message {
    margin-bottom: 12px;
    max-width: 85%;
    clear: both;
}

.chat-message.user {
    float: right;
}

.chat-message.user .message-bubble {
    background-color: #0d8a43;
    color: #ffffff;
    border-radius: 14px 14px 2px 14px;
}

.chat-message.ai {
    float: left;
}

.chat-message.ai .message-bubble {
    background-color: #ffffff;
    color: #2d3748;
    border-radius: 14px 14px 14px 2px;
    border: 1px solid #e2e8f0;
}

.message-bubble {
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    word-break: break-all;
}

/* サポート案内枠 */
.inquiry-info-box {
    background-color: #feebc8;
    border-top: 1px solid #fbd38d;
    color: #c05621;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

/* フッターとフォーム */
.chat-footer {
    padding: 12px;
    background-color: #ffffff;
    border-top: 1px solid #edf2f7;
}

.chat-input-form {
    display: flex;
    gap: 8px;
}

.chat-input-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 24px;
    outline: none;
    font-size: 13.5px;
}

.chat-input-form input:focus {
    border-color: #0d8a43;
}

.chat-send-btn {
    background-color: #0d8a43;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    transition: background-color 0.2s;
}

.chat-send-btn:hover {
    background-color: #0a6c34;
}

.chat-send-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}