/* ========== BLOG FRONT COMMON LAYOUT ========== */
/* 骨格・レイアウトのみ。色はスキンで指定する。 */

/* --- FOOTER --- */
.front-footer {
    padding: 40px 24px 24px;
    text-align: center;
    margin-top: 40px;
}

.front-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.front-footer p {
    font-size: 13px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 48px;
    text-align: left;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.footer-nav-heading {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px 0;
    padding: 0;
}

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

.footer-nav-list li {
    margin-bottom: 6px;
}

.footer-nav-list a {
    font-size: 13px;
    text-decoration: none;
}

.footer-nav-list a:hover {
    text-decoration: underline;
}

.footer-nav-disabled {
    font-size: 13px;
}

.footer-bottom {
    padding-top: 0;
}

.footer-site-link {
    text-decoration: none;
}

.footer-site-link:hover {
    text-decoration: underline;
}

.sidebar-admin-link {
    text-align: right;
    margin-top: 12px;
}

.sidebar-admin-link a {
    font-size: 12px;
    text-decoration: none;
}

.sidebar-site-link {
    text-align: center;
    padding: 12px 0;
    margin-top: 16px;
}

.sidebar-site-link a {
    font-size: 13px;
    text-decoration: none;
}

.sidebar-site-link a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .footer-nav {
        flex-direction: column;
        gap: 24px;
    }
}

/* --- BODY & LAYOUT --- */
.front-body {
    font-family: 'Helvetica Neue', 'Hiragino Sans', 'Meiryo', sans-serif;
    min-height: 100vh;
}

.front-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    gap: 32px;
}

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

/* --- SIDEBAR --- */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-widget {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
}

/* 検索 */
.search-form {
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.search-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* プロフィール */
.sidebar-profile {
    text-align: center;
}

.sidebar-profile-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.sidebar-profile-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sidebar-profile-desc {
    font-size: 13px;
    line-height: 1.6;
}

/* 最新記事 */
.sidebar-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-recent-list li {
    padding: 10px 0;
}

.sidebar-recent-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-recent-list li a {
    font-size: 13px;
    text-decoration: none;
    display: block;
    line-height: 1.5;
}

.sidebar-recent-date {
    font-size: 11px;
}

.sidebar-no-posts {
    font-size: 13px;
}

/* カテゴリ一覧（サイドバー） */
.sidebar-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-category-list li {
    padding: 8px 0;
}

.sidebar-category-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-category-list li a {
    font-size: 13px;
    text-decoration: none;
}

/* --- INDEX: 記事一覧 --- */
.front-page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.front-post-item {
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
}

.front-post-item h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.front-post-item h2 a {
    text-decoration: none;
}

.front-post-meta {
    font-size: 12px;
    margin-bottom: 12px;
}

.front-post-excerpt {
    font-size: 14px;
    line-height: 1.7;
}

.front-post-category {
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}

/* --- POST: 記事詳細 --- */
.front-post-content {
    border-radius: 10px;
    padding: 40px;
}

.front-post-content .post-detail-meta {
    font-size: 12px;
    margin-bottom: 12px;
}

.front-post-content .post-detail-title {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.front-post-content .post-detail-body {
    font-size: 15px;
    line-height: 1.5;
}

.front-post-content .post-detail-body h2 { font-size: 24px; margin: 28px 0 12px; font-weight: 700; }
.front-post-content .post-detail-body h3 { font-size: 20px; margin: 24px 0 10px; font-weight: 700; }
.front-post-content .post-detail-body p { margin-bottom: 16px; }
.front-post-content .post-detail-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.front-post-content .post-detail-body code { padding: 2px 8px; border-radius: 4px; font-size: 13px; }
.front-post-content .post-detail-body pre { padding: 16px; border-radius: 8px; overflow-x: auto; margin: 16px 0; }
.front-post-content .post-detail-body pre code { background: none; padding: 0; }
.front-post-content .post-detail-body blockquote { padding: 12px 20px; margin: 16px 0; border-radius: 0 8px 8px 0; }
.front-post-content .post-detail-body table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.front-post-content .post-detail-body table td,
.front-post-content .post-detail-body table th { padding: 10px 14px; }
.front-post-content .post-detail-body ul,
.front-post-content .post-detail-body ol { padding-left: 24px; margin-bottom: 16px; }
.front-post-content .post-detail-body li { margin-bottom: 6px; }

.front-back-link {
    text-align: center;
    margin-top: 32px;
}

.front-back-link a {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.badge-draft {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination-link {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
}

.pagination-current {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

/* --- EYECATCH --- */
.front-post-item.has-eyecatch {
    display: flex;
    gap: 20px;
}

.front-post-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
}

.front-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.front-post-item-body {
    flex: 1;
    min-width: 0;
}

.post-detail-eyecatch {
    margin-bottom: 20px;
}

.post-detail-eyecatch img {
    width: 100%;
    border-radius: 8px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .front-container {
        flex-direction: column;
        padding: 16px;
    }
    .sidebar {
        width: 100%;
    }
    .front-post-content {
        padding: 20px;
    }
    .front-post-item.has-eyecatch {
        flex-direction: column;
    }
    .front-post-thumb {
        width: 100%;
        height: 200px;
    }
}

/* ============================================================
   コメントセクション
   ============================================================ */
.blog-comments-section {
    margin-top: 32px;
    padding: 24px;
    border-radius: 10px;
}
.blog-comments-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
}
.blog-comment-msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}
.blog-comments-list {
    margin-bottom: 24px;
}
.blog-comment-item {
    padding: 14px 0;
}
.blog-comment-meta {
    font-size: 13px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.blog-comment-author {
    font-weight: 700;
}
.blog-comment-date {
    font-size: 12px;
}
.blog-comment-delete {
    font-size: 12px;
    text-decoration: none;
    margin-left: auto;
}
.blog-comment-delete:hover {
    text-decoration: underline;
}
.blog-comment-body {
    font-size: 14px;
    line-height: 1.7;
}
.blog-comments-empty {
    font-size: 14px;
    margin-bottom: 24px;
}
.blog-comment-form-wrap {
    padding-top: 20px;
}
.blog-comment-form-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
}
.blog-comment-form-group {
    margin-bottom: 12px;
}
.blog-comment-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
.blog-comment-form-input,
.blog-comment-form-textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 6px;
    border-width: 1px;
    border-style: solid;
    box-sizing: border-box;
}
.blog-comment-form-textarea {
    resize: vertical;
}
.blog-comment-form-btn {
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.blog-comment-form-note {
    font-size: 12px;
    margin-top: 8px;
}
