@charset "utf-8";

/* ブログ一覧・検索ページ固有スタイル */

.blog,
.footer {
    padding-left: 2%;
    padding-right: 2%;
}

.blog-in {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* FV（ブログ用） */
.fv-blog {
    width: 100%;
    height: 70vh;
    background-image: url(../img/fv-blog.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
}

.fv-material {
    width: 100%;
    height: 70vh;
    background-image: url(../img/fv-material.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
}

.first-view a { display: inline-block; }

.first-view h1 {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-blog {
    width: 70%;
    display: block;
    margin: 0 auto;
}

.first-cv {
    text-align: center;
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 10px;
    width: 300px;
}

/* 記事一覧グリッド */
.blog-con {
    display: grid;
    justify-content: space-between;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.blog-con a {
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    text-align: right;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-con a:hover {
    opacity: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-4px);
}

.blog-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-con a:hover .blog-img {
    transform: scale(1.05);
}

.blog-time {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    font-size: 14px;
    align-items: center;
}

.blog-time time {
    text-align: left;
    width: 40%;
    color: #888;
}

.category {
    width: 60%;
    text-align: center;
    background-color: #e7d7a8;
    padding: 4px 8px;
    color: #000;
    line-height: 1;
}

.blog-text { text-align: left; }
.blog-text h3 { padding: 0 10px; color: #222; }
.blog-text p { padding: 10px; color: #555; }

.blog-con .arrow {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin: 8px 8px 4px 0;
    transition: transform 0.3s ease;
}

.blog-con a:hover .arrow {
    transform: translateX(4px);
}

/* ページネーション */
.pagenation {
    text-align: center;
    margin: 48px 0;
}

.pagenation .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    border: 1px solid #ccc;
}

.pagenation .current {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* タブレット */
@media (max-width: 1024px) {
    .first-view { height: 50vh; }
}

/* スマホ */
@media (max-width: 599px) {
    .logo-blog { width: 100%; }
    .hamburger { top: 10%; }

    .blog-con {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-img { height: 200px; }
}
