/* yougaku-data.com - 洋楽データベース CSS */
/* Western Music Database - Japanese Music Info Site */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a237e;
    --secondary-color: #3949ab;
    --accent-color: #ff6f00;
    --background: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border-color: #e0e0e0;
    --header-bg: #0d1b4c;
    --link-color: #1565c0;
    --hover-color: #0d47a1;
    --gold: #ffc107;
    --silver: #9e9e9e;
    --bronze: #8d6e63;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 14px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Site Header */
.site-header {
    background: linear-gradient(135deg, var(--header-bg) 0%, var(--primary-color) 100%);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    color: #fff;
}

.logo-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 0.65rem;
    opacity: 0.7;
    letter-spacing: 2px;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li a {
    display: block;
    padding: 8px 15px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
}

/* Header Search */
.header-search {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-search input {
    padding: 8px 15px;
    border: none;
    background: transparent;
    color: #fff;
    width: 200px;
    outline: none;
    font-size: 13px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header-search button {
    padding: 8px 15px;
    background: var(--accent-color);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.header-search button:hover {
    background: #e65100;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    padding: 30px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.main-column {
    min-width: 0;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.section-icon svg {
    width: 100%;
    height: 100%;
}

.chart-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 15px;
}

.view-all {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Chart Section */
.chart-section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Chart Table */
.chart-table {
    overflow-x: auto;
}

.chart-table table {
    width: 100%;
    border-collapse: collapse;
}

.chart-table th,
.chart-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.chart-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-table tbody tr:hover {
    background: #f8faff;
}

.chart-table .rank {
    width: 60px;
    text-align: center;
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    font-size: 0.9rem;
}

.chart-table tbody tr:nth-child(1) .rank-num {
    background: var(--gold);
    color: #333;
}

.chart-table tbody tr:nth-child(2) .rank-num {
    background: var(--silver);
    color: #fff;
}

.chart-table tbody tr:nth-child(3) .rank-num {
    background: var(--bronze);
    color: #fff;
}

.chart-table .change {
    width: 60px;
    text-align: center;
}

.up {
    color: #4caf50;
    font-weight: 600;
}

.down {
    color: #f44336;
    font-weight: 600;
}

.stay {
    color: var(--text-secondary);
}

.chart-table .song a {
    font-weight: 600;
    color: var(--text-primary);
}

.chart-table .song a:hover {
    color: var(--link-color);
}

.chart-table .artist a {
    color: var(--text-secondary);
}

.chart-table .artist a:hover {
    color: var(--link-color);
}

.chart-table .weeks {
    width: 60px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Albums Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.album-card {
    text-align: center;
}

.album-card .album-rank {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.album-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.album-cover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #555 0%, #333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-placeholder svg {
    width: 70%;
    height: 70%;
}

.album-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.3;
}

.album-info h4 a {
    color: var(--text-primary);
}

.album-info h4 a:hover {
    color: var(--link-color);
}

.album-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.album-info p a {
    color: var(--text-secondary);
}

.album-info p a:hover {
    color: var(--link-color);
}

/* News Section */
.news-section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.news-date {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.news-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}

.news-item h3 a {
    color: var(--text-primary);
}

.news-item h3 a:hover {
    color: var(--link-color);
}

.news-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Chart Categories */
.chart-categories {
    list-style: none;
}

.chart-categories li {
    border-bottom: 1px solid var(--border-color);
}

.chart-categories li:last-child {
    border-bottom: none;
}

.chart-categories a {
    display: block;
    padding: 10px 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: padding-left 0.2s;
}

.chart-categories a:hover {
    padding-left: 10px;
    color: var(--link-color);
    text-decoration: none;
}

/* Artist List */
.artist-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.artist-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.artist-avatar {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.artist-list a {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.artist-list a:hover {
    color: var(--link-color);
}

/* Genre Tags */
.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genre-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f4f8;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.genre-tag:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* Decade Links */
.decade-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.decade-link {
    display: block;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.decade-link:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* Footer */
.site-footer {
    background: var(--header-bg);
    color: #fff;
    margin-top: 40px;
}

.footer-content {
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .main-nav {
        order: 3;
        width: 100%;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-menu li a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .albums-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-all {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .chart-section,
    .news-section,
    .sidebar-widget {
        padding: 15px;
    }

    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .chart-table .artist {
        display: none;
    }

    .decade-links {
        grid-template-columns: repeat(3, 1fr);
    }
}
