/* ============================================================
   武蔵野市ボッチャ協会 公式サイト 共通スタイル
   - スマートフォン最優先（モバイルファースト）
   - 白を基調に、ロゴのネイビー・赤・青をアクセントに使用
   ============================================================ */

/* ---------- カラー・基本変数 ---------- */
:root {
  --navy: #1d2b5a;        /* ロゴの濃紺 */
  --red: #d8382d;         /* ロゴの赤ボール */
  --blue: #1f6fcf;        /* ロゴの青ボール */
  --sky: #e9f2fb;         /* ロゴ背景の淡い水色 */
  --sky-deep: #cfe2f5;
  --line: #06c755;        /* LINE ブランドカラー */
  --line-dark: #05a847;
  --text: #222;
  --text-muted: #555;
  --white: #fff;
  --border: #dfe6ef;

  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 4px 16px rgba(29, 43, 90, 0.10);
}

/* ---------- リセット ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  scroll-padding-top: 125px; /* 固定ヘッダー（ロゴ行＋メニュー行）の高さ分。ページ内リンクの着地位置を隠さない */
}

body {
  margin: 0;
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.9;
  color: var(--text);
  background-color: var(--white);
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  line-height: 1.4;
  margin: 0;
  color: var(--navy);
}

/* ---------- 共通レイアウト ---------- */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3rem 0;
}

.section--sky {
  background-color: var(--sky);
}

.section__title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

/* 指定した位置（<wbr>）だけで改行させたい見出しに付ける */
.section__title--keep {
  word-break: keep-all;
}

.section__title-en {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.section__lead {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 56px;
  padding: 0.75em 1.5em;
  border-radius: var(--radius-pill);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  word-break: keep-all; /* 文字の途中で折り返さず、<wbr> の位置だけで改行 */
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--large {
  width: 100%;
  max-width: 480px;
  min-height: 64px;
  padding-left: 1em;
  padding-right: 1em;
  font-size: 1.1rem;
}

.btn--line {
  background-color: var(--line);
  color: var(--white);
}

a.btn--line:hover,
a.btn--line:focus-visible {
  background-color: var(--line-dark);
}

.btn--primary {
  background-color: var(--blue);
  color: var(--white);
}

a.btn--primary:hover,
a.btn--primary:focus-visible {
  background-color: var(--navy);
}

.btn--outline {
  background-color: var(--white);
  color: var(--navy);
  border: 3px solid var(--navy);
}

a.btn--outline:hover,
a.btn--outline:focus-visible {
  background-color: var(--sky);
}

a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 43, 90, 0.18);
}

a.btn:focus-visible {
  outline: 4px solid var(--navy);
  outline-offset: 3px;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1em 0.5em;
  border-radius: 6px;
  background-color: var(--white);
  color: var(--line);
  font-size: 0.75em;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem 0.35rem;
  text-decoration: none;
  color: var(--navy);
}

.site-header__logo {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.site-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header__name {
  /* 団体名だけ丸ゴシックで親しみやすく。読み込めない環境では丸ゴシック系→本文フォントに退避 */
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2; /* 行の余白を詰めて、ロゴと文字の縦中心をそろえる */
}

.site-nav ul {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  padding: 0 1.25rem 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav ul::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  display: inline-block;
  white-space: nowrap;
  padding: 0.35em 1em;
  border-radius: var(--radius-pill);
  background-color: var(--sky);
  color: var(--navy);
  /* 団体名と同じ丸ゴシックにして統一感を出し、英字表記に合わせて字間を広めにとる */
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background-color: var(--sky-deep);
}

/* ---------- 1. ファーストビュー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0 1.5rem;
  text-align: center;
  /* 背景写真の上に、文字が読みやすいよう白のグラデーションを重ねる */
  background-color: var(--sky);
  background-image:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0.55) 100%
    ),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}

/* 文字と写真を分ける白い半透明カード */
.hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem 1.1rem;
  border-radius: 24px;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 32px rgba(29, 43, 90, 0.18);
}

/* ロゴ画像は左右に余白が大きいため、正円に切り抜いて表示 */
.hero__logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.9rem;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
  word-break: keep-all; /* <wbr> の位置だけで改行 */
}

.hero__title-top {
  font-size: 1.15rem;
  font-weight: 700;
}

