/* ============================================
   SINGLE POST STYLES
   ============================================ */

/* パンくずリスト：背景と枠を完全に消去し、余白を詰める */
body.single .breadcrumb {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-top: 166px;   /* 固定ヘッダー(116px) + 上部余白(50px) */
    padding-bottom: 50px; /* 下部余白(50px) - 縦配置を中央にする */
}

/* 念のためコンテナ内部の白背景も消去 */
body.single .breadcrumb .container {
    background: transparent !important;
    box-shadow: none !important;
}

.single-post {
    padding: 0 0 100px;
    background-color: var(--color-bg-base, #FAF7F2);
}

/* フッターの.containerに白枠が適用されるのを防ぐため、セレクタをmain.single-post .containerに変更 */
main.single-post .container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px 60px 60px; /* 上部の余白を60pxから30pxに半減して間隔を詰める */
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

@media (max-width: 1023px) {
    body.single .breadcrumb {
        padding-top: 80px;   /* モバイル固定ヘッダー(60px) + 上部余白(20px) */
        padding-bottom: 20px; /* 下部余白(20px) */
    }
}

@media (max-width: 768px) {
    main.single-post .container {
        padding: 40px 20px;
        margin: 0 auto;
    }
}

/* Header Area */
.post-header {
    text-align: center;
    margin-bottom: 50px;
}

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

.post-date {
    font-size: 14px;
    color: #888;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
}

.post-category {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 30px;
    background-color: var(--color-navy, #001f3f);
    color: #fff;
    letter-spacing: 0.05em;
}

.post-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .post-title {
        font-size: 24px;
    }
}

/* Gold Accent Line under Title */
.post-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-gold, #c5a059);
    margin: 0 auto;
}

/* Thumbnail */
.post-thumbnail {
    margin-bottom: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Area */
.entry-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

/* Typography inside content */
.entry-content p {
    margin-bottom: 1.8em;
}

.entry-content h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    color: var(--color-navy, #001f3f);
    padding: 15px 0 15px 20px;
    border-left: 5px solid var(--color-navy, #001f3f);
    border-bottom: 1px solid #eee;
    margin: 60px 0 30px;
}

.entry-content h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    color: #333;
    margin: 40px 0 20px;
}

.entry-content h3::before {
    content: '◆';
    color: var(--color-gold, #c5a059);
    margin-right: 10px;
    font-size: 18px;
    vertical-align: text-bottom;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

.entry-content a {
    color: var(--color-navy, #001f3f);
    text-decoration: underline;
    text-decoration-color: rgba(0, 31, 63, 0.3);
    text-underline-offset: 3px;
    transition: all 0.3s;
}

.entry-content a:hover {
    color: var(--color-gold, #c5a059);
    text-decoration-color: var(--color-gold, #c5a059);
}

/* Lists */
.entry-content ul, .entry-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

/* Blockquotes */
.entry-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--color-gold, #c5a059);
    font-style: italic;
    color: #666;
}

/* Responsive Embeds (YouTube, Maps) */
.entry-content iframe,
.entry-content object,
.entry-content embed {
    max-width: 100%;
}

.entry-content .wp-block-embed-youtube {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.entry-content .wp-block-embed-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* PDF Viewer Adjustment */
.entry-content .pdf-viewer-wrapper,
.entry-content .pdfjs-viewer-shortcode {
    margin: 40px auto;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Footer Navigation */
.post-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.post-navigation {
    margin-bottom: 50px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-previous, .nav-next {
    width: 50%;
}

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

.post-navigation a {
    display: inline-block;
    padding: 15px 25px;
    background-color: #f9f9f9;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.post-navigation a:hover {
    background-color: #fff;
    border-color: var(--color-navy, #001f3f);
    color: var(--color-navy, #001f3f);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nav-arrow {
    color: var(--color-gold, #c5a059);
    font-weight: bold;
}

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

.back-to-list .btn {
    padding: 16px 40px;
}

/* フッター下部の余分なスペースを完全に排除 */
html, body.single {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
