/* チャットボットのスタイル */
.sb-chatbot:root, :root {
    --sb-chat-safe-top: 56px; /* サイト固定ヘッダーの高さ（必要に応じて調整） */
}
.sb-chatbot {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

.sb-chatbot__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(233, 236, 239, 0.8);
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sb-chatbot__header {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    padding: 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    backdrop-filter: blur(20px);
}

.sb-chatbot__header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
    padding-top: 24px;
    width: 100%;
}

/* ウィンドウコントロールボタン統一スタイル */
.sb-chatbot__window-btn--reset,
.sb-chatbot__window-btn--maximize,
.sb-chatbot__window-btn--close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    width: 55px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.sb-chatbot__window-btn--reset:hover,
.sb-chatbot__window-btn--maximize:hover,
.sb-chatbot__window-btn--close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.sb-chatbot__window-btn--reset {
    display: none; /* リセットボタンを非表示 */
}

.sb-chatbot__window-btn--reset:hover {
    background: rgba(252, 207, 0, 0.15);
    color: #e5ba00;
}

.sb-chatbot__window-btn--reset:focus-visible {
    outline: 3px solid rgba(252, 207, 0, 0.5);
    outline-offset: 2px;
}

.sb-chatbot__powered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    pointer-events: auto; /* クリック可能にする */
}

.sb-chatbot__powered a {
    color: inherit; /* 親要素の色を継承 */
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.sb-chatbot__powered a:hover {
    text-decoration: underline;
}

.sb-chatbot__window-btn--close { 
    color: #dc2626; 
}

.sb-chatbot__window-btn--close:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.sb-chatbot__bot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: #64584d;
    font-size: 20px;
}

.sb-chatbot__header-info {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.sb-chatbot__title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    width: 100%;
    max-width: none;
    text-align: center;
}

.sb-chatbot__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
    flex-wrap: nowrap;
    margin: 0;
}

.sb-chatbot__status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6c757d;
}

.sb-chatbot__status-indicator.connected {
    background: #28a745;
}

.sb-chatbot__status-indicator.error {
    background: #dc3545;
}

.sb-chatbot__status-indicator.disconnected {
    background: #6c757d;
}

.sb-chatbot__status-indicator.connecting {
    background: #ffc107;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.sb-chatbot__window-controls {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 0;
    right: 0;
}

/* パンくずリスト */
.sb-chatbot__breadcrumb {
    background: rgba(248, 250, 252, 0.95);
    padding: 10px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}

.sb-chatbot__breadcrumb-item {
    background: none;
    border: none;
    color: #64584d;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.sb-chatbot__breadcrumb-item:hover:not(.-current) {
    background: rgba(100, 88, 77, 0.12);
    color: #4a433d;
}

.sb-chatbot__breadcrumb-item.-current {
    font-weight: 600;
    color: #333;
    cursor: default;
    background: rgba(252, 207, 0, 0.15);
    border-radius: 6px;
}

.sb-chatbot__breadcrumb-separator {
    color: #aaa;
    font-size: 12px;
    user-select: none;
}



.sb-chatbot__messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.sb-chatbot__messages::-webkit-scrollbar {
    width: 6px;
}

.sb-chatbot__messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.sb-chatbot__messages::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.sb-chatbot__messages::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.sb-chatbot__message {
    display: flex;
    gap: 10px;
}

.sb-chatbot__message.-user {
    flex-direction: row-reverse;
}

.sb-chatbot__message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sb-chatbot__message.-user .sb-chatbot__message-avatar {
    background: linear-gradient(135deg, #7a6d62 0%, #64584d 100%);
    color: #fff;
}

.sb-chatbot__message.-bot .sb-chatbot__message-avatar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.sb-chatbot__bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: messageSlide 0.3s ease-out;
}

/* 説明: デフォルトのul/olの左余白が大きいため、吹き出し内では抑える */
.sb-chatbot__bubble ul,
.sb-chatbot__bubble ol {
    padding-left: 0;        /* 左の余白をリセット */
    margin: 0.5em 0 0.5em 1.5em; /* 左マージンで箇条書きの位置を調整 */
    list-style-position: outside; /* マーカーは外側に表示 */
}

