/* ──────────────────────────────────────────────
   community/ 共通スタイルシート
   common.css を先に読み込むこと。
   このファイルはピラー固有の上書きと専用コンポーネントのみ定義する。
   構造・余白・カードは baseball / portrait と共通トーンに揃える。
   ────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #C62828;
  --accent-lt: #E53935;
}

/* ── Hero Image（OGP画像を上部に表示） ── */
.hero-image {
  width: 100%;
  aspect-ratio: 1731 / 909;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ── Hero（明るい背景・赤アクセント） ── */
.hero {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 460px;
  margin: 0 auto 1.75rem;
}

.hero-specs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.6rem;
}

.hero-spec {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
}

.hero-spec strong { color: var(--text); font-weight: 800; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-lt);
  border-color: var(--accent-lt);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--bg-tint);
  transform: translateY(-2px);
}

/* ── About ── */
.concept-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 2;
}

.concept-body strong {
  color: var(--text);
  font-weight: 700;
}

/* ── tag list ── */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ── format card ── */
.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.format-row {
  display: flex;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--divider);
  font-size: 0.88rem;
  align-items: baseline;
}

.format-row:last-child { border-bottom: none; }

.format-key {
  width: 6.5rem;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.format-val {
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Survey（実施中アンケート・Hero直下で目立たせる） ── */
.survey-highlight {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
  padding: 2.75rem 0 3rem;
}
.survey-highlight .next-banner {
  border-color: var(--accent-lt);
  background: var(--bg-card);
}
.survey-highlight .next-event-note a {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}
.survey-highlight .next-event-note a:hover { background: var(--accent-lt); }

/* アンケート・調査アーカイブへの補助リンク（主CTAより控えめ） */
.survey-archive-link {
  margin: 2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
  text-align: center;
}
.survey-archive-link a {
  display: inline-block;
  padding: 0.7rem 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.survey-archive-link a:hover { color: var(--accent); }

/* ── next event banner ── */
.next-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.next-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-lt);
  flex-shrink: 0;
}

.next-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.next-text strong {
  color: var(--text);
  font-weight: 700;
}

/* ── rules（共通 path-list トーンの › チェブロン） ── */
.rules-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.rules-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.75;
}

.rules-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── contact（portrait と共通体系） ── */
.contact-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
}

.contact-link {
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  transition: border-color 0.15s, color 0.15s;
}

.contact-link:hover { border-color: var(--accent); color: var(--accent); }

.contact-note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .hero { padding: 3rem 0 2.5rem; }
  .survey-highlight { padding: 2rem 0 2.25rem; }
  .format-card { padding: 1.25rem; }
  .format-key { width: 5.5rem; }
  .next-banner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* 次回イベント詳細 */
.next-dot.active {
  background-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 198,40,40), 0.2);
}
.next-event {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.next-event-title {
  font-size: 1rem;
}
.next-event-detail {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  line-height: 1.7;
}
.next-event-note {
  font-size: 0.8rem;
  color: var(--text-muted, #6b5e4a);
  margin-top: 4px;
}

/* ── access card ── */
.access-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.access-card__walk {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.access-card__detail {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.access-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--divider);
}

.access-card__link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.access-card__link:hover { color: var(--accent-lt); }

/* ──────────────────────────────────────────────
   モバイル用ハンバーガーメニュー（Issue #132）
   ────────────────────────────────────────────── */

/* ハンバーガーボタン（PCでは非表示） */
.community-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  padding: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}
.community-menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.community-menu-toggle[aria-expanded="true"] .community-menu-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.community-menu-toggle[aria-expanded="true"] .community-menu-toggle__bar:nth-child(2) { opacity: 0; }
.community-menu-toggle[aria-expanded="true"] .community-menu-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* モバイル用ハンバーガードロワー。
   既定（no-JS）ではページ内に通常表示され、主要リンクへ到達できる。
   JS有効時（html.js）のみ、固定オーバーレイの開閉式ドロワーに変わる。 */
.community-menu { display: none; }

.community-menu__panel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.community-menu__pillars {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.5rem;
}

.community-menu__pillar {
  padding: 0.6rem 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.community-menu__heading {
  margin-top: 1.1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.community-menu__link {
  padding: 0.6rem 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* 閉じるボタン（JS有効時のドロワー内のみ意味を持つが、no-JS時も無害に表示） */
.community-menu__close {
  display: none;
  align-self: flex-end;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}

body.community-menu-open { overflow: hidden; }

@media (max-width: 860px) {
  /* ハンバーガーボタンはJS有効時のみ表示（no-JSでは動作しないボタンを出さない） */
  html.js .community-menu-toggle { display: flex; }
  .site-nav__right { display: none; }

  .community-menu {
    display: block;
    background: var(--bg-tint);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
  }

  /* JS有効時：固定オーバーレイ式ドロワーに切り替え、初期状態は非表示。
     overlayはナビバーの下端から始まるため、グローバルナビとハンバーガーボタンは
     開閉状態に関わらず常にオーバーレイの上に表示され、操作できる。 */
  html.js .community-menu {
    position: fixed;
    top: var(--community-nav-height, 51px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    background: rgba(28, 26, 23, 0.45);
    padding: 0;
    border-bottom: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  html.js .community-menu.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  html.js .community-menu__close { display: inline-flex; align-items: center; justify-content: center; }
  html.js .community-menu .community-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 84vw);
    height: 100%;
    background: var(--bg);
    padding: 1.5rem 1.5rem 2rem;
    overflow-y: auto;
    box-shadow: -10px 0 28px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.22s ease;
  }
  html.js .community-menu.is-open .community-menu__panel {
    transform: translateX(0);
  }
}

/* 開催実績 */
.past-events {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.past-events-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.past-event-item {
  font-size: 0.9rem;
  line-height: 1.7;
}
.past-event-title {
  font-weight: 700;
  margin-bottom: 2px;
}
.past-event-detail {
  color: var(--text-muted);
  font-size: 0.85rem;
}
