/*
Theme Name: AIChat Blog
Theme URI: https://aichat.168.tokyo/
Author: Yojigen LLC
Author URI: https://yojigen.llc
Description: Trust Corporate design theme for AIChat Blog
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aichat-blog
*/

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

:root {
    --color-bg-main: #f8fafc;
    --color-bg-header: #ffffff;
    --color-bg-card: #ffffff;
    --color-bg-sidebar: #ffffff;
    --color-bg-footer: #0f172a;
    --color-text-primary: #1e293b;
    --color-text-secondary: #64748b;
    --color-accent: #1d4ed8;
    --color-accent-hover: #1e40af;
    --color-border: #e2e8f0;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --container-width: 1200px;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg-main);
}

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

a:hover {
    color: var(--color-accent-hover);
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: var(--color-bg-header);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

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

.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: 8px;
}

.site-logo svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.site-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.site-title a:hover {
    color: var(--color-accent);
}

.site-description {
    margin: 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
}

/* Navigation */
.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 32px;
    }
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation a {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--color-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toggle,
.menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-text-secondary);
    border-radius: 50%;
    transition: background 0.2s;
}

.search-toggle:hover,
.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-toggle {
    display: block;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.btn-subscribe {
    display: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #1e293b;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-subscribe:hover {
    background: #334155;
}

@media (min-width: 768px) {
    .btn-subscribe {
        display: inline-block;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg-header);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
}

.mobile-menu.is-active {
    display: block;
}

.mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: var(--color-text-primary);
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .hero-section {
        padding: 48px 0;
    }
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (min-width: 768px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    background: rgba(29, 78, 216, 0.1);
    border-radius: 4px;
}

.hero-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

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

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

.hero-title a:hover {
    opacity: 0.8;
}

.hero-excerpt {
    margin: 0 0 16px;
    color: var(--color-text-secondary);
    font-size: 15px;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
}

.hero-date {
    text-align: right;
}

.hero-date-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.hero-date-value {
    font-size: 20px;
    font-weight: 700;
}

/* Main Layout */
.site-main {
    padding: 32px 0 64px;
}

@media (min-width: 768px) {
    .site-main {
        padding: 64px 0;
    }
}

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .content-area {
        grid-template-columns: 2fr 1fr;
    }
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.section-filters {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.section-filters a {
    color: var(--color-text-secondary);
}

.section-filters a.active,
.section-filters a:hover {
    color: var(--color-accent);
    font-weight: 700;
}

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

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

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.1);
}

.post-card-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

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

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.post-card-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

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

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

