/* ============================================
   base.css — リセット + CSS変数 + タイポグラフィ
   ============================================ */

/* --- CSS変数 --- */
:root {
    /* カラーパレット */
    --color-primary: #A855F7;
    --color-accent: #FF3B6F;
    --color-gradient: linear-gradient(135deg, #FF3B6F, #A855F7);
    --color-abema: #00B900;
    --color-netflix: #E50914;
    --color-prime: #00A8E1;
    --color-text: #1F2937;
    --color-text-sub: #9CA3AF;
    --color-bg: #FAFAFF;
    --color-card: #FFFFFF;

    /* ステータスカラー */
    --color-success: #10B981;
    --color-danger: #EF4444;
    --color-warning: #F59E0B;
    --color-gold: #D4A017;

    /* フォント */
    --font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Meiryo', sans-serif;

    /* スペーシング */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* 角丸 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-pill: 50px;
    --radius-circle: 50%;

    /* シャドウ */
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

    /* レイアウト */
    --header-height: 56px;
    --bottom-nav-height: 64px;
    --content-max-width: 768px;
}

/* --- スキップリンク（アクセシビリティ） --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100000;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
}
.skip-link:focus {
    position: fixed;
    top: var(--space-sm);
    left: var(--space-sm);
    width: auto;
    height: auto;
    z-index: 100001;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    clip: auto !important;
    clip-path: none;
    display: block;
    height: auto;
    width: auto;
    z-index: 100001;
}

/* --- リセット --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: var(--bottom-nav-height);
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* --- タイポグラフィ --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

small {
    font-size: 0.75rem;
    color: var(--color-text-sub);
}

/* --- ユーティリティ --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-gradient {
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* スクロールバー非表示（横スクロール用） */
.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* PC表示時のボトムナビ非表示 */
@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
}
