/* ブログ共通スタイル */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* SEO用非表示見出し */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* アイコンの中央揃え */
.service-icon-top-title {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px; 
}

/* パンくずリスト */
.breadcrumb {
    background: #f8f8f8;
    padding: 15px 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: #999;
}

.breadcrumb-list a {
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-list a:hover {
    color: #A55005;
    text-decoration: underline;
}

/* ブログアーカイブページ */
.blog-archive-main {
    padding-top: 80px;
}

.blog-header {
    background: rgba(255, 207, 150, 0.3);
    padding: 60px 0;
    margin-bottom: 60px;
}

.blog-archive-title {
    font-size: 3rem;
    color: #8B4513;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 300;
}

.blog-archive-subtitle {
    font-size: 1.2rem;
    color: #A55005;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-card:hover::after {
    opacity: 1;
}

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

.blog-card-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.blog-card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
}

.blog-card-meta {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.blog-card-date {
    font-size: 0.9rem;
    color: #666;
}

.blog-card-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag {
    font-size: 0.8rem;
    padding: 4px 12px;
    background: #FFEDC8;
    color: #8B4513;
    border-radius: 20px;
}

.blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: #8B4513;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: #8B4513;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-card:hover .read-more-btn {
    color: #A55005;
    transform: translateX(5px);
}

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

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background: #fff;
    border: 1px solid #8B4513;
    color: #8B4513;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .current,
.pagination .page-numbers:hover {
    background: #8B4513;
    color: #fff;
}

/* 個別記事ページ */

.blog-single-header {
    background: rgba(255, 207, 150, 0.3);
    padding: 60px 0;
    margin-bottom: 40px;
}

.blog-single-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    justify-content: center;
}

.blog-single-date {
    font-size: 1rem;
    color: #666;
}

.blog-single-categories {
    display: flex;
    gap: 10px;
}

.blog-single-title {
    font-size: 2.5rem;
    color: #8B4513;
    text-align: center;
    line-height: 1.4;
    margin: 0 auto;
    max-width: 800px;
}

.blog-single-thumbnail {
    margin-bottom: 40px;
}

.blog-single-thumbnail img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
}

.blog-single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-single-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

/* 個別ページの見出しスタイル */
.blog-single-content h1,
.blog-single-content h2,
.blog-single-content h3,
.blog-single-content h4,
.blog-single-content h5,
.blog-single-content h6 {
    color: #8B4513;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 1em;
    position: relative;
}

.blog-single-content h1 {
    font-size: 2rem;
    border-bottom: 3px solid #FFEDC8;
    padding-bottom: 0.5em;
}

.blog-single-content h2 {
    font-size: 1.2rem;
    background: linear-gradient(135deg, #FFEDC8 0%, #FFE0B3 100%);
    padding: 0.8em 1.2em;
    border-left: 5px solid #8B4513;
    border-radius: 0 8px 8px 0;
}

.blog-single-content h3 {
    font-size: 1rem;
    background: #FFEDC8;
    padding: 0.6em 1em;
    border-radius: 6px;
    border-left: 4px solid #8B4513;
}

.blog-single-content h4 {
    font-size: 1.2rem;
    border-left: 4px solid #8B4513;
    padding-left: 0.8em;
    background: rgba(255, 237, 200, 0.3);
}

.blog-single-content h5 {
    font-size: 1.1rem;
    border-left: 3px solid #A55005;
    padding-left: 0.6em;
}

.blog-single-content h6 {
    font-size: 1rem;
    border-bottom: 1px solid #8B4513;
    padding-bottom: 0.3em;
}

/* リストスタイル */
.blog-single-content ul,
.blog-single-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.blog-single-content li {
    margin-bottom: 0.5em;
    line-height: 1.7;
    color: #333;
}

.blog-single-content ul li {
    list-style: none;
    position: relative;
}

.blog-single-content ul li::before {
    content: '●';
    color: #8B4513;
    position: absolute;
    left: -1.5em;
    top: 0;
}

.blog-single-content ol li {
    color: #333;
}

/* 引用スタイル */
.blog-single-content blockquote {
    background: rgba(139, 69, 19, 0.1);
    border-left: 5px solid #8B4513;
    margin: 2em 0;
    padding: 1.5em 2em;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
    position: relative;
}

.blog-single-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #8B4513;
    position: absolute;
    top: -0.5em;
    left: 0.5em;
    font-family: Georgia, serif;
}

