@charset "UTF-8";

/* 共通パーツ：タグ/属性バッジ、アラート、フローティングボタン */

/* タグ・属性バッジ */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    background-color: #f1f3f5;
    color: #495057;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.tag-attribute {
    background-color: var(--light-green);
    color: #fff;
    border-color: var(--light-green);
    font-weight: 700;
}

/* アラート（バックアップ表示） */
.backup-alert {
    display: none;
    width: 94%;
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 15px 20px;
    background-color: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 8px;
    color: #664d03;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

/* アラート（読み込み失敗） */
.error-alert {
    display: none;
    width: 94%;
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 15px 20px;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    color: #842029;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

/* フローティングボタン（画面左下固定） */
.floating-menu {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 900;
}

.floating-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    background-color: var(--dark-green);
    color: #fff;
    border: none;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    font: inherit;
    padding: 0;
    cursor: pointer;
    appearance: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.floating-btn:hover {
    background-color: var(--light-green);
    transform: translateY(-3px);
    color: #fff;
}