/*
Theme Name: Otaru ESS Theme
Theme URI: https://example.com/otaru-ess-theme
Author: K2
Description: 小樽ESSコミュニティ用テーマ（ロゴ設定、ヒーロー設定、WPメニュー、モバイル最適化）。
Version: 1.3.100
License: GPLv2 or later
Text Domain: otaru-ess-theme
*/

/* Site-wide font override */
body{ font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Arial, sans-serif; }

/* Gutenbergブロック間の共通余白 */
.wp-block {
  margin-bottom: 1.75rem;
}

/* 最後のブロックは余白を消す */
.wp-block:last-child {
  margin-bottom: 0;
}

/* 段落間が詰まりすぎてる場合 */
.wp-block-paragraph {
  margin-bottom: 1.5em;
}

/* グループブロックやカラムの中も自然に */
.wp-block-group > .wp-block:not(:last-child),
.wp-block-columns > .wp-block-column > .wp-block:not(:last-child) {
  margin-bottom: 1.5rem;
}

/*アーカイブページ*/
.archive-report .report-card,
.archive-gallery .gallery-item {
  display: block;
  margin-bottom: 2em;
  text-decoration: none;
  color: inherit;
}

.report-card .thumb,
.gallery-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.simple-list li {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.simple-list li a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.simple-list li a:hover {
  color: var(--accent);
}

/* ▼ シングルページ（活動報告・活動風景共通） */
.single-report, .single-gallery {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  margin-block: 40px;
  color: var(--fg);
}

.single-head {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.single-title {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 6px;
}

.single-date {
  font-size: 0.9rem;
  color: var(--muted);
}

.single-thumb {
  margin-bottom: 24px;
}

.single-thumb img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.single-body {
  line-height: 1.8;
}

.single-back {
  margin-top: 40px;
}

.single-back a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: bold;
}
