/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* --- CSSリセットと基本設定 --- */
:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #e91e63; /* osu!のピンク */
    --primary-hover-color: #c2185b;
    --secondary-color: #03a9f4; /* アクセントの青 */
    --text-color: #e0e0e0;
    --text-muted-color: #888;
    --border-color: #333;
    
    --header-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- ヘッダー/ナビゲーション --- */
.site-header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted-color);
    padding: 0.5rem;
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- メインコンテンツ --- */
.main-content {
    flex-grow: 1;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.content-section {
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* --- フッター --- */
.site-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 1.5rem 2rem;
    color: var(--text-muted-color);
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- index.html (ホーム) --- */
.home-intro p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.home-intro .note {
    font-size: 0.9rem;
    color: var(--text-muted-color);
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.nav-card {
    display: block;
    background-color: #252525;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-5px);
    background-color: #2a2a2a;
    border-color: var(--primary-color);
}

.nav-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}
.nav-card.skins h3 {
    color: var(--primary-color);
}
.nav-card.tips h3 {
    color: #ffc107; /* 新しいTIPSカード用の色（黄色系） */
}

.nav-card p {
    color: var(--text-muted-color);
}

/* --- skins.html (スキン紹介) --- */
.skin-category-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2rem 0 1rem 0;
    border-left: 4px solid var(--primary-color);
    padding-left: 0.75rem;
}

.skin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skin-card {
    background-color: #252525;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.skin-card-image {
    width: 100%;
    height: 200px;
    background-color: #333;
    object-fit: cover;
}

.skin-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.skin-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.skin-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.skin-card-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    background-color: var(--border-color);
    color: var(--text-muted-color);
}

.skin-card-tag.num { background-color: #3f51b5; color: white; }
.skin-card-tag.dot { background-color: #009688; color: white; }
.skin-card-tag.mod { background-color: #ff9800; color: #333; }
.skin-card-tag.mode { background-color: #607d8b; color: white; }


.skin-card-description {
    color: var(--text-muted-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.download-button {
    display: block;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    text-align: center;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: var(--primary-hover-color);
    color: white;
}

/* --- glossary.html (用語解説) --- */
.glossary-list {
    display: grid;
    gap: 1.5rem;
}

.glossary-item dt {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.glossary-item dt span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted-color);
    margin-left: 0.5rem;
}

.glossary-item dd {
    font-size: 1rem;
    color: var(--text-color);
    padding-left: 1rem;
    border-left: 3px solid var(--border-color);
}

/* --- tips.html (TIPS一覧ページ) --- */

.section-description {
    color: var(--text-muted-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.tip-category-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2rem 0 1rem 0;
    border-left: 4px solid var(--secondary-color); /* カテゴリの色 */
    padding-left: 0.75rem;
}

/* ▼▼▼ スタイル変更 ▼▼▼ */

/* .tip-card-grid を削除 (レスポンシブセクションからも削除) */
/*
.tip-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem;
}
*/

/* 新しいブログリストスタイル */
.tip-blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* 記事間のマージン */
}

/* .tip-card を .tip-blog-item に変更 */
.tip-blog-item {
    display: grid; /* 画像とテキストを並べるためにGridを使用 */
    grid-template-columns: 240px 1fr; /* 画像幅 240px, 残りをテキスト */
    gap: 1.5rem;
    background-color: #252525;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* .tip-card-image を .tip-blog-image に変更 */
.tip-blog-image {
    width: 240px;
    height: 100%; /* 高さをコンテナに合わせる */
    object-fit: cover;
    background-color: #333;
    aspect-ratio: 4 / 3; /* 画像のアスペクト比を固定 */
}

/* .tip-card-content を .tip-blog-content に変更 */
.tip-blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* .tip-card-date を .tip-blog-date に変更 */
.tip-blog-date {
    font-size: 0.8rem;
    color: var(--text-muted-color);
    margin-bottom: 0.5rem;
}

/* .tip-card-title を .tip-blog-title に変更 */
.tip-blog-title {
    font-size: 1.75rem; /* タイトルを少し大きく */
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}
/* aタグなので、ホバーエフェクトも追加 */
.tip-blog-item:hover .tip-blog-title {
    color: var(--primary-color);
}

/* .tip-card-description を .tip-blog-description に変更 */
.tip-blog-description {
    color: var(--text-muted-color);
    font-size: 1rem; /* 概要を少し大きく */
    flex-grow: 1; /* 記事の高さを揃えるため */
}

/* ▲▲▲ スタイル変更 ▲▲▲ */


/* --- tip-1.html (個別記事ページ) --- */

.tip-article-standalone {
    max-width: 800px; /* 記事の最大幅を指定 */
    margin: 0 auto; /* 中央寄せ */
}

.tip-article-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.tip-article-header .tip-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}

.tip-article-header .tip-date {
    font-size: 1rem;
    color: var(--text-muted-color);
    margin-top: 0.5rem;
}

.tip-category-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    margin-top: 1rem;
    color: white;
}
.tip-category-badge.kaisetsu {
    background-color: var(--secondary-color); /* 解説カテゴリの色 */
}


/* アコーディオン関連のスタイルを削除 (または .tip-content に統合) */
/* .tip-article, .tip-summary, ... etc は削除 */

/* 記事コンテンツ (tip-1.html と共通化) */
.tip-content {
    padding: 1rem 0;
}

/* 記事内の日付 (個別記事ではヘッダーに移動) */
.tip-date {
    font-size: 0.9rem;
    color: var(--text-muted-color);
    margin-bottom: 1rem;
}

/* 記事内の引用 */
.tip-quote {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-muted-color);
}

.tip-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary-color);
    padding-left: 0.75rem;
}
.tip-content p,
.tip-content ul,
.tip-content ol,
.tip-content blockquote {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--text-muted-color); /* 標準の文字色を少し抑えめに */
}
/* 記事本文の <p> タグの文字色を標準にする */
.tip-content > p {
    color: var(--text-color);
    font-size: 1.1rem; /* 記事本文のフォントサイズを少し大きく */
}

