/**
 * style-custom.css — にゃーすまん カスタムトップページ
 * Tailwind CDN でカバーできないスタイルのみ記述
 */

/* ============================================================
   ベース
   ============================================================ */
body.nyasuman-front-page {
    font-family: 'Noto Sans JP', sans-serif !important;
    background-color: #FFFBF0;
    color: #2d2d2d;
}

/* Cocoon が追加するデフォルトラッパーをフロントページで無効化 */
body.nyasuman-front-page #container,
body.nyasuman-front-page #main,
body.nyasuman-front-page .wrap,
body.nyasuman-front-page #content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
}

body.nyasuman-front-page .sidebar,
body.nyasuman-front-page #sidebar {
    display: none !important;
}

/* ============================================================
   ヘッダー固定 + 管理バー対応
   ============================================================ */
#nyasuman-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: #1a2744;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.admin-bar #nyasuman-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar #nyasuman-header {
        top: 46px !important;
    }
}

/* ============================================================
   ヒーローグラデーション
   ============================================================ */
.hero-gradient {
    background: linear-gradient(135deg, #1a2744 0%, #1e2f55 40%, #2a3f6e 100%);
}

/* ============================================================
   黄色アンダーライン見出し装飾
   ============================================================ */
.yellow-underline {
    position: relative;
    display: inline-block;
}

.yellow-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background: #FFC200;
    border-radius: 2px;
}

/* ============================================================
   カードホバーエフェクト
   ============================================================ */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(255, 194, 0, 0.18);
}

/* ============================================================
   ナビゲーションリンクアンダーライン
   ============================================================ */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #FFC200;
    transition: width 0.25s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================================
   カテゴリバッジ（色分け）
   ============================================================ */
.badge-gold {
    background: rgba(255, 194, 0, 0.2);
    color: #CC9A00;
    border: 1px solid rgba(255, 194, 0, 0.45);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-block;
}

.badge-green {
    background: rgba(76, 175, 130, 0.15);
    color: #3a9b6e;
    border: 1px solid rgba(76, 175, 130, 0.35);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-block;
}

.badge-blue {
    background: rgba(76, 126, 201, 0.15);
    color: #3a69b5;
    border: 1px solid rgba(76, 126, 201, 0.35);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-block;
}

.badge-purple {
    background: rgba(156, 76, 201, 0.15);
    color: #8a3ab5;
    border: 1px solid rgba(156, 76, 201, 0.35);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-block;
}

.badge-pink {
    background: rgba(201, 76, 126, 0.15);
    color: #b53a6e;
    border: 1px solid rgba(201, 76, 126, 0.35);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 9999px;
    display: inline-block;
}

/* ============================================================
   プロフィール画像（円形）
   ============================================================ */
.profile-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFC200;
    box-shadow: 0 8px 32px rgba(255, 194, 0, 0.35);
    display: block;
}

@media (min-width: 640px) {
    .profile-avatar {
        width: 176px;
        height: 176px;
    }
}

/* ============================================================
   記事サムネイルプレースホルダー
   ============================================================ */
.thumb-placeholder {
    background: linear-gradient(135deg, #fff5cc 0%, #fee0c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 176px;
}

.thumb-placeholder-green {
    background: linear-gradient(135deg, #e8f8f0 0%, #c8eedd 100%);
}

.thumb-placeholder-blue {
    background: linear-gradient(135deg, #e8f0f8 0%, #c8d8ee 100%);
}

.thumb-placeholder-purple {
    background: linear-gradient(135deg, #f0e8f8 0%, #ddc8ee 100%);
}

.thumb-placeholder-pink {
    background: linear-gradient(135deg, #f8e8f0 0%, #eec8d8 100%);
}

/* ============================================================
   肉球デコレーション
   ============================================================ */
.paw-deco {
    opacity: 0.07;
    position: absolute;
    pointer-events: none;
    user-select: none;
}

/* ============================================================
   スクロールバー
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FFF5CC;
}
::-webkit-scrollbar-thumb {
    background: #FFC200;
    border-radius: 3px;
}

/* ============================================================
   人気記事 順位バッジ
   ============================================================ */
.rank-badge-1 { background: #FFC200; color: #1a2744; }
.rank-badge-2 { background: #b0b0b0; color: #ffffff; }
.rank-badge-3 { background: #c07840; color: #ffffff; }
.rank-badge-n { background: #e5e7eb; color: #6b7280; }

/* ============================================================
   セクション区切り黄色グラデーションライン
   ============================================================ */
.section-top-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFC200, #E8821A, #FFC200);
    opacity: 0.7;
}