/*
Theme Name: SunnyPride
Theme URI: https://github.com/example/sunnypride
Author: Antigravity
Author URI: https://github.com/example
Description: オレンジ・黄色系を基調とした、おしゃれで親しみやすいゲイブログ用WordPressテーマ。アフィリエイト広告やアナリティクスの設定が簡単で、自己紹介カードなどのカスタマイズ機能が充実しています。
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sunnypride
Tags: blog, custom-colors, custom-menu, right-sidebar, two-columns, translation-ready, grid-layout
*/

/* --- Design Tokens (CSS Variables) --- */
:root {
    --primary-color: #FF8C00;
    --primary-hover: #E07B00;
    --secondary-color: #FFD54F;
    --secondary-hover: #FFCA28;
    --accent-color: #FF6B6B;
    --bg-color: #FFFDF9;
    --card-bg: #FFFFFF;
    --text-color: #333333;
    --text-muted: #777777;
    --border-color: #FFE6CC;
    --shadow-soft: 0 8px 30px rgba(255, 140, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(255, 140, 0, 0.12);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-sans: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
    opacity: 0.9;
}

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

/* --- SEO navigation and conversion components --- */
.breadcrumbs {
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: 13px;
    overflow-x: auto;
}
.breadcrumbs ol { display: flex; align-items: center; gap: 8px; list-style: none; white-space: nowrap; }
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 8px; color: #bbb; }
.breadcrumbs a { color: var(--text-muted); text-decoration: underline; text-decoration-color: transparent; }
.breadcrumbs a:hover { color: var(--primary-color); text-decoration-color: currentColor; }

.article-toc {
    margin: 0 0 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fffaf2;
    overflow: hidden;
}
.article-toc-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    border: 0;
    padding: 16px 20px;
    color: var(--text-color);
    background: transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.article-toc-list { padding: 0 24px 20px 44px; }
.article-toc-list li { margin: 7px 0; }
.article-toc-list .toc-level-3 { margin-left: 18px; font-size: .94em; }
.article-toc-list a { color: var(--text-color); }
.article-toc-list a:hover { color: var(--primary-color); }
.entry-content h2, .entry-content h3 { scroll-margin-top: 100px; }

.conversion-cta {
    margin: 30px 0;
    padding: 24px;
    text-align: center;
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fff 0%, #fff8df 100%);
    box-shadow: var(--shadow-soft);
}
.conversion-cta-note { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.conversion-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: min(100%, 320px);
    min-height: 52px;
    padding: 12px 24px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 8px 20px rgba(255, 107, 107, .22);
    font-weight: 800;
}
.conversion-cta-button:hover { color: #fff; transform: translateY(-1px); }

.speech-balloon { display: flex; gap: 14px; align-items: flex-start; margin: 28px 0; }
.speech-balloon-right { flex-direction: row-reverse; }
.speech-balloon-person { flex: 0 0 76px; text-align: center; font-size: 12px; }
.speech-balloon-avatar { width: 72px; height: 72px; margin-bottom: 5px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.speech-balloon-avatar img { width: 100%; height: 100%; object-fit: cover; }
.speech-balloon-content { position: relative; flex: 1; padding: 16px 18px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #fff; }
.speech-balloon-content::before { content: ""; position: absolute; top: 22px; left: -9px; width: 16px; height: 16px; border-left: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: #fff; transform: rotate(45deg); }
.speech-balloon-right .speech-balloon-content::before { right: -9px; left: auto; transform: rotate(225deg); }

.ranking-box { margin: 32px 0; padding: 24px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); }
.ranking-box > h2 { margin-top: 0 !important; }
.ranking-box ol { list-style: none; }
.ranking-box li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border-color); }
.ranking-number { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary-color); font-weight: 900; }
.ranking-box li:first-child .ranking-number { background: #d6a700; }
.ranking-box li:nth-child(2) .ranking-number { background: #8c9aa3; }
.ranking-box li:nth-child(3) .ranking-number { background: #b87333; }
.ranking-box h3 { margin: 0 0 5px; font-size: 18px; }
.ranking-box p { color: var(--text-muted); font-size: 14px; }

.related-posts { margin: 38px 0; }
.related-posts > h2 { margin-bottom: 18px; font-size: 22px; }
.related-posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.related-post-card { overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #fff; }
.related-post-card a { display: block; height: 100%; color: var(--text-color); font-weight: 700; }
.related-post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.related-post-card span { display: block; padding: 12px; line-height: 1.55; }
@media (max-width: 560px) {
    .related-posts-grid { grid-template-columns: 1fr; }
    .speech-balloon-person { flex-basis: 58px; }
    .speech-balloon-avatar { width: 54px; height: 54px; }
}

/* --- Layout Structure --- */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.site-main {
    padding: 40px 0;
    flex: 1;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .layout-grid {
        grid-template-columns: 2fr 1fr;
    }
    .layout-grid:has(> :only-child) {
        grid-template-columns: 1fr;
    }
}

/* --- Header Section --- */
.site-header {
    background-color: var(--card-bg);
    border-bottom: 2px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    /* Smooth transition for slide-up/down hide behavior */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

/* Scroll down hidden utility */
.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-description {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* --- Quick Discovery Navigation --- */
.discovery-navigation {
    background: #fff7eb;
    border-bottom: 1px solid var(--border-color);
}

.discovery-navigation-inner {
    display: flex;
    align-items: center;
    gap: 8px 20px;
    min-height: 46px;
    overflow-x: auto;
    white-space: nowrap;
}

.discovery-navigation-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.discovery-navigation a {
    color: var(--text-color);
    font-size: 13px;
    font-weight: 800;
}

.discovery-navigation a:hover { color: var(--primary-color); }

.discovery-page-heading {
    margin-bottom: 30px;
    padding: 26px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: linear-gradient(125deg, #fff 0%, #fff4df 100%);
}

.discovery-page-heading h1 { font-size: 28px; line-height: 1.35; }
.discovery-page-heading p { color: var(--text-muted); font-size: 14px; }
.discovery-eyebrow { color: var(--primary-color) !important; font-size: 12px !important; font-weight: 800; letter-spacing: .08em; }

/* --- Articles & Post Cards --- */
.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 600px) {
    .posts-grid.grid-2col {
        grid-template-columns: 1fr 1fr;
    }
}

.post-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.post-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #fff3e0;
}

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

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 700;
}

.post-title a {
    color: var(--text-color);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-more {
    font-weight: 700;
    font-size: 14px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
}

.post-more::after {
    content: '→';
    transition: transform 0.2s ease;
}

.post-card:hover .post-more::after {
    transform: translateX(4px);
}

/* --- Single Post Detail --- */
.entry-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .entry-card {
        padding: 45px;
    }
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .entry-title {
        font-size: 36px;
    }
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.entry-content {
    line-height: 1.9;
    font-size: 17px;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
}

.entry-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.entry-content h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.entry-content h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.entry-content blockquote {
    background-color: #FFFDF0;
    border-left: 4px solid var(--primary-color);
    padding: 20px 24px;
    margin: 30px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-muted);
}

/* --- Affiliate & Ad Spaces --- */
.ad-space {
    margin: 30px 0;
    padding: 15px;
    background-color: #FFFDF3;
    border: 1px dashed var(--primary-color);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.ad-space-label {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* --- Post Taxonomy Reading Guide --- */
.post-taxonomy-guide {
    margin-top: 34px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 247, 232, 0.98) 100%),
        linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-soft);
}

.post-taxonomy-guide-header {
    margin-bottom: 20px;
}

.post-taxonomy-guide-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.post-taxonomy-guide h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 22px;
    line-height: 1.4;
    font-weight: 800;
}

.post-taxonomy-guide-header p {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.post-taxonomy-group + .post-taxonomy-group {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--border-color);
}

.post-taxonomy-label {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
}

.post-taxonomy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.post-taxonomy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.post-taxonomy-link::after {
    content: '→';
    font-size: 13px;
    line-height: 1;
    opacity: 0.72;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.post-taxonomy-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 140, 0, 0.12);
    opacity: 1;
}

.post-taxonomy-link:hover::after {
    transform: translateX(3px);
    opacity: 1;
}

.post-taxonomy-link-category {
    background-color: var(--primary-color);
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(255, 140, 0, 0.16);
}

.post-taxonomy-link-category:hover {
    background-color: var(--primary-hover);
    color: #fff !important;
}

.post-taxonomy-link-tag {
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
}

.post-taxonomy-link-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-hover);
}

