/*
Theme Name: AIラボグ
Theme URI: https://ailablog.com
Author: AIラボグ
Description: AIツール比較メディア AIラボグ の公式テーマ
Version: 3.0
*/

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

/* ===== CSS Variables ===== */
:root {
    --blue:        #2563EB;
    --blue-dark:   #1d4ed8;
    --blue-light:  #EFF6FF;
    --green:       #16A34A;
    --green-light: #F0FDF4;
    --orange:      #EA580C;
    --orange-light:#FFF7ED;
    --slate:       #475569;
    --slate-light: #F1F5F9;

    --bg:          #FFFFFF;
    --bg-sub:      #F8F9FA;
    --text:        #111827;
    --text-muted:  #6B7280;
    --border:      #E5E7EB;

    --font-base:   "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
    --radius:      8px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 4px 20px rgba(37, 99, 235, 0.10);
    --transition:  0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: var(--font-base);
    font-size: 15px;
    line-height: 1.8;
    color: #111827 !important;
    background: #ffffff !important;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
    font-feature-settings: "palt";
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--blue-dark); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: #DBEAFE;
    color: #1e40af;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ===== Layout ===== */
.site-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 20px;
}

/* ===== Header ===== */
/* !important 必須: Spectraプラグインが rgba(15,23,42,0.95) で上書きするため */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    height: 60px !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid #E5E7EB !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-branding a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.site-name {
    font-size: 18px;
    font-weight: 700;
    color: #111827 !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.site-tagline {
    font-size: 11px;
    color: #6B7280 !important;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-top: 1px;
}

/* WordPress admin bar 対策 */
.site-branding a,
.site-branding a:visited,
.site-branding a:hover {
    color: #111827 !important;
    text-decoration: none !important;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
}

.header-nav a:hover {
    color: var(--blue);
    background: var(--blue-light);
}

.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
}

.header-search-btn:hover {
    background: var(--bg-sub);
    color: var(--blue);
}

/* ===== Category Badge ===== */
.cat-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity var(--transition);
}

.cat-badge:hover { opacity: 0.8; }

.cat-chat-ai    { background: var(--blue-light);   color: var(--blue);   }
.cat-ai-coding  { background: var(--green-light);  color: var(--green);  }
.cat-efficiency { background: var(--orange-light); color: var(--orange); }
.cat-default    { background: var(--slate-light);  color: var(--slate);  }

/* ===== Section Label ===== */
.section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 0 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--blue);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ===== Pickup Hero ===== */
.pickup-hero {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
    transition: border-color var(--transition), box-shadow var(--transition);
    animation: fadeInUp 0.35s ease both;
}

.pickup-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.pickup-hero:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-hover);
}

.pickup-meta-top .cat-badge {
    position: relative;
    z-index: 2;
}

.pickup-img-wrap {
    width: 55%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    min-height: 280px;
    background: var(--bg-sub);
}

.pickup-img-wrap img,
.pickup-img-wrap .no-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pickup-hero:hover .pickup-img-wrap img {
    transform: scale(1.03);
}

.pickup-body {
    flex: 1;
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

.pickup-meta-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pickup-meta-top time,
.pickup-meta-top .reading-time {
    font-size: 12px;
    color: var(--text-muted);
}

.pickup-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    transition: color var(--transition);
}

.pickup-hero:hover .pickup-title {
    color: var(--blue);
}

.pickup-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.pickup-cta {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
}

/* ===== Posts Grid ===== */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

/* ===== Post Card ===== */
.post-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    overflow: hidden;
    position: relative;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-card);
    animation: fadeInUp 0.4s ease both;
}

.post-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--blue);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.post-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-hover);
}

.post-card:hover::before {
    transform: scaleY(1);
}

.post-card > a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-img-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-sub);
}

.card-img-wrap img,
.card-img-wrap .no-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.post-card:hover .card-img-wrap img {
    transform: scale(1.03);
}

.card-body {
    padding: 16px 18px 20px;
}

.card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 8px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

.post-card:hover .card-title {
    color: var(--blue);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-meta time,
.card-meta .reading-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Card animation delays */
.post-card:nth-child(1) { animation-delay: 0.04s; }
.post-card:nth-child(2) { animation-delay: 0.08s; }
.post-card:nth-child(3) { animation-delay: 0.12s; }
.post-card:nth-child(4) { animation-delay: 0.16s; }
.post-card:nth-child(5) { animation-delay: 0.20s; }
.post-card:nth-child(6) { animation-delay: 0.24s; }

/* ===== Pagination ===== */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 24px 0 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.pagination .current {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
    font-weight: 700;
}

.pagination a:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
}

/* ===== Sidebar ===== */
.sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-section {
    margin-bottom: 36px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--text);
    letter-spacing: -0.01em;
}

/* Popular Posts */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.popular-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    background: var(--slate);
    margin-top: 2px;
}

.popular-rank.rank-1 {
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    color: #7c4a00;
}

