@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #666666;
    --border-color: #f0f0f0;
    --accent-color: #000000;
    --header-height: 64px;
    --footer-height: auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Noto Sans JP", sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 48px;
    white-space: nowrap;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

nav.main-nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
}

nav.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 8px 16px 8px 36px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: #f9f9f9;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
}

.search-box input:focus {
    background: #fff;
    border-color: #ddd;
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Hero */
.hero {
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 48px 32px;
    padding: 64px 0;
}

.article-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-card:hover h3 {
    color: #555;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.article-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    color: var(--text-muted);
}

.article-date {
    font-size: 0.75rem;
    color: #999;
}

.article-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Footer */
footer {
    background: #fafafa;
    border-top: 1px solid var(--border-color);
    padding: 64px 20px;
    margin-top: 40px;
    text-align: center;
}

.footer-main {
    max-width: 600px;
    margin: 0 auto 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-main .logo {
    margin-bottom: 16px;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 0;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 480px;
}

.footer-links-secondary {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: nowrap;
}

.footer-links-secondary a {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links-secondary a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: #999;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social-link {
    color: #bbb;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-link:hover {
    color: var(--accent-color);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border-color);
    height: 64px;
    z-index: 1000;
}

.mobile-nav .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    color: #999;
}

.mobile-nav-item.active {
    color: var(--accent-color);
}

/* Year Filters */
.year-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.year-filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.year-filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.year-filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Article List Section */
.row-link {
    color: inherit;
    text-decoration: none;
}

.article-list-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 24px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #fafafa;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tbody tr:hover {
    background-color: #fcfcfc;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    background: #eee;
}

.status-published {
    background-color: #e6f4ea;
    color: #1e8e3e;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: #999;
    background: #f9f9f9;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.page-num:hover {
    border-color: #999;
}

.page-num.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Article Detail */
.article-detail {
    padding: 32px 0 16px;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
    padding: 0 20px;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
}

.article-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.article-main-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 48px;
    border-radius: 8px;
    overflow: hidden;
    padding: 0 20px;
}

.article-main-image img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 48px 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 40px 0 20px;
}

.article-body p {
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #333;
}

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

.article-body li {
    margin-bottom: 12px;
}

.article-body blockquote {
    margin: 40px 0;
    padding: 32px;
    background: #fafafa;
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
}

.article-body figure {
    margin: 40px 0;
}

.article-body figure img {
    width: 100%;
    border-radius: 4px;
}

.article-body figcaption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.article-body table {
    margin: 24px 0;
}

.article-body thead th {
    background: #f0f0f0;
}

.article-footer {
    max-width: 800px;
    margin: 48px auto 0;
    padding: 32px 20px;
    border-top: 1px solid var(--border-color);
}

.article-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 4px 0;
}

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

.share-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-icon:hover {
    border-color: var(--accent-color);
    color: #fff;
    background: var(--accent-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 20px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    header .main-nav, header .search-box {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .mobile-nav {
        display: block;
    }

    body {
        padding-bottom: 64px;
    }

    .footer-links-secondary {
        gap: 12px;
    }

    .footer-links-secondary a {
        font-size: 0.75rem;
    }

    .footer-main .logo {
        font-size: 1.25rem;
    }
}
