@charset "UTF-8";

        /* チャットボットのスタイル */
        #chatbot-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 350px;
            max-width: 90vw;
            height: 500px;
            max-height: 80vh;
            background: #ffffff;
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
            z-index: 10000;
            font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
            display: none;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid #e0e0e0;
        }

        #chatbot-container.open {
            display: flex;
        }

        /* チャットボットヘッダー */
        #chatbot-header {
            background: linear-gradient(135deg, #4a7c59, #356441);
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 15px 15px 0 0;
        }

        #chatbot-title {
            font-size: 16px;
            font-weight: bold;
            margin: 0;
        }

        #chatbot-close {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            padding: 0;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background-color 0.2s;
        }

        #chatbot-close:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* チャット表示エリア */
        #chatbot-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: #f8f9fa;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        /* メッセージスタイル */
        .message {
            max-width: 85%;
            padding: 12px 16px;
            border-radius: 18px;
            line-height: 1.5;
            font-size: 14px;
            word-wrap: break-word;
        }

        .bot-message {
            background: #ffffff;
            color: #333;
            align-self: flex-start;
            border: 1px solid #e0e0e0;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .user-message {
            background: #4a7c59;
            color: white;
            align-self: flex-end;
        }

        /* リンクスタイル */
        .message-link {
            color: #4a7c59;
            text-decoration: none;
            font-weight: bold;
            margin-top: 8px;
            display: inline-block;
            transition: text-decoration 0.2s;
        }

        .message-link:hover {
            text-decoration: underline;
        }

        /* 電話番号スタイル */
        .phone-number {
            background: #4a7c59;
            color: white;
            padding: 12px 20px;
            border-radius: 25px;
            display: inline-block;
            margin-top: 12px;
            font-weight: bold;
            font-size: 16px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(74, 124, 89, 0.3);
            letter-spacing: 1px;
        }

        /* オプションボタン */
        .options-container {
            margin-top: 12px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .option-button {
            background: #f0f8f4;
            border: 2px solid #4a7c59;
            color: #4a7c59;
            padding: 10px 15px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 13px;
            text-align: left;
            transition: all 0.2s;
            font-family: inherit;
            width: 100%;
            box-sizing: border-box;
        }

        .option-button:hover {
            background: #4a7c59;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
        }

        .option-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* フローティングボタン */
        #chatbot-toggle {
            position: fixed;
            bottom: 80px;
            right: 10px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #4a7c59, #356441);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            z-index: 9999;
            box-shadow: 0 4px 20px rgba(74, 124, 89, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        #chatbot-toggle:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(74, 124, 89, 0.5);
        }

        #chatbot-toggle svg {
            width: 28px;
            height: 28px;
            fill: white;
        }

        /* レスポンシブデザイン */
        @media (max-width: 480px) {
            #chatbot-container {
                width: calc(100vw - 20px);
                height: calc(100vh - 40px);
                bottom: 10px;
                right: 10px;
                border-radius: 10px;
            }

            #chatbot-toggle {
                bottom: 50px;
                right: 15px;
                width: 55px;
                height: 55px;
            }

            #chatbot-toggle svg {
                width: 24px;
                height: 24px;
            }

            .message {
                font-size: 13px;
                max-width: 90%;
            }

            .option-button {
                font-size: 12px;
                padding: 8px 12px;
            }
        }

        /* アニメーション */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .message {
            animation: fadeInUp 0.3s ease-out;
        }

        /* ローディングアニメーション */
        .typing-indicator {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 12px 16px;
            background: #ffffff;
            border: 1px solid #e0e0e0;
            border-radius: 18px;
            align-self: flex-start;
            max-width: 85%;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            background: #4a7c59;
            border-radius: 50%;
            animation: typing 1.4s infinite ease-in-out;
        }

        .typing-dot:nth-child(1) { animation-delay: -0.32s; }
        .typing-dot:nth-child(2) { animation-delay: -0.16s; }

        @keyframes typing {
            0%, 80%, 100% {
                transform: scale(0);
                opacity: 0.5;
            }
            40% {
                transform: scale(1);
                opacity: 1;
            }
        }
