@charset "utf-8";

/* Journal一覧ページ固有スタイル */

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

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

/* FV（Journal用・共通sub-fvパターンを使用） */
/* 長いキャッチコピー用にフォントサイズを縮小し2行に収める */
.sub-fv-catchcopy.is-long {
    font-size: 2.2rem;
    line-height: 1.6;
}

/* 記事一覧グリッド */
.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) {
    .sub-fv-catchcopy.is-long { font-size: 1.8rem; }
    .hamburger { top: 10%; }

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

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