/* ==========================================================================
   news.css
   お知らせ・記事系ページ用スタイル
   （common: style.css / activity.css の section, section-inner, section-title
     等のクラスを前提に、記事ページ専用の要素のみを追加定義）
   ========================================================================== */

/* ---------- 記事ヘッダー ---------- */
.article-header {
  padding: 40px 0 20px;
  text-align: center;
}

.article-date {
  display: inline-block;
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.article-title {
  font-size: 28px;
  line-height: 1.5;
  color: #333;
  margin: 0 0 8px;
  font-weight: bold;
}

.article-lead {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 20px 24px;
  background: #f5f9f0;
  border-left: 4px solid #2c5f2d;
  text-align: left;
  line-height: 1.9;
  font-size: 16px;
  color: #333;
}

/* ---------- 記事本文セクション ---------- */
.article-section {
  max-width: 760px;
  margin: 0 auto;
}

.article-section + .article-section {
  margin-top: 8px;
}

.article-section h3 {
  font-size: 20px;
  color: #2c5f2d;
  border-bottom: 2px solid #2c5f2d;
  padding-bottom: 8px;
  margin: 40px 0 16px;
}

.article-section p {
  line-height: 1.9;
  font-size: 16px;
  color: #333;
  margin-bottom: 1em;
}

.article-section ul {
  line-height: 1.9;
  font-size: 16px;
  color: #333;
  padding-left: 1.4em;
  margin-bottom: 1em;
}

.article-section ul li {
  margin-bottom: 6px;
}

.article-section ul ul {
  margin: 6px 0 6px 0.5em;
}

/* ---------- 画像ギャラリー（4枚・サイズ不揃いを吸収） ---------- */
.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 24px auto 40px;
}

.news-gallery figure {
  margin: 0;
}

.news-gallery .gallery-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  background: #eee;
}

.news-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 縦横比・元サイズが不揃いでも枠に合わせて統一表示 */
  display: block;
}

.news-gallery figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: #666;
  text-align: center;
  line-height: 1.5;
}

/* 2枚だけ大きく見せたい時など、将来的な拡張用（任意で使用） */
.news-gallery .gallery-wide {
  grid-column: span 2;
}
.news-gallery .gallery-wide .gallery-frame {
  aspect-ratio: 16 / 9;
}

@media (max-width: 600px) {
  .news-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .news-gallery .gallery-wide {
    grid-column: span 2;
  }
  .article-title {
    font-size: 22px;
  }
}

/* ---------- お問い合わせボックス ---------- */
.article-contact-box {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 24px;
  background: #f5f5f5;
  border-radius: 8px;
  text-align: center;
}

.article-contact-box h3 {
  font-size: 18px;
  color: #333;
  margin: 0 0 12px;
  border: none;
  padding: 0;
}

.article-contact-box p {
  margin: 4px 0;
  font-size: 15px;
  color: #333;
  line-height: 1.8;
}
