@charset "UTF-8";

/* ====================================
   Blog Home Page Styles (home.php)
   ==================================== */

/* --- 全体のレイアウト --- */
.blog-wrapper {
    width: 100%;
    padding-bottom: 80px;
}

/* ヘッダー内のテキスト調整 */
.article__header p {
    font-size: 1.8rem;
    margin-left: 5%;
    margin-bottom: 50px;
}

.blog-container {
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4%;
}

@media screen and (max-width: 768px) {
    .article__header p {
        font-size: 1.6rem;
        margin-left: 24px;
        width: 80%;
    }
    
    .blog-container {
        flex-direction: column;
        gap: 50px;
    }
}

/* --- メインコンテンツ（左側） --- */
.blog-main {
    width: 68%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}
@media screen and (max-width: 768px) {
    .blog-main {
        width: 100%;
    }
}

/* --- パンくずリスト --- */
.breadcrumb {
    font-size: 1.4rem;
    color: var(--sub-color__blk);
    margin-top: 20px;
    margin-bottom: 40px;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.5;
    
    /* コンテンツ幅に合わせる（ここも90%にしておきます） */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: 0.3s;
}
.breadcrumb a:hover {
    color: var(--main-color__grn, #36684b);
}
.breadcrumb span {
    margin-left: 5px;
}


/* --- 記事リスト --- */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}
.blog-item:last-child {
    border-bottom: none;
}

.blog-item-link {
    display: flex;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s;
    gap: 20px;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}
.blog-item-link:hover {
    opacity: 0.7;
}

@media screen and (max-width: 600px) {
    .blog-item-link {
        flex-direction: column;
        gap: 15px;
    }
}

/* サムネイル */
.blog-item-thumb {
    width: 35%;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
}
@media screen and (max-width: 600px) {
    .blog-item-thumb {
        width: 100%;
    }
}

.blog-item-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    vertical-align: bottom;
}

/* 記事本文 */
.blog-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}
.blog-item-date {
    font-family: 'Orbitron', sans-serif;
    color: #888;
    font-size: 1.4rem;
}
.blog-item-cat {
    background-color: var(--main-color__grn, #36684b);
    color: #fff;
    font-size: 1.1rem;
    padding: 3px 10px;
    border-radius: 4px;
}

/* タイトル崩れ防止（リセット） */
.blog-item-title {
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 10px 0 !important;
    font-family: "Noto Sans JP", sans-serif !important;
    color: #333 !important;
    opacity: 1 !important;
    font-size: 1.8rem !important;
    display: block !important;
    font-weight: 700 !important;
    line-height: 1.5;
    letter-spacing: normal !important;
    pointer-events: auto !important;
}

.blog-item-excerpt {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.6;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ページネーション */
.pagination {
    margin: 3% 0;
    text-align: center;
}
.nav-links {
    display: inline-flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.nav-links .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-size: 1.4rem;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
}
.nav-links .current {
    background-color: var(--main-color__grn, #36684b);
    color: #fff;
    border-color: var(--main-color__grn, #36684b);
}


/* ====================================
   サイドバー（右カラム）
   ==================================== */
.blog-sidebar {
    width: 28%;
    padding-top: 20px; 
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}
@media screen and (max-width: 768px) {
    .blog-sidebar {
        width: 100%;
        margin-top: 40px;
    }
}

.widget {
    margin-bottom: 50px;
}

/* タイトル装飾の統一 */
.widget-title {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.8rem !important;
    color: #333 !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--main-color__grn, #36684b);
    text-align: left !important;
    display: block !important;
    height: auto !important;
    opacity: 1 !important;
    position: static !important;
}

/* 検索窓のデザイン統一 */
.search-form {
    display: flex;
    width: 100%;
    position: relative;
}
.search-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 1.4rem;
    height: 44px;
    box-sizing: border-box;
    background: #fff;
}
.search-submit {
    background-color: var(--main-color__blk, #252525);
    color: #fff;
    border: none;
    width: 50px;
    height: 44px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    z-index: 5;
}

/* リストデザインの統一 */
.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.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;
}