@charset "UTF-8";

/* =========================================
   Blog Page Styles (TipsWork Ref. + Contact Fix)
   ========================================= */

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f7f9fb;
    /* Slightly cool gray background */
}

.blog-main-wrapper {
    /* Main wrapper styles if needed */
}

/* Container Layout (2 Column) */
.blog-container {
    display: flex;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 100px;
    align-items: flex-start;
}

.blog-content {
    flex: 1;
    /* Main content takes remaining space */
    min-width: 0;
    /* Prevent overflow */
}

.blog-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    /* Sticky sidebar */
}

/* 1. Filter Bar (Chips Style) */
.blog-filter-bar {
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-chip {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
}

/* 2. Blog Cards Grid */
.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Column Grid */
    gap: 30px;
}

.b-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.b-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.b-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Thumbnail Area */
.b-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.b-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.b-card:hover .b-thumb img {
    transform: scale(1.05);
}

/* Category Label (Over Image) */
.b-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: var(--accent-color, #475569);
    /* デフォルトの背景色（指定がない場合はこの色） */
}


/* Card Body */
.b-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.b-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #333;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.b-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 0.8rem;
    color: #999;
}

.b-date {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.b-date i {
    margin-right: 5px;
}

.b-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
}

.b-tag {
    color: var(--accent-color);
    font-weight: 500;
}

/* 3. Pagination */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.page-num:hover,
.page-num.active {
    background: var(--accent-color);
    color: #fff;
}

.page-dots {
    color: #ccc;
}

/* 4. Sidebar Widgets */
.widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    letter-spacing: 0.05em;
}

/* Pickup List */
.widget-post-list {
    list-style: none;
}

.widget-post-list li {
    margin-bottom: 15px;
}

.widget-post-list li:last-child {
    margin-bottom: 0;
}

.widget-post-list a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: #333;
}

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

.w-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.w-info p {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* Category List */
.widget-cat-list {
    list-style: none;
}

.widget-cat-list li {
    margin-bottom: 10px;
}

.widget-cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.widget-cat-list a:hover {
    color: var(--accent-color);
}

.count {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #888;
    flex-shrink: 0;
    align-self: center;
    height: fit-content;
}

/* Tags Cloud */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-tags a {
    display: inline-block;
    padding: 6px 12px;
    background: #f4f5f7;
    border-radius: 4px;
    color: #555;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s;
}

.widget-tags a:hover {
    background: #e0e4e8;
}

/* Banner Widget */
.widget-banner {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

.widget-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.widget-banner:hover img {
    transform: scale(1.05);
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.banner-text span {
    font-weight: bold;
    font-family: var(--font-en-head);
    font-size: 1.2rem;
    display: block;
}

.banner-text p {
    font-size: 0.8rem;
    margin: 0;
}

/* -----------------------------------------
   5. Contact Area (Added)
----------------------------------------- */
.contact-area {
    background: #fff;
    /* or #f7f9fb */
    padding-bottom: 100px;
}

.contact-box {
    background: #f4f8ff;
    padding: 80px 40px;
    text-align: center;
    border-radius: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-desc {
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #666;
}

.contact-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-contact-primary {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

.btn-contact-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.4);
}

.btn-contact-tel {
    background: #fff;
    color: #333;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-contact-tel:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* -----------------------------------------
   Responsive
----------------------------------------- */
@media (max-width: 900px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-sidebar {
        width: 100%;
        position: static;
    }

    .widget-post-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .widget-banner {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Contact Mobile */
    .contact-btns {
        flex-direction: column;
    }

    .contact-box {
        padding: 40px 20px;
    }
}

@media (max-width: 600px) {
    .blog-card-grid {
        grid-template-columns: 1fr;
    }

    .widget-post-list {
        grid-template-columns: 1fr;
    }
}