@charset "UTF-8";
/*
Theme Name: GameWith
Theme URI: https://gamewith.jp/
Author: GameWith Team
Author URI: https://gamewith.jp/
Description: GameWith型AIツール情報ポータルサイト
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamewith
*/

/*
====================
1. CSS Variables & Reset
====================
*/
:root {
    /* Color Palette - AI Tools Theme */
    --color-primary: #41b8d5;        /* シアンブルー - メインカラー */
    --color-primary-dark: #2a93b0;   /* ダークシアン - ホバー用 */
    --color-primary-light: #ecf8ff;  /* ペールブルー - サブカラー */
    --color-accent: #f53779;         /* ブライトピンク - アクセントカラー */
    --color-link: #41b8d5;           /* リンク色 */
    
    /* Grayscale */
    --color-text: #2e3640;           /* ダークグレー - テキスト色 */
    --color-text-bold: #1a1f26;      /* より濃いグレー */
    --color-text-light: #6b7280;     /* ライトグレー */
    --color-text-lighter: #9ca3af;   /* より薄いグレー */
    --color-bg: #ffffff;             /* ホワイト - 背景色 */
    --color-bg-gray: #f9fafb;        /* 薄いグレー背景 */
    --color-bg-dark: #1f2937;        /* ダーク背景 */
    --color-border: #e5e7eb;         /* ボーダー色 */
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Typography */
    --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 15px;
    --font-size-lg: 18px;
    --font-size-xl: 22px;
    
    /* Layout */
    --container-width: 1200px; /* Slightly wider */
    --header-height: 60px;
    
    /* UI Elements */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg-gray);
    line-height: 1.6;
}

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul { list-style: none; }

