@charset "UTF-8";

/* ==========================================================================
   CSS Variables (Light & Dark Theme)
   ========================================================================== */
:root {
    /* デフォルト：ライトモード */
    --bg-body: #f4f5f7;
    --bg-header: #ffffff;
    --bg-widget: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f0f2f5;
    --bg-hover: #f8f9fa;
    --bg-footer: #ffffff;
    
    --text-main: #222222;
    --text-muted: #555555;
    --text-sub: #888888;
    --text-inverse: #ffffff;
    
    --border-color: #e2e8f0;
    --border-header: #e2e8f0;
    
    --accent-color: #ff2a4b;
    --accent-hover: #d91e3d;

    /* トグルスイッチ用カラー */
    --switch-bg: #cbd5e1;
    --switch-thumb: #ffffff;

    /* カテゴリ別カラー（お気に入りページ） */
    --type-video-color: #2563eb;
    --type-doujin-color: #ff6fb0;
    --type-antenna-color: #1f8a4c;
}

[data-theme="dark"] {
    /* ダークモード */
    --bg-body: #121212;
    --bg-header: #1f1f1f;
    --bg-widget: #1f1f1f;
    --bg-card: #1f1f1f;
    --bg-input: #2a2a2a;
    --bg-hover: #252525;
    --bg-footer: #181818;
    
    --text-main: #e0e0e0;
    --text-muted: #aaaaaa;
    --text-sub: #888888;
    --text-inverse: #ffffff;
    
    --border-color: #2a2a2a;
    --border-header: #333333;
    
    --accent-color: #ff2a4b;
    --accent-hover: #d91e3d;

    /* トグルスイッチ用カラー */
    --switch-bg: #ff2a4b;
    --switch-thumb: #ffffff;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}
