/**
 * Theme Name: Notary Portal
 * Theme URI: https://www.notary-portal.jp
 * Author: Notary Portal Development Team
 * Author URI: https://www.notary-portal.jp
 * Description: Custom theme for Administrative Scrivener Office Portal
 * Version: 1.1.5
 * License: Proprietary
 * Text Domain: notary-portal
 * Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 */

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

/* =Global
-------------------------------------------------------------- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =Header
-------------------------------------------------------------- */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.75rem 0 0.25rem 0;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

/* =Navigation
-------------------------------------------------------------- */
.main-navigation {
    margin-top: 1rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #0073aa;
}

/* =Content
-------------------------------------------------------------- */
.site-content {
    padding: .5rem 0 2rem;
    min-height: 60vh;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.entry-content {
    line-height: 1.8;
}

/* =Search Form
-------------------------------------------------------------- */
.search-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-section--inline {
    margin-bottom: 2.5rem;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-form input[type="text"],
.search-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-form button {
    background-color: #f97316;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: #ea580c;
}

/* =Office Cards
-------------------------------------------------------------- */
.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.office-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.office-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.office-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.office-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.office-specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.specialization-tag {
    background-color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
}

/* =Footer
-------------------------------------------------------------- */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 1rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    font-size: 0.9rem;
}

/* =Responsive
-------------------------------------------------------------- */
@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .office-grid {
        grid-template-columns: 1fr;
    }
    
    .site-title {
        text-align: center;
    }
}

/* =Accessibility
-------------------------------------------------------------- */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    position: absolute;
    left: 6px;
    top: 7px;
    z-index: 999999;
    padding: 8px 16px;
    background-color: #f1f1f1;
    color: #0073aa;
    text-decoration: none;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,0.2);
}

/* Search results layout */
.search-layout-two-column {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.search-main {
    flex: 1 1 auto;
    min-width: 0;
}

.search-sidebar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    max-width: 320px;
    flex: 0 0 320px;
    width: 100%;
}

.search-sidebar--standalone {
    margin-top: 0;
}

.search-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-nav-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-nav-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.search-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-nav-link {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.95rem;
    background-color: #f8fafc;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-nav-link:hover,
.search-nav-link:focus {
    background-color: #e0ecff;
    color: #1d4ed8;
}

.search-nav-link.is-active {
    background-color: #1d4ed8;
    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .search-layout-two-column {
        flex-direction: column;
    }

    .search-sidebar {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }

    .search-nav-list {
        flex-wrap: wrap;
        flex-direction: row;
        gap: 12px;
    }

    .search-nav-link {
        flex: 1 1 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .search-sidebar--standalone {
        display: none;
    }
}

@media (max-width: 600px) {
    .search-nav-link {
        flex: 1 1 100%;
    }
}

/* 検索結果件数 */
.search-results-count {
    margin: 16px 0;
    text-align: center;
}

.results-count-text {
    margin: 0;
    font-size: 1rem;
    color: #374151;
}

.results-count-text strong {
    color: #f97316;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Search results page heading and description */
.office-search-results-page .page-heading {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1e293b;
    margin: 24px 0 12px;
    line-height: 1.5;
}

.office-search-results-page .page-description {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 32px;
}

.office-search-results-page .page-description p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* Search results cards */
.office-search-results-page .offices-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 0;
}

.office-search-results-page .office-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d4e3f7;
    border-radius: 20px;
    padding: 32px 32px 28px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.office-search-results-page .office-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #20b4d7 0%, #1d4ed8 100%);
}

.office-search-results-page .office-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 48px rgba(15, 23, 42, 0.14);
}

.office-card-header {
    padding-bottom: 16px;
    /* margin-bottom: 20px; */
    margin-bottom: 0 !important;
    border-bottom: 1px solid #e5e7eb;
}

.office-screenshot {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 118, 184, 0.3);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.office-main-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.office-reservation-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1.5px solid #f97316;
    color: #f97316;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ffffff;
    line-height: 1.2;
}

.office-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.office-name-link {
    color: #1A366D;
    text-decoration: none;
    transition: color 0.2s ease;
}

.office-name-link:hover,
.office-name-link:focus {
    color: #3B82F6;
    text-decoration: underline;
}

.office-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin-top: 4px;
}

.office-header-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: #6B7280;
}

.office-header-meta__item--location {
    font-weight: 600;
}

.office-meta-icon {
    display: inline-block;
    font-size: 0.875rem;
    margin-right: 2px;
    flex-shrink: 0;
}

/* Office Card Subheader */
.office-card-subheader {
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.office-subheader-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.office-business-hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 0.875rem;
}

.office-hours-icon {
    font-size: 1rem;
    color: #F97316;
}

.office-hours-label {
    font-weight: 500;
    color: #374151;
}

.office-hours-time {
    color: #6B7280;
}

.office-subheader-badges {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.office-badge-outline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1.5px solid #f97316;
    border-radius: 20px;
    color: #f97316;
    font-size: 0.75rem;
    font-weight: 600;
    background: #fff7ed;
    white-space: nowrap;
}