/* ul/ol内のli要素 */
.sb-chatbot__bubble ul > li,
.sb-chatbot__bubble ol > li {
    margin: 0.25em 0;       /* 行間を少しだけ */
    padding-left: 0.25em;   /* マーカーとテキストの間の余白 */
    position: relative;      /* マーカーの位置調整用 */
}

/* ul/olで囲まれていないli要素にも適切なインデントを適用 */
.sb-chatbot__bubble > li {
    margin: 0.25em 0 0.25em 1.5em; /* 行間と左マージン */
    padding-left: 0.25em;   /* マーカーとテキストの間の余白 */
    position: relative;      /* マーカーの位置調整用 */
}

.sb-chatbot__bubble br {
    line-height: 1.5em;
    display: block;
    width: 100%;
    height: 0;
    margin: 0 0 1.5em 0;
    padding: 0;
}

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

.sb-chatbot__message.-user .sb-chatbot__bubble {
    background: #64584d;
    color: #fff;
    border-radius: 18px 18px 6px 18px;
}

.sb-chatbot__message.-bot .sb-chatbot__bubble {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
    border-radius: 18px 18px 18px 6px;
}

.sb-chatbot__timestamp {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}
.sb-chatbot__message.-user .sb-chatbot__timestamp { text-align: right; }
.sb-chatbot__message.-bot .sb-chatbot__timestamp { text-align: left; }

.sb-chatbot__form {
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.sb-chatbot__input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.sb-chatbot__helper-text {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin-top: 4px;
}

.sb-chatbot__helper-link {
    background: #fccf00;
    border: 2px solid #fccf00;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
    padding: 6px 12px;
    font-family: inherit;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(252, 207, 0, 0.2);
}

.sb-chatbot__helper-link:hover {
    background: #e5ba00;
    border-color: #e5ba00;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(252, 207, 0, 0.3);
}

.sb-chatbot__helper-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(252, 207, 0, 0.2);
}

.sb-chatbot__helper-link:focus-visible {
    outline: 3px solid rgba(252, 207, 0, 0.5);
    outline-offset: 2px;
}

.sb-chatbot__input {
    flex: 1;
    border: 2px solid #fccf00;
    border-radius: 24px;
    padding: 12px 20px;
    font-size: 15px;
    outline: none;
    resize: none;
    background: #fff;
    transition: none;
    font-family: inherit;
    min-height: 48px;
    max-height: 120px;
    overflow-y: hidden;
    /* ブラウザデフォルトスタイルをリセット */
    box-sizing: border-box;
    margin: 0;
    border-width: 2px;
    border-style: solid;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: normal;
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
    animation: gentleGlow 4s ease-in-out infinite;
}

@keyframes gentleGlow {
    0%, 100% {
        border-color: rgba(252, 207, 0, 0.4);
        box-shadow: 0 0 0 0 rgba(252, 207, 0, 0);
    }
    50% {
        border-color: rgba(252, 207, 0, 0.7);
        box-shadow: 0 0 5px 0 rgba(252, 207, 0, 0.2);
    }
}

.sb-chatbot__input:focus {
    animation: gentleGlowFocus 2s ease-in-out infinite;
}

@keyframes gentleGlowFocus {
    0%, 100% {
        border-color: rgba(252, 207, 0, 0.6);
        box-shadow: 0 0 5px 0 rgba(252, 207, 0, 0.25);
    }
    50% {
        border-color: rgba(252, 207, 0, 0.9);
        box-shadow: 0 0 8px 0 rgba(252, 207, 0, 0.35);
    }
}

.sb-chatbot__input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
    /* disabled状態でも光り続ける */
}

.sb-chatbot__input::placeholder {
    color: #999;
    position: relative;
    background: linear-gradient(90deg,
        transparent 0%,
        transparent 40%,
        rgba(252, 207, 0, 0.3) 50%,
        transparent 60%,
        transparent 100%
    );
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.sb-chatbot__send {
    background: #64584d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(100, 88, 77, 0.3);
}

.sb-chatbot__send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(100, 88, 77, 0.4);
}

