@charset "utf-8";

/* ===================================================
   GAME LIST PAGE STYLES (gameliststyle.css)
   ================================================   */

:root {
    --bg-color: #faf8f5;
    --card-bg: #ffffff;
    --text-color: #4a4543;
    --accent-color: #E78198;
    --border-color: #f0eae1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    background: linear-gradient(rgba(250, 248, 245, 0.5), rgba(250, 248, 245, 0)), 
                url('./img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    padding: 40px 15px;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

.wrapper {
    max-width: 800px; /* ここを800pxや850pxなど、他のページに合わせやすい数値に変更してください */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.block {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* --- ヘッダー共通 --- */
.block-header {
    text-align: center;
}

.header-title {
    font-size: 1.6rem;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.page-title {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-align: center;
}

.gamelist-description {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: center;
}

/* --- バナー画像 --- */
.banner-common {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.banner-gamelist {
    background-image: url('./img/gamelist_header.jpg');
}

/* --- ナビゲーション・SNS --- */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.nav-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-btn:hover, .nav-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.sns-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.sns-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
}

.sns-icon:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* ===================================================
   レイアウト（左：サイドバー / 右：メインリスト）
   ================================================   */
.game-content-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 左側サイドバー（ピンクの角丸カード） */
.game-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.category-card {
    background-color: rgba(201, 235, 247, 0.4); /* 背景のピンク色を40%の不透明度にする（数値はお好みで調整可能です） */
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #ffffff;
    backdrop-filter: blur(5px);           /* すりガラス風のぼかし効果 */
    -webkit-backdrop-filter: blur(5px);    /* Safari対応 */
}

.category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2F3285;
    margin-bottom: 12px;
}

.category-sub-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 20px;
    margin-bottom: 15px;
}

.category-sub-list li a {
    color: #2F3285;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.category-sub-list li a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* サイドバー内の独立した区切り線 */
.sidebar-divider {
    height: 1px;
    border-top: 1px dashed rgba(46, 49, 132, 0.6);
    margin: 15px 0;
}

/* anotherGAMEなどの個別リンク項目 */
.category-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #2F3285;
    text-decoration: none;
    margin-bottom: 15px;
    transition: opacity 0.2s;
}

.category-link-item:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* すこしだけ遊んだゲームの見出し用調整 */
.category-card .category-item {
    margin-bottom: 12px;
}

.category-link-item:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* 「すこしだけ遊んだゲーム」の見出し上にも同様の点線と余白を適用 */
.category-card .category-item.with-divider {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(46, 49, 132, 0.6);
}

/* 右側メインリスト */
.game-main-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* --- 各ブロックの見出し --- */
.game-year-block .year-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none !important;
}

.game-year-block .year-heading::before {
    content: "●";
    color: #333333;
    font-size: 1rem;
}

/* ゲームタイトル一覧のリストスタイル */
.work-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.work-item {
    font-size: 0.95rem;
    color: #5c5552;
}

.work-desc {
    display: inline-block;
}

/* --- フッター --- */
.footer-area {
    text-align: center;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

footer {
    font-size: 0.75rem;
    color: #2F3285;
    font-weight: bold;
    letter-spacing: 1px;
}

/* --- 雨エフェクト用 --- */
.rain-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: 9999 !important;
}



/* --- しずくの形とアニメーション --- */
.raindrop {
    position: absolute;
    /* 上が尖って下が丸い「しずく型」を作る */
    width: 8px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4); /* 半透明の白（水色っぽくしたい場合は rgba(200, 220, 255, 0.6) などもおすすめ） */
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4); /* 柔らかい光沢感 */
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-20px) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(105vh) scale(1);
        opacity: 0;
    }
}
/* --- 横スクロールバーの発生を完全に防ぐ --- */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 雨のコンテナも画面幅を超えないように固定 */
.rain-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: 9999 !important;
}

/* --- スマホ対応レスポンシブ --- */
@media (max-width: 768px) {
    .game-content-layout {
        flex-direction: column;
    }
    .game-sidebar {
        width: 100%;
        position: static;
    }
}

/* 右側のゲームリスト内のリンクの色と下線をリセット */
.work-item a {
    color: var(--text-color); /* サイト共通の文字色を適用 */
    text-decoration: none;    /* 下線を消す */
    transition: opacity 0.2s; /* ホバー時のふわっとした変化 */
}

/* ホバーしたときに少し薄くする（お好みで調整してください） */
.work-item a:hover {
    opacity: 0.7;
    text-decoration: underline; /* ホバー時だけ下線を出す場合 */
}