.hero__title-main {
  /* 「“ボッチャの聖地”を」が1行に収まるよう画面幅に連動 */
  font-size: clamp(1.4rem, 7.4vw, 2rem);
  line-height: 1.35;
}

.hero__title em {
  font-style: normal;
}

/* うちわと同じ配色の強調（赤＝聖地・作戦、青＝協力） */
.accent-red {
  color: var(--red);
}

.accent-blue {
  color: var(--blue);
}

.hero__catch {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  word-break: keep-all;
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom: 3px dotted var(--sky-deep);
}

.hero__lead {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* PC幅だけ改行する <br> */
.br-pc {
  display: none;
}

/* ---------- 2. 協会について ---------- */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--radius);
  background-color: var(--white);
  border: 2px solid var(--border);
}

.feature p {
  margin: 0;
}

/* ボッチャのボールを模した丸マーク */
.feature__mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-top: 0.15rem;
  border-radius: 50%;
  border: 3px solid var(--navy);
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.12);
}

.feature__mark--red {
  background-color: var(--red);
}

.feature__mark--blue {
  background-color: var(--blue);
}

.feature__mark--navy {
  background-color: var(--white);
}

.feature__title {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

/* ---------- 3. お知らせ・活動レポート ---------- */
.news-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

.news-heading + .event-list,
.news-heading + .report-list {
  margin-bottom: 2.5rem;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ボッチャのボールを模した見出しマーク */
.news-heading__mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.12);
}

.news-heading__mark--red {
  background-color: var(--red);
}

.news-heading__mark--blue {
  background-color: var(--blue);
}

