/* カスタムTailwind設定とアニメーション */
:root {
    /* 白背景でも映える、鮮やかなアクセントカラーを定義 */
    --color-neon-cyan: #00bcd4;
    --color-neon-magenta: #e91e63;
    --color-neon-purple: #9c27b0;

    /* 主要なレイアウト設定 */
    --max-content-width: 1200px;
    --spacing-default: 16px; /* モバイルのパディング */
    --spacing-large: 32px; /* デスクトップのパディング */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f0f5; /* 背景を白基調の薄いグレーに変更 */
    min-height: 100vh;
    color: #121218; /* テキストを濃い色に変更し視認性向上 */
}

/* ページ全体のパディングとアニメーション（旧 .page-body の役割） */
.page-body {
    padding: var(--spacing-default);
    /* 背景のアニメーション設定 - 明るいトーンのグラデーションを使用 */
    background-image: linear-gradient(120deg, rgba(0, 188, 212, 0.2), rgba(156, 39, 176, 0.2), rgba(233, 30, 99, 0.2), #f0f0f5);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite; 
    text-shadow: none;
}

/* モバイルからタブレット向けのパディング調整 */
@media (min-width: 768px) {
    .page-body {
        padding: var(--spacing-large);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ヘッダーセクション */
.site-header {
    text-align: center;
    margin-bottom: 48px; 
}

/* タイトル */
.site-title {
    font-size: 3rem; 
    font-weight: 800; 
    letter-spacing: -0.05em; 
    margin-bottom: 8px; 
    
    /* グラデーションテキスト */
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(to right, #00838F, #880E4F); 
}

@media (min-width: 768px) {
    .site-title {
        font-size: 4.5rem; 
    }
}

/* サブタイトル */
.site-subtitle {
    font-size: 1.25rem; 
    color: #4a4a4a; 
}

@media (min-width: 768px) {
    .site-subtitle {
        font-size: 1.5rem; 
    }
}

/* メインコンテンツ - Gridレイアウトを使用 */
.main-content {
    max-width: var(--max-content-width); 
    margin-left: auto;
    margin-right: auto;
    display: grid;
    gap: 32px; 
    
    /* モバイル: 1カラム */
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    /* タブレット: 2カラム */
    .main-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    /* デスクトップ: 3カラム */
    .main-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* モーションカード */
.motion-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 188, 212, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 24px; 
    border-radius: 12px; 
    display: flex;
    flex-direction: column;
}

.motion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15), 0 0 20px rgba(0, 188, 212, 0.3);
}

/* === 動画/画像プレビューの新しいスタイル === */
/* カード内のメディアコンテナ (動画/画像) */
.card-media-container {
    position: relative;
    width: 100%;
    /* 16:9のアスペクト比 (動画の標準) を維持 */
    padding-bottom: 56.25%; /* 9 / 16 * 100% */
    margin-bottom: 16px; 
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #c0c0c0; /* 画像/動画の境界線 */
}

/* カード内のメディア（動画要素） */
.card-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* コンテナいっぱいに表示 */
}
/* === 変更終了 === */


/* カード内のタイトル */
.card-title {
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 8px; 
    color: #0E7490; 
}

/* カード内の説明 */
.card-description {
    color: #525252; 
    margin-bottom: 16px; 
    flex-grow: 1; 
}

/* ダウンロードボタン */
.download-btn {
    background-color: var(--color-neon-magenta);
    color: white;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    padding: 12px 24px; 
    border-radius: 9999px; 
    font-size: 1.125rem; 
    text-align: center;
    margin-top: auto; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    display: block; 
    text-decoration: none; 
}

.download-btn:hover {
    box-shadow: 0 0 10px var(--color-neon-magenta);
    transform: scale(1.05);
    background-color: #ff4081;
}

/* ダウンロード中の状態 */
.downloading {
    background-color: #9ca3af; 
    color: white;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* フッター */
.site-footer {
    text-align: center;
    margin-top: 64px; 
    color: #525252; 
    font-size: 0.875rem; 
}
