/*
Theme Name: ReOffice Column
Description: ReOffice サイト専用のカスタムWordPressテーマ。既存のデザインと統一性を保ちながらブログ機能を提供します。
Version: 1.4
Author: ReOffice Team
Updated: 2025-01-29 - Widget Support Added
*/

/* 基本的なリセットと横幅制御 */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
}

img, video, embed, object, iframe {
    max-width: 100%;
    height: auto;
}

/* WordPress 管理バー対応 */
html[style] { margin-top: 0 !important; }
#wpadminbar { display: none !important; }

/* 2カラムレイアウト用スタイル */
.blog-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.blog-main {
    flex: 2;
    min-width: 0;
    background: #fff;
}

.blog-sidebar {
    flex: 1;
    max-width: 280px;
    background: transparent;
    padding: 0;
}

/* ページヘッダー */
.blog-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 3px solid #39A79C;
    padding-bottom: 10px;
    font-weight: 600;
}

/* 記事一覧スタイル - 画像に合わせた水平レイアウト */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-item {
    display: flex;
    background: #fff;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
}

/* クリック可能なアイテムのホバー効果 */
.article-item-hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.article-thumb {
    flex: 0 0 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-thumb a:hover img {
    transform: scale(1.05);
}

.article-info {
    flex: 1;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.article-info h3 {
    font-size: 16px;
    margin: 0 0 10px 0;
    line-height: 1.5;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
}

.article-info h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-info h3 a:hover {
    color: #39A79C;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.article-date {
    font-size: 12px;
    color: #999;
}

/* 記事アイテムに「詳しく読む」を小さく表示 */
.article-item::after {
    content: '詳しく読む →';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    color: #999;
    font-weight: 400;
    pointer-events: none;
    transition: color 0.3s ease;
}

.article-item-hover::after {
    color: #39A79C;
}

.article-category {
    margin-bottom: 5px;
}

.article-category a {
    background: #e8f4f3;
    color: #39A79C;
    padding: 2px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 11px;
    margin-right: 5px;
    transition: background-color 0.3s ease;
}

.article-category a:hover {
    background: #d0ebe9;
}

/* サイドバースタイル */
.sidebar-widget {
    background: #fff;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    background: #e8f4f3;
    color: #333;
    padding: 12px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

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

.widget-list li {
    border-bottom: 1px solid #f0f0f0;
}

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

.widget-list a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.widget-list a:hover {
    background: #f8f9fa;
    color: #39A79C;
}

/* WordPress標準ウィジェット対応 */
.widget {
    background: #fff;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget .widget-title {
    background: #e8f4f3;
    color: #333;
    padding: 12px 20px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
}

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

.widget ul li {
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.widget ul li a:hover {
    background: #f8f9fa;
    color: #39A79C;
}

/* 検索ウィジェット */
.widget_search {
    padding: 20px;
}

.widget_search .search-form {
    display: flex;
    gap: 10px;
}

.widget_search .search-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.widget_search .search-submit {
    padding: 10px 20px;
    background: #39A79C;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.widget_search .search-submit:hover {
    background: #2d8075;
}

/* 最近の投稿ウィジェット */
.widget_recent_entries ul li {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.widget_recent_entries ul li:last-child {
    border-bottom: none;
}

.widget_recent_entries ul li a {
    display: block;
    padding: 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.widget_recent_entries ul li a:hover {
    color: #39A79C;
    background: none;
}

.widget_recent_entries .post-date {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* カテゴリウィジェット */
.widget_categories ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.widget_categories ul li:last-child {
    border-bottom: none;
}

.widget_categories ul li a {
    flex: 1;
    padding: 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.widget_categories ul li a:hover {
    color: #39A79C;
    background: none;
}

.widget_categories ul li .count {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* 最近のコメントウィジェット */
.widget_recent_comments ul li {
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.widget_recent_comments ul li:last-child {
    border-bottom: none;
}

.widget_recent_comments ul li a {
    display: block;
    padding: 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.widget_recent_comments ul li a:hover {
    color: #39A79C;
    background: none;
}

/* アーカイブウィジェット */
.widget_archive ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.widget_archive ul li:last-child {
    border-bottom: none;
}

.widget_archive ul li a {
    flex: 1;
    padding: 0;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.widget_archive ul li a:hover {
    color: #39A79C;
    background: none;
}

/* タグクラウドウィジェット */
.widget_tag_cloud {
    padding: 20px;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px !important;
    transition: background-color 0.3s ease;
}

.widget_tag_cloud .tagcloud a:hover {
    background: #39A79C;
    color: #fff;
}

/* テキストウィジェット */
.widget_text {
    padding: 20px;
}

.widget_text p {
    margin: 0 0 15px 0;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

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

/* 特別なサイドバーウィジェット */
.widget-property-search {
    padding: 20px;
}

.widget-property-search p {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.6;
}

.btn-property-search {
    display: inline-block;
    background: #39A79C;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-property-search:hover {
    background: #2d8075;
}

.widget-contact {
    padding: 20px;
}

.widget-contact p {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.6;
}

.contact-tel {
    margin-bottom: 15px;
}

.contact-tel strong {
    display: block;
    color: #39A79C;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-tel div {
    font-size: 12px;
    color: #666;
}

.btn-contact {
    display: inline-block;
    background: #39A79C;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background: #2d8075;
}

/* カテゴリページ用スタイル */
.category-count {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    margin-left: 10px;
}

.category-description {
    background: #f8f9fa;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* No Image 対応 */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    text-align: center;
}

.article-thumb img[src*="no-image"] {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
}

/* ページネーション */
.pagination {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 3px;
    padding: 8px 12px;
    background: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #39A79C;
    color: white;
    border-color: #39A79C;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-weight: 500;
}

/* パンくずリスト */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #39A79C;
}

.breadcrumb span {
    color: #999;
    margin: 0 8px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .blog-wrapper {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }

    .blog-main {
        width: 100%;
    }

    .blog-sidebar {
        max-width: none;
        width: 100%;
        margin: 0 auto;
        padding: 0 15px;
    }

    .article-item {
        flex-direction: column;
        gap: 15px;
    }

    .article-thumb {
        flex: none;
        width: 100%;
        height: 180px;
    }

    .article-info {
        min-height: auto;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .blog-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .blog-wrapper {
        padding: 10px;
    }

    .blog-sidebar {
        padding: 0 10px;
    }

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

    .article-info h3 {
        font-size: 15px;
    }

    .article-thumb {
        height: 150px;
    }

    /* モバイル環境での「詳しく読む」表示調整 */
    .article-item::after {
        font-size: 9px;
        bottom: 8px;
        right: 8px;
    }
}

/* 個別記事ページ（single.php）用スタイル */
.blog-single .blog-article {
    background: white;
    margin-bottom: 30px;
    max-width: 100%;
    box-sizing: border-box;
    /* overflow-x: hidden; */
}

.article-header {
    padding: 30px;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-header h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #333;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    gap: 6px;
    font-size: 14px;
    color: #666;
    align-items: center;
}

.meta-item i {
    font-size: 14px;
    color: #39A79C;
    width: 16px;
    text-align: center;
}

.article-categories a {
    color: #39A79C;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f8f9fa;
    font-size: 13px;
    border: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.article-categories a:hover {
    background: #e9ecef;
}

.article-featured-image {
    margin-top: 20px;
    text-align: center;
}

.featured-img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.article-content {
    padding: 30px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin: 40px 0 20px 0;
    line-height: 1.4;
    font-weight: 700;
    color: #333;
}

.article-content h2 {
    font-size: 26px;
    color: #333;
    border-bottom: 3px solid #39A79C;
    padding-bottom: 12px;
    margin-top: 50px;
    position: relative;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2d8a7f;
}

.article-content h3 {
    font-size: 22px;
    color: #333;
    margin-top: 40px;
    padding: 12px 0 12px 20px;
    border-left: 5px solid #39A79C;
    background: linear-gradient(90deg, rgba(57, 167, 156, 0.1) 0%, rgba(57, 167, 156, 0.05) 50%, transparent 100%);
    position: relative;
}

.article-content h3::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #39A79C 0%, #2d8a7f 100%);
}

.article-content h4 {
    font-size: 20px;
    color: #333;
    margin-top: 35px;
    padding: 8px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #39A79C;
    border-radius: 0 4px 4px 0;
}

.article-content h5 {
    font-size: 18px;
    color: #333;
    margin-top: 30px;
    padding: 6px 0;
    border-bottom: 2px dotted #39A79C;
}

.article-content h6 {
    font-size: 16px;
    color: #555;
    margin-top: 25px;
    font-weight: 600;
}

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

.article-content ul,
.article-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-content ul {
    list-style: none;
}

.article-content ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: #39A79C;
    border-radius: 50%;
    transform: translateY(-50%);
}

.article-content ol li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.article-content ol li::marker {
    color: #39A79C;
    font-weight: 600;
}

.article-content blockquote {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 5px solid #39A79C;
    margin: 30px 0;
    padding: 25px 30px;
    font-style: italic;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 0 6px 6px 0;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 40px;
    color: #39A79C;
    opacity: 0.3;
    font-family: serif;
}

.article-content blockquote p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.article-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.article-content code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #d63384;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* テーブルの横スクロール対応 */
@media (max-width: 768px) {
    .article-content table {
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }

    .article-content table tbody {
        display: table;
        width: 100%;
    }
}

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

.article-content table th {
    background: #39A79C;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

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

.article-content table tr:last-child td {
    border-bottom: none;
}

.article-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.article-content a {
    color: #39A79C;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #2d8a7f;
    border-bottom-color: #2d8a7f;
}

.article-content strong {
    font-weight: 700;
    color: #333;
}

.article-content em {
    font-style: italic;
    color: #555;
}

/* WordPress標準ブロック対応 */
.article-content .wp-block-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 5px solid #39A79C;
    margin: 30px 0;
    padding: 25px 30px;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

.article-content .wp-block-code {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
    overflow-x: auto;
}

.article-content .wp-block-image {
    margin: 25px 0;
    text-align: center;
}

.article-content .wp-block-image img {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-content .wp-block-separator {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 40px 0;
}

.article-content .wp-block-separator.is-style-wide {
    border-top: 3px solid #39A79C;
    margin: 50px 0;
}

.page-links {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
}

.page-link {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    background: #39A79C;
    color: white;
    text-decoration: none;
    border-radius: 3px;
}

.article-footer {
    padding: 30px;
    background: #fafafa;
}

.article-tags {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.article-tags i {
    color: #39A79C;
    font-size: 14px;
}

.article-tags a {
    background: #e9ecef;
    color: #666;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: #39A79C;
    color: white;
}

.article-navigation {
    display: flex;
    gap: 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-link {
    display: block;
    padding: 15px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f8f9fa;
    border-color: #39A79C;
}

.nav-direction {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.next-link {
    text-align: right;
}

/* 関連記事セクション */
.related-posts {
    margin-top: 40px;
    margin-bottom: 80px;
    padding: 30px;
    background: white;
    border-radius: 6px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 2px solid #39A79C;
    padding-bottom: 8px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    text-align: center;
}

.no-image-placeholder i {
    font-size: 24px;
    margin-bottom: 5px;
}

.related-content {
    padding: 15px;
}

.related-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #666;
}

.related-category {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 11px;
}

/* シングル記事ページのレスポンシブ対応 */
@media (max-width: 768px) {
    .article-header {
        padding: 20px;
    }

    .article-content,
    .article-footer,
    .related-posts {
        padding: 20px;
    }

    .article-header h1 {
        font-size: 24px;
    }

    .article-meta {
        gap: 15px;
    }

    .meta-item {
        font-size: 13px;
    }

    .meta-item i {
        font-size: 14px;
    }

    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-link {
        text-align: left;
    }

    .next-link {
        text-align: left;
    }

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

    /* 記事本文の見出しをモバイル対応 */
    .article-content h2 {
        font-size: 22px;
        margin-top: 35px;
        padding-bottom: 10px;
    }

    .article-content h3 {
        font-size: 20px;
        margin-top: 30px;
        padding: 10px 0 10px 15px;
    }

    .article-content h4 {
        font-size: 18px;
        margin-top: 25px;
        padding: 6px 12px;
    }

    .article-content h5 {
        font-size: 16px;
        margin-top: 20px;
    }

    .article-content h6 {
        font-size: 15px;
        margin-top: 18px;
    }

    .article-content ul,
    .article-content ol {
        padding-left: 25px;
    }

    .article-content blockquote {
        padding: 20px 25px;
        margin: 25px 0;
    }

    .article-content blockquote::before {
        font-size: 35px;
        top: 8px;
        left: 12px;
    }

    .article-content pre {
        padding: 15px;
        font-size: 13px;
    }

    .article-content table {
        font-size: 14px;
    }

    .article-content table th,
    .article-content table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .blog-single .blog-article {
        margin: 0;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden;
    }

    .article-header {
        padding: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .article-content,
    .article-footer,
    .related-posts {
        padding: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .article-header h1 {
        font-size: 20px;
    }

    .article-content {
        font-size: 15px;
    }

    .article-meta {
        gap: 12px;
    }

    .meta-item {
        font-size: 12px;
    }

    .meta-item i {
        font-size: 13px;
    }

    .article-categories a {
        padding: 2px 6px;
        font-size: 12px;
    }

    .related-image {
        height: 120px;
    }

    /* スマートフォン向け見出し調整 */
    .article-content h2 {
        font-size: 20px;
        margin-top: 30px;
        padding-bottom: 8px;
    }

    .article-content h2::before {
        width: 50px;
    }

    .article-content h3 {
        font-size: 18px;
        margin-top: 25px;
        padding: 8px 0 8px 12px;
    }

    .article-content h4 {
        font-size: 16px;
        margin-top: 20px;
        padding: 5px 10px;
    }

    .article-content h5 {
        font-size: 15px;
        margin-top: 18px;
    }

    .article-content h6 {
        font-size: 14px;
        margin-top: 15px;
    }

    .article-content ul,
    .article-content ol {
        padding-left: 20px;
        margin: 20px 0;
    }

    .article-content ul li {
        padding-left: 15px;
    }

    .article-content blockquote {
        padding: 15px 20px;
        margin: 20px 0;
    }

    .article-content blockquote::before {
        font-size: 30px;
        top: 5px;
        left: 8px;
    }

    .article-content pre {
        padding: 12px;
        font-size: 12px;
        margin: 20px 0;
    }

    .article-content code {
        font-size: 13px;
    }

    .article-content table {
        font-size: 13px;
    }

    .article-content table th,
    .article-content table td {
        padding: 6px 8px;
    }
}

/* ===========================================
   おすすめ物件スタイル
   =========================================== */
/* おすすめ物件セクション - 既存物件詳細ページデザインに統一 */
.recommend-properties {
    margin: 40px 0;
    padding: 0;
    background: transparent;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.recommend-properties .section-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #39A79C;
    font-weight: 600;
    text-align: center;
}

.recommend-properties .section-title::before {
    content: '🏢';
    margin-right: 10px;
}

/* 各おすすめ物件のメインセクション */
.recommend-property-main {
    margin-bottom: 60px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100% !important;
    max-width: 100%;
    display: flex;
    box-sizing: border-box;
}

.recommend-property-main:last-child {
    margin-bottom: 0;
}

/* 既存の物件詳細ページスタイルを継承 */
.recommend-property-main #office-main {
    padding: 0;
    margin: 0;
}

.recommend-property-main #slide-wrap {
    width: 50%;
    padding: 30px;
    background: #fff;
    box-sizing: border-box;
    min-width: 0;
}

.recommend-property-main #slide-wrap h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.recommend-property-main #slide-wrap h1 .finished {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
    font-weight: 500;
}

.recommend-property-main #office-number {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Swiperスタイル */
.recommend-property-main .swiper {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.recommend-property-main .swiper-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.recommend-property-main .thumb-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.recommend-property-main .thumb-media {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.recommend-property-main .thumb-media.thumb-media-active {
    border-color: #39A79C;
}

.recommend-property-main .thumb-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 説明セクション */
.recommend-property-main #desc {
    margin: 20px 0;
}

.recommend-property-main #desc h2 {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.recommend-property-main #desc p {
    margin: 0;
    line-height: 1.7;
    color: #555;
    font-size: 14px;
}

/* 物件情報セクション */
.recommend-property-main #info-wrap {
    padding: 30px;
    background: #f8f9fa;
    box-sizing: border-box;
    min-width: 0;
    flex: 1;
}

.recommend-property-main #info-wrap h2 {
    font-size: 20px;
    color: #333;
    margin: 0 0 25px 0;
    font-weight: 600;
    border-bottom: 2px solid #39A79C;
    padding-bottom: 10px;
}

.recommend-property-main #info-wrap dl {
    display: flex;
    margin: 0 0 15px 0;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    align-items: flex-start;
}

.recommend-property-main #info-wrap dl:last-of-type {
    border-bottom: none;
}

.recommend-property-main #info-wrap dt {
    flex: 0 0 80px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin: 0;
}

.recommend-property-main #info-wrap dd {
    flex: 1;
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.recommend-property-main #info-wrap dd ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommend-property-main #info-wrap dd ul li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.recommend-property-main #info-wrap dd ul li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #39A79C;
    font-weight: bold;
}

/* タグスタイル */
.recommend-property-main #info-wrap > ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recommend-property-main #info-wrap > ul li {
    margin: 0;
}

.recommend-property-main #info-wrap > ul li a {
    display: inline-block;
    background: #39A79C;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.recommend-property-main #info-wrap > ul li a:hover {
    background: #2d8a7f;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .recommend-property-main {
        flex-direction: column;
    }

    .recommend-property-main #slide-wrap {
        width: 100%;
    }

    .recommend-property-main #info-wrap {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .recommend-properties {
        margin: 30px 0;
        padding: 0 15px;
        width: calc(100% - 30px) !important;
        max-width: calc(100vw - 30px);
    }

    .recommend-properties .section-title {
        font-size: 24px;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }

    .recommend-property-main {
        margin-bottom: 40px;
        flex-direction: column;
        margin-left: 0;
        margin-right: 0;
        width: 100% !important;
        max-width: 100%;
    }

    .recommend-property-main #slide-wrap {
        width: 100%;
        padding: 20px;
    }

    .recommend-property-main #slide-wrap h1 {
        font-size: 20px;
    }

    .recommend-property-main .swiper-slide img {
        aspect-ratio: 16/10;
    }

    .recommend-property-main .thumb-wrapper {
        gap: 6px;
        margin-bottom: 15px;
    }

    .recommend-property-main .thumb-media {
        width: 50px;
        height: 38px;
    }

    .recommend-property-main #info-wrap {
        width: 100%;
        padding: 20px;
    }

    .recommend-property-main #info-wrap h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .recommend-property-main #info-wrap dl {
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
    }

    .recommend-property-main #info-wrap dt {
        flex: none;
        font-weight: 600;
        margin-bottom: 5px;
        font-size: 13px;
    }

    .recommend-property-main #info-wrap dd {
        font-size: 13px;
    }

    .recommend-property-main #desc {
        margin: 15px 0;
    }

    .recommend-property-main #desc h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .recommend-property-main #desc p {
        font-size: 13px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .recommend-properties {
        margin: 20px 0;
        padding: 0 10px;
        width: 100% !important;
        max-width: 100%;
    }

    .recommend-properties .section-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .recommend-property-main {
        margin-bottom: 30px;
        border-radius: 6px;
        margin-left: 0;
        margin-right: 0;
        width: 100% !important;
        max-width: 100%;
    }

    .recommend-property-main #slide-wrap {
        padding: 15px;
        width: 100%;
    }

    .recommend-property-main #slide-wrap h1 {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .recommend-property-main #slide-wrap h1 .finished {
        font-size: 11px;
        padding: 3px 6px;
        margin-right: 8px;
    }

    .recommend-property-main #office-number {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .recommend-property-main .swiper {
        margin-bottom: 12px;
        border-radius: 6px;
    }

    .recommend-property-main .swiper-slide img {
        aspect-ratio: 4/3;
    }

    .recommend-property-main .thumb-wrapper {
        gap: 4px;
        margin-bottom: 12px;
    }

    .recommend-property-main .thumb-media {
        width: 45px;
        height: 34px;
        border-radius: 3px;
    }

    .recommend-property-main #desc {
        margin: 12px 0;
    }

    .recommend-property-main #desc h2 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .recommend-property-main #desc p {
        font-size: 12px;
        line-height: 1.5;
    }

    .recommend-property-main #info-wrap {
        padding: 15px;
        width: 100%;
    }

    .recommend-property-main #info-wrap h2 {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .recommend-property-main #info-wrap dl {
        padding: 10px 0;
        margin-bottom: 10px;
    }

    .recommend-property-main #info-wrap dt {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .recommend-property-main #info-wrap dd {
        font-size: 12px;
        line-height: 1.5;
    }

    .recommend-property-main #info-wrap dd ul li {
        margin-bottom: 3px;
        padding-left: 12px;
        font-size: 12px;
    }

    .recommend-property-main #info-wrap > ul {
        gap: 4px;
        margin-top: 15px;
    }

    .recommend-property-main #info-wrap > ul li a {
        padding: 3px 6px;
        font-size: 10px;
        border-radius: 15px;
    }
}

