/* ========== BLOG FRONT COMMON ========== */
/* レイアウト・配色すべてを一元管理 */

/* --- HEADER --- */
.front-header { background: #2d5016; border-bottom: 1px solid #3d6b20; position: relative; overflow: hidden; display: block; }
.front-header-inner { position: relative; height: 100%; padding: 0 24px; }
.front-header-inner.is-contained { max-width: 1200px; margin: 0 auto; }
.front-header-inner.is-full { max-width: 100%; }
.front-header-logo { position: absolute; padding: 12px 16px; text-decoration: none; display: inline-block; }
.front-header-logo img { display: block; }
.front-header-site-name { font-weight: 700; line-height: 1.3; margin: 0; }
.front-header-catchphrase { opacity: 0.8; line-height: 1.4; }



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

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

.sidebar-site-link {
    text-align: center;
    padding: 12px 0;
    margin-top: 16px;
    border-top: 1px solid #3d6b20;
}

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

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

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

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

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

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

.sidebar-widget {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #c8ddb5;
}

.sidebar-widget-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    color: #3d6b20;
    border-bottom: 1px solid #d5e8c3;
}

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

.search-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: #f4f7f0;
    border: 1px solid #b5ceaa;
    color: #2c3e1a;
}

.search-input:focus {
    border-color: #3d6b20;
}

.search-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #4a8c2a;
    color: #ffffff;
}

.search-btn:hover {
    background: #3d6b20;
}

/* プロフィール */
.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;
    color: #2c3e1a;
}

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

/* 最新記事 */
.sidebar-recent-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-recent-card {
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.sidebar-recent-card img {
    width: 100%;
    height: auto;
    display: block;
}

.sidebar-recent-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.sidebar-recent-card:hover .sidebar-recent-card-title {
    background: rgba(255, 255, 255, 0.95);
}

.sidebar-recent-text {
    display: block;
    font-size: 13px;
    text-decoration: none;
    line-height: 1.5;
    color: #2c3e1a;
    padding: 10px 0;
    border-bottom: 1px solid #d5e8c3;
}

.sidebar-recent-text:hover {
    color: #4a8c2a;
}

.sidebar-no-posts {
    font-size: 13px;
    color: #8aad6e;
}

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

.sidebar-category-list li {
    padding: 8px 0;
    border-bottom: 1px solid #d5e8c3;
}

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

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

.sidebar-category-list li a:hover {
    color: #4a8c2a;
}

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

.front-post-item {
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #c8ddb5;
}

.front-post-item:hover {
    border-color: #4a8c2a;
}

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

.front-post-item h2 a {
    text-decoration: none;
    color: #2c3e1a;
}

.front-post-item h2 a:hover {
    color: #4a8c2a;
}

.front-post-meta {
    font-size: 12px;
    margin-bottom: 12px;
    color: #8aad6e;
}

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

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

.front-post-category:hover {
    color: #3d6b20;
}

/* --- POST: 記事詳細 --- */
.front-post-content {
    border-radius: 10px;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #c8ddb5;
}

.post-breadcrumb {
    font-size: 12px;
    margin-bottom: 12px;
    color: #8aad6e;
}

.post-breadcrumb a {
    color: #4a8c2a;
    text-decoration: none;
}

.post-breadcrumb a:hover {
    color: #3d6b20;
}

.post-breadcrumb-sep {
    margin: 0 6px;
    color: #8aad6e;
}

.post-breadcrumb-current {
    color: #8aad6e;
}

.front-post-content .post-detail-title {
    font-size: 30px;
    margin-bottom: 28px;
    line-height: 1.4;
    font-weight: 900;
    color: #ffffff;
    background: #2d5016;
    padding: 20px 28px;
    border-radius: 10px;
    position: relative;
}

.front-post-content .post-detail-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 32px;
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid #2d5016;
}

.front-post-content .post-detail-body {
    font-size: 16px;
    line-height: 1.5;
    color: #3a4f2a;
    font-weight: 600;
}

