@charset "utf-8";

/*+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
ブログ記事ページ - 現代的なWebデザイン
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+*/

/* メインレイアウト */
.single {
    display: flex;
    width: 1120px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem 0;
}

.single .inner {
    flex: 1;
    max-width: none;
}

ul.sidebar {
    flex: 0 0 300px;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.sidebar li {
    margin-bottom: 2rem;
}

/* 記事ヘッダー */
.single .post-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.single .post-info time {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.single .categories {
    display: flex;
    gap: 0.5rem;
}

.single .category {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.single .category:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    color: white;
}

/* 記事タイトル */
.single .section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #1f2937, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 記事コンテンツ */
.single .entry-content {
    line-height: 1.8;
    color: #374151;
    font-size: 1.1rem;
}

/* 見出しスタイル - 現代的なデザイン（詳細度を上げて確実に適用） */
.single h1,
.single h2,
.single h3,
.single h4,
.single h5,
.single h6,
.single .entry-content h1,
.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4,
.single .entry-content h5,
.single .entry-content h6,
.single article h1,
.single article h2,
.single article h3,
.single article h4,
.single article h5,
.single article h6 {
    margin: 3rem 0 1.5rem 0 !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    position: relative !important;
}

/* 大見出し（h1）- 背景付きの美しいデザイン */
.single h1,
.single .entry-content h1,
.single article h1 {
    font-size: 26px !important; /* デスクトップ: 36px */
    color: #1f2937 !important; /* 文字色を明確に指定 */
    -webkit-text-fill-color: #1f2937 !important; /* webkit-text-fill-colorを上書き */
    border-left: 4px solid #2563eb !important;
    padding: 24px 32px !important;
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important; /* より明るい背景 */
    border-radius: 12px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
    position: relative !important;
    overflow: hidden !important;
}

.single h1::before,
.single .entry-content h1::before,
.single article h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8, #7c3aed);
}

/* 中見出し（h2）- 下線付きのデザイン */
.single h2,
.single .entry-content h2,
.single article h2 {
    font-size: 24px !important; /* デスクトップ: 30px */
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important; /* webkit-text-fill-colorを上書き */
    border-bottom: 3px solid #e5e7eb !important;
    padding-bottom: 12px !important;
    position: relative !important;
    background: linear-gradient(135deg, #ffffff, #f9fafb) !important;
    padding: 11px 24px !important;
    border-radius: 8px !important;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important; */
}

.single h2::before,
.single .entry-content h2::before,
.single article h2::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 1.5rem;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 2px;
}

/* 小見出し（h3）- 左ボーダー付き */
.single h3,
.single .entry-content h3,
.single article h3 {
    font-size: 24px !important; /* デスクトップ: 24px */
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important; /* webkit-text-fill-colorを上書き */
    border-left: 4px solid #2563eb !important;
    padding: 12px 16px !important;
    background: linear-gradient(135deg, #eff6ff, #dbeafe) !important;
    border-radius: 6px !important;
    margin-left: -16px !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.1) !important;
}

/* その他の見出し */
.single h4,
.single .entry-content h4,
.single article h4 {
    font-size: 1.25rem !important;
    color: #374151 !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.single h5,
.single h6,
.single .entry-content h5,
.single .entry-content h6,
.single article h5,
.single article h6 {
    font-size: 1.125rem !important;
    color: #4b5563 !important;
    padding: 0.25rem 0 !important;
}

/* 段落 - px単位でデバイスごとに明確に指定 */
.single p,
.single .entry-content p,
.single article p,
.single .post-content p,
.single .content p,
.single .entry-content > p,
.single .post-content > p,
.single .content > p {
    margin-bottom: 24px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
    font-size: 18px !important; /* デスクトップ: 18px */
    font-family: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif !important;
    margin: 0px;
}

/* より強力なセレクターで確実に適用 */
body.single .entry-content p,
body.single .post-content p,
body.single .content p {
    font-size: 18px !important; /* デスクトップ: 18px */
    line-height: 1.8 !important;
    color: #374151 !important;
}

/* webkit-text-fill-color問題の解決 */
body.single .entry-content h1,
body.single .entry-content h2,
body.single .entry-content h3,
body.single .post-content h1,
body.single .post-content h2,
body.single .post-content h3 {
    -webkit-text-fill-color: initial !important;
    color: inherit !important;
}

/* リスト */
.single ul,
.single ol,
.single .entry-content ul,
.single .entry-content ol {
    margin: 2rem 0 !important;
    padding-left: 2rem !important;
}

.single li,
.single .entry-content li {
    margin-bottom: 0.75rem !important;
    line-height: 1.7 !important;
    color: #374151 !important;
}

.single ul li,
.single .entry-content ul li {
    position: relative !important;
    list-style: none !important;
}

.single ul li::before,
.single .entry-content ul li::before {
    /* content: '▶' !important; */
    color: #2563eb !important;
    font-weight: bold !important;
    position: absolute !important;
    left: -1.5rem !important;
    top: 0 !important;
}

.single ol li,
.single .entry-content ol li {
    counter-increment: list-counter !important;
}

.single ol,
.single .entry-content ol {
    counter-reset: list-counter !important;
}

.single ol li::marker,
.single .entry-content ol li::marker {
    color: #2563eb !important;
    font-weight: bold !important;
}

/* 引用 */
.single .entry-content blockquote {
    border-left: 4px solid #2563eb;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 0.5rem;
    font-style: italic;
    color: #4b5563;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.single .entry-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #2563eb;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    opacity: 0.3;
}

/* コード */
.single .entry-content code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.9em;
    border: 1px solid #e2e8f0;
}

.single .entry-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 2rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #334155;
}