/* 物件詳細ボタン
--------------------------------------------------------*/
.property-detail-button {
	margin: 2rem 0;
	padding: 0;
	text-align: center;
}

.btn-detail-full {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	width: 100%;
	padding: 1.5rem 2rem;
	background: #39A79C;
	color: #FFF !important;
	text-decoration: none;
	font-size: 1.8rem;
	font-weight: 600;
	border-radius: 0.5rem;
	transition: all 0.3s ease-in-out;
	border: none;
	cursor: pointer;
	box-sizing: border-box;
	line-height: 1.2;
}

.btn-detail-full i {
	font-size: 1.6rem;
    position: relative;
    top: 1px;
	transition: transform 0.3s ease-in-out;
}

.btn-detail-full:hover {
	background: #2d8a7f;
	color: #FFF !important;
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(57, 167, 156, 0.3);
}

.btn-detail-full:hover i {
	transform: translateX(4px);
}

.btn-detail-full:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(57, 167, 156, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
	.btn-detail-full {
		font-size: 1.6rem;
		padding: 1.2rem 1.5rem;
		gap: 0.6rem;
	}

	.btn-detail-full i {
		font-size: 1.2rem;
	}
}

@media (max-width: 480px) {
	.btn-detail-full {
		font-size: 1.4rem;
		padding: 1rem 1.2rem;
		gap: 0.5rem;
	}

	.btn-detail-full i {
		font-size: 1rem;
	}
}