.front-post-content .post-detail-body h2 { font-size: 24px; margin: 28px 0 12px; font-weight: 700; color: #2c3e1a; padding-bottom: 12px; position: relative; }
.front-post-content .post-detail-body h2::before { content: "\25A0"; color: #4a8c2a; margin-right: 10px; font-size: 18px; }
.front-post-content .post-detail-body h2::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: #4a8c2a; border-radius: 2px; }
.front-post-content .post-detail-body h3 { font-size: 20px; margin: 24px 0 10px; font-weight: 700; color: #2c3e1a; }
.front-post-content .post-detail-body p { margin-bottom: 16px; }
.front-post-content .post-detail-body a { color: #4a8c2a; }
.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; background: #1d1d1d; color: #ffffff; }
.front-post-content .post-detail-body pre { padding: 16px; border-radius: 8px; overflow-x: auto; margin: 16px 0; background: #1d1d1d; border: none; }
.front-post-content .post-detail-body pre code { background: none; padding: 0; color: #ffffff; }
.front-post-content .post-detail-body blockquote { padding: 12px 20px; margin: 16px 0; border-radius: 0 8px 8px 0; border-left: 4px solid #4a8c2a; background: #eaf3e0; }
.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; border: 1px solid #c8ddb5; }
.front-post-content .post-detail-body table th { background: #eaf3e0; }
.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;
    background: #eaf3e0;
    color: #2d5016;
}

.front-back-link a:hover {
    background: #d5e8c3;
    color: #1a3a0a;
}

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

/* --- 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;
    background: #ffffff;
    border: 1px solid #c8ddb5;
    color: #2c3e1a;
}

.pagination-link:hover {
    background: #eaf3e0;
    color: #4a8c2a;
    border-color: #4a8c2a;
}

.pagination-current {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    background: #4a8c2a;
    border: 1px solid #4a8c2a;
    color: #ffffff;
}

/* --- 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: 900px) {
    .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;
    background: #ffffff;
    border: 1px solid #c8ddb5;
}
.blog-comments-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    color: #2c3e1a;
    border-bottom: 1px solid #d5e8c3;
}
.blog-comment-msg {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
    background: #eaf3e0;
    color: #3d6b20;
}
.blog-comments-list {
    margin-bottom: 24px;
}
.blog-comment-item {
    padding: 14px 0;
    border-bottom: 1px solid #d5e8c3;
}
.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;
    color: #2c3e1a;
}
.blog-comment-date {
    font-size: 12px;
    color: #8aad6e;
}
.blog-comment-delete {
    font-size: 12px;
    text-decoration: none;
    margin-left: auto;
    color: #cc0000;
}
.blog-comment-delete:hover {
    text-decoration: underline;
}
.blog-comment-body {
    font-size: 14px;
    line-height: 1.7;
    color: #2c3e1a;
}
.blog-comments-empty {
    font-size: 14px;
    margin-bottom: 24px;
    color: #8aad6e;
}
.blog-comment-form-wrap {
    padding-top: 20px;
    border-top: 1px solid #d5e8c3;
}
.blog-comment-form-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #2c3e1a;
}
.blog-comment-form-group {
    margin-bottom: 12px;
}
.blog-comment-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #5a7a3a;
}
.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;
    background: #f4f7f0;
    border-color: #b5ceaa;
    color: #2c3e1a;
}

.blog-comment-form-input:focus,
.blog-comment-form-textarea:focus {
    border-color: #4a8c2a;
    outline: none;
}
.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;
    background: #4a8c2a;
    color: #ffffff;
}

.blog-comment-form-btn:hover {
    background: #3d6b20;
}
.blog-comment-form-note {
    font-size: 12px;
    margin-top: 8px;
    color: #8aad6e;
}

/* ============================================================
   関連コンテンツ
   ============================================================ */
.related-section {
    margin-top: 32px;
}
.related-heading {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-left: 14px;
    color: #2c3e1a;
    border-left: 4px solid #4a8c2a;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.related-card {
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    box-shadow: 0 1px 6px rgba(45, 80, 22, 0.1);
    transition: box-shadow 0.2s;
}

.related-card:hover {
    box-shadow: 0 4px 16px rgba(45, 80, 22, 0.18);
}
.related-card-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.related-card-noimage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: #d5e8c3;
    color: #6b8f55;
}

.related-card-noimage-placeholder {
    background: #e0ecda;
    color: #a8cc8c;
}
.related-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.85);
    color: #1a1a1a;
}
.related-card-placeholder {
    pointer-events: none;
    opacity: 0.7;
}

.related-card-placeholder .related-card-title {
    color: #888888;
    font-weight: 400;
    text-align: center;
}
@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   ゲーム誘導バナー
   ============================================================ */
.game-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 32px 0;
    padding: 20px 24px;
    border-radius: 12px;
    text-decoration: none;
    background: #1a3a0a;
    border: 2px solid #4a8c2a;
}
.game-banner:hover {
    background: #2d5016;
}
.game-banner-icon {
    font-size: 48px;
    flex-shrink: 0;
}
.game-banner-body {
    flex: 1;
}
.game-banner-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    color: #7ecf5a;
}
.game-banner-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 4px;
    color: #ffffff;
}
.game-banner-desc {
    font-size: 13px;
    color: #a8cc8c;
}
.game-banner-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    background: #4a8c2a;
    color: #ffffff;
    white-space: nowrap;
}
.game-banner:hover .game-banner-btn {
    background: #5da832;
}
@media (max-width: 768px) {
    .game-banner {
        flex-direction: column;
        text-align: center;
    }
    .game-banner-btn {
        width: 100%;
        text-align: center;
    }
}

/* カテゴリ説明文 */
.front-category-description {
    margin: 0 0 24px 0;
    padding: 16px 20px;
    background: #f5f5f5;
    border-left: 3px solid #2d5016;
    font-size: 14px;
    line-height: 1.7;
    color: #333333;
}