.popular-rank.rank-2 {
    background: linear-gradient(135deg, #E5E7EB, #9CA3AF);
    color: #374151;
}

.popular-rank.rank-3 {
    background: linear-gradient(135deg, #FDBA74, #C2410C);
    color: #fff;
}

.popular-thumb {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.popular-thumb.no-thumb {
    min-height: 56px;
    font-size: 10px;
}

.popular-info {
    flex: 1;
    min-width: 0;
}

.popular-info a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    text-decoration: none;
    transition: color var(--transition);
}

.popular-info a:hover {
    color: var(--blue);
}

.popular-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Category List */
.cat-list {
    list-style: none;
}

.cat-list li {
    border-bottom: 1px solid var(--border);
}

.cat-list li:last-child {
    border-bottom: none;
}

.cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

.cat-list a:hover {
    color: var(--blue);
}

.cat-list a::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    background: var(--border);
}

.cat-list li:nth-child(1) a::before { background: var(--blue); }
.cat-list li:nth-child(2) a::before { background: var(--green); }
.cat-list li:nth-child(3) a::before { background: var(--orange); }
.cat-list li:nth-child(4) a::before { background: #DC2626; }
.cat-list li:nth-child(5) a::before { background: #7C3AED; }

.cat-name-wrap {
    display: flex;
    align-items: center;
    flex: 1;
}

.cat-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-sub);
    padding: 1px 6px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* ===== Single Post ===== */
.single-main {
    min-width: 0;
}

.post-header {
    margin-bottom: 28px;
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    margin: 12px 0 16px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.post-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.post-eyecatch {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 36px;
    border: 1px solid var(--border);
}

.post-eyecatch img {
    width: 100%;
    height: auto;
}

/* TOC */
.toc-box {
    background: var(--bg-sub);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 36px;
}

.toc-box h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
}

.toc-box h3::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--blue);
    border-radius: 2px;
}

.toc-box ol {
    padding-left: 20px;
    counter-reset: toc-counter;
}

.toc-box li {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.5;
}

.toc-box a {
    color: var(--blue);
    text-decoration: none;
    transition: opacity var(--transition);
}

.toc-box a:hover {
    opacity: 0.7;
}

/* Post Content */
.post-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text);
}

.post-content h2 {
    font-size: 21px;
    font-weight: 700;
    margin: 44px 0 18px;
    padding: 14px 16px;
    background: var(--bg-sub);
    border-left: 4px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
    letter-spacing: -0.02em;
}

.post-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.02em;
}

.post-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 10px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.post-content li {
    margin-bottom: 6px;
    line-height: 1.75;
}

.post-content a {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition);
}

.post-content a:hover {
    text-decoration-color: var(--blue);
}

.post-content img {
    border-radius: var(--radius);
    margin: 20px 0;
    border: 1px solid var(--border);
}

.post-content blockquote {
    border-left: 4px solid var(--blue);
    padding: 16px 20px 16px 24px;
    color: var(--text-muted);
    background: var(--bg-sub);
    margin: 24px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    position: relative;
}

.post-content blockquote::before {
    content: '\201C';
    font-size: 3.5em;
    color: var(--blue);
    opacity: 0.15;
    position: absolute;
    top: -8px;
    left: 12px;
    line-height: 1;
    font-family: Georgia, serif;
    font-style: normal;
}

.post-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.75;
    position: relative;
    border: 1px solid #1e293b;
}

.post-content pre::before {
    content: 'Code';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0 var(--radius) 0 6px;
    letter-spacing: 0.08em;
}

.post-content code {
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
}

.post-content :not(pre) > code {
    background: var(--bg-sub);
    color: #c2410c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid var(--border);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}

.post-content th {
    background: #1e293b;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
}

.post-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.post-content tr:nth-child(even) td {
    background: var(--bg-sub);
}

/* Affiliate / Ad Box */
.ad-box {
    background: var(--blue-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 28px 0;
}

.ad-box strong,
.ad-box b {
    font-weight: 700;
    color: var(--blue);
}

.ad-box-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Related Posts */
.related-posts {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.related-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

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

/* ===== Archive ===== */
.archive-header {
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.archive-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--blue);
    border-radius: 2px;
    flex-shrink: 0;
}

.archive-description {
    color: var(--text-muted);
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
}

/* ===== Footer ===== */
.site-footer {
    background: #111827;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 20px 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-site-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.footer-site-desc {
    font-size: 13px;
    color: #9CA3AF;
    line-height: 1.75;
}

.footer-col-title {
    font-size: 12px;
    font-weight: 700;
    color: #6B7280;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: #9CA3AF;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #6B7280;
    padding-top: 24px;
    border-top: 1px solid #1F2937;
}

/* ===== No Thumbnail Placeholder ===== */
.no-thumb {
    background: linear-gradient(135deg, #1e293b 0%, #374151 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    min-height: 180px;
}

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-size: 96px;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
}

.error-404 h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 12px;
}

.error-404 p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 15px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--blue);
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    transition: background var(--transition);
}

.btn-primary:hover {
    background: var(--blue-dark);
    color: #fff;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .site-container {
        grid-template-columns: 1fr;
        padding: 24px 16px;
        gap: 32px;
    }

    .site-header {
        height: auto;
        padding: 10px 0;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-nav a {
        font-size: 12px;
        padding: 5px 8px;
    }

    .pickup-hero {
        flex-direction: column;
    }

    .pickup-img-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .pickup-body {
        width: 100%;
        padding: 20px;
    }

    .pickup-title {
        font-size: 18px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 22px;
    }

    .post-content h2 {
        font-size: 18px;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .pickup-body {
        padding: 16px;
    }
}

/* ===== Print ===== */
@media print {
    .site-header nav,
    .header-search-btn,
    .sidebar,
    .pagination,
    .site-footer {
        display: none !important;
    }

    .site-container {
        display: block;
    }

    .post-content {
        max-width: 100%;
    }
}
