@charset "UTF-8";

/* ====================================
   ブログ詳細ページ（single.html）専用スタイル
   style.cssの干渉を強力にリセットします
   ==================================== */

/* --- 全体のリセットとレイアウト --- */
.blog-wrapper {
    background-color: var(--main-color__wht);
    width: 100%;
    /* ヘッダーの高さ分を確保 */
    padding-top: 70px; 
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 上揃えにする */
    gap: 4%;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .blog-container {
        flex-direction: column;
        gap: 50px;
    }
    .blog-wrapper {
        padding-top: 100px;
    }
}

/* ------------------------------------
   メインコンテンツ（左側）
   ------------------------------------ */
.blog-main {
    width: 68%;
    /* widthが崩れないようにボックスサイズを固定 */
    box-sizing: border-box; 
}

@media screen and (max-width: 768px) {
    .blog-main {
        width: 100%;
    }
}

/* パンくずリスト */
.breadcrumb {
    font-size: 1.4rem;
    color: var(--main-color__blk);
    margin-bottom: 30px;
    font-family: "Noto Sans JP", sans-serif;
}
.breadcrumb a {
    color: var(--main-color__blk);
    text-decoration: none;
}
.breadcrumb span {
    margin-left: 5px;
}

/* ------------------------------------
   記事スタイル（ここからTopページの影響を打ち消す）
   ------------------------------------ */

/* タイトル (h1) */
.article-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--main-color__blk);
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    margin-top: 10px;
    text-align: left;
}

/* メタ情報（日付・カテゴリ） */
.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.article-date {
    font-size: 1.4rem;
    color: var(--main-color__blk);
    font-family: 'Orbitron', sans-serif;
}
.article-cat {
    background-color: var(--main-color__grn);
    color: #fff;
    font-size: 1.2rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
}

/* アイキャッチ画像 */
.article-thumbnail {
    margin: 30px 0;
    width: 100%;
}
.article-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* ------------------------------------
   ★最重要：記事本文の見出しリセット
   .post-content 内の h2, h3 を強力に上書きします
   ------------------------------------ */

.post-content {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--main-color__blk);
}

.post-content p {
    margin-bottom: 2em;
}

.post-content a {
    text-decoration: underline;  
    color: var(--main-color__grn);
    word-break: break-all;
    overflow-wrap: break-word;
}

.post-content a:hover {
    opacity: 0.8;
}

/* style.cssのH2（巨大文字）を打ち消す */
.post-content h2 {
    /* Topページのスタイルを強制リセット */
    height: auto !important;
    font-size: 2.2rem !important;
    font-family: "Noto Sans JP", sans-serif !important;
    color: var(--main-color__blk) !important;
    opacity: 1 !important;
    margin: 50px 0 30px 0 !important;
    display: block !important;
    letter-spacing: normal !important;
    text-align: left !important;
    
    /* ブログ用デザインの適用 */
    border-left: 5px solid var(--main-color__grn);
    background: #f9f9f9;
    padding: 15px;
    font-weight: 700;
}

/* style.cssのH3を打ち消す */
.post-content h3 {
    margin: 40px 0 20px 0 !important;
    font-size: 1.8rem !important;
    font-family: "Noto Sans JP", sans-serif !important;
    color: var(--main-color__blk) !important;
    font-weight: 700 !important;
    display: inline-block !important;
    border-bottom: 2px solid var(--main-color__grn);
    padding-bottom: 5px;
    line-height: 1.5;
}

/* リスト */
.post-content ul {
    background: #f4f8f6;
    padding: 20px 20px 20px 40px;
    border-radius: 4px;
    list-style: disc;
    margin-bottom: 30px;
}
.post-content ul li {
    margin-bottom: 8px;
}

/* 戻るボタン */
.btn-area {
    margin-top: 60px;
    text-align: center;
}
.btn-back {
    display: inline-block;
    background-color: var(--main-color__grn);
    padding: 12px 60px;
    border: 1px solid var(--main-color__grn);
    border-radius: 10px;
    color: var(--main-color__wht);
    text-decoration: none;
    transition: 0.3s;
}
.btn-back:hover {
    opacity: 0.7;
}


/* ------------------------------------
   サイドバー（右側）
   ------------------------------------ */
.blog-sidebar {
    width: 28%;
    padding-top: 20px;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .blog-sidebar {
        width: 100%;
        margin-top: 40px;
    }
}

.widget {
    margin-bottom: 50px;
}

/* サイドバーの見出しは英語なのでOrbitronでOKだが、サイズは調整 */
.widget-title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.8rem !important;
    color: var(--main-color__blk) !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--main-color__grn);
    padding-bottom: 10px;
    margin-bottom: 20px !important;
    letter-spacing: 0.1em;
    height: auto !important;
    opacity: 1 !important;
    display: block !important;
    text-align: left !important;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0 24px;
}
.widget-list li {
    font-size: 1.4rem;
    border-bottom: 1px dotted #ccc;
    padding: 10px 0;
}
.widget-list li a {
    color:var(--main-color__blk);
    text-decoration: none;
    display: block;
}

.widget-list li a:hover {
    opacity: 0.7;
}

/* 検索フォーム */
.search-form {
    display: flex;
    width: 100%;
}
.search-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 1.4rem;
}
.search-submit {
    background: #333;
    color: #fff;
    border: none;
    width: 50px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}