/* お知らせセクション */
.news-section {
    background-color: #FFFF00;
    padding: 50px 0;
}

/* お知らせセクション全体の背景色 */
.news-section[data-id="63ec415"] {
    background-color: #FFFF00;
    padding: 50px 0;
}

.news-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 10px;
}

.news-column-gap-default {
    gap: 20px;
}

.news-column {
    width: 100%;
}

.news-element-populated {
    padding: 0;
}

/* タイトル画像 */
.news-widget-image {
    text-align: center;
    margin-bottom: 40px;
}

.news-widget-image img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* グリッドレイアウト */
.news-posts-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 20px;
    margin-top: 0;
}

/* 投稿カード */
.news-post {
    list-style: none;
}

.news-post__card {
    background-color: #ffffff;
    border: 3px solid #078E2C;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 13px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    
}

.news-post__card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.news-post__thumbnail {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 240px; /* 画像枠の高さを固定して、object-fitでカバー表示 */
}

.news-post__thumbnail__link::after {
    background-image: linear-gradient(0deg,rgba(0,0,0,.35),transparent 75%);
    background-repeat: no-repeat;
    bottom: 0;
    content: "";
    display: block;
    height: 100%;
    opacity: 1;
    position: absolute;
    transition: all .3s ease-out;
    width: 100%;
  }
.news-post__thumbnail__link {
    display: block;
    height: 100%;
    position: relative;
}

.news-post__thumbnail__link:hover::after {
    opacity: .5;
}
.news-post__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-post__badge {
    background-color: #61ce70;
    color: #FFFFFF;
    padding: 6px 12px;
    font-size: 13px;
    font-family: "Noto Sans JP", Sans-serif;
    font-weight: 500;
    display: inline-block;
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 999px;
    z-index: 10;
}

.news-post__text {
    padding: 25px 20px 20px;
    flex-grow: 1;
}

.news-post__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
    min-height: 48px;
}

.news-post__title a {
    color: #000000;
    text-decoration: none;
}

.news-post__title a:hover {
    color: #078E2C;
}

.news-post__read-more {
    color: #078E2C;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
}

.news-post__read-more:hover {
    text-decoration: underline;
}

.news-post__meta-data {
    padding: 15px 20px;
    border-top: 1px solid #EDEDED;
    background-color: #FFFFFF;
}

.news-post-date {
    font-size: 13px;
    color: #54595F;
    font-weight: 400;
}

/* ボタンセクション */
.news-section[data-id="9fe4669"] {
    background-color: transparent;
    padding: 0;
}

/* ボタン */
.news-button-wrapper {
    margin-top: 50px;
    text-align: center;
}

.news-button {
    display: inline-block;
    background-color: #078E2C;
    color: #FFFFFF !important;
    padding: 15px 60px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news-button:hover {
    background-color: #0A8F20;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.news-button-content-wrapper {
    display: inline-flex;
    align-items: center;
}

.news-button-text {
    color: #FFFFFF;
}

/* 内側のセクション */
.news-inner-section {
    background-color: transparent;
    padding: 0;
}

.news-inner-column {
    width: 100%;
}

.news-align-justify {
    width: 100%;
    text-align: center;
}

/* グリッドクラス */
.news-grid {
    display: grid;
}

.news-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.news-grid-tablet-2 {
}

.news-grid-mobile-1 {
}

/* タブレット */
@media (max-width: 1100px) {
    .news-posts-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
    }
    
    .news-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-post__thumbnail {
        height: 200px;
    }
}

/* モバイル */
@media (max-width: 767px) {
    /* モバイルではcontainerのpaddingを削除（sectionのpaddingで対応） */
    .news-container {
        padding: 0;
    }
    
    .news-section {
        padding: 10px 8%;
    }
    
    .news-section[data-id="63ec415"] {
        padding: 30px 0;
    }
    
    .news-widget-image {
        margin-bottom: 30px;
    }
    
    .news-widget-image img {
        max-width: 140px;
    }
    
    .news-posts-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .news-grid-3 {
        grid-template-columns: 1fr;
    }
    .news-post__thumbnail {
        height: 180px;
    }
    
    .news-post__title {
        font-size: 15px;
        min-height: auto;
    }
    
    .news-button {
        padding: 12px 40px;
        font-size: 16px;
    }
    
    .news-button-wrapper {
        margin-top: 35px;
    }
}

