/* ===========================================
   Archive Improvements - 記事一覧ページ強化版
   Magazine-style modern layout with animations
   =========================================== */

/* Base Variables */
:root {
    --archive-gap: 24px;
    --card-radius: 20px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===========================================
   Archive Hero Enhancement
   =========================================== */

.archive-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #059669 0%, #10b981 40%, #34d399 100%);
}

.archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.archive-hero__container {
    position: relative;
    z-index: 1;
}

.archive-hero__content {
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s var(--transition-smooth) 0.2s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.archive-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.archive-hero__label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

.archive-hero__title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.archive-hero__description {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.95;
    margin: 0 0 28px;
    max-width: 600px;
}

.archive-hero__stats {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.archive-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.archive-hero__stat-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.archive-hero__stat-label {
    font-size: 13px;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* Floating shapes decoration */
.archive-hero__shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.archive-hero__shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.archive-hero__shape--1 {
    width: 300px;
    height: 300px;
    top: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}

.archive-hero__shape--2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 20%;
    animation: float 6s ease-in-out infinite reverse;
}

.archive-hero__shape--3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    right: 10%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -20px) rotate(5deg); }
    50% { transform: translate(-5px, -10px) rotate(-3deg); }
    75% { transform: translate(15px, 5px) rotate(8deg); }
}

/* ===========================================
   Category Filter Tabs
   =========================================== */

.archive-filter {
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.archive-filter__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

.archive-filter__inner {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.archive-filter__tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.archive-filter__tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.archive-filter__tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.archive-filter__tab:hover {
    color: var(--accent);
    background: var(--accent-bg);
}

.archive-filter__tab.is-active {
    color: #ffffff;
    border-color: transparent;
}

.archive-filter__tab.is-active::before {
    opacity: 1;
}

.archive-filter__tab-count {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.archive-filter__tab.is-active .archive-filter__tab-count {
    background: rgba(255, 255, 255, 0.25);
}

.archive-filter__view {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-subtle);
    border-radius: 10px;
}

.archive-filter__view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.archive-filter__view-btn:hover {
    color: var(--text-primary);
    background: #ffffff;
}

.archive-filter__view-btn.is-active {
    color: var(--accent);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.archive-filter__info {
    font-size: 14px;
    color: var(--text-secondary);
}

.archive-filter__info strong {
    color: var(--accent);
    font-weight: 700;
}

.archive-filter__result {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===========================================
   Archive Content Grid
   =========================================== */

.archive-content {
    padding: 60px 0 120px;
    background: linear-gradient(180deg, #f5f5f5 0%, #ebebeb 100%);
}

.archive-content__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

/* ===========================================
   Featured Article
   =========================================== */

.featured-article {
    margin-bottom: 64px;
    opacity: 0;
    transform: translateY(40px);
}

.featured-article.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s var(--transition-smooth);
}

.featured-article__link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: #ffffff;
    border-radius: var(--card-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.4s var(--transition-smooth);
}

.featured-article__link:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
}

.featured-article__image {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.featured-article__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.featured-article__link:hover .featured-article__img {
    transform: scale(1.05);
}

.featured-article__badge {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.featured-article__badge svg {
    width: 14px;
    height: 14px;
}

.featured-article__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.featured-article__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.featured-article__category {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 6px 14px;
    border-radius: 6px;
}

.featured-article__date {
    font-size: 14px;
    color: var(--text-muted);
}

.featured-article__title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 20px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.featured-article__excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 28px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-article__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.3s ease;
}

.featured-article__cta svg {
    transition: transform 0.3s var(--transition-bounce);
}

.featured-article__link:hover .featured-article__cta {
    color: var(--accent-dark);
}

.featured-article__link:hover .featured-article__cta svg {
    transform: translateX(6px);
}

/* ===========================================
   Article Grid - Magazine Style
   =========================================== */

.article-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--archive-gap);
    margin-bottom: 64px;
}

/* Card size variations */
.article-card {
    grid-column: span 4;
    opacity: 0;
    transform: translateY(30px);
}

.article-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Large card (first after featured) */
.article-card:nth-child(1) {
    grid-column: span 8;
}

.article-card:nth-child(1) .article-card__image {
    aspect-ratio: 21 / 9;
}

.article-card:nth-child(1) .article-card__title {
    font-size: 24px;
}

/* Wide cards */
.article-card:nth-child(4n+5) {
    grid-column: span 6;
}

.article-card:nth-child(4n+5) .article-card__image {
    aspect-ratio: 16 / 9;
}

/* Card styling */
.article-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s var(--transition-smooth);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition-smooth);
    z-index: 2;
}

