@charset "UTF-8";

/*
 * Media Page Stylesheet
 * タタミズキ メディアページ用スタイルシート
 * ベース: MEDIA_work_20251127/tatamizuki_BLOG/style.css
 */

/* Reset & Base */
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    line-height: 1.5;
    color: #374151;
    background-color: #f0fdf4;
}

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.hidden {
    display: none;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* Header */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area a {
    text-decoration: none;
}

.logo-text {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.25;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.nav-pc {
    display: none;
}

.nav-link {
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #166534;
}

.auth-area {
    display: none;
}

.auth-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
}

.auth-link:hover {
    text-decoration: underline;
}

.menu-btn-sp {
    padding: 0.5rem;
    color: #4b5563;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 998;
}

.mobile-menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-media {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.mobile-menu-media.is-open {
    right: 0;
}

.mobile-menu-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-close {
    font-size: 2rem;
    color: #6b7280;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-content {
    padding: 0;
}

.mobile-menu-section {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-auth-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-auth-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    transition: background-color 0.2s;
}

.mobile-auth-btn:hover {
    background-color: #e5e7eb;
}

.mobile-auth-btn svg {
    flex-shrink: 0;
}

.mobile-nav-section {
    padding: 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: #f9fafb;
    color: #166534;
}

/* Main Visual - Pickup Slider */
.main-visual-section {
    background-color: #e5e7eb;
    padding-top: 2rem;
    padding-bottom: 2rem;
    overflow: hidden;
}

.pickup-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* スライダー本体 */
.pickup-slider,
.pickup-slider-default {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.pickup-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    gap: 0.75rem;
    /* padding-left削除: クローン方式では中央配置をJSで計算 */
}

/* 各スライド */
.pickup-slide {
    flex: 0 0 90%;
    max-width: 90%;
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
    transform: scale(0.95);
    text-decoration: none;
    display: block;
}

.pickup-slide.active {
    opacity: 1;
    transform: scale(1);
}

.pickup-slide:hover {
    transform: scale(1.02);
}

.pickup-slide.active:hover {
    transform: scale(1.02);
}

/* スライド背景 */
.pickup-slide-bg {
    width: 100%;
    height: 100%;
    background-color: #6b7280;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* デフォルトスライドの背景グラデーション（画像未設定時のフォールバック） */
.default-bg-1 {
    background-image: linear-gradient(135deg, #166534 0%, #22c55e 100%);
}
.default-bg-2 {
    background-image: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}
.default-bg-3 {
    background-image: linear-gradient(135deg, #14532d 0%, #4ade80 100%);
}
.default-bg-4 {
    background-image: linear-gradient(135deg, #064e3b 0%, #34d399 100%);
}
.default-bg-5 {
    background-image: linear-gradient(135deg, #022c22 0%, #6ee7b7 100%);
}

/* 背景画像設定時は画像を優先（インラインスタイルで上書き） */
.pickup-slide-bg[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* オーバーレイ */
.pickup-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.2) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    color: #ffffff;
}

.pickup-badge {
    background-color: rgba(75, 85, 99, 0.9);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 2px;
}

.pickup-date {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: #ffffff;
}

.pickup-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pickup-subtitle {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    opacity: 0.9;
    color: #ffffff;
}

/* ナビゲーション */
.pickup-slider-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.pickup-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    color: #374151;
    pointer-events: auto;
    z-index: 11;
}

.pickup-nav-prev {
    left: 1rem;
}

.pickup-nav-next {
    right: 1rem;
}

.pickup-nav-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.pickup-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* ドットインジケーター */
.pickup-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    pointer-events: auto;
}

.pickup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pickup-dot.active {
    background-color: #166534;
    transform: scale(1.2);
}

.pickup-dot:hover:not(.active) {
    background-color: #9ca3af;
}

/* Action Nav */
.action-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: #ffffff;
}

.action-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 64rem;
    margin: 0 auto;
}

.action-card {
    flex: 0 1 100%;
    max-width: 100%;
    display: block;
    background-color: #f3f4f6;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 0.125rem;
    transition: background-color 0.2s;
}

.action-card:hover {
    background-color: #dcfce7;
}

.action-sub {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.action-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    transition: color 0.2s;
}

.action-card:hover .action-title {
    color: #166534;
}

.action-en {
    font-size: 0.625rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Press */
.press-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
}

.press-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.article-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-thumb {
    aspect-ratio: 16 / 9;
    background-color: #9ca3af;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.article-thumb.placeholder {
    background-color: #d1d5db;
}

.article-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: #1f2937;
    color: #ffffff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.article-date {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    color: #ffffff;
    font-size: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.article-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.5;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 会員限定バッジ */
.members-only-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background-color: #fbbf24;
    color: #78350f;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}

.pr-thumb {
    background-color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-badge {
    background-color: #ffffff;
    color: #3b82f6;
    font-weight: 700;
    padding: 0.25rem 1rem;
}

.btn-more-container {
    text-align: center;
    margin-top: 2rem;
}

.btn-more {
    background-color: #e5e7eb;
    color: #4b5563;
    padding: 0.5rem 2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color 0.2s;
}

.btn-more:hover {
    background-color: #d1d5db;
}

/* Posts */
.posts-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: #f3f4f6;
}

.posts-section.bg-white {
    background-color: #ffffff;
}

.posts-section-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #4b5563;
    margin-bottom: 2rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.post-large {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1rem;
}

.posts-section.bg-white .post-large {
    background-color: #f9fafb;
}

.post-user-area {
    width: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.user-icon-lg {
    width: 4rem;
    height: 4rem;
    background-color: #9ca3af;
    border-radius: 9999px;
}

.user-name {
    font-size: 0.625rem;
    text-align: center;
    color: #6b7280;
}

.post-content {
    flex: 1;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.post-date {
    font-size: 0.75rem;
    color: #9ca3af;
}

.post-title {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.post-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.625;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-list-small {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-small {
    background-color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.posts-section.bg-white .post-small {
    background-color: #f9fafb;
}

.user-icon-sm {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #9ca3af;
    border-radius: 9999px;
    flex-shrink: 0;
}

.post-small-content {
    flex: 1;
    min-width: 0;
}

.post-small-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.user-name-sm {
    font-size: 0.625rem;
    font-weight: 700;
    color: #4b5563;
}

.post-date-sm {
    font-size: 0.625rem;
    color: #9ca3af;
    margin-left: auto;
}

.post-small-title {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.btn-more-posts {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 0.5rem 2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background-color 0.2s;
}

.btn-more-posts:hover {
    background-color: #f9fafb;
}

/* Map */
.map-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: #f3f4f6;
}

.map-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.map-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ffffff;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.map-list-area {
    width: 100%;
}

.map-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.125rem;
}

.tab-btn.active {
    background-color: #6b7280;
    color: #ffffff;
    border-color: #6b7280;
}

.area-list {
    background-color: #f9fafb;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
}

.area-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background-color 0.2s;
}

.area-item:last-child {
    border-bottom: none;
}

.area-item:hover {
    background-color: #f3f4f6;
}

.area-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #4b5563;
}

.area-count {
    font-size: 0.75rem;
    color: #6b7280;
}

.map-note {
    font-size: 0.625rem;
    color: #9ca3af;
    margin-top: 0.5rem;
    text-align: right;
}

/* Footer */
.site-footer {
    background-color: #4b5563;
    color: #ffffff;
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-logo a {
    color: #ffffff;
}

.copyright {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Responsive (Media Queries) */
@media (min-width: 640px) {
    .press-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-pc {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .auth-area {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .menu-btn-sp {
        display: none;
    }

    .main-visual-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* PC用スライダー：中央メイン + 両端にプレビュー */
    /* padding-left削除: クローン方式では中央配置をJSで計算 */

    .pickup-slide {
        flex: 0 0 76%;
        max-width: 76%;
        aspect-ratio: 21 / 9;
    }

    .pickup-title {
        font-size: 2rem;
    }

    .pickup-nav-btn {
        width: 48px;
        height: 48px;
    }

    .pickup-nav-prev {
        left: 2rem;
    }

    .pickup-nav-next {
        right: 2rem;
    }

    .action-card {
        flex: 0 1 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        padding: 1.25rem;
    }

    .press-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-container {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    .action-card {
        flex: 0 1 calc(25% - 0.75rem);
        max-width: calc(25% - 0.75rem);
        padding: 1.5rem;
    }
}

/* Article Page Styles */
.breadcrumb-section {
    background-color: #f9fafb;
    padding: 1rem 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb-list li::after {
    content: ">";
    margin-left: 0.5rem;
    color: #9ca3af;
}

.breadcrumb-list li:last-child::after {
    content: none;
}

.article-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Main Column */
.main-column {
    width: 100%;
    max-width: 100%;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
}

.article-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-category {
    background-color: #000000;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 1rem;
}

.article-dates {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    gap: 1rem;
}

.date-pub::before {
    content: "投 ";
    margin-right: 0.25rem;
}

.date-upd::before {
    content: "↻ ";
    margin-right: 0.25rem;
}

.article-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #1f2937;
}

.article-tags {
    font-size: 0.75rem;
    color: #9ca3af;
}

.article-tags a {
    text-decoration: underline;
    color: #6b7280;
}

/* Article Body Typography */
.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    max-width: 100%;
    text-align: justify;
}

.article-body p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-body h2 {
    background-color: #6b7280;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-body h3 {
    border-bottom: 2px solid #374151;
    border-left: 8px solid #d1d5db;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.article-body h4 {
    border-bottom: 1px solid #9ca3af;
    padding-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.article-body h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body figure {
    margin-bottom: 2rem;
}

.article-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #d1d5db;
}

.article-body figcaption {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
}

/* Table wrapper for horizontal scroll */
.article-body .table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
    position: relative;
}

.article-body .table-wrapper::after {
    content: '← スクロールできます →';
    display: none;
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

.article-body table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    border: 2px solid #374151;
}

.article-body td,
.article-body th {
    border: 1px solid #374151;
    padding: 0.75rem;
    height: 2rem;
    text-align: left;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

/* CTA */
.article-cta {
    background-color: #d1d5db;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.cta-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.article-cta-button-area {
    margin-bottom: 3rem;
}

.cta-button {
    display: block;
    background-color: #d88484;
    color: #ffffff;
    text-align: center;
    padding: 1.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 0.25rem;
    transition: opacity 0.2s;
}

.cta-button:hover {
    opacity: 0.9;
}

/* Writer Info */
.writer-info {
    border-top: 1px dashed #9ca3af;
    padding-top: 1rem;
    margin-bottom: 3rem;
}

.writer-header {
    margin-bottom: 1rem;
}

.writer-label {
    font-size: 0.75rem;
    color: #ef4444;
}

.writer-content {
    background-color: #f9fafb;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.writer-icon {
    width: 5rem;
    height: 5rem;
    background-color: #4b5563;
    border-radius: 50%;
    flex-shrink: 0;
}

.writer-text {
    flex: 1;
}

.writer-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.writer-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Sponsored */
.sponsored-link-area {
    text-align: center;
    margin-bottom: 3rem;
}

.sponsored-label {
    font-size: 0.625rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.sponsored-box {
    width: 100%;
    height: 8rem;
    background-color: #7da3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
}

/* Pagination */
.article-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.prev-link,
.next-link {
    display: inline-block;
    border: 1px solid #9ca3af;
    padding: 0.5rem 2rem;
    font-size: 0.875rem;
    color: #6b7280;
    background-color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.prev-link:hover,
.next-link:hover {
    background-color: #f3f4f6;
    border-color: #6b7280;
    color: #374151;
}

.next-link {
    margin-left: auto;
}

/* Sidebar */
.sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ad-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #7da3f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
}

.sidebar-box {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    padding: 0.875rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2563eb;
}

/* 最新記事リスト */
.sidebar-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-post-item {
    margin-bottom: 0.5rem;
}

.sidebar-post-item:last-child {
    margin-bottom: 0;
}

.sidebar-post-item a {
    display: flex;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.sidebar-post-item a:hover {
    opacity: 0.7;
}

.sidebar-post-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
}

.sidebar-post-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.sidebar-post-date {
    font-size: 0.7rem;
    color: #9ca3af;
}

.sidebar-post-title {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* カテゴリリスト */
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-item {
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-category-item:last-child {
    border-bottom: none;
}

.sidebar-category-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    text-decoration: none;
    color: #374151;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.sidebar-category-item a:hover {
    color: #2563eb;
}

.category-count {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Responsive Article - Mobile */
@media (max-width: 767px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .article-container.container {
        padding-left: 0;
        padding-right: 0;
        padding-top: 1rem;
        padding-bottom: 2rem;
        gap: 1.5rem;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .main-column {
        padding: 1rem 0.75rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .sidebar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0 0.75rem;
    }

    .article-header {
        margin-bottom: 1.5rem;
    }

    .article-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .article-main-title {
        font-size: 1.25rem;
        line-height: 1.5;
    }

    .article-body {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .article-body .table-wrapper {
        margin-bottom: 2.5rem;
        background: linear-gradient(to right, #fff 0%, #fff 85%, rgba(155, 163, 175, 0.15) 100%);
        border-radius: 4px;
    }

    .article-body .table-wrapper::after {
        display: block;
    }

    .article-body h2 {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .article-body h3 {
        font-size: 0.95rem;
        padding: 0.4rem 0.75rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .article-body h4,
    .article-body h5 {
        font-size: 0.9rem;
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .article-body p {
        margin-bottom: 1rem;
    }

    .article-cta {
        padding: 1.25rem;
        margin-top: 2rem;
    }

    .cta-text {
        font-size: 0.8rem;
    }

    .cta-button {
        padding: 1rem;
        font-size: 1rem;
    }

    .writer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }

    .writer-icon {
        width: 4rem;
        height: 4rem;
    }

    .sponsored-link-area {
        margin-bottom: 2rem;
    }

    .sponsored-box {
        height: 6rem;
    }

    .article-pagination {
        flex-direction: column;
        gap: 0.75rem;
    }

    .prev-link,
    .next-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .next-link {
        margin-left: 0;
    }

    .sidebar {
        gap: 1rem;
    }

    .sidebar-box {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .sidebar-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .sidebar-post-thumb {
        width: 50px;
        height: 50px;
    }

    .sidebar-post-title {
        font-size: 0.8rem;
    }

    .ad-box {
        aspect-ratio: 16 / 9;
    }
}

/* Responsive Article - Tablet and up */
@media (min-width: 768px) {
    .article-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .main-column {
        width: calc(100% - 20rem);
        padding: 3rem;
    }

    .sidebar {
        width: 18rem;
        flex-shrink: 0;
        position: sticky;
        top: 2rem;
        align-self: flex-start;
    }

    .article-main-title {
        font-size: 2rem;
    }
}

/* ================================================
   Archive Page Styles
   記事一覧ページ用スタイル
   ================================================ */

/* Archive Header */
.archive-header {
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
    padding: 3rem 0;
    color: #ffffff;
    text-align: center;
}

.archive-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.archive-description {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0 0 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.archive-count {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

/* Archive Container */
.archive-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.archive-main {
    flex: 1;
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Archive Card */
.archive-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.archive-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
    position: relative;
}

.archive-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #166534;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.archive-card-body {
    padding: 1rem 1.25rem 1.25rem;
}

.archive-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.archive-card-date {
    font-size: 0.8rem;
    color: #6b7280;
}

.archive-card-updated {
    font-size: 0.75rem;
    color: #9ca3af;
}

.archive-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-card-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Archive Pagination */
.archive-pagination {
    margin-top: 2rem;
    text-align: center;
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #374151;
    transition: all 0.2s ease;
}

.archive-pagination .page-numbers:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.archive-pagination .page-numbers.current {
    background: #166534;
    border-color: #166534;
    color: #ffffff;
}

.archive-pagination .prev,
.archive-pagination .next {
    font-weight: 600;
}

/* Archive No Posts */
.archive-no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border-radius: 12px;
}

.archive-no-posts p {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 0 1.5rem;
}

.btn-back-home {
    display: inline-block;
    padding: 12px 24px;
    background: #166534;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.btn-back-home:hover {
    background: #15803d;
}

/* Archive Sidebar */
.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #166534;
}

/* Sidebar Category List */
.sidebar-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-category-list li {
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-category-list li:last-child {
    border-bottom: none;
}

.sidebar-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    color: #374151;
    transition: color 0.2s ease;
}

.sidebar-category-list a:hover {
    color: #166534;
}

.category-count {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Sidebar Recent List */
.sidebar-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-recent-list li {
    margin-bottom: 1rem;
}

.sidebar-recent-list li:last-child {
    margin-bottom: 0;
}

.sidebar-recent-list a {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.recent-thumb {
    width: 60px;
    height: 60px;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.recent-info {
    flex: 1;
    min-width: 0;
}

.recent-date {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.recent-title {
    display: block;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.sidebar-recent-list a:hover .recent-title {
    color: #166534;
}

/* Sidebar Tag Cloud */
.sidebar-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sidebar-tag-cloud a {
    display: inline-block;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #4b5563;
    transition: all 0.2s ease;
}

.sidebar-tag-cloud a:hover {
    background: #166534;
    color: #ffffff;
}

/* Archive Responsive */
@media (min-width: 640px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-title {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .archive-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .archive-main {
        flex: 1;
        min-width: 0;
    }

    .archive-sidebar {
        width: 280px;
        flex-shrink: 0;
        position: sticky;
        top: 5rem;
    }
}

@media (min-width: 1024px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .archive-header {
        padding: 4rem 0;
    }

    .archive-title {
        font-size: 2.25rem;
    }
}
