/* プロジェクト共通デザインの基本定義 */
body {
    background-color: #021a1a; /* bg-brand-dark */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(13, 148, 136, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.05), transparent 25%);
    background-attachment: fixed;
    /* Noto Sans JP is loaded via Tailwind config */
}

/* Glassmorphism パネル */
.glass-box {
    background: rgba(4, 47, 46, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(13, 148, 136, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* ねこまるマスコットの浮遊アニメーション */
.nekomaru-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: auto;
    z-index: 50;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

@keyframes float {
    0% { transform: translatey(0px); }
    50% { transform: translatey(-15px); }
    100% { transform: translatey(0px); }
}

/* ねこまるヘッダーアイコンの尻尾振りアニメーション */
.nekomaru-header {
    width: 48px;
    vertical-align: middle;
    margin-left: 10px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    animation: nekowag 3s ease-in-out infinite;
}

@keyframes nekowag {
    0%,100% { transform: rotate(0deg); }
    30%      { transform: rotate(-6deg); }
    60%      { transform: rotate(6deg); }
}

/* スマホ等でねこまるが被らないように */
@media (max-width: 768px) {
    .nekomaru-float {
        width: 80px;
        bottom: 10px;
        right: 10px;
        opacity: 0.8;
    }
}

/* 独自のカード型ボタン (Tailwindと組み合わせて使用) */
.select-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem; /* rounded-lg */
    padding: 0.75rem; /* p-3 */
    text-align: center;
    font-size: 0.875rem; /* text-sm */
    color: #e5e7eb; /* text-gray-200 */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.select-card:hover {
    background: rgba(13, 148, 136, 0.2);
    border-color: rgba(13, 148, 136, 0.5);
    transform: translateY(-2px);
}

.select-card:active {
    transform: translateY(1px);
}

/* 選択されたカードのアクティブ状態 */
.select-card.active {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

/* カスタムカラーパレットボタン 丸型 */
.color-card {
    width: 2.5rem; /* w-10 */
    height: 2.5rem; /* h-10 */
    border-radius: 9999px; /* rounded-full */
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.color-card:hover {
    transform: scale(1.1);
}

.color-card.active {
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #0ea5e9, inset 0 2px 4px rgba(0,0,0,0.3);
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #011212;
}
::-webkit-scrollbar-thumb {
    background: #0f766e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* プレビュータグ */
.preview-tag {
    display: inline-block;
    background: rgba(13, 148, 136, 0.2);
    border: 1px solid rgba(13, 148, 136, 0.4);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #5eead4;
}