.office-badge-outline.office-badge-female {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.office-badge-outline .badge-icon {
    font-size: 0.875rem;
}

.office-badge-language {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.office-header-access-label {
    font-weight: 600;
    color: #0f172a;
}

.office-header-supports {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.office-support-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px 4px 26px;
    border-radius: 12px;
    background: #F3F4F6;
    color: #4B5563;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
}

.office-support-chip::before {
    content: 'P';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: #9CA3AF;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-support-chip--payment {
    background: #F3F4F6;
    color: #4B5563;
}

.office-support-chip--payment::before {
    background: #9CA3AF;
    content: '¥';
    font-size: 0.65rem;
}

.office-support-chip--mynumber {
    background: #F3F4F6;
    color: #4B5563;
}

.office-support-chip--mynumber::before {
    background: #9CA3AF;
    content: 'M';
    font-size: 0.6rem;
}

.office-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #475569;
}

.office-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #daf5ef;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.office-meta .office-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #fed7aa;
    color: #c2410c;
    font-weight: 600;
}

.office-services {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.office-services:empty {
    display: none;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #feecec;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    letter-spacing: 0.01em;
}

.service-badge::after {
    content: '›';
    font-size: 0.9rem;
    line-height: 1;
}

.service-badge.more {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.service-badge.more::after {
    content: '';
}

.office-card-body {
    padding: 16px 0;
}

.office-content-layout {
    display: flex;
    gap: 20px;
}

.office-image-container {
    flex-shrink: 0;
    width: 160px;
}

.office-profile-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.office-image-caption {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    text-align: center;
}

.office-content-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.office-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
}

.office-services-box {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 12px 16px;
}

.services-box-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.services-box-icon {
    font-size: 1rem;
}

.services-box-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
}

.services-box-content {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
}

.services-category-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.services-list {
    line-height: 1.8;
}

.office-info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.office-info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
}

.info-label {
    font-weight: 600;
    color: #374151;
    flex-shrink: 0;
}

.info-value {
    color: #6B7280;
    line-height: 1.5;
}

