﻿@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&family=Poppins:wght@600;700;800&display=swap');

/* ==========================================================================
   デザインシステム (Design System)
   ========================================================================== */

:root {
    --color-yellow: #f5cd00;
    --color-bg: #fafafa;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #1a1a1a;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 10px;
    border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-yellow);
}

/* ==========================================================================
   コンポーネント (Components)
   ========================================================================== */

/* ガラスパネル (ライトモード用) */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 2px solid var(--color-border);
}

/* ナビゲーションリンク */
.nav-link {
    position: relative;
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-yellow);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==========================================================================
   アニメーション (Animations)
   ========================================================================== */

/* ぽよんバウンスアニメーション */
@keyframes poyon {
    0% {
        scale: 1;
    }

    40% {
        scale: 1.08;
    }

    60% {
        scale: 0.96;
    }

    80% {
        scale: 1.03;
    }

    100% {
        scale: 1;
    }
}

.animate-poyon:hover {
    animation: poyon 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 回転アニメーション */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ゆっくりとした鼓動 */
@keyframes pulse-slow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

/* スクロール時のフェードイン表示 */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay-1 {
    transition-delay: 100ms;
}

.stagger-delay-2 {
    transition-delay: 200ms;
}

.stagger-delay-3 {
    transition-delay: 300ms;
}

/* ==========================================================================
   ユーティリティ (Utilities)
   ========================================================================== */

/* テキストグラデーション (ポップ調) */
.text-gradient {
    background: linear-gradient(135deg, var(--color-text), #555555);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 背景ドットパターン */
.bg-dot-pattern {
    background-image: radial-gradient(#d1d1d1 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

/* 蛍光ペン風ハイライト */
.highlight-yellow {
    background: linear-gradient(transparent 60%, var(--color-yellow) 60%);
    padding: 0 2px;
}

/* ステッカー風の影 */
.shadow-sticker {
    filter: drop-shadow(6px 6px 0px rgba(0, 0, 0, 0.1));
}

/* ポップなカードの影 */
.shadow-pop {
    box-shadow: 8px 8px 0px 0px var(--color-border);
}

.shadow-pop-yellow {
    box-shadow: 8px 8px 0px 0px var(--color-yellow);
}