.post-card-excerpt {
    flex: 1;
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.post-card-author-name {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.post-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
}

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

/* Load More */
.load-more {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.btn-load-more {
    padding: 12px 24px;
    font-size: 14px;
    color: var(--color-text-primary);
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-load-more:hover {
    background: var(--color-bg-card);
    border-color: var(--color-text-secondary);
}

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

@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        top: 96px;
        align-self: start;
    }
}

.widget {
    background: var(--color-bg-sidebar);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 10px 12px 10px 40px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--color-text-primary);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-form button {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: var(--color-text-secondary);
    cursor: pointer;
}

/* Categories Widget */
.widget-categories ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.widget-categories li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.widget-categories a {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.widget-categories a:hover {
    color: var(--color-accent);
}

.widget-categories .count {
    font-size: 12px;
    padding: 2px 8px;
    background: var(--color-bg-main);
    border-radius: 12px;
    color: var(--color-text-secondary);
}

/* Newsletter Widget */
.widget-newsletter .widget-title {
    font-size: 18px;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-text-primary);
}

.widget-newsletter p {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.widget-newsletter input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 8px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: transparent;
}

.widget-newsletter button {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s;
}

.widget-newsletter button:hover {
    background: var(--color-accent-hover);
}

/* Tags Widget */
.widget-tags .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-tags a {
    padding: 4px 12px;
    font-size: 12px;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.widget-tags a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Single Post */
.single-post-header {
    margin-bottom: 48px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.breadcrumbs a {
    color: var(--color-text-secondary);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs .separator {
    opacity: 0.5;
}

.single-post-category {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    background: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.single-post-title {
    margin: 0 0 24px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .single-post-title {
        font-size: 40px;
    }
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    object-fit: cover;
}

.post-author-name {
    font-weight: 700;
}

.post-author-role {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.post-share-buttons {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.share-btn {
    padding: 8px;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: background 0.2s;
}

.share-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Featured Image */
.single-post-thumbnail {
    margin-bottom: 48px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.single-post-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Post Content */
.post-content {
    font-size: 17px;
    line-height: 1.8;
}

.post-content h2 {
    margin: 48px 0 24px;
    padding-bottom: 12px;
    font-size: 28px;
    font-weight: 700;
    border-bottom: 1px solid var(--color-border);
}

.post-content h3 {
    margin: 32px 0 16px;
    font-size: 22px;
    font-weight: 700;
}

.post-content p {
    margin: 0 0 24px;
}

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

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    margin: 32px 0;
    padding: 24px;
    background: rgba(29, 78, 216, 0.05);
    border-left: 4px solid var(--color-accent);
    font-style: italic;
    font-size: 18px;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Table of Contents */
.toc-box {
    margin-bottom: 40px;
    padding: 24px;
    background: var(--color-bg-sidebar);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.toc-box h4 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
}

.toc-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc-box li {
    margin-bottom: 8px;
}

.toc-box a {
    font-size: 14px;
}

/* Tables */
.post-content table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-content table th,
.post-content table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.post-content table th {
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-content table tr:nth-child(even) {
    background: #f8fafc;
}

/* Code Blocks */
.post-content pre {
    margin: 32px 0;
    padding: 0;
    background: #1e293b;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #94a3b8;
}

.post-content pre code {
    display: block;
    padding: 16px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    overflow-x: auto;
}

.post-content code {
    padding: 2px 6px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
    background: #f1f5f9;
    border-radius: 4px;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.post-tags-label {
    font-size: 14px;
    font-weight: 700;
    margin-right: 8px;
}

.post-tags a {
    padding: 4px 12px;
    font-size: 12px;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    transition: all 0.2s;
}

.post-tags a:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Footer */
.site-footer {
    background: var(--color-bg-footer);
    color: #cbd5e1;
    padding: 64px 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

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

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
    color: #60a5fa;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
}

.footer-nav h5 {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.footer-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    font-size: 14px;
    color: #94a3b8;
    transition: color 0.2s;
}

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

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #94a3b8;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #334155;
    font-size: 13px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #94a3b8;
}

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

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

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--color-text-primary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--color-bg-main);
    border-color: var(--color-text-secondary);
}

.pagination .current {
    color: #fff;
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: 12px;
    padding: 20px 28px;
    margin: 40px 0;
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.cta-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-banner-logo {
    height: 28px;
    flex-shrink: 0;
}

.cta-banner-text {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

.cta-banner-btn {
    display: inline-block;
    background: #f4c430;
    color: #0f172a;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.cta-banner-btn:hover {
    opacity: 0.9;
    color: #0f172a;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* WordPress Specific */
.alignleft {
    float: left;
    margin-right: 24px;
    margin-bottom: 16px;
}

.alignright {
    float: right;
    margin-left: 24px;
    margin-bottom: 16px;
}

.aligncenter {
    display: block;
    margin: 24px auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    margin-top: 8px;
    font-size: 13px;
    color: var(--color-text-secondary);
    text-align: center;
}

/* Comments */
.comments-area {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.comments-title {
    margin: 0 0 32px;
    font-size: 24px;
    font-weight: 700;
}

.comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.comment-author-name {
    font-weight: 700;
}

.comment-date {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.comment-content p {
    margin: 0;
}

/* Comment Form */
.comment-respond {
    margin-top: 48px;
}

.comment-reply-title {
    margin: 0 0 24px;
    font-size: 20px;
    font-weight: 700;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: transparent;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.comment-form .submit {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--color-accent);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .submit:hover {
    background: var(--color-accent-hover);
}

/* Fuki (吹き出し) Styles */
.fuki {
    display: flex;
    align-items: flex-start;
    margin: 24px 0;
    gap: 12px;
}

.fuki-right {
    flex-direction: row-reverse;
}

.fuki-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fuki-emoji {
    font-size: 32px;
}

.fuki-content {
    max-width: 70%;
}

.fuki-name {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.fuki-right .fuki-name {
    text-align: right;
}

.fuki-text {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 16px;
    position: relative;
    font-size: 15px;
    line-height: 1.7;
}

.fuki-left .fuki-text {
    border-top-left-radius: 4px;
}

.fuki-right .fuki-text {
    border-top-right-radius: 4px;
    background: #e0e7ff;
    border-color: #c7d2fe;
}

/* Fuki icon image style */
.fuki-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.fuki-avatar {
    width: 60px;
    height: 60px;
    overflow: hidden;
}

.fuki-text p {
    margin: 0;
}

/* Navigation Pagination Fix */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--color-text-primary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.page-numbers:hover {
    background: var(--color-bg-main);
    border-color: var(--color-text-secondary);
}

.page-numbers.current {
    color: #fff;
    background: var(--color-accent);
    border-color: var(--color-accent);
}
