/* =============================================
   COCOPASHATTO - Design Tokens
   Single source of truth for colors, fonts, shadows
   ============================================= */

/* LINE Seed JP フォント */
@font-face {
    font-family: 'LINE Seed JP';
    src: url('/fonts/TTF/LINESeedJP_A_TTF_Th.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed JP';
    src: url('/fonts/TTF/LINESeedJP_A_TTF_Rg.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed JP';
    src: url('/fonts/TTF/LINESeedJP_A_TTF_Bd.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LINE Seed JP';
    src: url('/fonts/TTF/LINESeedJP_A_TTF_Eb.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ブランドカラー */
    --primary: #FF3D5C;
    --primary-light: #FF6B82;
    --primary-dark: #E0334E;

    /* アクセントカラー */
    --secondary: #FFC93D;
    --secondary-light: #FFD76B;
    --secondary-dark: #E0B035;
    --accent-warm: #FFC93D;

    /* ステータスカラー */
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* グレースケール（warm stone系） */
    --gray-50: #FAF8F5;
    --gray-100: #F3F0EB;
    --gray-200: #E8E3DB;
    --gray-300: #D4CEC4;
    --gray-400: #A9A29A;
    --gray-500: #78716C;
    --gray-600: #57534E;
    --gray-700: #44403C;
    --gray-800: #292524;
    --gray-900: #1C1917;

    /* 背景色（紙っぽい質感） */
    --bg-primary: #FAF7F2;
    --bg-secondary: #F5F0E8;
    --bg-card: #FFFDF8;

    /* テキストカラー */
    --text-primary: #292524;
    --text-secondary: #78716C;
    --text-muted: #A9A29A;

    /* エイリアス（互換性のため） */
    --primary-color: var(--primary);
    --secondary-color: var(--secondary);
    --success-color: var(--success);
    --danger-color: var(--danger);
    --warning-color: var(--warning);
    --info-color: var(--info);
    --light-bg: var(--gray-50);
    --dark-text: var(--gray-800);
    --border-color: var(--gray-200);

    /* 影（warm tone） */
    --shadow-sm: 0 1px 2px rgba(120, 100, 80, 0.06);
    --shadow: 0 1px 3px rgba(120, 100, 80, 0.1), 0 1px 2px rgba(120, 100, 80, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(120, 100, 80, 0.1), 0 2px 4px -1px rgba(120, 100, 80, 0.06);
    --shadow-lg: 0 8px 16px rgba(120, 100, 80, 0.12), 0 3px 6px rgba(120, 100, 80, 0.08);
    --shadow-xl: 0 20px 25px -5px rgba(120, 100, 80, 0.12), 0 10px 10px -5px rgba(120, 100, 80, 0.06);

    /* フォント - LINE Seed JP */
    --font-sans: "LINE Seed JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* フォントサイズスケール */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */

    /* 行間 */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* カメラ/エディタ専用（ダーク系を明示的に分離） */
    --bg-camera: #000000;
    --editor-bg: var(--gray-900);
    --editor-surface: rgba(41, 37, 36, 0.95);
    --editor-surface-light: rgba(60, 55, 52, 0.85);
    --editor-text: var(--gray-50);
    --editor-text-muted: rgba(250, 248, 245, 0.75);
    --editor-border: rgba(250, 248, 245, 0.18);
    --editor-handle-delete: rgba(255, 60, 60, 0.9);
    --editor-handle-resize: rgba(0, 150, 255, 0.9);

    /* 背景の拡張 */
    --bg-overlay: rgba(250, 247, 242, 0.95);
    --bg-surface: #F0EBE1;

    /* 境界線 */
    --border-light: rgba(41, 37, 36, 0.08);
    --border-medium: rgba(41, 37, 36, 0.15);

    /* プライマリ色の透明度バリエーション */
    --primary-bg: rgba(255, 61, 92, 0.1);
    --primary-bg-hover: rgba(255, 61, 92, 0.15);
    --primary-shadow: rgba(255, 61, 92, 0.3);
    --primary-shadow-hover: rgba(255, 61, 92, 0.45);

    /* ステータス拡張 */
    --danger-bg: rgba(239, 68, 68, 0.1);
    --danger-border: rgba(239, 68, 68, 0.4);
    --success-text: #059669;

    /* gallery.cssから昇格 */
    --primary-50: #FFF1F3;
    --primary-100: #FFE0E5;
    --primary-200: #FFC1CB;
    --heart: #EC4899;

    /* Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transition */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.35s ease;

    /* === 統一トークン（Phase 1: デザイン統一） === */

    /* カード（印画紙の質感） */
    --card-radius: var(--radius-md);

    /* ボディ背景（紙の質感）統一値 */
    --bg-body: var(--bg-primary);

    /* ナビバー背景（印画紙のツルッと感） */
    --bg-nav: rgba(255, 253, 248, 0.92);

    /* 印画紙の光沢エフェクト */
    --photo-paper-sheen: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.03) 100%
    );

    /* チェキカード用（ギャラリー） */
    --cheki-radius: 2px;

    /* カードシャドウ（印画紙が浮く感じ） */
    --shadow-card: 0 2px 8px rgba(120, 100, 80, 0.10), 0 6px 20px rgba(120, 100, 80, 0.06);
    --shadow-card-hover: 0 4px 16px rgba(120, 100, 80, 0.14), 0 12px 32px rgba(120, 100, 80, 0.08);

    /* 紙の質感ノイズ（SVGデータURI） */
    --bg-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");

    /* Admin用（ブランド内のダーク） */
    --admin-sidebar-bg: var(--gray-800);
    --admin-sidebar-logo-bg: var(--gray-900);
    --admin-sidebar-active: var(--primary);
    --admin-surface: var(--bg-card);
}