.blog-single-content blockquote p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* コードスタイル */
.blog-single-content code {
    background: #f5f5f5;
    color: #8B4513;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-single-content pre {
    background: #f8f8f8;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 1.5em;
    overflow-x: auto;
    margin: 2em 0;
}

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

/* 表スタイル */
.blog-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-single-content th,
.blog-single-content td {
    padding: 1em;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
	word-break: break-all;
	overflow-wrap: break-word;
    line-height: 1.6;
}

.blog-single-content th {
    background: #8B4513;
    color: #fff;
    font-weight: 600;
}

.blog-single-content tbody tr:hover {
    background: rgba(255, 237, 200, 0.3);
}

.blog-single-content table{
  table-layout: fixed;
}

.blog-single-content th,
.blog-single-content td{
  white-space: normal !important;
}

/* 画像スタイル */
.blog-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* リンクスタイル */
.blog-single-content a {
    color: #8B4513;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.blog-single-content a:hover {
    color: #A55005;
    text-decoration-color: #A55005;
}

/* 強調テキスト */
.blog-single-content strong,
.blog-single-content b {
    color: #8B4513;
    font-weight: 700;
}

/* イタリックテキスト */
.blog-single-content em,
.blog-single-content i {
    color: #A55005;
    font-style: italic;
}

/* 区切り線 */
.blog-single-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8B4513, transparent);
    margin: 3em 0;
}

/* カスタムボックス（WordPress標準の警告ボックスなど） */
.blog-single-content .wp-block-group {
    background: rgba(255, 237, 200, 0.5);
    padding: 1.5em;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
    margin: 2em 0;
}

/* 埋め込みコンテンツ */
.blog-single-content iframe,
.blog-single-content video {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5em 0;
}

/* 関連記事セクション */
.related-posts {
    margin-top: 4em;
    padding-top: 3em;
    border-top: 2px solid #FFEDC8;
}

.related-posts-title {
    font-size: 1.8rem;
    color: #8B4513;
    text-align: center;
    margin-bottom: 2em;
    position: relative;
}

.related-posts-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #8B4513;
    margin: 10px auto 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
}

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

.related-post-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.related-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.related-post-content {
    padding: 20px;
}

.related-post-date {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-bottom: 8px;
}

.related-post-title {
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}

/* 関連記事のレスポンシブ対応 */
@media screen and (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-posts-title {
        font-size: 1.5rem;
    }
}

.blog-single-navigation {
    max-width: 800px;
    margin: 60px auto;
}

.post-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.prev-post,
.next-post {
    flex: 0 0 48%;
}

.prev-post a,
.next-post a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #8B4513;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.prev-post a:hover,
.next-post a:hover {
    background: #FFEDC8;
}

.nav-arrow {
    font-size: 1.2rem;
    margin: 0 10px;
}

.nav-text {
    font-size: 0.9rem;
    color: #666;
    margin: 0 5px;
}

.back-to-archive {
    text-align: center;
}

.archive-link {
    display: inline-block;
    padding: 12px 30px;
    background: #8B4513;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.archive-link:hover {
    background: #A55005;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .blog-single-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .blog-header {
        padding: 40px 0;
        margin-bottom: 40px;
    }

    .blog-archive-title {
        font-size: 2.2rem;
    }

    .blog-archive-subtitle {
        font-size: 1rem;
    }

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

    .blog-card-content {
        padding: 20px;
    }

    .blog-single-title {
        font-size: 1.8rem;
    }

    .blog-single-content {
        padding: 25px;
    }

    .post-links {
        flex-direction: column;
        gap: 15px;
    }

    .prev-post,
    .next-post {
        flex: 0 0 100%;
    }
}

@media screen and (max-width: 480px) {
    .blog-archive-title {
        font-size: 1.8rem;
    }

    .category-tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    .blog-card-title {
        font-size: 1.1rem;
    }

    .blog-single-title {
        font-size: 1.5rem;
    }

    .blog-single-meta {
        flex-direction: column;
        gap: 10px;
    }
}

.wp-caption {
	width:100% !important;
}