/* --- Social Share Buttons --- */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.share-btn {
    padding: 10px 20px;
    border-radius: 30px;
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.share-twitter { background-color: #1DA1F2; }
.share-facebook { background-color: #1877F2; }
.share-line { background-color: #06C755; }

/* --- Sidebar Widgets --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

/* --- Blog Discovery Widgets --- */
.discovery-shortcuts { display: grid; gap: 10px; }

.discovery-shortcut {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fffdf8;
    color: var(--text-color);
}

.discovery-shortcut:hover {
    border-color: var(--primary-color);
    background: #fff6e8;
    opacity: 1;
}

.discovery-shortcut span { display: block; font-size: 15px; font-weight: 800; }
.discovery-shortcut small { color: var(--text-muted); font-size: 11px; }
.discovery-shortcut-popular { background: linear-gradient(135deg, #fff0d3, #fffaf1); }

.archive-guide-list { list-style: none; }
.archive-guide-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
}
.archive-guide-list li:last-child { border-bottom: 0; }
.archive-guide-list a { color: var(--text-color); font-weight: 700; }
.archive-guide-list a:hover { color: var(--primary-color); }
.archive-guide-list .post-count { color: var(--text-muted); font-size: 12px; }

/* Profile Card Widget Specifically for Gay Blog */
.profile-card {
    text-align: center;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid var(--secondary-color);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.15);
}

.profile-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-color);
}

.profile-pronouns {
    font-size: 12px;
    color: var(--primary-color);
    background-color: #FFF3E0;
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 700;
}

.profile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 13px;
    background-color: #FFFDF5;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.profile-detail-item {
    display: flex;
    flex-direction: column;
}

.profile-detail-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.profile-detail-value {
    font-weight: 700;
    color: var(--text-color);
}

.profile-bio {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}


.profile-twitter-timeline {
    margin: 4px 0 18px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: #fff;
    text-align: left;
}

.profile-twitter-title {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.profile-twitter-posts {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-twitter-post {
    padding: 10px;
    border-radius: var(--radius-sm);
    background-color: #FFFDF5;
    border: 1px solid var(--border-color);
}

.profile-twitter-post p {
    margin: 0;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.65;
}

.profile-twitter-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}

.profile-twitter-meta a {
    color: var(--primary-color);
}
.profile-sns {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.profile-sns a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #FFF3E0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 700;
}

.profile-sns a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* --- Footer Section --- */
.site-footer {
    background-color: #FFF3E0;
    border-top: 2px solid var(--border-color);
    padding: 40px 0;
    color: var(--text-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--primary-color);
}

.site-info {
    font-size: 13px;
    color: var(--text-muted);
}

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

.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 700;
    font-size: 14px;
}

.pagination span.current {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-color: transparent;
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: transparent;
}

/* --- WordPress Standard Widgets Styling --- */
.search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.search-form .search-field {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    outline: none;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.search-form .search-submit {
    padding: 10px 20px;
    background-color: var(--primary-color);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.search-form .search-submit:hover {
    background-color: var(--primary-hover);
}

.widget_categories ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget_categories li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}

.widget_categories li a {
    color: var(--text-color);
    font-weight: 600;
}

.widget_categories li a:hover {
    color: var(--primary-color);
}

.widget_categories li .post-count,
.widget_categories li.cat-item span {
    font-size: 12px;
    color: var(--text-muted);
    background-color: #FFF3E0;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

/* --- Mobile / Responsive Enhancements --- */
@media (max-width: 991px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar {
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .site-main {
        padding: 24px 0;
    }
    
    .entry-card {
        padding: 24px 20px;
        border-radius: var(--radius-md);
    }
    
    .widget {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }
    
    .posts-grid {
        gap: 20px;
    }
    
    .post-card {
        border-radius: var(--radius-md);
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .ad-space {
        padding: 10px;
        margin: 20px 0;
        min-height: 80px;
    }
    
    .ad-space img, 
    .ad-space iframe, 
    .ad-space ins,
    .ad-space div {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .profile-avatar {
        width: 90px;
        height: 90px;
    }
    
    .profile-details {
        padding: 10px;
        gap: 6px;
    }
    
    .profile-detail-value {
        font-size: 12px;
    }

    /* メニューの文字サイズ小さめ ＆ スマホ用すっきりヘッダー */
    .site-header {
        padding: 12px 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .main-navigation ul {
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .main-navigation a {
        font-size: 13px;
    }

    .discovery-navigation-inner { padding-top: 6px; padding-bottom: 6px; }
    .discovery-navigation-label { display: none; }
    .discovery-page-heading { padding: 20px; margin-bottom: 20px; border-radius: var(--radius-md); }
    .discovery-page-heading h1 { font-size: 24px; }
}

/* --- Post Meta Badges --- */
.post-meta-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

.post-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* Default publish badge */
.post-meta-badge.published {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-meta-badge.published svg {
    color: var(--text-muted);
    opacity: 0.8;
}
