/* ==========================================
   Articles List Page Styles (columns/news)
   ========================================== */

/* Main Content Area */
.articles-main {
    padding: 64px 0;
    background-color: #f4f4f5;
    min-height: 100vh;
}

.articles-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Page Title Section */
.articles-title-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding-bottom: 32px;
    width: 100%;
}

.articles-title-en-wrapper {
    border-bottom: 4px solid #FFFF00;
    padding-bottom: 8px;
}

.articles-title-en {
    font-family: 'Readex Pro', sans-serif;
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
    color: #18181b;
    text-align: center;
}

.articles-title-ja {
    font-size: 30px;
    line-height: 38px;
    font-weight: 700;
    color: #18181b;
    text-align: center;
}

/* Category Filter */
.articles-category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.articles-category-btn {
    padding: 8px 20px;
    border-radius: 9999px;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    font-size: 14px;
}

.articles-category-btn-active {
    background-color: #18181b;
    color: white;
}

.articles-category-btn-inactive {
    background-color: white;
    border: 1px solid #18181b;
    color: #18181b;
}

.articles-category-btn-inactive:hover {
    background-color: #f4f4f5;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto 48px;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Article Card */
.article-card-link {
    display: block;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0px 0px 1px 0px rgba(24,24,27,0.3), 0px 4px 8px 0px rgba(24,24,27,0.1);
    text-decoration: none;
}

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

.article-card-thumbnail {
    height: 202.86px;
    overflow: hidden;
}

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

.article-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
}

.article-card-category-column {
    background-color: white;
    border: 1px solid #18181b;
    color: #18181b;
}

.article-card-category-news {
    background-color: #FFFF00;
    color: #18181b;
}

.article-card-date {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #52525b;
}

.article-card-title {
    font-size: 16px;
    font-weight: 500;
    color: #292524;
    line-height: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.articles-pagination {
    display: flex;
    justify-content: center;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Previous/Next buttons */
.pagination-prev,
.pagination-next {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px;
    border-radius: 9999px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #18181b;
    text-decoration: none;
    transition: opacity 0.3s;
}

.pagination-prev:hover,
.pagination-next:hover {
    opacity: 0.6;
}

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

.pagination-disabled:hover {
    opacity: 0.3;
}

.pagination-chevron {
    width: 24px;
    height: 24px;
}

/* Page numbers container */
.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Page number */
.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #18181b;
    text-decoration: none;
    letter-spacing: 1.4px;
    transition: background-color 0.3s;
}

.pagination-number:hover {
    background-color: #e4e4e7;
}

/* Current page */
.pagination-current {
    background-color: #18181b;
    color: white;
}

.pagination-current:hover {
    background-color: #18181b;
}

/* Ellipsis */
.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    color: #52525b;
    letter-spacing: 1.6px;
}

/* Empty State */
.articles-empty {
    text-align: center;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.articles-empty-icon {
    width: 64px;
    height: 64px;
    color: #a1a1aa;
}

.articles-empty-text {
    color: #78716c;
    font-size: 18px;
}

.articles-empty-link {
    display: inline-block;
    margin-top: 24px;
    color: #18181b;
    font-weight: 700;
    text-decoration: underline;
    transition: opacity 0.3s;
}

.articles-empty-link:hover {
    opacity: 0.5;
}

/* Back to Top Button */
.articles-back-section {
    text-align: center;
    margin-top: 64px;
}

.articles-back-btn {
    display: inline-block;
    background-color: #18181b;
    color: white;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 9999px;
    font-size: 18px;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.articles-back-btn:hover {
    background-color: #a1a1aa;
}

/* ==========================================
   Article Detail Page Styles
   ========================================== */

.article-detail-main {
    padding: 24px 0 64px;
    background-color: #f4f4f5;
    min-height: 100vh;
}

.article-detail-container {
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .article-detail-container {
        padding: 0 72.5px;
    }
}

/* Breadcrumb */
.article-breadcrumb {
    margin-bottom: 32px;
}

.article-breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #52525b;
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-breadcrumb-link {
    color: #52525b;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.article-breadcrumb-link:hover {
    color: #18181b;
    text-decoration: underline;
}

.article-breadcrumb-separator {
    color: #a1a1aa;
    flex-shrink: 0;
}

.article-breadcrumb-current {
    color: #27272a;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.article-detail-content {
    background-color: white;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0px 0px 1px 0px rgba(24,24,27,0.3), 0px 4px 8px 0px rgba(24,24,27,0.1);
}

@media (min-width: 768px) {
    .article-detail-content {
        padding: 48px;
    }
}

.article-detail-header {
    margin-bottom: 32px;
}

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

.article-detail-title {
    font-size: 24px;
    font-weight: 700;
    color: #18181b;
    line-height: 1.4;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .article-detail-title {
        font-size: 32px;
    }
}

.article-detail-thumbnail-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.article-detail-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-body {
    color: #44403c;
    font-family: 'Noto Sans JP', sans-serif!important;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.04em;
}

.article-detail-body * {
    font-family: inherit!important;
}

@media (min-width: 768px) {
    .article-detail-body {
        font-size: 17px;
    }
}

.article-detail-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: #18181b;
    margin: 48px 0 20px;
}

@media (min-width: 768px) {
    .article-detail-body h2 {
        font-size: 24px;
    }
}

.article-detail-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #18181b;
    margin: 32px 0 16px;
}

@media (min-width: 768px) {
    .article-detail-body h3 {
        font-size: 20px;
    }
}

.article-detail-body p {
    margin-bottom: 24px;
}

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

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

.article-detail-body a {
    color: #2563eb;
    text-decoration: underline;
}

.article-detail-body a:hover {
    opacity: 0.7;
}

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

/* Back Navigation */
.article-back-nav {
    margin-top: 48px;
    text-align: center;
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #18181b;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s;
}

.article-back-link:hover {
    opacity: 0.5;
}

/* Related Articles Section */
.article-related-section {
    max-width: 1280px;
    margin: 80px auto 0;
    padding: 0 24px;
}

.article-related-title {
    font-size: 30px;
    font-weight: 700;
    color: #18181b;
    text-align: center;
    margin-bottom: 32px;
}