.phone-link {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.phone-link:hover,
.phone-link:focus {
    color: #2563EB;
    text-decoration: underline;
}

.website-link {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.website-link:hover,
.website-link:focus {
    color: #2563EB;
    text-decoration: underline;
}

.office-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 12px;
    font-size: 0.875rem;
    color: #6B7280;
}

.stats-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stats-icon {
    font-size: 1rem;
    color: #EF4444;
}

.stats-label {
    font-weight: 500;
    color: #374151;
}

.stats-value {
    color: #374151;
}

.stats-divider {
    color: #D1D5DB;
    margin: 0 4px;
}

/* Removed old detail-label styles */

.detail-value {
    font-size: 0.96rem;
    color: #0f172a;
    line-height: 1.5;
}

.detail-value a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(37, 99, 235, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.detail-value a:hover,
.detail-value a:focus {
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.7);
}

.office-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.office-features:empty {
    display: none;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #34d399;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 700;
}

.feature-badge::before {
    content: '✔';
    font-size: 0.75rem;
}

.office-pricing {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #dbe6f7;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.pricing-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.pricing-content {
    font-size: 0.92rem;
    color: #1f2937;
    white-space: pre-line;
    line-height: 1.6;
}

.office-actions {
    display: flex;
    justify-content: flex-start;
}

.btn-website {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-website:hover,
.btn-website:focus {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.35);
}

@media (max-width: 1024px) {
    .office-card-header {
        grid-template-columns: minmax(100px, 130px) minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .office-search-results-page .page-heading {
        font-size: 1.5rem;
        margin: 20px 0 12px;
    }

    .office-search-results-page .page-description {
        padding: 14px 16px;
        margin-bottom: 24px;
    }

    .office-search-results-page .page-description p {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .office-search-results-page .office-card {
        padding: 28px 24px 24px;
    }

    .office-card-header {
        padding-bottom: 14px;
    }

    .office-card-subheader {
        padding: 10px 0;
        margin-bottom: 14px;
    }

    .office-subheader-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .office-business-hours {
        font-size: 0.8rem;
    }

    .office-badge-outline {
        padding: 3px 10px;
        font-size: 0.7rem;
    }

    .office-main-info {
        /* padding: 18px 20px; */
        padding: 0;
    }

    .office-card-body {
        padding: 12px 0;
    }

    .office-content-layout {
        flex-direction: column;
        gap: 8px;
    }

    .office-image-container {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .office-content-main {
        gap: 12px;
    }

    .office-stats {
        flex-wrap: wrap;
        font-size: 0.8rem;
    }
}

@media (max-width: 520px) {
    .service-badge,
    .feature-badge,
    .office-type-badge,
    .office-meta .office-location {
        font-size: 0.72rem;
        padding: 6px 12px;
    }

    .office-screenshot {
        height: 180px;
    }

    .office-reservation-pill {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .office-name {
        font-size: 1.1rem;
    }

    .office-header-meta {
        gap: 6px 12px;
    }

    .office-header-meta__item {
        font-size: 0.8rem;
    }
}

/* =Pagination
-------------------------------------------------------------- */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.pagination-wrapper.pagination-top {
    margin-bottom: 30px;
}

.pagination-info {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

.pagination-range {
    font-weight: 700;
    color: #111827;
}

.pagination-total {
    color: #6B7280;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-prev,
.pagination-next {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
    color: #374151;
}

.pagination-prev.disabled,
.pagination-next.disabled {
    color: #D1D5DB;
    cursor: not-allowed;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.95rem;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination-number:hover {
    background: #F3F4F6;
    color: #111827;
}

.pagination-number.current {
    color: #f97316;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    font-size: 0.9rem;
    color: #9CA3AF;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .pagination-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 20px 16px;
        align-items: flex-start;
    }

    .pagination-info {
        font-size: 0.9rem;
    }

    .pagination-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .pagination-prev,
    .pagination-next {
        font-size: 0.85rem;
        padding: 4px 8px;
    }

    .pagination-number {
        min-width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .pagination-dots {
        min-width: 28px;
        height: 28px;
    }
}

/* =Office Detail Page
-------------------------------------------------------------- */
.office-detail-page {
    padding: .5rem 0 0;
    background: #f9fafb;
}

.office-detail-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.office-detail-header {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* ヘッダートップ */
.office-detail-header .header-top {
    padding: 20px 30px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.office-name {
    font-size: 2rem;
    color: #1F2937;
    margin: 0;
    font-weight: 700;
    flex: 1 1 auto;
}

.contact-area {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #F3F4F6;
    padding: 15px 20px;
    border-radius: 8px;
}

.contact-label {
    font-size: 0.875rem;
    color: #6B7280;
}

.btn-reservation {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F97316;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-reservation:hover {
    background: #EA580C;
}

.btn-website {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #F97316;
    padding: 10px 20px;
    border: 2px solid #F97316;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-website:hover {
    background: #FEF3C7;
}

.phone-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1F2937;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.phone-number:hover {
    color: #F97316;
}

/* ヘッダーコンテンツ */
.office-detail-header .header-content {
    padding: 30px;
    display: flex;
    gap: 30px;
}

.office-image {
    flex: 0 0 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    font-size: 3rem;
}

.office-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 住所セクション */
.address-section {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.address {
    color: #1F2937;
}

.postal-code {
    color: #6B7280;
}

.map-link {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
}

.map-link:hover {
    text-decoration: underline;
}

/* アクセス情報・特徴タグ */
.access-info,
.features,
.business-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #F3F4F6;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #4B5563;
}

.feature-tag {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.tag-blue {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #DBEAFE;
    color: #1E40AF;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.tag-pink {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FCE7F3;
    color: #9F1239;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* アイコン（FontAwesome風の疑似実装） */
.icon-calendar::before { content: "📅"; }
.icon-phone::before { content: "📞"; }
.icon-building::before { content: "🏢"; }
.icon-location::before { content: "📍"; }
.icon-globe::before { content: "🌐"; }

.office-detail-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 事務所メイン画像 */
.office-main-image {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-featured-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
}

.image-source {
    font-size: 0.95rem;
    color: #6B7280;
    font-style: italic;
    text-align: center;
    margin: 0 0 40px 0;
    padding: 0 20px;
}

.office-detail-section {
    margin-bottom: 40px;
}

.office-detail-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.25rem;
    color: #1F2937;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #E5E7EB;
    font-weight: 600;
}

.office-info-table {
    width: 100%;
    border-collapse: collapse;
}

.office-info-table th,
.office-info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.office-info-table th {
    width: 180px;
    background: #F9FAFB;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.office-info-table td {
    color: #1F2937;
    font-size: 0.95rem;
}

.office-info-table tr:last-child th,
.office-info-table tr:last-child td {
    border-bottom: none;
}

.office-info-table a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.office-info-table a:hover {
    color: #2563EB;
    text-decoration: underline;
}

.service-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.service-list li {
    padding: 4px 0;
    color: #1F2937;
}

.office-description-content {
    padding: 20px;
    background: #F9FAFB;
    border-radius: 8px;
    line-height: 1.8;
    color: #374151;
}


.office-detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    color: #6B7280;
    text-decoration: none;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #F9FAFB;
    color: #374151;
    border-color: #D1D5DB;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #f97316;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

@media (max-width: 768px) {
    .office-detail-page .container {
        padding: 0 16px;
    }

    /* ヘッダートップのレスポンシブ */
    .office-detail-header .header-top {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .office-name {
        font-size: 1.5rem;
    }

    .contact-area {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .btn-reservation,
    .btn-website {
        width: 100%;
        justify-content: center;
    }

    .phone-number {
        font-size: 1.1rem;
        justify-content: center;
    }

    /* ヘッダーコンテンツのレスポンシブ */
    .office-detail-header .header-content {
        padding: 20px 15px;
        flex-direction: column;
        gap: 20px;
    }

    .office-image {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }

    /* その他の要素 */
    .office-detail-content {
        padding: 20px;
    }

    .office-main-image {
        margin-bottom: 12px;
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
    }

    .office-featured-image {
        max-height: 300px;
    }

    .image-source {
        padding: 0 20px;
        font-size: 0.9rem;
        margin: 0 0 25px 0;
    }

    .office-info-table th {
        width: 120px;
        font-size: 0.85rem;
    }

    .office-info-table td {
        font-size: 0.9rem;
    }

    .office-detail-actions {
        flex-direction: column;
        gap: 16px;
    }

    .btn-back,
    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* 評価セクションのレスポンシブ */
    .rating-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .stars {
        font-size: 1.2rem;
    }

    .rating-score {
        font-size: 1.2rem;
    }

    /* アクセス情報のレスポンシブ */
    .access-info .tag,
    .features .feature-tag,
    .business-info .tag-blue,
    .business-info .tag-pink {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}

/* =Columns List Page
-------------------------------------------------------------- */
.columns-list-page {
    padding: .5px 0 2rem;
    background: #f5f7fa;
    min-height: 100vh;
}

.columns-list-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.columns-list-page .page-header {
    text-align: left;
    margin-bottom: 30px;
}

.columns-list-page .page-title {
    font-size: 1.5rem;
    color: #111827;
    margin: 0;
    font-weight: 700;
}

/* タグフィルター */
.tag-filter-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tag-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-filter-item {
    display: inline-block;
    padding: 8px 18px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 24px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.tag-filter-item:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.tag-filter-item.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    border-color: #f97316;
    font-weight: 600;
}

/* 記事グリッド */
.columns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.column-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.column-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.column-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.column-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

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

.column-card:hover .column-card-image img {
    transform: scale(1.08);
}

.column-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-image-placeholder {
    font-size: 3rem;
    color: #9ca3af;
    opacity: 0.5;
}

.column-card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.95);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

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

.column-card-meta {
    margin-bottom: 10px;
}

.column-card-date {
    color: #6b7280;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.column-card-date::before {
    content: '📅';
    font-size: 0.85rem;
}

.column-card-title {
    font-size: 1.125rem;
    color: #111827;
    margin: 0 0 12px;
    font-weight: 700;
    line-height: 1.4;
    background: none;
    border-left: none;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-card-title::before {
    content: none;
}

.column-card-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-card-more {
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}

.column-card:hover .column-card-more {
    gap: 10px;
}


/* 記事なしメッセージ */
.no-articles-message {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.no-articles-message p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0 0 30px;
}

.btn-back-home {
    display: inline-block;
    padding: 12px 30px;
    background: #f97316;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-back-home:hover {
    background: #ea580c;
}

/* レスポンシブ対応 */
@media (max-width: 1280px) {
    .columns-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .columns-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .columns-list-page .page-title {
        font-size: 1.25rem;
    }

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

    .column-card-image {
        height: 180px;
    }

    .tag-filter-section {
        padding: 18px;
    }
}

/* =Column Detail Page
-------------------------------------------------------------- */
.column-detail-page {
    min-height: 100vh;
}

.column-detail-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.column-article {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    /* コラム記事本文内全体のフォントスタイルを統一 */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Noto Sans JP", sans-serif;
    font-size: 1.125rem;
    line-height: 1.9;
    color: #374151;
    letter-spacing: 0.02em;
}

/* WordPress編集画面のインラインスタイルを無視して、通常テキストのフォントと行間を統一 */
.column-article p,
.column-article span:not(.tag-badge),
.column-article div:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6),
.column-article strong,
.column-article em,
.column-article b,
.column-article i,
.column-article u,
.column-article a:not(.tag-badge),
.column-article li,
.column-article td,
.column-article th {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", "Noto Sans JP", sans-serif !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* パンくずリスト */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.875rem;
    margin-bottom: 10px;
    padding: 12px 0;
    color: #6B7280;
}

.breadcrumb a {
    color: #3B82F6;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.breadcrumb a:hover {
    color: #2563EB;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: #3B82F6;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.breadcrumb a:hover::after {
    transform: scaleX(1);
}

.breadcrumb .separator {
    margin: 0 12px;
    color: #D1D5DB;
    font-size: 0.75rem;
}

.breadcrumb .current {
    color: #374151;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 記事ヘッダー */
.article-header {
    margin-bottom: 40px;
}

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

.article-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

@media (max-width: 768px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .article-dates {
        gap: 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

.article-date {
    color: #6B7280;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.article-updated-date {
    color: #6B7280;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.date-label {
    font-weight: 600;
    color: #374151;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 100%);
    color: #c2410c;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

a.tag-badge {
    text-decoration: none;
    color: #c2410c;
}

.tag-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.article-title {
    color: #111827;
    margin: 0;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* メイン画像 */
.article-featured-image {
    margin-bottom: 45px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    position: relative;
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.article-featured-image:hover .featured-image {
    transform: scale(1.02);
}

/* アイキャッチ画像と目次の間の文章 */
.article-lead-text {
    margin: 30px 0 0 !important;
    padding: 0;
    /* フォントスタイルは親要素(.column-article)から継承 */
}

/* コラム記事本文内の見出しスタイル（.article-content と .article-lead-text 共通） */
.column-article h2 {
    font-size: 1.875rem;
    color: #111827;
    margin: 50px 0 25px;
    /* padding-bottom: 15px; */
    padding-bottom: 0;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #3B82F6 0%, transparent 100%) 1;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
    line-height: 1.4;
}

.column-article h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: linear-gradient(180deg, #3B82F6 0%, #60A5FA 100%);
    border-radius: 3px;
}

.column-article h3 {
    font-size: 1.5rem;
    color: #1F2937;
    margin: 35px 0 18px;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.column-article h3::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #3B82F6;
}

/* コラム記事本文内のパラグラフ、リスト、リンクスタイル（.article-content と .article-lead-text 共通） */
.column-article .article-content p,
.column-article .article-lead-text p {
    margin-bottom: 25px;
    text-align: justify;
}

.column-article .article-content ul,
.column-article .article-content ol,
.column-article .article-lead-text ul,
.column-article .article-lead-text ol {
    margin: 25px 0;
    padding-left: 35px;
}

.column-article .article-content ul,
.column-article .article-lead-text ul {
    list-style-type: none;
    list-style: none;
}

.column-article .article-content ul:not(.toc-list) li,
.column-article .article-lead-text ul:not(.toc-list) li {
    position: relative;
    padding-left: 20px;
    list-style: none;
}

.column-article .article-content li::marker,
.column-article .article-lead-text li::marker {
    content: none;
    display: none;
}

.column-article .article-content ul:not(.toc-list) li::before,
.column-article .article-lead-text ul:not(.toc-list) li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3B82F6;
    font-size: 1.5rem;
    line-height: 1.2;
}

.column-article .article-content ol li,
.column-article .article-lead-text ol li {
    counter-increment: item;
    position: relative;
    padding-left: 20px;
}

.column-article .article-content ol,
.column-article .article-lead-text ol {
    counter-reset: item;
}

.column-article .article-content ol li::before,
.column-article .article-lead-text ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: #3B82F6;
    font-weight: 600;
}

.column-article .article-content li,
.column-article .article-lead-text li {
    margin-bottom: 12px;
    line-height: 1.9;
}

.column-article .article-content a,
.column-article .article-lead-text a {
    color: #3B82F6 !important;
    transition: color 0.3s ease;
    font-weight: 500;
    /* WordPressで設定されたtext-decorationを尊重（インラインスタイル優先） */
    /* color: windowtext などの色指定は無視して統一色を適用 */
}

/* リンク内のspan要素の色も統一（color: windowtextなどを無視） */
.column-article .article-content a span,
.column-article .article-lead-text a span {
    color: inherit !important;
}

.column-article .article-content a:hover,
.column-article .article-lead-text a:hover {
    color: #2563EB;
}

/* PCとスマホ共通 */
.article-content h2,
.article-content h3,
.article-content h4 {
    line-height: 1.4 !important;
}
.column-article .article-content li, .column-article .article-lead-text li {
    margin-bottom: 0;
}

/* 記事本文 */
/* .article-content のフォントスタイルは親要素(.column-article)から継承 */

/* .article-content の個別スタイルは削除し、.column-article の共通スタイルを使用 */

/* 目次スタイル */
.article-toc {
    margin: 30px 0 40px;
    padding: 25px;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.toc-title {
    font-size: 1.5rem;
    color: #111827;
    margin: 0 0 20px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #E5E7EB;
}

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

.toc-list li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.toc-list li:last-child {
    margin-bottom: 0;
}

.toc-item-h2 {
    font-weight: 600;
}

.toc-item-h3 {
    font-weight: 500;
    padding-left: 20px;
}

.article-toc a {
    color: #3B82F6;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.article-toc a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3B82F6;
    transform: scaleX(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.article-toc a:hover {
    color: #2563EB;
    text-decoration: none;
}

.article-toc a:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.article-toc .toc-list li {
    margin: 0.25rem 0 !important;
}

/* 記事内の表 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border: 1px solid #555;
}

.article-content table th,
.article-content table td {
    border: 1px solid #555;
    padding: 12px 15px;
    text-align: left;
}

.article-content table th {
    background-color: #f0f0f0;
    font-weight: 600;
    color: #333;
}

.article-content table tr:hover {
    background-color: #f1f1f1;
}

/* 記事フッター */
.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #E5E7EB;
}

.article-tags-footer {
    margin-bottom: 30px;
}

.tags-label {
    color: #6B7280;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    padding: 6px 15px;
    margin: 5px;
    background: #F3F4F6;
    color: #374151;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #E5E7EB;
    color: #1F2937;
}

/* シェアボタン */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    color: #6B7280;
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.share-twitter {
    background: #1DA1F2;
    color: white;
}

.share-twitter:hover {
    background: #1A8CD8;
}

.share-facebook {
    background: #1877F2;
    color: white;
}

.share-facebook:hover {
    background: #166FE5;
}

.share-line {
    background: #00B900;
    color: white;
}

.share-line:hover {
    background: #00A000;
}


/* エラーメッセージ */
.not-found-message {
    text-align: center;
    padding: 60px 20px;
}

.not-found-message h1 {
    font-size: 2rem;
    color: #1F2937;
    margin-bottom: 20px;
}

.not-found-message p {
    color: #6B7280;
    margin-bottom: 30px;
}


@media (max-width: 768px) {
    .column-detail-page .container {
        padding: 0 16px;
    }

    .column-article {
        padding: 25px 20px;
        font-size: 1rem; /* レスポンシブ時のフォントサイズ */
    }

    .column-article span:not(.tag-badge) {
        line-height: 1.4 !important;
        margin-bottom: 4px;
    }

    .article-title {
        font-size: 1.3rem;
    }

    .article-content h2 {
        font-size: 1.2rem;
    }

    .article-content h3 {
        font-size: 1.1rem;
    }

    .article-content h4 {
        font-size: 1rem;
    }

    .article-content h2,
    .article-content h3,
    .article-content h4 {
        /* line-height: 1.6; */
        margin-top: 18px;
    }

    .column-article .article-content p, .column-article .article-lead-text p {
        margin-bottom: 18px;
    }
    .column-article .article-content ul, .column-article .article-content ol, .column-article .article-lead-text ul, .column-article .article-lead-text ol {
        margin: 18px 0;
    }

    .column-article .article-content ul {
        padding-left: 0;
        margin-bottom: 12px;
    }

    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =Print
-------------------------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .search-section,
    .navigation {
        display: none;
    }
    
    .site-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}
button.search-nav-title {
    text-align: left;
}

.search-nav-title:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.toggle-indicator {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    position: relative;
    transition: transform 0.2s ease;
}

.toggle-indicator::before,
.toggle-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background-color: #6b7280;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.toggle-indicator::before {
    width: 60%;
    height: 2px;
}

.toggle-indicator::after {
    width: 2px;
    height: 60%;
}

[aria-expanded="true"] .toggle-indicator::after {
    opacity: 0;
}

[data-collapsible-panel] {
    display: block;
}

[data-collapsible][data-collapsed="true"] [data-collapsible-panel] {
    display: none;
}

[data-collapsible][data-collapsed="true"] .toggle-indicator {
    transform: rotate(180deg);
}

/* =Contact Page
-------------------------------------------------------------- */
.contact-page {
    padding: 0.5rem 0 2rem;
    background: #f5f7fa;
    min-height: calc(100vh - 200px);
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-page .page-title {
    font-size: 2rem;
    color: #111827;
    margin: 0 0 12px;
    font-weight: 700;
}

.contact-page .page-description {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.contact-page .breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 40px;
    color: #6B7280;
}

.contact-page .breadcrumb a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-page .breadcrumb a:hover {
    color: #2563EB;
    text-decoration: underline;
}

.contact-page .breadcrumb .separator {
    margin: 0 8px;
    color: #9CA3AF;
}

.contact-form-section {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* アラートメッセージ */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    font-weight: bold;
}

/* フォームスタイル */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.required {
    display: inline-block;
    padding: 2px 8px;
    background: #dc2626;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.optional {
    display: inline-block;
    padding: 2px 8px;
    background: #6b7280;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.form-control {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
    line-height: 1.6;
}

.form-privacy {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.form-privacy p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

.form-privacy a {
    color: #3b82f6;
    text-decoration: none;
}

.form-privacy a:hover {
    text-decoration: underline;
}

.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-submit,
.btn-confirm {
    padding: 14px 40px;
    background: #2c5282;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover,
.btn-confirm:hover {
    background: #2a69a8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

.btn-submit:active,
.btn-confirm:active {
    transform: translateY(0);
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 0 16px;
    }

    .contact-page .page-title {
        font-size: 1.5rem;
    }

    .contact-form-section {
        padding: 24px 20px;
    }

    .form-submit {
        flex-direction: column;
    }

    .btn-submit,
    .btn-confirm {
        width: 100%;
    }
}

/* ================================================
   確認画面スタイル
   ================================================ */
.confirm-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    text-align: center;
}

.confirm-description {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
}

.confirm-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
    margin-top: 0;
}

.confirm-item {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
}

.confirm-item:first-child {
    padding-top: 0;
}

.confirm-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.confirm-label {
    width: 140px;
    font-weight: 600;
    color: #666;
    font-size: 14px;
    flex-shrink: 0;
}

.confirm-value {
    flex: 1;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.confirm-message {
    white-space: pre-wrap;
    background: transparent;
    padding: 0;
}

.confirm-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 32px;
}

.btn-back {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    background: white;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #f8f9fa;
    border-color: #999;
    color: #333;
}

/* 確認画面の送信ボタンは共通スタイルを使用 */

/* ================================================
   完了画面スタイル
   ================================================ */
.complete-message {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.complete-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: checkmark 0.5s ease-in-out;
}

.complete-icon svg {
    width: 48px;
    height: 48px;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.complete-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.complete-text {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 32px;
}

.complete-action {
    margin-top: 40px;
}

.btn-home {
    display: inline-block;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 500;
    background: #2c5282;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background: #2a69a8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.3);
}

/* =利用規約ページ
-------------------------------------------------------------- */
.terms-page,
.privacy-page {
    padding: 40px 0 80px;
    background: #fff;
}

.terms-wrapper,
.privacy-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* パンくずリスト */
.terms-page .breadcrumb,
.privacy-page .breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.terms-page .breadcrumb a,
.privacy-page .breadcrumb a {
    color: #2c5282;
    text-decoration: none;
}

.terms-page .breadcrumb a:hover,
.privacy-page .breadcrumb a:hover {
    text-decoration: underline;
}

.terms-page .breadcrumb .separator,
.privacy-page .breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.terms-page .breadcrumb .current,
.privacy-page .breadcrumb .current {
    color: #333;
}

/* ページヘッダー */
.terms-page .page-header,
.privacy-page .page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.terms-page .page-title,
.privacy-page .page-title {
    font-size: 32px;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 10px;
}

.terms-page .terms-date,
.privacy-page .terms-date {
    font-size: 14px;
    color: #6b7280;
}

/* コンテンツ */
.terms-content,
.privacy-content {
    margin-bottom: 60px;
}

.terms-content h2,
.privacy-content h2 {
    font-size: 20px;
    font-weight: bold;
    color: #1a202c;
    margin: 40px 0 16px;
    padding: 10px;
    background: #f9fafb;
    border-left: 4px solid #2c5282;
}

.terms-content h2:first-child,
.privacy-content h2:first-child {
    margin-top: 0;
}

.terms-content p,
.privacy-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #374151;
    padding: 0 10px;
}

.terms-content p:last-child,
.privacy-content p:last-child {
    margin-bottom: 0;
}

.terms-content .terms-date,
.privacy-content .terms-date {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 30px;
    padding: 0;
}

.terms-content .terms-footer-note,
.privacy-content .terms-footer-note {
    margin-top: 40px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    padding: 30px 0 0;
    border-top: 1px solid #e5e7eb;
}

/* 番号付きリスト */
.terms-content ol,
.privacy-content ol {
    margin: 16px 0;
    padding-left: 40px;
}

.terms-content ol li,
.privacy-content ol li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #374151;
}

.terms-content ol li:last-child,
.privacy-content ol li:last-child {
    margin-bottom: 0;
}

/* 旧クラス名対応（互換性のため） */
.terms-article {
    margin-bottom: 40px;
}

.terms-article:last-child {
    margin-bottom: 0;
}

.article-title {
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 16px;
    padding: 10px;
    background: #f9fafb;
    border-left: 4px solid #2c5282;
}

.article-content {
    padding: 0 10px;
}

.article-lead-text {
    padding: 0 10px;
}

.article-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #374151;
}

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

.numbered-list {
    margin: 16px 0;
    padding-left: 30px;
}

.numbered-list li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #374151;
}

.numbered-list li:last-child {
    margin-bottom: 0;
}

/* フッター情報 */
.terms-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.terms-note {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .terms-page,
    .privacy-page {
        padding: 30px 0 60px;
    }

    .terms-wrapper,
    .privacy-wrapper {
        padding: 0 20px;
    }

    .terms-page .page-title,
    .privacy-page .page-title {
        font-size: 24px;
    }

    .article-title {
        padding: 8px;
    }

    .article-content {
        padding: 0;
    }

    .article-lead-text {
        padding: 0;
    }

    .article-content p,
    .numbered-list li {
        font-size: 15px;
    }

    .numbered-list {
        padding-left: 20px;
    }
}

/* =運営者情報ページ
-------------------------------------------------------------- */
.company-page {
    padding: 40px 0 80px;
    background: #fff;
}

.company-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* パンくずリスト */
.company-page .breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.company-page .breadcrumb a {
    color: #2c5282;
    text-decoration: none;
}

.company-page .breadcrumb a:hover {
    text-decoration: underline;
}

.company-page .breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.company-page .breadcrumb .current {
    color: #333;
}

/* ページヘッダー */
.company-page .page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.company-page .page-title {
    font-size: 32px;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 10px;
}

/* 運営者情報コンテンツ */
.company-content {
    margin-bottom: 60px;
}

.company-info-section {
    margin-bottom: 50px;
}

.company-info-section:last-child {
    margin-bottom: 0;
}

.company-info-section h2 {
    font-size: 22px;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 20px;
    padding: 12px;
    background: #f9fafb;
    border-left: 4px solid #2c5282;
}

.company-info-section h3 {
    font-size: 18px;
    font-weight: bold;
    color: #374151;
    margin: 20px 0 15px;
}

/* 会社情報テーブル */
.company-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.company-table th,
.company-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.company-table th {
    width: 30%;
    background: #f9fafb;
    font-weight: bold;
    color: #374151;
}

.company-table td {
    color: #374151;
    line-height: 1.8;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

/* ビジネスリスト */
.business-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.business-list li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.business-list li:last-child {
    margin-bottom: 0;
}

/* コンタクトリンク */
.contact-link {
    color: #2c5282;
    text-decoration: none;
    font-weight: bold;
}

.contact-link:hover {
    text-decoration: underline;
}

/* セクションコンテンツ */
.purpose-content,
.disclaimer-content,
.copyright-content {
    padding: 0 10px;
}

.purpose-content p,
.disclaimer-content p,
.copyright-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #374151;
}

.purpose-content p:last-child,
.disclaimer-content p:last-child,
.copyright-content p:last-child {
    margin-bottom: 0;
}

.purpose-content ul {
    margin: 16px 0;
    padding-left: 30px;
    list-style-type: disc;
}

.purpose-content ul li {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #374151;
}

.purpose-content ul li:last-child {
    margin-bottom: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-page {
        padding: 30px 0 60px;
    }

    .company-wrapper {
        padding: 0 20px;
    }

    .company-page .page-title {
        font-size: 24px;
    }

    .company-info-section h2 {
        font-size: 18px;
        padding: 10px;
    }

    .company-table th,
    .company-table td {
        padding: 12px;
        font-size: 14px;
    }

    .company-table th {
        width: 35%;
    }

    .purpose-content,
    .disclaimer-content,
    .copyright-content {
        padding: 0;
    }

    .company-info-section h3 {
        font-size: 16px;
    }
}

/* ================================================
   レスポンシブデザイン - 確認画面・完了画面
   ================================================ */
@media (max-width: 768px) {
    .confirm-item {
        flex-direction: column;
        padding: 12px 0;
    }

    .confirm-label {
        width: 100%;
        margin-bottom: 8px;
    }

    .confirm-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-back,
    .btn-submit {
        width: 100%;
        padding: 14px 20px;
    }

    .complete-message {
        padding: 40px 20px;
    }

    .complete-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .complete-title {
        font-size: 24px;
    }

    .complete-text {
        font-size: 14px;
    }
}

/* =グローバルレスポンシブ設定（最優先）
-------------------------------------------------------------- */
@media (max-width: 768px) {
    /* スマホ表示時はコンテナのpaddingを0に */
    .front-page .container {
        padding: 0 !important;
    }
}

/* =この記事のポイント
-------------------------------------------------------------- */
.article-key-points {
    background-color: #f0f0ec;
    border: 1px solid #d4d4c8;
    padding: 30px 30px 25px;
    margin: 30px 10px;
    border-radius: 12px;
}

.key-points-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 20px;
    color: #5a7a2e;
    padding-left: 14px;
    border-left: 4px solid #8fad5e;
    line-height: 1.3;
}

/* .column-article 内でのタイトルスタイルをリセット */
.column-article .key-points-title {
    font-size: 1.4rem;
    color: #5a7a2e;
    margin: 0 0 20px;
    padding: 0 0 0 14px;
    border-bottom: none;
    border-image: none;
    border-left: 4px solid #8fad5e;
    position: static;
}

.column-article .key-points-title::before {
    display: none;
}

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

.key-point-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    line-height: 1.7;
    padding-left: 5px;
}

.key-point-item:last-child {
    margin-bottom: 0;
}

.key-point-item .key-point-bullet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    margin-right: 14px;
    margin-top: 4px;
    flex-shrink: 0;
    color: #7a9a4a;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.key-point-item .point-text {
    flex: 1;
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .article-key-points {
        padding: 22px 20px 18px;
        margin: 20px 0;
    }

    .key-points-title,
    .column-article .key-points-title {
        font-size: 1.2rem;
    }

    .key-point-item {
        margin-bottom: 14px;
    }

    .key-point-item .key-point-bullet {
        width: 12px;
        height: 12px;
        min-width: 12px;
        margin-right: 12px;
        margin-top: 9px;
    }

    .key-point-item .point-text {
        font-size: 1rem;
    }
}

/* =ライター情報
-------------------------------------------------------------- */
.author-box {
    margin: 24px 0;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    line-height: 1.7;
}

.author-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: bold;
}

.author-name {
    margin: 0 0 10px;
    font-size: 14px;
}

.author-profile {
    margin: 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .author-box {
        padding: 14px 16px;
        margin: 20px 0;
    }

    .author-title {
        font-size: 15px;
    }

    .author-name {
        font-size: 13px;
    }

    .author-profile {
        font-size: 13px;
    }
}

/* 関連記事 */
.related-articles {
    margin: 32px 0 24px;
}

.related-articles-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3B82F6;
    padding-left: 20px;
}

.related-articles-title::before {
    height: 1.1rem;
}

.related-articles-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-articles-list li {
    padding-left: 0;
    margin-bottom: 0;
}

.related-articles-list li::before {
    content: none;
}

.related-article-item a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.related-article-item a:hover {
    background-color: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.related-article-thumb-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.related-article-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-article-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
}

.related-article-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
}

.related-article-link-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-date {
    font-size: 0.75rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .related-article-thumb-wrap {
        width: 96px;
        height: 64px;
    }

    .related-article-link-title {
        font-size: 0.85rem;
    }
}

/* 読了メーター */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.reading-progress-bar.is-visible {
    transform: translateY(0);
}

body.admin-bar .reading-progress-bar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .reading-progress-bar {
        top: 46px;
    }
}

/* 上段: 目次ラベル / 見出し / シェアボタン */
.reading-progress-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    max-width: 960px;
    margin: 0 auto;
}

.reading-progress-toc-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.reading-progress-heading-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    text-align: left;
}

.reading-progress-counter {
    font-size: 0.75rem;
    font-weight: 700;
    color: #3B82F6;
    white-space: nowrap;
    flex-shrink: 0;
}

.reading-progress-heading-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* シェアボタン */
.reading-progress-share {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #ffffff;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 0.8;
}

.share-x {
    background: #000000;
}

.share-fb {
    background: #1877F2;
}

.share-hatena {
    background: #00A4DE;
}

.share-line {
    background: #06C755;
}

/* スマホ用シェアトグルボタン（PC非表示） */
.reading-progress-share-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    flex-shrink: 0;
    padding: 0;
}

/* スマホ用シェアパネル（PC非表示） */
.reading-progress-share-panel {
    display: none;
}

/* 下段: プログレスバー */
.reading-progress-track {
    height: 3px;
    background: #e5e7eb;
}

.reading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3B82F6 0%, #60A5FA 100%);
    transition: width 0.1s linear;
}

/* 目次パネル */
.reading-progress-toc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid #e5e7eb;
}

.reading-progress-toc-panel.is-open {
    max-height: 60vh;
    overflow-y: auto;
}

.reading-progress-toc-list {
    list-style: none;
    margin: 0;
    padding: 8px 16px;
    max-width: 960px;
    margin: 0 auto;
}

.reading-progress-toc-list li {
    border-bottom: 1px solid #f3f4f6;
}

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

.reading-progress-toc-list li a {
    display: block;
    padding: 10px 4px;
    font-size: 0.85rem;
    color: #374151;
    text-decoration: none;
    transition: color 0.2s;
}

.reading-progress-toc-list li a:hover {
    color: #3B82F6;
}

@media (max-width: 768px) {
    .reading-progress-inner {
        gap: 8px;
        padding: 0 12px;
        height: 75px;
        align-items: center;
    }

    .reading-progress-heading-btn {
        align-items: center;
    }

    .reading-progress-toc-label {
        font-size: 0.85rem;
    }

    .reading-progress-counter {
        font-size: 0.85rem;
    }

    .reading-progress-heading-text {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* PC用シェアボタンを非表示、トグルボタンを表示 */
    .reading-progress-share {
        display: none;
    }

    .reading-progress-share-toggle {
        display: flex;
    }

    /* スマホ用シェアパネル */
    .reading-progress-share-panel {
        display: none;
        border-top: 1px solid #e5e7eb;
    }

    .reading-progress-share-panel.is-open {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        padding: 10px 12px;
    }

    .share-panel-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        color: #ffffff;
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 0.65rem;
        font-weight: 600;
        min-width: 60px;
    }

    .share-panel-btn.share-x { background: #000000; }
    .share-panel-btn.share-fb { background: #1877F2; }
    .share-panel-btn.share-hatena { background: #00A4DE; }
    .share-panel-btn.share-hatena img {
        border: 1px solid #ffffff;
        border-radius: 4px;
    }
    .share-panel-btn.share-line { background: #06C755; }
}