.single .entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: 0.9rem;
}

/* テーブル */
.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.single .entry-content th,
.single .entry-content td {
    border: 1px solid #e5e7eb;
    padding: 1rem;
    text-align: left;
}

.single .entry-content th {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    font-weight: 600;
    color: #374151;
}

.single .entry-content tr:nth-child(even) {
    background: #f9fafb;
}

/* 画像 */
.single .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.single .entry-content img:hover {
    transform: scale(1.02);
}

/* 目次 - 現代的なデザイン */
.single .toc-container {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.single .toc-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8, #7c3aed);
}

.single .toc-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single .toc-title {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
}

.single .toc-icon {
    font-size: 1.25rem;
}

.single .toc-content {
    margin: 0;
}

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

.single .toc-item {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.single .toc-item::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.single .toc-item a {
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0;
    border-radius: 0.25rem;
}

.single .toc-item a:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    padding-left: 0.5rem;
}

.single .toc-hidden {
    display: none;
}

.single .toc-show-more {
    margin-top: 1rem;
    text-align: center;
}

.single .toc-show-more button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.single .toc-show-more button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* 目次トグル */
.single .toc-toggle {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.single .toc-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.single .toc-content.hidden {
    display: none;
}

/* タグクラウド */
.single .wp-block-tag-cloud a {
    display: inline-block;
    background: linear-gradient(135deg, #374151, #4b5563);
    color: white;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0.5rem 0.25rem 0;
    border-radius: 1.5rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.single .wp-block-tag-cloud a:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    color: white;
}

/* レスポンシブ対応 */
@media (max-width: 1150px) {
    .single {
        width: auto;
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .single {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .single .inner {
        flex: 1;
    }
    
    ul.sidebar {
        flex: none;
        order: 2;
    }
    
    .single .section-heading {
        font-size: 2rem;
    }
    
    /* 見出しのレスポンシブ調整 - タブレット */
    .single h1,
    .single .entry-content h1,
    .single article h1 {
        font-size: 30px !important; /* タブレット: 30px */
        padding: 16px 24px !important;
    }
    
    .single h2,
    .single .entry-content h2,
    .single article h2 {
        font-size: 24px !important; /* タブレット: 24px */
        padding: 12px 16px !important;
    }
    
    .single h3,
    .single .entry-content h3,
    .single article h3 {
        font-size: 20px !important; /* タブレット: 20px */
        padding: 8px 12px !important;
    }
    
    .single .post-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* 段落のレスポンシブ調整 - タブレット */
    .single p,
    .single .entry-content p,
    .single article p,
    .single .post-content p,
    .single .content p {
        font-size: 17px !important; /* タブレット: 17px */
    }
    
    .single .toc,
    .single .wp-block-table-of-contents {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .single .entry-content pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .single {
        margin: 0 0.5rem;
    }
    
    .single .section-heading {
        font-size: 1.75rem;
    }
    
    /* 見出しのモバイル調整 */
    .single h1,
    .single .entry-content h1,
    .single article h1 {
        font-size: 24px !important; /* モバイル: 24px */
        padding: 12px 16px !important;
    }
    
    .single h2,
    .single .entry-content h2,
    .single article h2 {
        font-size: 20px !important; /* モバイル: 20px */
        padding: 8px 12px !important;
    }
    
    .single h3,
    .single .entry-content h3,
    .single article h3 {
        font-size: 18px !important; /* モバイル: 18px */
        padding: 8px 12px !important;
    }
    
    /* 段落のモバイル調整 */
    .single p,
    .single .entry-content p,
    .single article p,
    .single .post-content p,
    .single .content p {
        font-size: 16px !important; /* モバイル: 16px */
        line-height: 1.7 !important; /* モバイルでは少し詰める */
    }
    
    .single .toc,
    .single .wp-block-table-of-contents {
        padding: 1rem;
    }
}

/* 関連記事セクション専用のスタイル */
.single .blog-tenfive-other .post-ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.single .blog-tenfive-other .post-li {
    width: calc(33.333% - 14px) !important; /* 3列表示 */
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* 関連記事セクションのレスポンシブ対応 */
@media (max-width: 768px) {
    .single .blog-tenfive-other .post-li {
        width: calc(50% - 10px) !important; /* タブレット: 2列表示 */
    }
}

@media (max-width: 480px) {
    .single .blog-tenfive-other .post-li {
        width: 100% !important; /* モバイル: 1列表示 */
    }
}