@charset "utf-8";

/* ==================================================
   右下フロートリアクションウィジェット
   ================================================== */
.reaction-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9990;
    width: 270px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 56, 147, 0.12);
    padding: 16px 18px;
    box-sizing: border-box;
    font-family: "Noto Sans JP", sans-serif;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s;
}

/* スクロール到達時の表示クラス */
.reaction-widget.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* 閉じる（×）ボタン */
.reaction-close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}
.reaction-close-btn:hover {
    color: #475569;
}

/* タイトル文 */
.reaction-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #003893;
    margin: 0 0 12px 0;
    line-height: 1.4;
    text-align: left;
}

/* ボタン群 */
.reaction-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.reaction-btn:hover {
    background-color: #eef4ff;
    border-color: #003893;
    transform: translateY(-1px);
}
.reaction-btn:active {
    transform: scale(0.98);
}

.reaction-icon {
    font-size: 18px;
    line-height: 1;
}

.reaction-label {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.2;
}

/* サンクス表示エリア */
.reaction-thanks-title {
    font-size: 14px;
    font-weight: 700;
    color: #003893;
    margin: 4px 0 6px 0;
}
.reaction-thanks-desc {
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.reaction-content.is-hidden {
    display: none !important;
}

/* ==================================================
   スマホ対応（画面幅768px以下）
   ================================================== */
@media (max-width: 768px) {
    .reaction-widget {
        right: 12px;
        bottom: 16px;
        width: 250px;
        padding: 14px 14px;
    }
    .reaction-title {
        font-size: 12.5px;
        margin-bottom: 10px;
    }
    .reaction-btn {
        padding: 8px 10px;
    }
    .reaction-label {
        font-size: 12px;
    }
}