@charset "utf-8";

@import url("colors.css");
.header-padding {
    margin-top: 120px;
}
@media screen and (max-width: 768px) {
    .header-padding {
        margin-top: 60px;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.blog-hero {
    width: 100%;
    height: 350px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}

.blog-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.blog-hero-box {
	width: 30%;
    background: #fff;
    display: inline-block;
    padding: 30px 80px;
    text-align: center;
}

.blog-hero-subtitle {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.blog-hero-subtitle::after {
    content: "";
    display: block;
    width: 70%;
    height: 1px;
    background: var(--blog-primary);
    margin: 10px auto 0;
}

.blog-hero-title {
    font-size: 24px;
    color: #333;
    font-weight: 400;
    margin: 0;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.blog-breadcrumb {
    max-width: 1200px;
    margin: 20px auto 40px;
    padding: 0 20px;
    font-size: 14px;
    color: #999;
}

.blog-breadcrumb a {
    color: var(--blog-primary);
    text-decoration: none;
}

/* ==========================================================================
   Layout (Main + Sidebar)
   ========================================================================== */
.blog-main {
    padding-bottom: 80px;
}

.blog-wrap {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

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

.blog-sidebar-column {
    width: 280px;
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .blog-wrap {
        flex-direction: column;
    }
    .blog-sidebar-column {
        width: 100%;
    }
    .blog-hero {
        height: 200px;
    }
    .blog-hero-box {
        width: 80%;
        padding: 15px 0;
    }
    .blog-hero-title {
        font-size: 24px;
        font-weight: normal;
    }
    .blog-hero-subtitle {
        margin-bottom: 5px;
    }
}

/* ==========================================================================
   Archive List
   ========================================================================== */
.blog-archive-header {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blog-primary);
    position: relative;
}

.blog-archive-title {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
    color: var(--blog-text);
}

.blog-post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-post-item {
    background: #fff;
    border-bottom: 1px dotted var(--blog-border);
    padding-bottom: 20px;
}

.blog-post-item:last-child {
    border-bottom: none;
}

.blog-post-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.blog-post-link:hover {
    opacity: 0.8;
}

.blog-post-thumb {
    width: 200px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    background: #eee;
    overflow: hidden;
}

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

.blog-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 14px;
    background: #f0f0f0;
}

.blog-post-content {
    padding: 0 20px;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.blog-post-cat {
    background-color: var(--blog-primary);
    color: #fff !important;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 10px;
    text-decoration: none !important;
    /*border-radius: 20px;*/ /* バッジ形式 */
}

.blog-post-date {
    font-size: 13px;
    color: var(--blog-primary);
    font-weight: bold;
}

.blog-post-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px;
    line-height: 1.5;
}

.blog-post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-post-readmore {
    margin-top: auto;
    text-align: right;
    font-size: 13px;
    color: var(--blog-primary);
    font-weight: bold;
}

@media screen and (max-width: 600px) {
    .blog-post-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }
    .blog-post-item {
        border-bottom: none;
        padding-bottom: 0;
    }
    .blog-post-link {
        flex-direction: column;
        height: 100%;
    }
    .blog-post-thumb {
        width: 100%;
        aspect-ratio: 16/9;
    }
    .blog-post-content {
        padding: 10px 0 0;
    }
    .blog-post-meta {
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 5px;
    }
    .blog-post-title {
        font-size: 14px;
        margin: 0 0 5px;
        word-break: break-word;
    }
    .blog-post-excerpt {
        display: none;
    }
    .blog-post-date {
        font-size: 11px;
    }
    .blog-post-cat {
        font-size: 9px;
        padding: 2px 4px;
        white-space: normal;
        display: inline-block;
        word-break: break-word;
    }
    
    /* ページネーションの縮小 */
    .pagination .page-numbers {
        font-size: 12px;
        padding: 8px 8px;
        margin: 0 1px;
        width: auto;
        height: auto;
        line-height: normal;
    }
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.blog-sidebar-widget {
    margin-bottom: 40px;
}

.blog-sidebar-title {
    color: var(--blog-primary);
    background-color: transparent;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    padding: 0;
    text-align: left;
    letter-spacing: 1px;
}

.blog-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 3px solid var(--blog-primary);
    
    box-shadow: 3px 3px 0 #ddd;
    background: #fff;
}

.blog-category-list li {
    border-top: 1px dotted var(--blog-primary);
}

.blog-category-list li:first-child {
    border-top: none;
}

.blog-category-list li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}

.blog-category-list li a:hover {
    background-color: rgba(203, 41, 19, 0.05);
    color: var(--blog-primary);
}

.blog-archive-select {
    padding: 0;
}

.blog-archive-select select {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid var(--blog-primary);
    box-shadow: 3px 3px 0 #ddd;
    border-radius: 0; /* 角丸なし */
    outline: none;
    font-size: 14px;
    color: #333;
    appearance: none;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="%23cb2913" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') no-repeat right 15px center;
}
