/* トップページ専用CSS（パステルサイバー調・ロゴ統一） */

/* リンクの基本設定 */
a {
    color: #6a1b9a !important;
    text-decoration: underline;
    transition: color 0.2s;
}

a:visited {
    color: #00838f !important;
}

a:hover {
    color: #f8b6e0 !important;
    text-decoration: none;
}

.board-link {
    color: #6a1b9a !important;
    text-decoration: none !important;
}

.board-link:visited {
    color: #00838f !important;
}

.board-link:hover {
    color: #f8b6e0 !important;
    text-decoration: underline;
}

body {
    background: linear-gradient(135deg, #f6f3ff 0%, #e0f7fa 40%, #f3e6ff 80%, #f6f3ff 100%) !important;
    font-family: "MS Pゴシック", monospace;
    font-size: 12px;
    color: #22223b;
}

/* ナビバー・ロゴ */
.header-container {
    width: 100%;
    background: linear-gradient(90deg, #c3b6ff 0%, #b6f8f8 100%);
    border-bottom: 2px solid #b6b6f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 8px 0;
    min-height: 60px;
}

.logo-area {
    display: none !important;
}

/* ロゴ画像リンク用 */
.header-logo-link {
    display: inline-block;
    line-height: 0;
    transition: filter 0.2s;
}

.header-logo-link img {
    display: block;
    max-height: 48px;
    width: auto;
    border: none;
    background: none;
}

.header-logo-link:hover {
    filter: brightness(1.15) drop-shadow(0 0 4px #b6f8f8);
    cursor: pointer;
}

/* トップページレイアウト */
.top-page {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
    background: #f7f5ff !important;
    border: 1px solid #c3b6ff !important;
    box-shadow: 0 2px 8px #e0eaff !important;
}

.main-content {
    flex: 1;
}

.sidebar-area {
    width: 300px;
    flex-shrink: 0;
    background: #f6f3ff !important;
    border: 1px solid #c3b6ff !important;
}

/* お知らせセクション */
.announcement-section {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(90deg, #e0f7fa 0%, #f3e6ff 100%) !important;
    border: 2px solid #b6f8f8 !important;
    border-radius: 0;
}

.announcement-title {
    color: #6a1b9a !important;
    background: #e0f7fa !important;
    border-bottom: 2px solid #c3b6ff !important;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
    padding-bottom: 5px;
}

.announcement-content {
    color: #22223b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.announcement-date {
    color: #8888aa;
    font-size: 11px;
    text-align: right;
}

/* トップ絵セクション */
.top-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.top-image {
    max-width: 55% !important;
    width: 55% !important;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
    /*border: 2px solid #b6f8f8;*/
    background: #fff;
    transition: transform 0.3s;
}

.welcome-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f6f3ff !important;
    border: 1px solid #c3b6ff !important;
    border-radius: 0;
}

.category-section {
    margin-bottom: 40px;
}

.category-title {
    font-size: 15px;
    color: #6a1b9a !important;
    background: #e0f7fa !important;
    border-bottom: 2px solid #c3b6ff !important;
    font-family: "MS Pゴシック", monospace;
    margin-bottom: 10px;
    padding: 8px 8px 4px 8px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.board-card {
    border: 1px solid #c3b6ff !important;
    background: #f6f3ff !important;
    font-family: "MS Pゴシック", monospace;
}

.board-card:hover {
    background: #b6f8f8 !important;
}

.board-header {
    background: #e0f7fa !important;
    color: #6a1b9a !important;
    border-bottom: 1px solid #c3b6ff !important;
    font-size: 13px;
    font-family: "MS Pゴシック", monospace;
}

.board-title {
    color: #6a1b9a !important;
    font-size: 13px;
    font-weight: bold;
}

.board-subtitle {
    color: #8888aa;
    font-size: 11px;
}

.board-stats {
    padding: 8px 15px;
    background: #b6f8f8 !important;
    border-bottom: 1px solid #c3b6ff !important;
    font-size: 11px;
}

.stat {
    margin-right: 15px;
    color: #8888aa;
}

.board-description {
    background: #f6f3ff !important;
    color: #22223b !important;
    font-size: 12px;
    font-family: "MS Pゴシック", monospace;
}

.sidebar-section {
    margin-bottom: 20px;
    background: #f6f3ff !important;
    border: 1px solid #c3b6ff !important;
    font-family: "MS Pゴシック", monospace;
}

.sidebar-section h3 {
    margin: 0 0 10px 0;
    font-size: 12px;
    font-weight: bold;
    color: #6a1b9a !important;
    border-bottom: 1px solid #c3b6ff !important;
    padding-bottom: 3px;
}

.site-stats {
    font-size: 11px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    padding: 3px 0;
    border-bottom: 1px dotted #b6f8f8;
}

.stat-label {
    color: #22223b;
}

.stat-value {
    font-weight: bold;
    color: #6a1b9a;
}

.recent-threads {
    font-size: 11px;
}

.recent-thread-item {
    margin-bottom: 8px;
    padding: 3px 0;
    border-bottom: 1px dotted #b6f8f8;
    background: #b6f8f8 !important;
    border: 1px solid #c3b6ff !important;
}

.thread-board {
    font-size: 10px;
    color: #8888aa;
    margin-bottom: 2px;
}

.thread-meta {
    font-size: 10px;
    color: #b6b6f8;
    margin-top: 2px;
}

.news-list {
    font-size: 11px;
}

.news-item {
    margin-bottom: 6px;
    padding: 3px 0;
    border-bottom: 1px dotted #b6f8f8;
    background: #b6f8f8 !important;
    border: 1px solid #c3b6ff !important;
}

.news-date {
    font-size: 10px;
    color: #8888aa;
    margin-right: 10px;
}

.news-title {
    color: #22223b;
}

.admin-links {
    text-align: center;
}

.admin-links a {
    display: inline-block;
    padding: 6px 12px;
    background: #b6f8f8 !important;
    color: #6a1b9a !important;
    text-decoration: none !important;
    border: 1px solid #c3b6ff !important;
    border-radius: 0;
    font-size: 11px;
    transition: background 0.2s, color 0.2s;
}

.admin-links a:visited {
    color: #00838f !important;
}

.admin-links a:hover {
    background: #f8b6e0 !important;
    color: #6a1b9a !important;
}

/* --- サイバー×90年代風装飾 --- */
.ch-title {
    font-size: 16px;
    color: #6a1b9a;
    font-weight: bold;
    margin: 18px 0 6px 0;
    padding: 0;
    font-family: "MS Pゴシック", monospace;
}

.ch-hr {
    border: none;
    border-top: 2px solid #c3b6ff;
    margin: 6px 0 12px 0;
}

.res-box {
    background: #fff;
    border: 1px solid #c3b6ff;
    margin: 8px 0;
    padding: 8px 10px;
    font-size: 12px;
    font-family: "MS Pゴシック", monospace;
    box-shadow: none;
}

ul.ch-list {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
}

ul.ch-list li {
    border-bottom: 1px dotted #c3b6ff;
    padding: 4px 0;
    font-size: 12px;
}

ul.ch-list li:last-child {
    border-bottom: none;
}

/* 見出しの下線強調 */
h2, h3, h4 {
    border-bottom: 1px solid #c3b6ff;
    color: #6a1b9a;
    font-size: 14px;
    margin-bottom: 8px;
    padding-bottom: 2px;
    font-family: "MS Pゴシック", monospace;
}

@media (max-width: 768px) {
    .top-page {
        flex-direction: column;
        padding: 10px;
    }
    
    .sidebar-area {
        width: 100%;
        order: -1;
    }
    
    .board-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ROCm / AMD inspired dark theme override --- */
a,
.board-link,
.board-title,
.admin-links a {
    color: var(--amd-link) !important;
}

a:visited,
.board-link:visited {
    color: var(--amd-link-visited) !important;
}

a:hover,
.board-link:hover {
    color: #ffd0d2 !important;
}

body {
    background:
        radial-gradient(circle at top right, rgba(215, 25, 32, 0.30), transparent 24%),
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.05), transparent 22%),
        linear-gradient(135deg, #040405 0%, #0b0c10 48%, #160507 100%) !important;
    color: var(--amd-text) !important;
}

.header-container {
    background: linear-gradient(120deg, rgba(8, 9, 11, 0.98) 0%, rgba(34, 10, 14, 0.96) 58%, rgba(215, 25, 32, 0.92) 100%) !important;
    border-bottom: 1px solid var(--amd-border-strong) !important;
}

.top-page {
    background: linear-gradient(180deg, rgba(18, 20, 25, 0.95), rgba(12, 13, 16, 0.98)) !important;
    border: 1px solid var(--amd-border-strong) !important;
    box-shadow: var(--amd-shadow) !important;
}

.sidebar-area,
.welcome-section,
.board-card,
.sidebar-section,
.res-box {
    background: linear-gradient(180deg, rgba(25, 27, 33, 0.96), rgba(15, 16, 19, 0.97)) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 30px rgba(0, 0, 0, 0.28) !important;
}

.announcement-section {
    background: linear-gradient(120deg, rgba(40, 12, 16, 0.98), rgba(18, 19, 22, 0.96) 62%, rgba(20, 20, 24, 0.95) 100%) !important;
    border: 1px solid var(--amd-border-strong) !important;
    border-left: 4px solid var(--amd-accent) !important;
    box-shadow: var(--amd-shadow) !important;
}

.announcement-title,
.category-title,
.board-header,
.sidebar-section h3,
h2,
h3,
h4 {
    color: var(--amd-text) !important;
    background: linear-gradient(90deg, rgba(215, 25, 32, 0.18), rgba(215, 25, 32, 0.04)) !important;
    border-bottom: 1px solid var(--amd-border-strong) !important;
    letter-spacing: 0.05em;
}

.announcement-content,
.board-description,
.stat-label,
.news-title,
.res-box,
ul.ch-list li {
    color: var(--amd-muted) !important;
}

.announcement-date,
.board-subtitle,
.stat,
.stat-value,
.thread-board,
.thread-meta,
.news-date {
    color: #f0adb0 !important;
}

.board-stats,
.recent-thread-item,
.news-item {
    background: linear-gradient(180deg, rgba(19, 20, 24, 0.98), rgba(13, 14, 16, 0.98)) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: var(--amd-muted) !important;
}

.board-card:hover {
    background: linear-gradient(180deg, rgba(42, 16, 20, 0.98), rgba(19, 20, 24, 0.98)) !important;
    border-color: var(--amd-border-strong) !important;
    transform: translateY(-2px);
}

.board-link {
    display: block;
    text-decoration: none !important;
}

.board-description {
    background: linear-gradient(180deg, rgba(14, 15, 18, 0.98), rgba(10, 11, 14, 0.98)) !important;
    color: #e9edf5 !important;
    padding: 10px 14px 14px !important;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.board-subtitle {
    color: #ffd0d2 !important;
}

.top-image {
    background: linear-gradient(180deg, #17191d 0%, #090a0d 100%) !important;
    border: 1px solid var(--amd-border) !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45) !important;
}

.stat-item,
ul.ch-list li,
.news-item,
.recent-thread-item {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.admin-links a {
    background: linear-gradient(180deg, #e52a31 0%, #8b1218 100%) !important;
    color: #ffffff !important;
    border: 1px solid var(--amd-border-strong) !important;
}

.admin-links a:visited {
    color: #ffffff !important;
}

.admin-links a:hover {
    background: linear-gradient(180deg, #ff4851 0%, #a5161d 100%) !important;
    color: #ffffff !important;
}
