/* ==========================================================================
   Single Post Page Styles
   ========================================================================== */

/* ==========================================================================
   Article Hero Section (トップページ風)
   ========================================================================== */
.article-hero-section {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f7f7 100%);
    padding: 2rem 0 3rem;
    position: relative;
}

/* 装飾（PC専用） */
@media (min-width: 992px) {
    .article-hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        height: 200%;
        background: radial-gradient(circle, rgba(45, 164, 167, 0.08) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }
    
    .article-hero-section .container {
        position: relative;
        z-index: 1;
    }
}

/* Breadcrumb in Hero */
.article-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    font-size: 0.8125rem;
}

.article-breadcrumb .breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.article-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color);
}

.article-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* Hero Badge (カテゴリー) */
.article-hero-section .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.article-hero-section .hero-badge .hero-badge-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.article-hero-section .hero-badge i {
    font-size: 1rem;
}

/* Hero Title */
.article-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

.article-hero-title .title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Button */
.article-hero-section .hero-btn {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.article-hero-section .hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(45, 164, 167, 0.3);
    color: var(--white);
}

/* Hero Image Wrapper */
.article-hero-section .hero-image-wrapper {
    position: relative;
}

.article-hero-section .hero-image-wrapper > img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 741 / 461;
    object-fit: cover;
}

