/**
 * Live Chat ポップアップ用スタイル
 * モダンなデザイン
 */

/* ポップアップオーバーレイ */
.live-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.live-chat-overlay.active {
    display: flex;
    opacity: 1;
}

/* ポップアップウィンドウ */
.live-chat-popup {
    width: 420px;
    max-width: 95vw;
    max-height: 85vh;
    background: #FFFBF5;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.live-chat-overlay.active .live-chat-popup {
    transform: scale(1) translateY(0);
}

/* ヘッダー */
.live-chat-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-chat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-chat-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.live-chat-header-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.live-chat-header-subtitle {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

.live-chat-close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.live-chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.live-chat-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

/* オンライン状態表示 */
.staff-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

.status-dot.offline {
    background: #f97316;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
}

.status-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* 待機状況表示 */
.queue-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.queue-status.waiting {
    animation: queuePulse 2s infinite;
}

@keyframes queuePulse {
    0%, 100% { background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%); }
    50% { background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.25) 100%); }
}

.queue-icon {
    width: 24px;
    height: 24px;
    animation: queueSpin 8s linear infinite;
}

.queue-icon svg {
    width: 100%;
    height: 100%;
    stroke: #fbbf24;
}

@keyframes queueSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.queue-info {
    flex: 1;
}

.queue-text {
    font-size: 14px;
    font-weight: 600;
    color: #fbbf24;
}

.queue-subtext {
    font-size: 11px;
    color: rgba(251, 191, 36, 0.8);
    margin-top: 2px;
}

/* カテゴリ選択 */
.category-selection {
    padding: 20px;
    background: #f8f9fa;
}

.category-label {
    font-size: 13px;
    color: #636E72;
    margin-bottom: 12px;
    font-weight: 500;
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-btn {
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    color: #2D3436;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-btn:hover {
    background: #f0f9f0;
    border-color: #4CAF50;
}

.category-btn.selected {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.category-btn .category-icon {
    font-size: 24px;
}

/* メッセージエリア */
.live-chat-messages {
    flex: 1;
    min-height: 280px;
    max-height: 350px;
    overflow-y: auto;
    padding: 16px;
    background: #fff;
}

.live-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.live-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.live-chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* メッセージ */
.chat-msg {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    animation: msgSlideIn 0.3s ease;
}

@keyframes msgSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg.user-msg {
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.staff-msg .msg-avatar,
.bot-msg .msg-avatar {
    background: #fff;
    border: 1px solid #ccc;
}

.user-msg .msg-avatar {
    background: #fff;
    border: 1px solid #ccc;
}

.chat-msg .msg-content {
    flex: 1;
    max-width: calc(100% - 42px);
}

.chat-msg.user-msg .msg-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.msg-bubble {
    max-width: 100%;
    min-width: 60px;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
    display: inline-block;
}

.staff-msg .msg-bubble,
.bot-msg .msg-bubble {
    background: #f0f9f0;
    color: #2D3436;
    border-bottom-left-radius: 4px;
}

.user-msg .msg-bubble {
    background: #FFF5F0;
    color: #2D3436;
    border: 1px solid #FFD4C4;
    border-bottom-right-radius: 4px;
}

.msg-time {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

.user-msg .msg-time {
    text-align: right;
}

/* タイピングインジケーター */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
}

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

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* 入力エリア */
.live-chat-input-area {
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #E0E0E0;
    display: flex;
    gap: 10px;
}

.live-chat-input {
    flex: 1;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 24px;
    color: #2D3436;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.live-chat-input::placeholder {
    color: #999;
}

.live-chat-input:focus {
    border-color: #4CAF50;
    background: #fff;
}

.live-chat-send-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.live-chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.5);
}

.live-chat-send-btn:active {
    transform: scale(0.95);
}

.live-chat-send-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
    transform: translateX(1px);
}

/* 右パネルのボタン */
.live-chat-trigger-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 12px;
}

.live-chat-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

.live-chat-trigger-btn:active {
    transform: translateY(0);
}

.live-chat-trigger-btn .btn-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-chat-trigger-btn .btn-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.live-chat-trigger-btn .btn-text {
    text-align: left;
}