/* 今後の予定 */
.event {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background-color: var(--white);
  border: 3px solid var(--red);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.event__date {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background-color: var(--red);
  color: var(--white);
  font-weight: 800;
  line-height: 1;
}

.event__month {
  font-size: 1.1rem;
}

.event__day {
  font-size: 2.2rem;
}

.event__dow {
  font-size: 1rem;
  padding: 0.15em 0.5em;
  border-radius: 6px;
  background-color: var(--white);
  color: var(--red);
}

.event__body {
  padding: 1.25rem;
}

.event__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.tag {
  display: inline-block;
  padding: 0.1em 0.8em;
  border-radius: var(--radius-pill);
  background-color: var(--sky);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}

.tag--red {
  background-color: var(--red);
  color: var(--white);
}

.tag--blue {
  background-color: var(--blue);
  color: var(--white);
}

.event__title {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
  word-break: keep-all;
}

.event__lead {
  margin-bottom: 1rem;
}

.event__info {
  margin: 0 0 1.25rem;
  border-top: 1px solid var(--border);
}

.event__info > div {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.event__info dt {
  flex-shrink: 0;
  width: 4.5em;
  font-weight: 700;
  color: var(--navy);
}

.event__info dd {
  margin: 0;
}

.event__programs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.program {
  padding: 1rem;
  border-radius: 12px;
  background-color: var(--sky);
}

.program p {
  margin: 0;
  font-size: 0.95rem;
}

.program__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.program__num {
  font-size: 0.8rem;
  padding: 0.15em 0.6em;
  border-radius: 6px;
  background-color: var(--navy);
  color: var(--white);
}

.event__note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- 千川地域祭り: イベントポスター（カード内の主要ビジュアル） ---- */
.event__poster {
  margin: 0 0 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: var(--white);
}

.event__poster img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- 千川地域祭り: うちわプレゼントの案内 ---- */
.gift-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background-color: #fff7e6;
  border: 2px dashed #f0b429;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
}

.gift-box__icon {
  flex-shrink: 0;
  font-size: 1.4rem;
}

.gift-box strong {
  color: var(--red);
}

.event__info small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tag--navy {
  background-color: var(--navy);
  color: var(--white);
}

/* 第三者主催イベント（情報提供）: 協会主催カードの赤ではなく落ち着いた配色にする */
.event--external {
  border-color: var(--border);
  border-width: 2px;
  box-shadow: none;
}

.event--external .event__date {
  background-color: var(--sky);
  color: var(--navy);
}

.event--external .event__dow {
  background-color: var(--navy);
  color: var(--white);
}

.event__label {
  margin: 0;
  padding: 0.3rem 1rem;
  background-color: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.event__body .btn {
  margin: 0.25rem 0 1rem;
}

.event__disclaimer {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background-color: #f4f6f9;
  border-left: 4px solid var(--navy);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 武蔵野市内のボッチャ情報（小さな表） */
.news-heading__mark--white {
  background-color: var(--white); /* 白いジャックボール */
}

.local-info {
  margin-bottom: 2.5rem;
}

.local-info__lead {
  font-size: 0.95rem;
  line-height: 1.8;
  margin: -0.25rem 0 1rem;
}

/* 幅が足りないときは表の中だけ横スクロール */
.local-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  background-color: var(--white);
  -webkit-overflow-scrolling: touch;
}

.local-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.6;
}

.local-table th,
.local-table td {
  padding: 0.7rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.local-table th {
  background-color: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.local-table tbody tr:last-child td {
  border-bottom: none;
}

.local-table__when {
  width: 11.5em;      /* 日時列の幅を固定し、長い文言は折り返す */
  min-width: 9em;
  font-weight: 700;
  color: var(--navy);
}

.local-table__time {
  /* 日付と同じ見た目（色・太さ・サイズ）で表示する */
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  white-space: nowrap;
}

.local-table__title a {
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  font-size: 1.02em;
}

/* 活動の種類を示す小さなタグ（local-events.js が付与） */
.local-tag {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.4em 0.15em 0;
  padding: 0 0.6em;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.7;
  background-color: var(--sky);
  color: var(--navy);
  border: 1px solid var(--sky-deep);
}

.local-tag--regular {
  background-color: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.local-tag--trial {
  background-color: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.local-tag--practice {
  background-color: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.local-table__title a::after {
  content: "↗";
  margin-left: 0.25em;
  font-size: 0.8em;
  text-decoration: none;
  display: inline-block;
}

.local-table__title a:hover,
.local-table__title a:focus-visible {
  color: var(--navy);
}

.local-info__source-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* データが無いときの控えめな表示 */
.local-table__empty td {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1rem 0.75rem;
}

/* スマートフォン幅では横スクロールさせず、1行を3段に積む */
@media (max-width: 699px) {
  .local-table {
    min-width: 0;
    display: block;
  }

  .local-table thead {
    display: none;
  }

  .local-table tbody,
  .local-table tr,
  .local-table td {
    display: block;
  }

  .local-table tr {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--border);
  }

  .local-table tbody tr:last-child {
    border-bottom: none;
  }

  .local-table td {
    padding: 0;
    border-bottom: none;
  }

  .local-table__when {
    white-space: normal;
  }

  .local-table__title {
    margin-top: 0.15rem;
    font-size: 1rem;
  }

  .local-table td:last-child {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  .local-table td:last-child::before {
    content: "会場：";
  }
}

/* 活動レポート */
.report-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.report {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background-color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.report__photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.report__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report__body {
  padding: 1rem 1.1rem 1.1rem;
}

.report__body p {
  margin-bottom: 0.75rem;
}

/* 本文はトップページでは3行までに抑える */
.report__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
}

/* 活動レポートが増えても、トップページには最新4件だけ表示する */
.report-list .report:nth-child(n + 5) {
  display: none;
}

/* 「詳しく見る」で開く詳細（ブラウザ標準の <details> を使用。JavaScript 不要） */
.report__details {
  margin-top: 0.25rem;
}

.report__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  list-style: none;
  cursor: pointer;
  padding: 0.35em 1em;
  border-radius: var(--radius-pill);
  border: 2px solid var(--blue);
  background-color: var(--white);
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.report__toggle::-webkit-details-marker {
  display: none;
}

.report__toggle::after {
  content: "▾";
  font-size: 0.9em;
  transition: transform 0.15s ease;
}

.report__toggle:hover,
.report__toggle:focus-visible {
  background-color: var(--sky);
}

.report__toggle:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.report__toggle-open {
  display: none;
}

.report__details[open] .report__toggle-closed {
  display: none;
}

.report__details[open] .report__toggle-open {
  display: inline;
}

.report__details[open] .report__toggle::after {
  transform: rotate(180deg);
}

.report__detail {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--border);
}

.report__detail p {
  margin-bottom: 0.6rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* 詳細内の追加写真（1枚ずつ縦に並べ、元の縦横比のまま大きく見せる） */
.report__gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.25rem 0 1rem;
}

.report__gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.report__date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.report__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.report__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.text-link {
  display: inline-block;
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding: 0.3em 0;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--navy);
}

/* ---------- 4. 協会への加入（団体会員募集） ---------- */
.member-box {
  padding: 1.5rem 1.25rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius);
  background-color: var(--white);
  border: 3px solid var(--blue);
  text-align: center;
}

.member-box__title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.member-box__intro {
  text-align: left;
  margin-bottom: 1rem;
}

.member-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  text-align: left;
}

.member-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background-color: var(--sky);
}

.member-points .feature__mark {
  width: 36px;
  height: 36px;
  margin-top: 0.1rem;
}

.member-points li > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.6;
}

