/* ベーススタイル - リセットと基本設定 */

/* ========================================
   リセット
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   画像・メディア
   ======================================== */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   リンク
   ======================================== */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
}

/* ========================================
   ボタン
   ======================================== */
button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ========================================
   リスト
   ======================================== */
ul,
ol {
    list-style: none;
}

/* ========================================
   見出し
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
}

/* ========================================
   スクロールバー（Webkit）
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: var(--border-radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-primary-dark);
}

/* ========================================
   ユーティリティ
   ======================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   アニメーション
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatUp {
    0% {
        transform: translate(-50%, -80%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -180px) scale(0.5);
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* スケルトンローディング */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            var(--color-bg) 25%,
            #f5edd0 50%,
            var(--color-bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius-sm);
}