.article-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.article-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.article-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.article-card:hover .article-card__img {
    transform: scale(1.08);
}

.article-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover .article-card__overlay {
    opacity: 1;
}

.article-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
    color: #ccc;
}

.article-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

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

.article-card__category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.article-card:hover .article-card__category {
    background: var(--accent);
    color: #ffffff;
}

.article-card__date {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 14px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-card:hover .article-card__title {
    color: var(--accent-dark);
}

.article-card__excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.article-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.3s ease;
}

.article-card__read-more svg {
    transition: transform 0.3s var(--transition-bounce);
}

.article-card:hover .article-card__read-more svg {
    transform: translateX(4px);
}

.article-card__reading-time {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* List View */
.article-grid--list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-grid--list .article-card {
    grid-column: span 12;
}

.article-grid--list .article-card__link {
    flex-direction: row;
}

.article-grid--list .article-card__image {
    width: 320px;
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
}

.article-grid--list .article-card__content {
    padding: 28px 32px;
}

.article-grid--list .article-card__title {
    font-size: 20px;
}

/* ===========================================
   Load More / Pagination
   =========================================== */

.archive-load-more {
    text-align: center;
    margin-top: 48px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    background: #ffffff;
    border: 2px solid var(--accent);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.load-more-btn:hover {
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.load-more-btn:hover::before {
    opacity: 1;
}

.load-more-btn svg {
    transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
    animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.load-more-btn.is-loading {
    pointer-events: none;
}

.load-more-btn.is-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pagination Enhancement */
.pagination {
    margin-top: 64px;
}

.pagination__list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination__item a,
.pagination__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    border: 1.5px solid #e9ecef;
    background: #ffffff;
    color: #4b5563;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

/* Prev / Next pill buttons */
.pagination__item a.prev,
.pagination__item a.next {
    padding: 0 20px;
    border-radius: 22px;
    color: #374151;
}

.pagination__item a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(16, 185, 129, 0.04);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.pagination__item span.current {
    background: var(--accent);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transform: scale(1.06);
}

.pagination__item span.dots {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: #9ca3af;
    min-width: auto;
    padding: 0 4px;
    letter-spacing: 0.05em;
}

/* ===========================================
   Archive Empty State
   =========================================== */

.archive-empty {
    text-align: center;
    padding: 100px 20px;
    background: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.archive-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-bg) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 50%;
    color: var(--accent);
    margin-bottom: 32px;
}

.archive-empty__title {
    font-size: 28px;
    font-weight: 800;
}

.archive-empty__text {
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto 40px;
}

.archive-empty__button {
    padding: 16px 36px;
    font-size: 15px;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.archive-empty__button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* ===========================================
   Responsive Styles
   =========================================== */

@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .article-card {
        grid-column: span 4;
    }

    .article-card:nth-child(1) {
        grid-column: span 8;
    }

    .article-card:nth-child(4n+5) {
        grid-column: span 4;
    }

    .featured-article__link {
        grid-template-columns: 1fr;
    }

    .featured-article__image {
        aspect-ratio: 16 / 9;
    }

    .featured-article__content {
        padding: 32px;
    }

    .archive-filter__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .archive-filter__tabs {
        justify-content: center;
    }

    .archive-filter__view {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .archive-hero {
        padding: 80px 0 60px;
    }

    .archive-hero__stats {
        gap: 24px;
    }

    .archive-hero__stat-value {
        font-size: 24px;
    }

    .archive-hero__shapes {
        display: none;
    }

    .archive-filter {
        margin-top: -30px;
    }

    .archive-filter__inner {
        padding: 16px;
    }

    .archive-filter__tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .archive-content {
        padding: 40px 0 80px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card,
    .article-card:nth-child(1),
    .article-card:nth-child(4n+5) {
        grid-column: span 1;
    }

    .article-card:nth-child(1) .article-card__image,
    .article-card:nth-child(4n+5) .article-card__image {
        aspect-ratio: 16 / 10;
    }

    .article-card:nth-child(1) .article-card__title {
        font-size: 18px;
    }

    .article-card__content {
        padding: 20px;
    }

    .article-grid--list .article-card__link {
        flex-direction: column;
    }

    .article-grid--list .article-card__image {
        width: 100%;
    }

    .featured-article__title {
        font-size: 22px;
    }

    .featured-article__content {
        padding: 24px;
    }
}

/* ===========================================
   Animation Classes
   =========================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-smooth),
                transform 0.6s var(--transition-smooth);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.article-card:nth-child(1) { transition-delay: 0.05s; }
.article-card:nth-child(2) { transition-delay: 0.1s; }
.article-card:nth-child(3) { transition-delay: 0.15s; }
.article-card:nth-child(4) { transition-delay: 0.2s; }
.article-card:nth-child(5) { transition-delay: 0.25s; }
.article-card:nth-child(6) { transition-delay: 0.3s; }
.article-card:nth-child(7) { transition-delay: 0.35s; }
.article-card:nth-child(8) { transition-delay: 0.4s; }
.article-card:nth-child(9) { transition-delay: 0.45s; }

/* ===========================================
   Blog Page Variant (/blog)
   =========================================== */

body.page-template-page-blog .archive-page ,
.blog-list-page .archive-page  {
    background:
        radial-gradient(circle at 12% 10%, rgba(16, 185, 129, 0.11), transparent 36%),
        radial-gradient(circle at 88% 18%, rgba(16, 185, 129, 0.08), transparent 42%),
        #f7fafc;
}

body.page-template-page-blog .archive-hero ,
.blog-list-page .archive-hero  {
    background:
        radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.18), transparent 38%),
        linear-gradient(135deg, #10b981 0%, #059669 44%, #34d399 100%);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    box-shadow: 0 30px 60px rgba(16, 185, 129, 0.22);
}

body.page-template-page-blog .archive-hero::after ,
.blog-list-page .archive-hero::after  {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0) 68%);
    background-size: 220% 100%;
    animation: blogHeroSweep 10s ease-in-out infinite;
    pointer-events: none;
}

body.page-template-page-blog .archive-hero__label ,
.blog-list-page .archive-hero__label  {
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    letter-spacing: 0.14em;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(26, 26, 26, 0.18);
}

body.page-template-page-blog .archive-hero__title ,
.blog-list-page .archive-hero__title  {
    letter-spacing: -0.03em;
    text-wrap: balance;
    font-size: clamp(44px, 7vw, 78px);
    text-shadow: 0 12px 28px rgba(26, 26, 26, 0.35);
}

body.page-template-page-blog .archive-hero__description ,
.blog-list-page .archive-hero__description  {
    max-width: 52ch;
    font-size: 19px;
    line-height: 1.9;
}

body.page-template-page-blog .archive-hero__stats ,
.blog-list-page .archive-hero__stats  {
    gap: 14px;
    border-top: 0;
    padding-top: 8px;
}

body.page-template-page-blog .archive-hero__stat ,
.blog-list-page .archive-hero__stat  {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.page-template-page-blog .archive-filter__inner ,
.blog-list-page .archive-filter__inner  {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(209, 213, 219, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.page-template-page-blog .archive-content ,
.blog-list-page .archive-content  {
    background: transparent;
}

body.page-template-page-blog .article-grid ,
.blog-list-page .article-grid  {
    gap: 30px;
}

body.page-template-page-blog .article-card ,
.blog-list-page .article-card  {
    border-radius: 22px;
    border: 1px solid rgba(209, 213, 219, 0.75);
    box-shadow: 0 14px 32px rgba(26, 26, 26, 0.08);
    overflow: hidden;
}

body.page-template-page-blog .article-card::before ,
.blog-list-page .article-card::before  {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(52, 211, 153, 0.11), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 20%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.page-template-page-blog .article-card:hover ,
.blog-list-page .article-card:hover  {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(26, 26, 26, 0.14);
}

body.page-template-page-blog .article-card:hover::before ,
.blog-list-page .article-card:hover::before  {
    opacity: 1;
}

body.page-template-page-blog .article-card__image ,
.blog-list-page .article-card__image  {
    position: relative;
    aspect-ratio: 16 / 10;
}

body.page-template-page-blog .article-card__image::after ,
.blog-list-page .article-card__image::after  {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0) 45%, rgba(26, 26, 26, 0.52) 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

body.page-template-page-blog .article-card:hover .article-card__image::after ,
.blog-list-page .article-card:hover .article-card__image::after  {
    opacity: 0.35;
}

body.page-template-page-blog .article-card__content ,
.blog-list-page .article-card__content  {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcfd 100%);
}

body.page-template-page-blog .article-card__meta ,
.blog-list-page .article-card__meta  {
    align-items: center;
}

body.page-template-page-blog .article-card__category ,
.blog-list-page .article-card__category  {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    letter-spacing: 0.07em;
}

body.page-template-page-blog .article-card__title ,
.blog-list-page .article-card__title  {
    font-size: clamp(20px, 1.9vw, 26px);
    letter-spacing: -0.02em;
    line-height: 1.35;
}

body.page-template-page-blog .article-card__read-more ,
.blog-list-page .article-card__read-more  {
    border-bottom: 1px solid rgba(16, 185, 129, 0.35);
    padding-bottom: 1px;
    transition: border-color 0.25s ease, color 0.25s ease;
}

body.page-template-page-blog .article-card__read-more svg ,
.blog-list-page .article-card__read-more svg  {
    transition: transform 0.25s ease;
}

body.page-template-page-blog .article-card:hover .article-card__read-more ,
.blog-list-page .article-card:hover .article-card__read-more  {
    color: #047857;
    border-color: rgba(5, 150, 105, 0.5);
}

body.page-template-page-blog .article-card:hover .article-card__read-more svg ,
.blog-list-page .article-card:hover .article-card__read-more svg  {
    transform: translateX(3px);
}

body.page-template-page-blog .pagination__item .page-numbers ,
.blog-list-page .pagination__item .page-numbers  {
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@keyframes blogHeroSweep {
    0%,
    70% {
        background-position: 150% 0;
    }
    100% {
        background-position: -120% 0;
    }
}

/* ===========================================
   Small Screen Additional Fixes (480px以下)
   =========================================== */

@media (max-width: 480px) {
    /* アーカイブヒーロー */
    .archive-hero {
        padding: 70px 0 50px;
    }

    .archive-hero__title {
        font-size: clamp(32px, 9vw, 50px);
    }

    .archive-hero__description {
        font-size: 15px;
    }

    .archive-hero__stats {
        gap: 16px;
        flex-wrap: wrap;
    }

    .archive-hero__stat {
        flex: 1;
        min-width: calc(50% - 8px);
    }

    .archive-hero__stat-value {
        font-size: 22px;
    }

    /* フィルタータブを小さく */
    .archive-filter {
        margin-top: -20px;
    }

    .archive-filter__inner {
        padding: 12px;
        border-radius: 12px;
    }

    .archive-filter__tabs {
        gap: 4px;
    }

    .archive-filter__tab {
        font-size: 12px;
        padding: 7px 10px;
        gap: 4px;
    }

    /* カウントバッジを非表示（スペース節約） */
    .archive-filter__tab-count {
        display: none;
    }

    /* ブログ一覧ページのヒーロー統計 - 折り返し対応 */
    body.page-template-page-blog .archive-hero__stats,
    .blog-list-page .archive-hero__stats {
        flex-wrap: wrap;
    }

    body.page-template-page-blog .archive-hero__stat,
    .blog-list-page .archive-hero__stat {
        flex: 1;
        min-width: calc(50% - 7px);
        text-align: center;
    }

    /* 記事グリッドのギャップ縮小 */
    .article-grid {
        gap: 16px;
    }

    .article-card__content {
        padding: 16px;
    }

    .article-card__title {
        font-size: 16px;
    }

    /* フィーチャード記事のコンテンツパディング */
    .featured-article__content {
        padding: 20px;
    }

    .featured-article__title {
        font-size: 20px;
    }

    /* ページネーション */
    .pagination__item a,
    .pagination__item span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
        border-radius: 10px;
    }

    .pagination__item a.prev,
    .pagination__item a.next {
        padding: 0 14px;
        border-radius: 19px;
    }

    /* アーカイブコンテンツ */
    .archive-content {
        padding: 30px 0 60px;
    }
}