.member-points strong {
  color: var(--navy);
}

.member-points li > div > span {
  font-size: 0.92rem;
}

.member-box__note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- 5. 参加方法 ---------- */
.join-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  border: 3px solid var(--line);
  background-color: var(--white);
  margin-bottom: 1.75rem;
}

.join-box__qr {
  flex-shrink: 0; /* 横並び時に QR コードが縮んで縦長にならないようにする */
}

.join-box__qr img {
  width: 240px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.join-box__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.join-box__title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.join-box__intro {
  margin-bottom: 0.9rem;
}

.steps {
  list-style: none;
  counter-reset: step;
  width: 100%;
  margin-bottom: 1.5rem;
}

.steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--line);
  color: var(--white);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

.form-box,
.contact-box {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  background-color: var(--sky);
}

.contact-box {
  margin-top: 1.25rem;
  background-color: var(--white);
  border: 2px solid var(--border);
}

.form-box__title,
.contact-box__title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* ---------- 5. ボッチャとは（うちわ裏面のルール図に準拠） ---------- */
.rules__catch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0 1.5rem;
  text-align: center;
  line-height: 1.3;
}

.rules__catch-sub {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.rules__catch-sub::before,
.rules__catch-sub::after {
  content: "＼";
  display: inline-block;
  margin: 0 0.3em;
  color: var(--red);
  font-weight: 800;
}

.rules__catch-sub::after {
  content: "／";
  color: var(--blue);
}

.rules__catch-main {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

/* 導入部: コート図 + 基本の3つ */
.rules__intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.court {
  position: relative;
  margin: 0;
  padding: 1rem 1rem 0.5rem;
  border-radius: var(--radius);
  background-color: var(--sky); /* 「ボッチャとは」は白背景のため、カードは淡い水色に */
}

.court__svg {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}

.court__labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.callout {
  position: absolute;
  padding: 0.35em 0.7em;
  border-radius: 10px;
  background-color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  border: 2px solid;
  box-shadow: var(--shadow);
}

.callout--red {
  color: var(--red);
  border-color: var(--red);
}

.callout--blue {
  color: var(--blue);
  border-color: var(--blue);
}

.court__label-start {
  left: 6%;
  bottom: 30%;
}

.court__label-jack {
  right: 4%;
  top: 30%;
}

.basics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.basic {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background-color: var(--sky);
}

.basic p {
  margin: 0;
  font-weight: 700;
  line-height: 1.6;
}

.basic__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.basic__icon svg {
  width: 36px;
  height: 36px;
}

.basic__icon--red {
  background-color: var(--red);
}

.basic__icon--blue {
  background-color: var(--blue);
}

.basic__icon--navy {
  background-color: var(--navy);
}

/* ルール2枚 */
.rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.rule {
  padding: 1.25rem;
  border-radius: var(--radius);
  background-color: var(--white);
  border: 3px solid var(--red);
}

.rule--blue {
  border-color: var(--blue);
}

.rule p {
  margin: 0 0 0.75rem;
}

.rule__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.rule__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--red);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rule__num--blue {
  background-color: var(--blue);
}

.rule__figure {
  margin: 0;
  padding: 0.75rem;
  border-radius: 12px;
  background-color: var(--sky);
}

.rule__figure--row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.rule__svg {
  display: block;
  width: 100%;
  height: auto;
}

.rule__svg--score {
  max-width: 180px;
}

.rule__result {
  margin-top: 0.4rem;
  font-weight: 700;
  text-align: center;
}

.arrow {
  color: var(--blue);
  margin-right: 0.3em;
}

.rule__example {
  width: 100%;
}

.rule__example p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.rule__example-label {
  display: inline-block;
  margin-bottom: 0.3rem;
  padding: 0.05em 0.7em;
  border-radius: 6px;
  background-color: var(--blue);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.rules__footer {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

/* SVG の色（ロゴ・うちわの配色） */
.svg-red { fill: var(--red); stroke: var(--navy); stroke-width: 2; }
.svg-blue { fill: var(--blue); stroke: var(--navy); stroke-width: 2; }
.svg-white { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.svg-navy { fill: var(--navy); }
.svg-court { fill: #dbe9f8; stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; }
.svg-line { stroke: #fff; stroke-width: 3; }
.svg-line--v { fill: none; stroke-linejoin: round; }
.svg-throw-area { fill: #9fc4ec; }
.svg-arm { stroke: var(--navy); stroke-width: 7; stroke-linecap: round; }
.svg-dash-red { stroke: var(--red); stroke-width: 3; stroke-dasharray: 6 6; }
.svg-dash-blue { stroke: var(--blue); stroke-width: 3; stroke-dasharray: 6 6; }
.svg-dash-navy-circle { fill: none; stroke: var(--navy); stroke-width: 3; stroke-dasharray: 7 7; }
.svg-callout-blue { fill: #fff; stroke: var(--blue); stroke-width: 2; }
.svg-callout-blue-fill { fill: var(--blue); }
.svg-text-blue { fill: var(--blue); font-size: 14px; font-weight: 800; font-family: inherit; }
.svg-text-red { fill: var(--red); font-size: 18px; font-weight: 800; font-family: inherit; }

/* ---------- 6. フッター ---------- */
.site-footer {
  padding: 2.5rem 0 2rem;
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer__name {
  font-size: 1.2rem;
  font-weight: 700;
}

.site-footer__en {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem !important;
}

.site-footer__links a {
  color: var(--white);
  font-size: 0.95rem;
  text-underline-offset: 0.2em;
}

.site-footer__copy {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* ============================================================
   タブレット以上（横幅 700px 以上）
   ============================================================ */
@media (min-width: 700px) {
  html {
    font-size: 19px;
    scroll-padding-top: 84px; /* PC幅はヘッダーが1行になるため低くする */
  }

  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
  }

  .site-header__brand {
    padding: 0.6rem 0;
  }

  .site-header__logo {
    width: 52px;
    height: 52px;
  }

  .site-header__name {
    font-size: 1.2rem;
  }

  .site-nav ul {
    padding: 0;
  }

  .hero {
    padding: 2rem 0 2.25rem;
    background-position: center 55%;
  }

  .hero__card {
    padding: 1.5rem 2.5rem 1.4rem;
  }

  .hero__logo {
    width: 160px;
    height: 160px;
  }

  .br-pc {
    display: inline;
  }

  .hero__title-top {
    font-size: 1.5rem;
  }

  .hero__title-main {
    font-size: 2.4rem;
  }

  .hero__catch {
    font-size: 1.4rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section__title {
    font-size: 1.9rem;
  }

  .btn--large {
    font-size: 1.2rem;
  }

  .event {
    flex-direction: row;
    align-items: stretch;
  }

  /* 第三者イベントはラベル行を上に置くため、日付＋本文を横並びにする */
  .event--external {
    flex-wrap: wrap;
  }

  .event--external .event__label {
    width: 100%;
    text-align: left;
    padding-left: 1.5rem;
  }

  .event--external .event__body {
    flex: 1;
    min-width: 0;
  }

  .event__date {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 120px;
    flex-shrink: 0;
  }

  .event__day {
    font-size: 3rem;
  }

  .event__body {
    padding: 1.75rem;
  }

  .event__programs {
    grid-template-columns: 1fr 1fr;
  }

  .report-list {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }


  .local-table {
    font-size: 0.95rem;
  }

  .rules__catch-main {
    font-size: 2.4rem;
  }

  .rules__intro {
    flex-direction: row;
    align-items: stretch;
  }

  .court {
    flex: 0 0 48%;
    display: flex;
    align-items: center;
  }

  .basics {
    flex: 1;
    justify-content: center;
  }

  .rules {
    grid-template-columns: 1fr 1fr;
  }

  .rule__figure--row {
    flex-direction: row;
    align-items: center;
  }

  .rule__svg--score {
    flex: 0 0 150px;
  }

  .rules__footer {
    font-size: 1.9rem;
  }

  .join-box {
    flex-direction: row;
    align-items: flex-start;
    padding: 2rem;
  }

  .join-box__body {
    align-items: flex-start;
  }

  .join-box__title {
    text-align: left;
  }
}

/* ---------- アクセシビリティ ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