.tip-content p strong {
    color: var(--primary-color);
    font-weight: 600;
}
.tip-content ul,
.tip-content ol {
    padding-left: 2rem; /* liの(・)や数字のスペース */
}
.tip-content li {
    margin-bottom: 0.75rem;
}
.tip-content li p {
    margin-bottom: 0.25rem;
    color: var(--text-color); /* 番号付きリスト内のpタグの文字色を少し明るく */
}
.tip-content h4 + p,
.tip-content h4 + ul,
.tip-content h4 + ol {
    margin-top: 1rem; /* サブタイトルの直後のマージン調整 */
}

/* 記事内の画像スタイル */
.tip-content img.tip-image {
    max-width: 600px; /* 画像の最大幅 */
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem auto; /* 中央寄せ */
    display: block;
    border: 1px solid var(--border-color);
}

/* 記事下部の「一覧に戻る」リンク */
.tip-back-link-container {
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
}

.tip-back-link {
    display: inline-block;
    color: var(--text-muted-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.tip-back-link:hover {
    background-color: var(--surface-color);
    color: var(--text-color);
    border-color: #555;
}


/* --- レスポンシブ対応 --- */
@media (max-width: 1024px) {
    .skin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    /* .tip-card-grid を削除 */
}

@media (max-width: 768px) {
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .skin-grid {
        grid-template-columns: 1fr;
    }

    /* .tip-card-grid を削除 */
    
    /* ブログリストのスマホ対応 */
    .tip-blog-item {
        grid-template-columns: 1fr; /* スマホでは縦並びに戻す */
    }
    .tip-blog-image {
        width: 100%;
        height: 200px; /* スマホでの画像高さを固定 */
    }
    .tip-blog-title {
        font-size: 1.5rem;
    }
    .tip-blog-content {
        padding-top: 0.5rem; /* 画像とのスペースを調整 */
    }


    .main-content {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }

    .content-section {
        padding: 1.5rem;
    }

    .tip-article-header .tip-title {
        font-size: 2rem; /* スマホでの記事タイトルサイズ調整 */
    }
    .tip-content > p {
        font-size: 1rem; /* スマホでの本文フォントサイズ調整 */
    }

    .site-header {
        padding: 0 1rem;
        height: auto;
        min-height: var(--header-height);
    }

    .nav-container {
        flex-direction: column;
        padding: 0.5rem 0;
    }

    .main-nav {
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }
    
    .main-nav a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}