.sb-chatbot__send:active {
    transform: scale(0.95);
}

.sb-chatbot__send:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sb-chatbot__typing {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
    background: white;
    border-radius: 20px 20px 20px 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sb-chatbot__typing i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64584d;
    animation: typing 1.4s infinite ease-in-out;
}

.sb-chatbot__typing i:nth-child(2) {
    animation-delay: 0.2s;
}

.sb-chatbot__typing i:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-12px);
        opacity: 1;
    }
}

/* クイックオプションボタン群 */
.sb-chatbot__quick-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.sb-chatbot__option-btn {
    background: #fff;
    border: 2px solid #fccf00;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: 0 2px 4px rgba(252, 207, 0, 0.1);
    font-family: inherit;
}

.sb-chatbot__option-btn:hover:not(:disabled) {
    background: #fccf00;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(252, 207, 0, 0.25);
}

.sb-chatbot__option-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(252, 207, 0, 0.15);
}

.sb-chatbot__option-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
}

.sb-chatbot__option-btn.-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e9ecef;
    color: #6c757d;
}

.sb-chatbot__option-btn.-selected {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
}

.sb-chatbot__option-btn.-active {
    background: #fccf00;
    border-color: #fccf00;
    color: #333;
    font-weight: 600;
}

.sb-chatbot__option-btn[data-option^="←"] {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    font-weight: 500;
}

.sb-chatbot__option-btn[data-option^="←"]:hover:not(:disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-2px);
}

.sb-chatbot__error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 12px 16px;
    margin: 10px;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
    border: 1px solid rgba(220, 53, 69, 0.2);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

.sb-chatbot__toggle-global {
    position: fixed;
    bottom: 20px;
    right: 90px;
    background: #64584d;
    color: white;
    border: none;
    border-radius: 26px;
    height: 52px;
    padding: 0 20px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(100, 88, 77, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    z-index: 10001;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.sb-chatbot__toggle-global:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(100, 88, 77, 0.55);
}

.sb-chatbot__toggle-global:active {
    transform: translateY(-1px) scale(1.02);
}

.sb-chatbot__iframe {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 450px;
    height: 650px;
    border: none;
    z-index: 10001;
    display: none;
    overflow: hidden;
    border-radius: 20px;
    transition: width 0.3s ease, height 0.3s ease, bottom 0.3s ease, right 0.3s ease, left 0.3s ease, top 0.3s ease, border-radius 0.3s ease, transform 0.3s ease;
    will-change: width, height, bottom, right, left, top, border-radius, transform;
}
.sb-chatbot__iframe.is-fullscreen {
    bottom: 20px;
    right: 20px;
    top: auto;
    left: auto;
    width: min(90vw, 1200px);
    height: min(90vh, 800px);
    border-radius: 16px;
}

/* フルスクリーン時のトースト位置調整 */
.sb-chatbot__iframe.is-fullscreen ~ .sb-toast,
body:has(.sb-chatbot__iframe.is-fullscreen) .sb-toast {
    width: min(90vw, 1200px);
    right: 20px;
}

.sb-chatbot__usage {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #555;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 9999px;
    padding: 4px 8px;
    font-weight: 500;
    margin-left: 10px;
}
.sb-chatbot__usage.-limit { 
    background: rgba(248, 113, 113, 0.2);
    color: #dc2626;
}

.sb-chatbot__reset-link {
    background: #fccf00;
    border: 2px solid #fccf00;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
    padding: 3px 12px;
    margin-left: 8px;
    font-family: inherit;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(252, 207, 0, 0.2);
}

.sb-chatbot__reset-link:hover {
    background: #e5ba00;
    border-color: #e5ba00;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(252, 207, 0, 0.3);
}

.sb-chatbot__reset-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(252, 207, 0, 0.2);
}

.sb-chatbot__reset-link:focus-visible {
    outline: 3px solid rgba(252, 207, 0, 0.5);
    outline-offset: 2px;
}

/* モーダル */
.sb-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.sb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.sb-modal__content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.sb-modal__header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
}

