@charset "UTF-8";

/* ==========================================================================
   index.php の WP連携お知らせブロック（section09）専用スタイル
   --------------------------------------------------------------------------
   旧サイト demo_top.css / legacy-style.css の section09 まわりの定義を移植・
   スコープ化したもの。セレクタは全て .section09 配下に閉じ込めており、
   index.php の他セクション（柏平デザイン）には影響しない。
   ========================================================================== */

/* section 基本 */
.section09 {
    padding: 30px 0 70px;
    background-color: #F5F8F5;
}

/* 会葬事例(home_example)とお知らせ(section09)の間の余白を詰める */
.home_example.section_normal {
    margin-bottom: 0 !important;
    padding-bottom: 30px;
}
.section09 .inner02 {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

/* タイトル */
.section09 .ttl_wrapper {
    text-align: center;
}
.section09 .ttl_wrapper span.en {
    display: block;
    color: #C9BC72;
    font-family: "Zen Old Mincho", serif;
    letter-spacing: 4px;
    font-size: 17px;
}
.section09 .ttl_wrapper h2 {
    font-size: 33px;
    color: #4E9E9C;
    font-family: "Zen Old Mincho", serif;
    font-weight: 500;
    margin-top: 8px;
}
.section09 .ttl_wrapper p.description {
    text-align: center;
    padding: 20px 0 40px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* 3カラム カード */
.section09 .d_flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px 3%;
}
.section09 .d_flex .news_box {
    width: 31%;
    box-sizing: border-box;
}
.section09 .d_flex .news_box img {
    width: 100%;
    border-radius: 15px;
    height: 220px;
    object-fit: cover;
    display: block;
}
.section09 .d_flex .news_box .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.section09 .d_flex .news_box .info span.date {
    color: #C9BC72;
    font-size: 14px;
}
.section09 .d_flex .news_box .info p.category {
    padding: 2px 10px;
    border-radius: 20px;
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    background-color: #68C3C5;
    margin: 0;
}
.section09 .d_flex .news_box h3 {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    font-family: "Zen Old Mincho", serif;
    margin: 0;
}
.section09 .d_flex .news_box p.txt {
    padding: 10px 0 0;
    font-size: 16px;
    line-height: 1.5;
    color: #9E9E9E;
    letter-spacing: 1px;
}
.section09 .d_flex .news_box a.btn {
    display: block;
    background-color: rgba(255, 255, 255, 0);
    color: #68C3C5;
    padding: 5px 0;
    width: 50%;
    border-radius: 5px;
    margin: 20px 0 0 auto;
    border: 1px solid #68C3C5;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
.section09 .d_flex .news_box a.btn:hover {
    background-color: #68C3C5;
    color: #ffffff;
}

/* お知らせ一覧ボタン */
.section09 a.news_link {
    display: block;
    width: 35%;
    margin: 50px auto 0;
    padding: 14px 0;
    text-align: center;
    background-color: #68C3C5;
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.section09 a.news_link:hover {
    opacity: 0.85;
}

/* 社長ブログ */
.section09 .blog_title {
    margin-top: 80px;
}
.section09 .blog_link_btn_box {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 30px;
}
.section09 .blog_link_btn_box a.blog_link_btn {
    display: inline-block;
    min-width: 220px;
    padding: 14px 32px;
    text-align: center;
    background-color: #68C3C5;
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.section09 .blog_link_btn_box a.blog_link_btn:hover {
    opacity: 0.85;
}

/* モバイル */
@media (max-width: 768px) {
    .section09 {
        padding: 40px 20px 60px;
    }
    .section09 .inner02 {
        padding: 0;
    }
    .section09 .ttl_wrapper h2 {
        font-size: 26px;
    }
    .section09 .ttl_wrapper p.description {
        text-align: left;
        padding: 20px 0;
        font-size: 15px;
    }
    .section09 .d_flex {
        gap: 20px;
    }
    .section09 .d_flex .news_box {
        width: 100%;
    }
    .section09 .d_flex .news_box img {
        height: 170px;
        border-radius: 10px;
    }
    .section09 .d_flex .news_box .info {
        padding: 10px 0;
    }
    .section09 .d_flex .news_box .info p.category {
        font-size: 14px;
    }
    .section09 .d_flex .news_box h3 {
        font-size: 17px;
    }
    .section09 .d_flex .news_box p.txt {
        padding: 10px 0 0;
        font-size: 15px;
    }
    .section09 .d_flex .news_box a.btn {
        width: 60%;
    }
    .section09 a.news_link {
        width: 90%;
        margin: 30px auto 0;
    }
    .section09 .blog_title {
        margin-top: 60px;
    }
    .section09 .blog_link_btn_box {
        flex-direction: column;
        gap: 12px;
    }
    .section09 .blog_link_btn_box a.blog_link_btn {
        min-width: auto;
        width: 90%;
        margin: 0 auto;
    }
}

/* ==========================================================================
   home_example（会葬事例 Swiper）の WP連携版用補助スタイル
   --------------------------------------------------------------------------
   柏平の .home_example / .example_list / Swiper はそのまま使う。
   WP記事サムネが記事ごとに縦横比バラバラなので、画像領域を固定アスペクト比＋
   object-fit: cover でトリミングしてカード高を揃える。
   ========================================================================== */

/* リンク（カード）の見た目継承 */
.home_example .example_list .swiper-slide.example_link {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* 画像を固定サイズ枠で表示（はみ出しは cover でトリミング） */
.home_example .example_list .swiper-slide.example_link .img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background-color: #EEE;
}
.home_example .example_list .swiper-slide.example_link .img img,
.home_example .example_list .swiper-slide.example_link .img .max {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* テキスト部の縦の揺れを軽減（タイトル2行・本文3行で固定） */
.home_example .example_list .swiper-slide.example_link .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
}
.home_example .example_list .swiper-slide.example_link .summary {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .home_example .example_list .swiper-slide.example_link .img {
        aspect-ratio: 4 / 3;
    }
}