/* Float Cards */
.article-hero-section .hero-float-card {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.article-hero-section .hero-float-card.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.article-hero-section .hero-float-card.card-2 {
    bottom: 15%;
    left: -20px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Breadcrumb (fallback - now in hero)
   ========================================================================== */
.breadcrumb-nav {
    background: var(--bg-light);
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.8125rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Main Content
   ========================================================================== */
.single-content {
    padding: 2.5rem 0;
    background: var(--bg-light);
}

.article-main {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* ==========================================================================
   Article Header
   ========================================================================== */
.article-header {
    padding: 2rem 2rem 1.5rem;
}

.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-date,
.article-update {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-excerpt {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Author Box */
.article-author-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.article-author-box .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info .author-name {
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.author-info .author-name:hover {
    color: var(--primary-color);
}

.author-info .author-title {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.article-stats {
    display: flex;
    gap: 1rem;
}

.article-stats .stat-item {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ==========================================================================
   Article Thumbnail
   ========================================================================== */
.article-thumbnail {
    margin: 0;
}

.article-thumbnail img {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
}

.article-thumbnail figcaption {
    padding: 0.75rem 2rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    background: var(--bg-light);
    text-align: center;
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */
.table-of-contents {
    margin: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    cursor: pointer;
    transition: var(--transition);
}

.toc-header:hover {
    background: #e8e8e8;
}

.toc-header h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

.toc-toggle {
    transition: transform 0.3s ease;
}

.toc-header[aria-expanded="false"] .toc-toggle {
    transform: rotate(-180deg);
}

.toc-list {
    padding: 1rem 1.5rem 1rem 2.5rem;
    margin: 0;
    counter-reset: toc-counter;
}

.toc-list li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e0e0e0;
}

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

.toc-list a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.toc-list a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* ==========================================================================
   Article Body
   ========================================================================== */
.article-body {
    padding: 0 2rem 2rem;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    color: var(--text-dark);
}

.article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 2rem;
    color: var(--text-dark);
    border-left: solid 3px #2DA4A7;
    padding-left: 10px;
}

.article-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2DA4A7
}

.article-body p {
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.article-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-body a:hover {
    text-decoration: none;
}

/* Article Figure */
.article-figure {
    margin: 2rem 0;
}

.article-figure img {
    width: 100%;
    border-radius: 12px;
}

.article-figure figcaption {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* ==========================================================================
   Info Box
   ========================================================================== */
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.info-box-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-box-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-box-content ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.info-box-content p {
    margin-bottom: 0;
}

/* Info Box Variants */
.info-box-primary {
    background: rgba(45, 164, 167, 0.1);
    border-left: 4px solid var(--primary-color);
}

.info-box-primary .info-box-icon {
    background: var(--primary-color);
    color: var(--white);
}

.info-box-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #F59E0B;
}

.info-box-warning .info-box-icon {
    background: #F59E0B;
    color: var(--white);
}

.info-box-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #EF4444;
}

.info-box-danger .info-box-icon {
    background: #EF4444;
    color: var(--white);
}

/* ==========================================================================
   Blockquote
   ========================================================================== */
.article-quote {
    position: relative;
    margin: 2rem 0;
    padding: 2rem 2rem 2rem 4rem;
    background: linear-gradient(135deg, rgba(45, 164, 167, 0.05), rgba(109, 213, 237, 0.05));
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.article-quote::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
}

.article-quote p {
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.article-quote cite {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: normal;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.comparison-table {
    margin: 1.5rem 0;
}

.comparison-table .table {
    margin-bottom: 0;
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table td {
    vertical-align: middle;
}

/* ==========================================================================
   Feature Cards
   ========================================================================== */
.feature-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin: 0 auto 1rem;
}

.feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   Stats Cards
   ========================================================================== */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: var(--white);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-card .stat-label {
    font-size: 0.8125rem;
    opacity: 0.9;
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline {
    position: relative;
    padding: 1rem 0;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid #e0e0e0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-marker.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   Code Block
   ========================================================================== */
.code-block {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.code-block code {
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ==========================================================================
   Accordion
   ========================================================================== */
.article-body .accordion {
    margin: 1.5rem 0;
}

.article-body .accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.article-body .accordion-button {
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.article-body .accordion-button:not(.collapsed) {
    background: rgba(45, 164, 167, 0.1);
    color: var(--primary-color);
}

.article-body .accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* ==========================================================================
   Summary Box
   ========================================================================== */
.summary-box {
    background: linear-gradient(135deg, rgba(45, 164, 167, 0.1), rgba(109, 213, 237, 0.1));
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(45, 164, 167, 0.2);
}

.summary-box h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.summary-box ul {
    margin-bottom: 0;
}

.summary-box li {
    position: relative;
    padding-left: 1.5rem;
    list-style: none;
}

.summary-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ==========================================================================
   Article Footer
   ========================================================================== */
.article-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.tags-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tag-link {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.8125rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

.tag-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: var(--white);
}

.share-twitter { background: #1DA1F2; }
.share-facebook { background: #1877F2; }
.share-line { background: #00B900; }
.share-hatena { background: #00A4DE; }
.share-copy { background: #6c757d; }

.hatena-icon {
    font-weight: 700;
    font-size: 0.875rem;
}

/* ==========================================================================
   Author Profile
   ========================================================================== */
.author-profile {
    margin: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.author-profile-inner {
    display: flex;
    gap: 1.5rem;
}

.author-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.author-profile-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.author-social {
    display: flex;
    gap: 0.5rem;
}

.author-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.author-social a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.author-profile-title {
    font-size: 0.8125rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.author-profile-bio {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.author-profile-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.author-profile-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */
.post-navigation {
    display: flex;
    gap: 1rem;
    margin: 0 2rem 2rem;
}

.post-nav-link {
    flex: 1;
    display: block;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.post-nav-link:hover {
    background: rgba(45, 164, 167, 0.1);
    transform: translateY(-3px);
}

.post-nav-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.post-nav-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */
.related-posts {
    padding: 2rem;
    border-top: 1px solid #eee;
}

.related-posts .card-img-wrapper img {
    aspect-ratio: 741 / 461;
    object-fit: cover;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    color: var(--white);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.widget-title i {
    color: var(--primary-color);
}

/* Widget Author */
.widget-author {
    text-align: center;
}

.widget-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.widget-author-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.widget-author-title {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.widget-author-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.widget-author-stats .stat {
    text-align: center;
}

.widget-author-stats .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.widget-author-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Widget Progress (読了率) */
.widget-progress {
    text-align: center;
}

.widget-progress .reading-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.widget-progress .reading-progress-bar {
    flex: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.widget-progress .reading-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 5px;
}

.widget-progress .reading-progress-percent {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 50px;
    text-align: right;
}

/* Reading Progress (旧スタイル - 互換性のため残す) */
.reading-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.reading-progress-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.reading-progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.reading-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s ease;
}

.reading-progress-percent {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 32px;
    text-align: right;
}

/* Popular Posts */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popular-post-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.popular-post-rank {
    width: 28px;
    height: 28px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.popular-post-item:nth-child(1) .popular-post-rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--white);
}

.popular-post-item:nth-child(2) .popular-post-rank {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: var(--white);
}

.popular-post-item:nth-child(3) .popular-post-rank {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: var(--white);
}

.popular-post-content h4 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.popular-post-content h4 a {
    color: var(--text-dark);
    text-decoration: none;
}

.popular-post-content h4 a:hover {
    color: var(--primary-color);
}

.popular-post-views {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #eee;
}

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

.category-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.category-count {
    margin-left: auto;
    background: var(--bg-light);
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud-item {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 0.8125rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
}

.tag-cloud-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tag-cloud-item.tag-lg {
    font-size: 0.9375rem;
    font-weight: 500;
}

.tag-cloud-item.tag-sm {
    font-size: 0.75rem;
}

/* Widget Newsletter */
.widget-newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    text-align: center;
}

.widget-newsletter .newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.widget-newsletter h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.widget-newsletter p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.newsletter-form .form-control {
    border-radius: 8px;
    border: none;
    margin-bottom: 0.75rem;
}

.widget-newsletter .btn-primary-custom {
    background: var(--white);
    color: var(--primary-color);
}

.widget-newsletter .btn-primary-custom:hover {
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-note {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Widget Newsletter - Contact Form 7 */
.widget-newsletter .wpcf7 {
    width: 100%;
}

.widget-newsletter .wpcf7-form p {
    margin-bottom: 0;
}

.widget-newsletter .wpcf7-form p br {
    display: none;
}

.widget-newsletter .wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 0.75rem;
}

.widget-newsletter .wpcf7-form input[type="text"],
.widget-newsletter .wpcf7-form input[type="email"] {
    width: 100%;
    border-radius: 8px;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    transition: box-shadow 0.2s ease;
}

.widget-newsletter .wpcf7-form input[type="text"]:focus,
.widget-newsletter .wpcf7-form input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.widget-newsletter .wpcf7-form input[type="text"]::placeholder,
.widget-newsletter .wpcf7-form input[type="email"]::placeholder {
    color: #9ca3af;
}

.widget-newsletter .wpcf7-form input[type="submit"] {
    width: 100%;
    background: #fff;
    color: #2DA4A7;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 0.25rem;
}

.widget-newsletter .wpcf7-form input[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.widget-newsletter .wpcf7-spinner {
    display: inline-block;
    margin-left: 0.5rem;
}

.widget-newsletter .wpcf7-response-output {
    margin: 0.75rem 0 0 !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px !important;
    font-size: 0.8125rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff;
}

.widget-newsletter .wpcf7 form.sent .wpcf7-response-output {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5) !important;
}

.widget-newsletter .wpcf7 form.invalid .wpcf7-response-output {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5) !important;
}

.widget-newsletter .wpcf7-not-valid-tip {
    color: #fecaca;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
    text-align: left;
}

/* Widget Ad */
.widget-ad {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.ad-label {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.widget-ad img {
    border-radius: 16px;
}

/* ==========================================================================
   Floating Share
   ========================================================================== */
.floating-share {
    position: fixed;
    left: 20px;
    bottom: 100px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.floating-share.visible {
    opacity: 1;
    visibility: visible;
}

.floating-share-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.floating-share-toggle:hover {
    transform: scale(1.1);
}

.floating-share-buttons {
    position: absolute;
    bottom: 60px;
    left: 5px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.floating-share.active .floating-share-buttons {
    opacity: 1;
    visibility: visible;
}

.floating-share-buttons .share-btn {
    width: 40px;
    height: 40px;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Responsive - Single Page
   ========================================================================== */
@media (max-width: 991.98px) {
    .article-hero-section {
        padding: 1.5rem 0 2rem;
    }

    .article-hero-title {
        font-size: 2rem;
    }

    .sidebar {
        position: static;
        margin-top: 2rem;
    }

    .sticky-widget {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .article-hero-section {
        padding: 1rem 0 1.5rem;
    }

    .article-hero-title {
        font-size: 1.5rem;
    }

    /* スマホでは読了率を非表示 */
    .widget-progress {
        display: none;
    }

    .article-body {
        padding: 0 1.5rem 1.5rem;
    }

    .article-body h2 {
        font-size: 1.25rem;
    }

    .article-body h3 {
        font-size: 1.125rem;
    }

    .table-of-contents {
        margin: 1.5rem;
    }

    .author-profile {
        margin: 1.5rem;
    }

    .author-profile-inner {
        flex-direction: column;
        text-align: center;
    }

    .author-profile-header {
        justify-content: center;
    }

    .post-navigation {
        flex-direction: column;
        margin: 0 1.5rem 1.5rem;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }

    .related-posts {
        padding: 1.5rem;
    }

    .feature-cards .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .stats-cards .col-6 {
        flex: 0 0 50%;
    }

    .info-box {
        flex-direction: column;
    }

    .floating-share {
        left: 10px;
        bottom: 80px;
    }
}

/* ==========================================================================
   スマホ・タブレット用レスポンシブ
   ========================================================================== */
@media (max-width: 991.98px) {
    .article-hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-image-wrapper {
        margin-bottom: 1.5rem;
    }
    
    .article-hero-title {
        font-size: 1.625rem;
    }
}

/* モバイル用画像オーバーレイ */
.article-hero-section .hero-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    border-radius: 0 0 16px 16px;
}

.article-hero-section .hero-overlay-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
}

.article-hero-section .hero-overlay-stats i {
    color: #fff;
}

@media (max-width: 575.98px) {
    .single-content {
        padding: 1rem 0;
    }
    
    .article-hero-section {
        padding: 1rem 0;
    }

    .article-hero-title {
        font-size: 1.375rem;
        line-height: 1.4;
    }

    .article-hero-section .hero-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .article-breadcrumb .breadcrumb {
        font-size: 0.75rem;
    }
}