/* Import Ionicons for hover effect */
@import url(https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css);

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: white;
}

#news .section-title {
    color: #5D4037;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    font-size: 28px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Card Style from CodePen */
.news-item.snip1529 {
    background-color: #000000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6em;
    margin: 0;
    max-width: 100%;
    min-width: 250px;
    overflow: hidden;
    position: relative;
    text-align: left;
    width: 100%;
    border-radius: 10px; /* 既存のデザインに合わせて追加 */
}

.snip1529 * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

.snip1529 .news-image {
    width: 100%;
    height: 200px;
    vertical-align: top;
    position: relative;
    opacity: 0.75;
    object-fit: cover;
    margin-bottom: 0; /* リセット */
    border-radius: 0; /* リセット */
}

.snip1529 figcaption {
    padding: 25px 20px 25px;
    position: absolute;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    width: 100%;
}

.snip1529 .date {
    background-color: #fff;
    color: #333;
    font-size: 18px;
    font-weight: 800;
    min-height: 48px;
    min-width: 48px;
    padding: 10px 0;
    position: absolute;
    right: 15px;
    text-align: center;
    text-transform: uppercase;
    top: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.snip1529 .date span {
    display: block;
    line-height: 14px;
}

.snip1529 .date .month {
    font-size: 11px;
}

.snip1529 h3,
.snip1529 p {
    margin: 0;
    padding: 0;
}

.snip1529 h3 {
    font-weight: 800;
    letter-spacing: -0.4px;
    font-size: 18px;
    margin-bottom: 5px;
}

.snip1529 .news-meta {
    font-size: 14px;
    color: #ccc;
}

.snip1529 .hover {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    align-items: center;
    background-color: rgba(236, 188, 46, 0.75);
    display: flex;
    font-size: 65px;
    justify-content: center;
    opacity: 0;
    border-radius: 10px;
}

.snip1529 a {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    z-index: 1;
}

.snip1529:hover .hover {
    -webkit-transition-delay: 0.1s;
    transition-delay: 0.1s;
    opacity: 1;
}

.snip1529:hover figcaption {
    opacity: 0;
}

.snip1529:hover .date {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
}

/* Responsive */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .snip1529 .date {
        right: 10px;
        top: 10px;
    }
}