.sb-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sb-modal__title i {
    color: #fccf00;
    font-size: 20px;
}

.sb-modal__body {
    padding: 24px;
}

.sb-modal__body p {
    margin: 0 0 12px 0;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
}

.sb-modal__body p:last-child {
    margin-bottom: 0;
}

.sb-modal__note {
    font-size: 13px !important;
    color: #6c757d !important;
    font-style: italic;
}

.sb-modal__actions {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.sb-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    font-family: inherit;
}

.sb-btn.-primary {
    background: #fccf00;
    border-color: #fccf00;
    color: #333;
}

.sb-btn.-primary:hover {
    background: #e5ba00;
    border-color: #e5ba00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(252, 207, 0, 0.3);
}

.sb-btn.-primary:focus-visible {
    outline: 3px solid rgba(252, 207, 0, 0.5);
    outline-offset: 2px;
}

.sb-btn.-secondary {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.sb-btn.-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.sb-btn.-secondary:focus-visible {
    outline: 3px solid rgba(108, 117, 125, 0.3);
    outline-offset: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* トースト通知 */
.sb-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 450px;
    transform: translateY(100px);
    background: #ffffff;
    color: #333;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(252, 207, 0, 0.3);
    border: 2px solid #fccf00;
    z-index: 10003;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.sb-toast.-show {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .sb-chatbot__window-btn--reset {
        width: 50px;
        height: 44px;
        font-size: 14px;
    }
    
    .sb-chatbot__helper-text {
        font-size: 11px;
    }
    
    .sb-modal__content {
        max-width: 100%;
    }
    
    .sb-modal__actions {
        flex-direction: column-reverse;
    }
    
    .sb-btn {
        width: 100%;
        justify-content: center;
    }
    
    .sb-toast {
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        transform: translateY(100px);
        max-width: calc(100vw - 40px);
        white-space: normal;
    }
    
    .sb-toast.-show {
        transform: translateY(0);
    }
    
    .sb-chatbot__toggle-global { 
        height: 40px; 
        padding: 0 16px; 
        font-size: 14px; 
        right: 60px;
        bottom: 95px;
    }
    .sb-chatbot__iframe {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        transform: none;
        border-radius: 0;
    }
    .sb-chatbot__iframe.is-fullscreen {
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        transform: none;
    }
    .sb-chatbot__panel { 
        border-radius: 0;
    }
    .sb-chatbot__input {
        min-height: 48px;
        max-height: 96px;
        padding: 12px 18px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .sb-chatbot__toggle-global {
        right: 60px;
        bottom: 95px;
        height: 40px;
        padding: 0 14px;
        font-size: 13px;
    }
    .sb-chatbot__iframe {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        transform: none;
        border-radius: 0;
    }
    .sb-chatbot__iframe.is-fullscreen {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        transform: none;
    }
    .sb-chatbot__input {
        min-height: 48px;
        max-height: 84px;
        padding: 12px 16px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .sb-chatbot__toggle-global {
        right: 60px;
        bottom: 95px;
    }
    /* レスポンシブ時は最初から拡大表示 */
    .sb-chatbot__iframe {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        transform: none;
        border-radius: 0;
    }
    /* 拡大ボタンを非表示 */
    .sb-chatbot__window-btn--expand {
        display: none;
    }
    .sb-chatbot__input {
        min-height: 48px;
        max-height: 100px;
        padding: 12px 18px;
        font-size: 16px;
    }
}

/* フィードバックボタン */
.sb-chatbot__feedback {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sb-chatbot__feedback-btn {
    padding: 6px 12px;
    font-size: 13px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: #ffffff;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sb-chatbot__feedback-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.2);
}

.sb-chatbot__feedback-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.sb-chatbot__feedback-btn.-helpful:disabled {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.sb-chatbot__feedback-btn.-unhelpful:disabled {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

/* トップに戻るボタン */
.sb-chatbot__back-to-top {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sb-chatbot__back-btn {
    padding: 8px 16px;
    font-size: 13px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: #ffffff;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sb-chatbot__back-btn:hover {
    background: #f5f5f5;
    border-color: rgba(0, 0, 0, 0.2);
}
