@charset "utf-8";

/* ブログ記事ページ固有スタイル */

/* ExUnitプラグインの関連記事（本文末に自動挿入）：文字が小さすぎるため拡大 */
.veu_relatedPosts .mainSection-title.relatedPosts_title {
    font-size: 20px !important;
    font-weight: bold !important;
    margin-bottom: 16px !important;
}

.veu_relatedPosts .media-heading {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 6px !important;
}

.veu_relatedPosts .media-body,
.veu_relatedPosts .media-date {
    font-size: 13px !important;
}

.blog,
.prev-next,
.blog-02 {
    padding-left: 2%;
    padding-right: 2%;
}

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

/* FV（記事ページ用・共通sub-fvパターンを使用） */
/* 記事本文が主役なので、他の下層ページより低めに抑える */
.sub-fv,
.sub-fv-img {
    height: 30vh;
    min-height: 260px;
}

/* ブログ記事装飾（管理画面で使うクラス） */
.under {
    text-shadow: 1px 1px 0 #fff;
    padding: 0 0 2px;
    background: linear-gradient(transparent 70%, #ff9fb8 70%);
}

.awasete {
    position: relative;
    width: 100%;
    border: 1px solid #ffbe08;
    border-radius: 4px;
    background-color: #f9f6ea;
    padding: 2em 4% 1em;
    margin: 2em auto 4em;
    box-sizing: border-box;
}

.awasete::before {
    content: "合わせて読みたい";
    position: absolute;
    top: -12px;
    font-size: 75%;
    color: #fff;
    background-color: rgb(255, 190, 8);
    margin: 0;
    border-radius: 4px;
    padding: 2px 8px;
}

.awasete a {
    color: #212121;
    text-decoration: underline;
}

.blog-con a {
    color: #CEAE52;
}

/* 記事エリア */
.blog-area {
    padding: 80px 0;
}

.blog-area time {
    color: #888;
    font-size: 14px;
}

.blog-time {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 48px 0;
}

.blog-con {
    line-height: 2.2;
}

.blog-con p {
    margin-bottom: 4em;
}

.blog-time .category {
    width: auto;
    background-color: #e7d7a8;
    padding: 6px 14px;
    font-size: 13px;
    color: #000;
    line-height: 1.4;
    text-align: center;
}

.blog-title h2 {
    font-size: 24px;
    width: 100%;
    border-bottom: solid 1px #333;
    margin-bottom: 40px;
    text-align: center;
}

/* 前後記事 */
.prev-next {
    background-color: #f1f1f1;
}

.prev-next-in {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    justify-content: space-around;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.prev-next-in 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;
    position: relative;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.prev-next-in 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;
}

.prev-next-in a:hover .blog-img {
    transform: scale(1.05);
}

.blog-text {
    text-align: left;
}

.blog-text h3 {
    padding: 10px;
    color: #222;
}

.arrow {
    margin: 8px 8px 4px 0;
}

.prev,
.next {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #111;
    color: #fff;
    padding: 4px 16px;
}

/* カテゴリー・新着 */
.blog-flex {
    display: flex;
    flex-wrap: wrap;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    padding: 80px 0;
}

.blog-flex h2 {
    text-align: center;
    background-color: #333;
    color: #fff;
    line-height: 1;
    padding: 8px 0;
    border-radius: 4px;
    margin-bottom: 32px;
    font-size: 20px;
}

.flex-category { width: 40%; }
.category-list li { padding: 8px 0; }
.new-post { width: 55%; }

.n-p-list a {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: solid 1px #f1f1f1;
}

.n-p-list img {
    width: 30%;
    height: 100px;
    object-fit: cover;
}

.n-p-title { width: 65%; }

.n-p-title .category {
    text-align: center;
    background-color: #e7d7a8;
    padding: 4px 8px;
    color: #000;
    line-height: 1;
}

.n-p-title h3 { margin-top: 8px; color: #222; }

/* スマホ */
@media (max-width: 599px) {

    .sub-fv,
    .sub-fv-img {
        height: 30vh;
        min-height: 220px;
    }

    .hamburger { top: 10%; }

    .blog-area { padding: 48px 0; }

    .blog-time {
        display: block;
        padding: 16px 0 24px 0;
    }

    .blog-title h2 {
        font-size: 24px;
        width: 100%;
    }

    .blog-time .category {
        width: auto;
        margin: 12px 0 0;
        font-size: 12px;
    }

    .blog-flex {
        display: block;
        padding: 40px 0;
    }

    .flex-category,
    .new-post { width: 100%; }

    .new-post { margin-top: 24px; }

    .n-p-list img {
        width: 25%;
        height: 70px;
    }

    .n-p-title { width: 70%; }
}