/* Layout Containers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-main {
    min-height: 60vh;
    padding-bottom: var(--spacing-xl);
}

/*
====================
Header & Navigation
====================
*/
.site-header {
    background-color: var(--color-bg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    height: 60px;
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary); /* GameWith Blue */
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search {
    position: relative;
    width: 300px;
    margin: 0 var(--spacing-lg);
}

.search-field {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background-color: var(--color-bg-gray);
    font-size: var(--font-size-sm);
}

.search-submit {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
}

.header-user-menu {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-login, .btn-register {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.btn-login {
    color: var(--color-text);
}
.btn-login:hover {
    background-color: var(--color-bg-gray);
    text-decoration: none;
}

.btn-register {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.btn-register:hover {
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
}

/* Platform Nav (Secondary) */
.platform-nav {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
}

.platform-links {
    display: flex;
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-xs);
    white-space: nowrap;
}

.platform-links a {
    display: block;
    padding: 10px 0;
    color: var(--color-text);
    font-weight: 700;
    font-size: 14px;
    position: relative;
}

.platform-links a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/*
====================
Home Layout (2 Column)
====================
*/
.home-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    margin-top: 24px;
}

.home-main {
    min-width: 0;
}

/* Hero Carousel */
.hero-section {
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.hero-slide {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8));
}

.hero-content {
    position: relative;
    padding: 24px;
    color: white;
    width: 100%;
    z-index: 1;
}

.hero-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Pickup Banners */
.pickup-contents-section {
    margin-bottom: 24px;
}

.section-title-sm {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.pickup-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pickup-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 8px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.pickup-banner:hover {
    opacity: 0.9;
    text-decoration: none;
    color: white;
}

/* Ranking Section */
.ranking-section {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 16px;
    padding-left: 16px;
}

.platform-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 16px;
}

.platform-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
    color: var(--color-text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.platform-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.ranking-list {
    display: none;
}
.ranking-list.active {
    display: block;
}

.ranking-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.ranking-item-link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    width: 100%;
}
.ranking-item-link:hover .game-title {
    color: var(--color-primary);
    text-decoration: underline;
}

.rank-number {
    position: absolute;
    top: 8px;
    left: 0;
    width: 24px;
    height: 24px;
    background: #333;
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 2;
}

.ranking-item.rank-1 .rank-number { background: #FFD700; }
.ranking-item.rank-2 .rank-number { background: #C0C0C0; }
.ranking-item.rank-3 .rank-number { background: #CD7F32; }

.game-thumbnail {
    width: 80px;
    height: 45px; /* 16:9 */
    object-fit: cover;
    margin-left: 32px; /* space for rank */
    margin-right: 12px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    flex: 1;
}

.game-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
}

.game-excerpt {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 6px;
    line-height: 1.4;
}

.genre-tag {
    font-size: 11px;
    color: var(--color-primary);
    margin-right: 8px;
}

.ranking-more {
    margin-top: 16px;
}
.ranking-more a {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-bg-gray);
    padding: 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text);
}
.ranking-more a:hover {
    background: #e0e0e0;
    text-decoration: none;
}

/* News Section */
.news-section {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.news-item-row {
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
}
.news-item-row:last-child {
    border-bottom: none;
}

.news-item-link {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}
.news-item-link:hover .news-title {
    color: var(--color-primary);
    text-decoration: underline;
}

.news-thumbnail {
    width: 100px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}
.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
}

.news-label {
    font-size: 10px;
    padding: 2px 6px;
    background: #eee;
    color: #555;
    border-radius: 2px;
    margin-right: 6px;
    font-weight: 700;
}
.label-release { background: #ffe0b2; color: #e65100; }
.label-update { background: #e3f2fd; color: #1565c0; }

.news-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    display: inline;
}

.news-date {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.sidebar-nav li {
    border-bottom: 1px solid var(--color-border);
}
.sidebar-nav li:last-child { border-bottom: none; }

.sidebar-nav a {
    display: block;
    padding: 10px 0;
    color: var(--color-text);
    font-size: 14px;
    position: relative;
    padding-left: 16px;
}
.sidebar-nav a::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sidebar-game-item {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    font-size: 10px;
}
.sidebar-game-item img {
    border-radius: 6px;
    margin-bottom: 4px;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.sidebar-game-item:hover {
    color: var(--color-primary);
}

.community-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}
.community-list img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.community-list a {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: var(--color-text);
}
.community-list span {
    font-size: 11px;
    color: #777;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .home-container {
        grid-template-columns: 1fr;
    }
    .home-sidebar {
        display: none; /* Hide sidebar on tablet/mobile for simplicity or move to bottom */
    }
}

@media screen and (max-width: 600px) {
    .pickup-banners {
        grid-template-columns: 1fr;
    }
    .header-search { display: none; }
}

/* Footer (GameWith Style) */
.site-footer-gw {
    background: white;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

/* メインフッターリンク */
.footer-nav-main {
    margin-bottom: 16px;
}

.footer-links-main {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links-main li {
    margin: 0;
}

.footer-links-main a {
    color: var(--color-primary);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.footer-links-main a:hover {
    text-decoration: underline;
}

/* サブフッターリンク */
.footer-nav-sub {
    margin-bottom: 16px;
}

.footer-links-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.footer-links-sub li {
    margin: 0;
}

.footer-links-sub a {
    color: var(--color-primary);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.footer-links-sub a:hover {
    text-decoration: underline;
}

/* フッターコピーライト */
.footer-copyright-gw {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.footer-copyright-gw p {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-light);
}

/* ページトップに戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

.back-to-top i {
    font-size: 20px;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    .footer-links-main {
        gap: 12px 16px;
    }
    
    .footer-links-main a,
    .footer-links-sub a {
        font-size: 12px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/*
====================
GameWith Style Header
====================
*/

/* Header Top (Cyan Blue) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-top {
    background: linear-gradient(135deg, var(--color-primary) 0%, #5ac8e0 100%);
    padding: 12px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo-gw {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.site-logo-gw:hover {
    opacity: 0.9;
}

.site-logo-gw svg {
    width: 24px;
    height: 24px;
}

.header-home-link,
.header-search-link {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-home-link:hover,
.header-search-link:hover {
    opacity: 0.8;
}

.header-search-link i {
    margin-right: 4px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search-gw {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    width: 280px;
}

.search-field-gw {
    flex: 1;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
}

.search-submit-gw {
    background: none;
    border: none;
    padding: 8px 16px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.search-submit-gw:hover {
    color: var(--color-primary);
}

.header-user-menu-gw {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.2s;
}

.header-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.header-btn i {
    font-size: 12px;
}

/* Header Subtext */
.header-subtext {
    background: #f9f9f9;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-subtext .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.ad-notice {
    margin: 0;
    font-size: 11px;
    color: #999;
}

/* Main Navigation (Gray) */
.main-navigation-gw {
    background: #f4f4f4;
    border-bottom: 1px solid #e0e0e0;
}

.nav-links-gw {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-links-gw li {
    margin: 0;
}

.nav-links-gw a {
    display: block;
    padding: 14px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.nav-links-gw a:hover {
    background: #e8e8e8;
    border-bottom-color: var(--color-primary);
    text-decoration: none;
}

/* Responsive Header */
@media screen and (max-width: 900px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .header-search-gw {
        width: 200px;
    }
    
    .header-home-link,
    .header-search-link {
        font-size: 12px;
    }
    
    .header-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .nav-links-gw {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links-gw a {
        padding: 12px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
}

/*
====================
GameWith Style Homepage
====================
*/

/* PR Banner Section */
.pr-banner-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 24px 0;
    margin-bottom: 24px;
}

.container-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.pr-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.pr-banner-left {
    flex-shrink: 0;
}

.pr-banner-left img {
    max-height: 200px;
    width: auto;
}

.pr-banner-center, .pr-banner-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pr-label {
    background: var(--color-accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
}

.pr-banner-ad {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pr-banner-ad img {
    display: block;
    width: 100%;
    height: auto;
}

/* Home Container - 3 Column Layout */
.home-container-gw {
    display: grid;
    grid-template-columns: 240px 1fr 336px;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* Left Sidebar */
.home-sidebar-left {
    position: sticky;
    top: 80px;
    align-self: start;
}

.widget-title-gw {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.sidebar-nav-gw {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-gw li {
    border-bottom: 1px solid #eee;
}

.sidebar-nav-gw li:last-child {
    border-bottom: none;
}

.sidebar-nav-gw a {
    display: block;
    padding: 10px 0;
    color: var(--color-primary);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-nav-gw a:hover {
    text-decoration: underline;
    color: var(--color-primary-dark);
}

/* Main Content Area */
.home-main-content {
    min-width: 0;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.article-card-gw {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.article-card-gw:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.article-card-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    border-radius: 3px;
}

.badge-release { background: var(--color-accent); }
.badge-update { background: #FF9900; }
.badge-news { background: var(--color-primary); }
.badge-event { background: #9933FF; }
.badge-feature { background: #00CC66; }
.badge-upcoming { background: var(--color-accent); }

.article-card-body {
    padding: 12px;
}

.article-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #333;
}

.article-card-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 8px;
}

.article-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hashtag {
    display: inline-block;
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 500;
}

/* Ranking Section */
.ranking-section-gw {
    background: white;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-title-gw {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.section-subtitle-gw {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.platform-tabs-gw {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.platform-tab-gw {
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.platform-tab-gw.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.platform-tab-gw:hover {
    color: var(--color-primary);
}

.ranking-list-gw {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item-gw {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.2s;
}

.ranking-item-gw:hover {
    background: #f9f9f9;
    border-color: var(--color-primary);
}

.rank-number-gw {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #999;
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.rank-number-gw.rank-1 { background: #FFD700; color: #333; }
.rank-number-gw.rank-2 { background: #C0C0C0; color: #333; }
.rank-number-gw.rank-3 { background: #CD7F32; color: white; }

.ranking-item-thumb {
    width: 80px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.ranking-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-item-content {
    flex: 1;
    min-width: 0;
}

.ranking-item-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ranking-item-title a {
    color: #333;
    text-decoration: none;
}

.ranking-item-title a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.ranking-item-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Right Sidebar */
.home-sidebar-right {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-widget-gw {
    background: white;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.widget-title-gw-small {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.game-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.game-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: opacity 0.2s;
}

.game-icon-item:hover {
    opacity: 0.7;
}

.game-icon-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
}

.game-icon-name {
    font-size: 11px;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
}

.more-link-gw {
    text-align: right;
}

.more-link-gw a {
    font-size: 12px;
    color: var(--color-primary);
    text-decoration: none;
}

.more-link-gw a:hover {
    text-decoration: underline;
}

/* Discord Widget */
.discord-widget .discord-content {
    text-align: center;
}

.discord-widget img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 8px;
}

.discord-link {
    display: inline-block;
    padding: 8px 16px;
    background: #5865F2;
    color: white;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
}

.discord-link:hover {
    background: #4752C4;
}

/* Community List */
.community-list-gw {
    list-style: none;
    padding: 0;
    margin: 0;
}

.community-list-gw li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.community-list-gw li:last-child {
    border-bottom: none;
}

.community-list-gw a {
    text-decoration: none;
    color: inherit;
}

.community-info {
    display: flex;
    flex-direction: column;
}

.community-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.community-count {
    font-size: 11px;
    color: #999;
}

/* Responsive - GameWith Homepage */
@media screen and (max-width: 1200px) {
    .home-container-gw {
        grid-template-columns: 200px 1fr 280px;
        gap: 16px;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
    }
    
    .game-icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .home-container-gw {
        grid-template-columns: 1fr;
    }
    
    .home-sidebar-left,
    .home-sidebar-right {
        position: static;
    }
    
    .pr-banner-content {
        flex-direction: column;
    }
    
    .pr-banner-left {
        display: none;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/*
====================
Single News Page
====================
*/

.single-news-page {
    background: #F4F6F8;
    padding: 24px 0;
}

.news-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 336px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.news-content {
    background: white;
    border-radius: 6px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* News Header */
.news-category-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    border-radius: 3px;
    margin-bottom: 12px;
}

.badge-release { background: var(--color-accent); }
.badge-update { background: #FF9900; }
.badge-event { background: #9933FF; }
.badge-industry { background: var(--color-primary); }

.news-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #333;
}

.news-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #777;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.news-meta i {
    margin-right: 4px;
}

/* News Thumbnail */
.news-thumbnail {
    margin-bottom: 24px;
    border-radius: 6px;
    overflow: hidden;
}

.news-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* News Body */
.news-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 32px;
}

.news-body p {
    margin-bottom: 16px;
}

.news-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    padding-left: 12px;
    border-left: 4px solid var(--color-primary);
}

.news-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.news-body ul, .news-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.news-body li {
    margin-bottom: 8px;
}

.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 16px 0;
}

/* News Source */
.news-source {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.news-source i {
    margin-right: 8px;
    color: var(--color-primary);
}

.news-source a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.news-source a:hover {
    text-decoration: underline;
}

/* News Tags */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.news-tags i {
    color: #999;
}

.tag-link {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #666;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-link:hover {
    background: var(--color-primary);
    color: white;
    text-decoration: none;
}

/* Social Share */
.social-share {
    margin-bottom: 40px;
}

.share-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.8;
    text-decoration: none;
}

.share-btn.twitter { background: #1DA1F2; }
.share-btn.facebook { background: #1877F2; }
.share-btn.line { background: #00B900; }

/* Related News */
.related-news {
    padding-top: 32px;
    border-top: 2px solid #eee;
}

.related-news .section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

.related-news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.related-news-item {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s;
}

.related-news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

.related-news-link {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
}

.related-news-thumb {
    width: 100px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.related-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-news-content {
    flex: 1;
}

.related-news-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 6px;
    color: #333;
}

.related-news-date {
    font-size: 12px;
    color: #999;
}

/* News Sidebar */
.news-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.news-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-widget-list li {
    border-bottom: 1px solid #eee;
}

.news-widget-list li:last-child {
    border-bottom: none;
}

.news-widget-list a {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: #333;
}

.news-widget-list a:hover {
    color: var(--color-primary);
}

.news-widget-list time {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
    font-weight: 700;
}

.news-widget-list span {
    font-size: 13px;
    line-height: 1.4;
}

/* Sidebar AI List */
.sidebar-ai-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-ai-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.sidebar-ai-item:hover {
    border-color: var(--color-primary);
    background: #f9f9f9;
}

.sidebar-ai-item .rank-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #999;
    color: white;
    font-weight: 700;
    font-size: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.sidebar-ai-item .rank-badge.rank-1 { background: #FFD700; color: #333; }
.sidebar-ai-item .rank-badge.rank-2 { background: #C0C0C0; color: #333; }
.sidebar-ai-item .rank-badge.rank-3 { background: #CD7F32; color: white; }

.sidebar-ai-item .ai-thumb {
    width: 50px;
    height: 28px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-ai-item .ai-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-ai-item .ai-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

/* Ad Widget */
.ad-widget .ad-box {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.ad-widget img {
    display: block;
    width: 100%;
    height: auto;
}

/* Responsive - Single News */
@media screen and (max-width: 900px) {
    .news-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 22px;
    }
    
    .news-sidebar {
        position: static;
    }
    
    .related-news-list {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
    }
}

/*
=================================================================================
認証ページ（ログイン・新規登録）
=================================================================================
*/

.auth-page {
    padding: 60px 0;
    background: var(--color-bg-alt);
    min-height: calc(100vh - 200px);
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--color-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 10px;
}

.auth-description {
    text-align: center;
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--color-primary-light);
    border-radius: 6px;
}

.auth-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-message.error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.auth-message.success {
    background: #efe;
    color: #3a3;
    border-left: 4px solid #3a3;
}

.auth-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group .required {
    color: var(--color-accent);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(65, 184, 213, 0.1);
}

.form-hint {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 5px;
    margin-bottom: 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
}

.form-actions {
    margin-top: 30px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-lg {
    padding: 14px 20px;
    font-size: 16px;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.auth-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .auth-page {
        padding: 30px 0;
    }
    
    .auth-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .auth-title {
        font-size: 24px;
    }
}