/* カスタムウィジェット専用スタイル */
.widget_reoffice_recommended_areas .widget-list,
.widget_reoffice_capacity_area .widget-list,
.widget_reoffice_kodawari .widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_reoffice_recommended_areas .widget-list li,
.widget_reoffice_capacity_area .widget-list li,
.widget_reoffice_kodawari .widget-list li {
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget_reoffice_recommended_areas .widget-list li:last-child,
.widget_reoffice_capacity_area .widget-list li:last-child,
.widget_reoffice_kodawari .widget-list li:last-child {
    border-bottom: none;
}

.widget_reoffice_recommended_areas .widget-list li i,
.widget_reoffice_capacity_area .widget-list li i,
.widget_reoffice_kodawari .widget-list li i {
    color: #39A79C;
    font-size: 14px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-left: 20px;
}

.widget_reoffice_recommended_areas .widget-list a,
.widget_reoffice_capacity_area .widget-list a,
.widget_reoffice_kodawari .widget-list a {
    display: block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 14px;
    flex: 1;
}

.widget_reoffice_recommended_areas .widget-list a:hover,
.widget_reoffice_capacity_area .widget-list a:hover,
.widget_reoffice_kodawari .widget-list a:hover {
    background: #f8f9fa;
    color: #39A79C;
}

.widget_reoffice_property_search {
    padding: 20px;
}

.widget_reoffice_property_search .widget-property-search p {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.widget_reoffice_property_search .btn-property-search {
    display: inline-block;
    background: #39A79C;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.widget_reoffice_property_search .btn-property-search:hover {
    background: #2d8075;
}

.widget_reoffice_contact {
    padding: 20px;
}

.widget_reoffice_contact .widget-contact p {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.widget_reoffice_contact .contact-tel {
    margin-bottom: 15px;
}

.widget_reoffice_contact .contact-tel strong {
    display: block;
    color: #39A79C;
    font-size: 16px;
    margin-bottom: 5px;
}

.widget_reoffice_contact .contact-tel div {
    font-size: 12px;
    color: #666;
}

.widget_reoffice_contact .btn-contact {
    display: inline-block;
    background: #39A79C;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.widget_reoffice_contact .btn-contact:hover {
    background: #2d8075;
}

/* 強制スタイル適用 - ウィジェット対応 */
.blog-sidebar .widget {
    background: #fff !important;
    margin-bottom: 30px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.blog-sidebar .widget:last-child {
    margin-bottom: 0 !important;
}

.blog-sidebar .widget .widget-title {
    background: #e8f4f3 !important;
    color: #333 !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.blog-sidebar .widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.blog-sidebar .widget ul li {
    border-bottom: 1px solid #f0f0f0 !important;
}

.blog-sidebar .widget ul li:last-child {
    border-bottom: none !important;
}

.blog-sidebar .widget ul li a {
    display: block !important;
    padding: 10px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
    font-size: 14px !important;
}

.blog-sidebar .widget ul li a:hover {
    background: #f8f9fa !important;
    color: #39A79C !important;
}

/* 検索ウィジェット強制スタイル */
.blog-sidebar .widget_search {
    padding: 20px !important;
}

.blog-sidebar .widget_search .search-form {
    display: flex !important;
    gap: 10px !important;
}

.blog-sidebar .widget_search .search-field {
    flex: 1 !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}

.blog-sidebar .widget_search .search-submit {
    padding: 10px 20px !important;
    background: #39A79C !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: background-color 0.3s ease !important;
}

.blog-sidebar .widget_search .search-submit:hover {
    background: #2d8075 !important;
}

/* カテゴリウィジェット強制スタイル */
.blog-sidebar .widget_categories ul li {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.blog-sidebar .widget_categories ul li a {
    flex: 1 !important;
    padding: 0 !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-size: 14px !important;
}

.blog-sidebar .widget_categories ul li a:hover {
    color: #39A79C !important;
    background: none !important;
}

/* 最近の投稿ウィジェット強制スタイル */
.blog-sidebar .widget_recent_entries ul li {
    padding: 10px 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.blog-sidebar .widget_recent_entries ul li a {
    display: block !important;
    padding: 0 !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.blog-sidebar .widget_recent_entries ul li a:hover {
    color: #39A79C !important;
    background: none !important;
}

/* ブロックエディタで生成されるウィジェットにも対応 */
.blog-sidebar .wp-block-group,
.blog-sidebar .wp-block-legacy-widget {
    background: #fff !important;
    margin-bottom: 30px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.blog-sidebar .wp-block-group h2,
.blog-sidebar .wp-block-legacy-widget h2,
.blog-sidebar .wp-block-group h3,
.blog-sidebar .wp-block-legacy-widget h3 {
    background: #e8f4f3 !important;
    color: #333 !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.blog-sidebar .wp-block-group ul,
.blog-sidebar .wp-block-legacy-widget ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.blog-sidebar .wp-block-group ul li,
.blog-sidebar .wp-block-legacy-widget ul li {
    border-bottom: 1px solid #f0f0f0 !important;
}

.blog-sidebar .wp-block-group ul li:last-child,
.blog-sidebar .wp-block-legacy-widget ul li:last-child {
    border-bottom: none !important;
}

.blog-sidebar .wp-block-group ul li a,
.blog-sidebar .wp-block-legacy-widget ul li a {
    display: block !important;
    padding: 10px 20px !important;
    color: #333 !important;
    text-decoration: none !important;
    transition: background-color 0.3s ease !important;
    font-size: 14px !important;
}

.blog-sidebar .wp-block-group ul li a:hover,
.blog-sidebar .wp-block-legacy-widget ul li a:hover {
    background: #f8f9fa !important;
    color: #39A79C !important;
}

/* WordPress標準ブロックウィジェット対応 */
.blog-sidebar .wp-block-latest-posts {
    padding: 0 !important;
}

.blog-sidebar .wp-block-latest-posts li {
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 10px 20px !important;
    margin: 0 !important;
}

.blog-sidebar .wp-block-latest-posts li:last-child {
    border-bottom: none !important;
}

.blog-sidebar .wp-block-latest-posts li a {
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    padding: 0 !important;
    display: block !important;
}

.blog-sidebar .wp-block-latest-posts li a:hover {
    color: #39A79C !important;
}

.blog-sidebar .wp-block-categories {
    padding: 0 !important;
}

.blog-sidebar .wp-block-categories li {
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 10px 20px !important;
    margin: 0 !important;
}

.blog-sidebar .wp-block-categories li:last-child {
    border-bottom: none !important;
}

.blog-sidebar .wp-block-categories li a {
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    padding: 0 !important;
    display: block !important;
}

.blog-sidebar .wp-block-categories li a:hover {
    color: #39A79C !important;
}

/* ウィジェットの無駄なパディング・マージンを除去 */
.blog-sidebar .wp-block-group,
.blog-sidebar .wp-block-legacy-widget,
.blog-sidebar .widget {
    padding: 0 !important;
    margin-bottom: 30px !important;
}

.blog-sidebar .wp-block-group__inner-container,
.blog-sidebar .wp-block-legacy-widget__edit-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* ウィジェット内のコンテンツのパディング調整 */
.blog-sidebar .wp-block-group .wp-block-search,
.blog-sidebar .wp-block-legacy-widget .wp-block-search,
.blog-sidebar .widget_search {
    padding: 20px !important;
}

.blog-sidebar .wp-block-group .wp-block-latest-posts,
.blog-sidebar .wp-block-group .wp-block-categories,
.blog-sidebar .wp-block-group .wp-block-latest-comments,
.blog-sidebar .wp-block-legacy-widget .wp-block-latest-posts,
.blog-sidebar .wp-block-legacy-widget .wp-block-categories,
.blog-sidebar .wp-block-legacy-widget .wp-block-latest-comments {
    padding: 0 !important;
    margin: 0 !important;
}

/* テキストウィジェットのパディング */
.blog-sidebar .wp-block-group .wp-block-paragraph,
.blog-sidebar .wp-block-legacy-widget .wp-block-paragraph,
.blog-sidebar .widget_text .textwidget {
    padding: 20px !important;
    margin: 0 !important;
}

/* カスタムウィジェットのパディング調整 */
.blog-sidebar .widget_reoffice_property_search,
.blog-sidebar .widget_reoffice_contact {
    padding: 20px !important;
}

.blog-sidebar .widget_reoffice_recommended_areas,
.blog-sidebar .widget_reoffice_capacity_area,
.blog-sidebar .widget_reoffice_kodawari {
    padding: 0 !important;
}

/* ブロックエディタのデフォルトスタイルを上書き */
.blog-sidebar .wp-block-group {
    gap: 0 !important;
}

.blog-sidebar .wp-block-group > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ウィジェットタイトルの調整 */
.blog-sidebar .wp-block-group h2:first-child,
.blog-sidebar .wp-block-legacy-widget h2:first-child,
.blog-sidebar .wp-block-group h3:first-child,
.blog-sidebar .wp-block-legacy-widget h3:first-child {
    margin-top: 0 !important;
}

/* 強制的にすべてのウィジェットパディングを除去 */
.blog-sidebar .wp-block-group,
.blog-sidebar .wp-block-legacy-widget,
.blog-sidebar .widget,
.blog-sidebar .wp-widget-group__inner-container {
    box-sizing: border-box !important;
    padding: 0 !important;
}

/* ブロックエディタの余分なスペースを除去 */
.blog-sidebar .wp-block-group > *:first-child {
    margin-top: 0 !important;
}

.blog-sidebar .wp-block-group > *:last-child {
    margin-bottom: 0 !important;
}

/* ウィジェットコンテナの調整 */
.blog-sidebar .wp-widget-group__inner-container,
.blog-sidebar .wp-block-widget-area,
.blog-sidebar .widget-area {
    padding: 0 !important;
    margin: 0 !important;
}

/* 検索フォームのパディング調整 */
.blog-sidebar .wp-block-search__inside-wrapper {
    padding: 20px !important;
}

.blog-sidebar .wp-block-search .wp-block-search__label {
    display: none !important;
}

.blog-sidebar .wp-block-search .wp-block-search__input {
    margin: 0 !important;
}

.blog-sidebar .wp-block-search .wp-block-search__button {
    margin: 0 !important;
}

/* 関連リンクセクション */
.article-links {
    margin: 30px 0;
    padding: 25px;
    border-radius: 8px;
}

.article-links .section-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.article-links .section-title::before {
    content: "\f0c1";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #39A79C;
}

.links-grid {
    display: grid;
    gap: 12px;
}

.article-link-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    font-size: 14px;
}

.article-link-item:hover {
    /* background: #f0f8ff; */
    border-color: #39A79C;
    color: #39A79C;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.article-link-item i {
    margin-right: 10px;
    font-size: 16px;
    color: #39A79C;
}

.article-link-item span {
    flex: 1;
    font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .article-links {
        margin: 20px 0;
        padding: 20px 15px;
    }

    .article-link-item {
        padding: 12px 15px;
        font-size: 13px;
    }

    .article-links .section-title {
        font-size: 16px;
    }
}