.live-chat-trigger-btn .btn-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.live-chat-trigger-btn .btn-subtitle {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

/* セッション終了メッセージ */
.session-ended {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.session-ended-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

/* =============================================
   AI Chat ポップアップ
   ============================================= */

/* ポップアップオーバーレイ */
.ai-chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-chat-overlay.active {
    display: flex;
    opacity: 1;
}

/* ポップアップウィンドウ */
.ai-chat-popup {
    width: 420px;
    max-width: 95vw;
    max-height: 85vh;
    background: #FFFBF5;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-chat-overlay.active .ai-chat-popup {
    transform: scale(1) translateY(0);
}

/* ヘッダー */
.ai-chat-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #1565C0 0%, #42A5F5 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.ai-chat-icon .ai-icon-img,
.ai-chat-icon .ai-header-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.ai-icon-img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.ai-chat-icon .ai-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.ai-chat-header-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ai-chat-header-subtitle {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

.ai-chat-close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ai-chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ai-chat-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

/* カテゴリ選択 */
.ai-category-selection {
    padding: 20px;
    background: #f8f9fa;
}

.ai-category-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-category-btn {
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    color: #2D3436;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-category-btn:hover {
    background: #e3f2fd;
    border-color: #42A5F5;
}

.ai-category-btn.selected {
    background: linear-gradient(135deg, #1565C0 0%, #42A5F5 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.4);
}

.ai-category-btn .category-icon {
    font-size: 24px;
}

/* メッセージエリア */
.ai-chat-messages {
    flex: 1;
    min-height: 280px;
    max-height: 350px;
    overflow-y: auto;
    padding: 16px;
    background: #fff;
}

.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* メッセージ */
.ai-msg {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    animation: msgSlideIn 0.3s ease;
}

.ai-msg.user-msg {
    flex-direction: row-reverse;
}

.ai-msg .msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ai-msg.bot-msg .msg-avatar {
    background: #fff;
    border: 1px solid #ccc;
}

.ai-msg.user-msg .msg-avatar {
    background: #fff;
    border: 1px solid #ccc;
}

.ai-msg .msg-content {
    flex: 1;
    max-width: calc(100% - 42px);
}

.ai-msg.user-msg .msg-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.ai-msg .msg-bubble {
    max-width: 100%;
    min-width: 60px;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
    white-space: normal;
    display: inline-block;
}

.ai-msg.bot-msg .msg-bubble {
    background: #e3f2fd;
    color: #2D3436;
    border-bottom-left-radius: 4px;
}

.ai-msg.user-msg .msg-bubble {
    background: #FFF5F0;
    color: #2D3436;
    border: 1px solid #FFD4C4;
    border-bottom-right-radius: 4px;
}

.ai-msg .msg-time {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

.ai-msg.user-msg .msg-time {
    text-align: right;
}

/* 入力エリア */
.ai-chat-input-area {
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #E0E0E0;
    display: flex;
    gap: 10px;
}

.ai-chat-input {
    flex: 1;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 24px;
    color: #2D3436;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.ai-chat-input::placeholder {
    color: #999;
}

.ai-chat-input:focus {
    border-color: #42A5F5;
    background: #fff;
}

.ai-chat-send-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1565C0 0%, #42A5F5 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ai-chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.5);
}

.ai-chat-send-btn:active {
    transform: scale(0.95);
}

.ai-chat-send-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
    transform: translateX(1px);
}

/* =============================================
   右パネル AI Chat ボックス
   ============================================= */

.ai-chat-box {
    background: linear-gradient(135deg, #4a4a4a 0%, #6b6b6b 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.ai-chat-trigger-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.ai-chat-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.ai-chat-trigger-btn .btn-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-trigger-btn .btn-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.ai-chat-trigger-btn .btn-icon .ai-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.ai-chat-trigger-btn .btn-text {
    text-align: left;
}

.ai-chat-trigger-btn .btn-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.ai-chat-trigger-btn .btn-subtitle {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-top: 2px;
}

.ai-available {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* 説明文 */
.ai-chat-desc {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* 24時間対応中（中央揃え・大きめ） */
.ai-available-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* 縦並びボタン（アイコン大・テキスト下） */
.ai-chat-btn-vertical {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ai-chat-btn-vertical .btn-icon-large {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.ai-chat-btn-vertical .btn-icon-large .ai-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.ai-chat-btn-vertical .btn-label-small {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.ai-lamp {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
    animation: lampPulse 2s infinite;
}

/* 右パネル用スタイル */
.contact-chat-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* CONTACTパネルのスクロール無効・フレックス設定 */
.gallery-container:has(.contact-chat-buttons) {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-buttons-title {
    font-size: 16px;
    font-weight: 700;
    color: #2D3436;
    margin: 0 0 8px 0;
}

.chat-buttons-desc {
    font-size: 13px;
    color: #636E72;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* Staff Chatボックス（統合） */
.staff-chat-box {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.staff-chat-box .live-chat-trigger-btn {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.staff-chat-box .live-chat-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.staff-online-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.status-lamp {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-lamp.online {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
    animation: lampPulse 2s infinite;
}

.status-lamp.offline {
    background: #94a3b8;
    box-shadow: none;
}

@keyframes lampPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.chat-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 12px;
}

.contact-phone-box {
    margin-top: 20px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 12px;
}

.contact-phone-box h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 700;
    color: #2e7d32;
}

.contact-phone-box .phone-tel {
    margin: 0 0 6px 0;
    font-size: 14px;
    color: #388e3c;
}

.contact-phone-box .phone-tel a {
    color: #388e3c;
    text-decoration: none;
    font-weight: 600;
}

.contact-phone-box .phone-tel a:hover {
    text-decoration: underline;
}

.contact-phone-box .phone-hours {
    margin: 0;
    font-size: 13px;
    color: #4caf50;
}

/* 電話テキスト（枠なし・白文字・中央揃え） */
.contact-phone-text {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
}

.contact-phone-text h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.contact-phone-text .phone-tel {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #fff;
}

.contact-phone-text .phone-tel a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.contact-phone-text .phone-tel a:hover {
    text-decoration: underline;
}

.contact-phone-text .phone-hours {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

/* AI Chat スタッフに相談ボタン */
.staff-chat-prompt {
    text-align: center;
    padding: 12px;
    margin: 8px 0;
}

.staff-chat-btn {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #2E7D32;
    border-radius: 20px;
    color: #2E7D32;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.staff-chat-btn:hover {
    background: #f0f9f0;
    border-color: #4CAF50;
    color: #4CAF50;
}

/* AI Chat スタッフリンク */
.ai-chat-staff-link {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ai-chat-staff-link a {
    color: #636E72;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.ai-chat-staff-link a:hover {
    color: #2E7D32;
}

.staff-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.staff-status-dot.online {
    background: #4CAF50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.staff-status-dot.offline {
    background: #999;
}

.staff-status-text {
    font-size: 11px;
}

.staff-status-text.online {
    color: #4CAF50;
}

.staff-status-text.offline {
    color: #999;
}

/* Live Chat 履歴表示 */
.ai-history-header,
.ai-history-divider {
    text-align: center;
    padding: 12px 0;
    color: #999;
    font-size: 11px;
}

.ai-history-msg {
    opacity: 0.7;
}

.ai-history-msg .msg-bubble {
    background: #f5f5f5 !important;
}

/* オフライン連絡先フォーム */
.offline-contact-form {
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid #E0E0E0;
}

.offline-note {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #636E72;
    text-align: center;
}

.offline-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    color: #2D3436;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.offline-input::placeholder {
    color: #999;
}

.offline-input:focus {
    border-color: #4CAF50;
}

.offline-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.offline-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* レスポンシブ */
@media (max-width: 480px) {
    .live-chat-popup,
    .ai-chat-popup {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .live-chat-messages,
    .ai-chat-messages {
        min-height: 200px;
        max-height: none !important; /* 固定高さ制限を解除 */
        flex: 1;
    }
    
    .msg-bubble,
    .ai-msg .msg-bubble {
        max-width: 80%;
        min-width: auto;
    }
}
