/*
Theme Name: Kyokunan Sports
Author: 旭南スポーツ
Description: 知多市・旭南小学校区のスポーツ・レクリエーション団体「旭南スポーツ」の公式サイトテーマ。青と緑のブランドカラー、クリーンなゴシック体（Noto Sans JP）、波のモチーフが特徴です。
Version: 1.0.29
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kyokunan-sports
*/

/* ============ base ============ */
:root {
  --blue: #0e5fc6;
  --blue-deep: #0d5cba;
  --blue-bright: #2f86d8;
  --blue-link: #2e77cf;
  --blue-bar: #0d5fb8;
  --green: #4aa30f;
  --green-badge: #71b511;
  --green-follow: #149310;
  --yellow: #f5a800;
  --ink: #262626;
  --ink-2: #333333;
  --gray: #6b6b6b;
  --gray-2: #555555;
  --line: #e6e9ed;
  --red: #d8504f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #ffffff;
  font-family: 'BIZ UDPGothic', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  color: var(--ink);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.site { width: 100%; background: #ffffff; overflow-x: hidden; }

/* ============ header ============ */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px max(44px, calc((100% - 1280px) / 2)); background: #ffffff;
  border-bottom: 1px solid #f0f3f6;
}
.site-header .brand { display: flex; align-items: center; gap: 11px; }
.site-header .brand img { height: 54px !important; max-height: 54px; display: block; width: auto !important; }
.brand-names { display: flex; flex-direction: column; justify-content: center; line-height: 1.45; gap: 2px; }
.brand-name-top { font-size: 16px; font-weight: 800; color: var(--blue); letter-spacing: 0.01em; white-space: nowrap; }
.brand-name-bottom { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: 0.01em; white-space: nowrap; }
.global-nav { display: flex; align-items: center; gap: 40px; }
.global-nav a {
  font-size: 15px; font-weight: 700; color: #3a3a3a;
  padding-bottom: 6px; border-bottom: 3px solid transparent;
}
.global-nav a:hover { color: var(--blue); }
.global-nav a.is-active { font-weight: 800; color: var(--blue); border-bottom-color: var(--blue); }
/* hamburger (mobile only) */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 10px; border: none; background: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 3px; border-radius: 2px; background: var(--blue); transition: transform .3s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; color: #ffffff; font-weight: 800; font-size: 15px;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue {
  padding: 12px 20px 12px 16px;
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue-deep) 100%);
  box-shadow: 0 5px 12px rgba(13, 92, 186, 0.35);
}
.btn-blue:hover { box-shadow: 0 8px 16px rgba(13, 92, 186, 0.4); }
.btn-yellow {
  padding: 9px 20px 9px 10px;
  background: linear-gradient(180deg, #ffc01e 0%, #f5a300 100%);
  box-shadow: 0 5px 12px rgba(245, 163, 0, 0.4);
}
.btn-yellow:hover { box-shadow: 0 8px 16px rgba(245, 163, 0, 0.45); }
.btn-yellow .icon-circle {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: #ffffff;
}
.btn-green {
  padding: 16px 26px 16px 24px; gap: 14px;
  background: linear-gradient(180deg, #6cb715 0%, #44a30c 100%);
  box-shadow: 0 6px 14px rgba(68, 163, 12, 0.35);
}
.btn-green:hover { box-shadow: 0 9px 18px rgba(68, 163, 12, 0.42); }
.btn-green .btn-l1 { display: block; font-size: 16px; font-weight: 900; text-align: left; }
.btn-green .btn-l2 { display: block; font-size: 13px; font-weight: 700; margin-top: 2px; text-align: left; }

/* ============ hero (front page) ============ */
.hero {
  position: relative; height: 412px; overflow: hidden;
  background: linear-gradient(100deg, #eef8fe 0%, #ddeffc 45%, #cfe9fb 100%);
}
.hero-photo {
  position: absolute; top: 0; right: 0; width: 46%; max-width: 760px; min-width: 500px; height: 345px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%);
  mask-image: linear-gradient(to right, transparent 0%, #000 16%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-photo .hero-slide.is-active { opacity: 1; }
.hero-copy { position: relative; z-index: 5; padding: 56px 0 0 max(48px, calc((100% - 1280px) / 2)); max-width: calc(560px + max(48px, calc((100% - 1280px) / 2))); }
.hero-tag { font-size: 19px; font-weight: 800; color: var(--blue); letter-spacing: 0.04em; }
.hero-title { margin: 14px 0 0; font-size: 42px; line-height: 1.3; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; -webkit-text-stroke: 0.5px currentColor; }
.hero-title .l-dark { color: var(--ink); display: block; }
.hero-title .l-green { color: var(--green); display: block; }
.hero-lead { margin: 20px 0 0; font-size: 15px; line-height: 1.9; color: var(--ink-2); font-weight: 500; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.hero-wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 96px; z-index: 3; display: block; }
.hero-town { position: absolute; left: max(145px, calc((100% - 1280px) / 2 + 97px)); bottom: 4px; width: 285px; z-index: 4; }

/* ============ sections ============ */
.section { padding: 44px max(48px, calc((100% - 1280px) / 2)) 42px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { display: flex; align-items: center; gap: 12px; }
.section-title img { width: 32px; height: auto; }
.section-title h2 { margin: 0; font-size: 23px; font-weight: 800; color: var(--ink); }
.more-link { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--blue-link); }
.more-link:hover { opacity: 0.75; }

/* ============ news cards ============ */
.news-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; }
.news-card {
  position: relative; display: block; background: #ffffff;
  border: 1px solid var(--line); border-radius: 10px; padding: 18px 30px 18px 18px;
  box-shadow: 0 2px 6px rgba(30, 60, 100, 0.05);
  transition: transform .15s, box-shadow .15s;
}
.news-card:hover { box-shadow: 0 6px 16px rgba(30, 60, 100, 0.12); transform: translateY(-2px); }
.news-meta { display: flex; align-items: center; gap: 12px; }
.news-date { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.badge { font-size: 11px; font-weight: 800; color: #ffffff; border-radius: 999px; padding: 3px 13px; background: #1268c3; }
.badge.badge-event { background: var(--green-badge); }
.badge.badge-other { background: var(--yellow); }
.news-card-title { margin-top: 12px; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.news-card-excerpt { margin: 10px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--gray); font-weight: 500; }
.chev { position: absolute; right: 12px; top: 50%; margin-top: -7px; }

/* ============ news list (archive) ============ */
.news-list { display: grid; gap: 20px; max-width: 1040px; margin: 0 auto; }
.news-row {
  display: grid; grid-template-columns: 232px 1fr; gap: 24px; align-items: center;
  background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 16px;
  position: relative; box-shadow: 0 2px 6px rgba(30, 60, 100, 0.05);
  transition: transform .15s, box-shadow .15s;
}
.news-row:hover { box-shadow: 0 6px 16px rgba(30, 60, 100, 0.12); transform: translateY(-2px); }
.news-row .eyecatch { width: 232px; height: 145px; border-radius: 8px; overflow: hidden; }
.news-row .eyecatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-row .news-row-body { padding-right: 26px; }
.news-row-title { margin-top: 10px; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.5; }
.news-row-excerpt { margin: 8px 0 0; font-size: 13px; line-height: 1.8; color: var(--gray); font-weight: 500; }
.pagination { margin-top: 30px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px;
  border: 1.5px solid var(--blue); color: var(--blue); font-size: 13.5px; font-weight: 800;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--blue); color: #ffffff; }

/* ============ gallery ============ */
.gallery-band { margin: 0; background: #f3f9ef; padding: 36px max(48px, calc((100% - 1280px) / 2)) 32px; }
.gallery-head-right { display: flex; align-items: center; gap: 14px; }
.gallery-handle { font-size: 15px; font-weight: 800; color: var(--ink); }
.btn-follow {
  display: inline-block; padding: 8px 22px; border-radius: 999px;
  background: linear-gradient(180deg, #2cb324 0%, #149310 100%);
  color: #ffffff; font-size: 13px; font-weight: 800;
  box-shadow: 0 3px 8px rgba(20, 147, 16, 0.3);
}
.btn-follow:hover { opacity: 0.88; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gallery-grid img { width: 100%; height: 152px; object-fit: cover; border-radius: 6px; display: block; }
.gallery-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.gallery-dots span { width: 9px; height: 9px; border-radius: 50%; background: #d4d9d1; }
.gallery-dots span.on { background: #2cb324; }
/* Instagram フィード（プラグイン [instagram-feed] の埋め込み枠） */
.gallery-feed { width: 100%; }
.gallery-feed img { max-width: 100%; height: auto; }

/* ============ event cards (front page) ============ */
.event-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.event-card {
  background: #ffffff; border: 1px solid var(--line); border-radius: 10px; padding: 18px;
  box-shadow: 0 2px 6px rgba(30, 60, 100, 0.05);
}
.event-card-top { display: flex; align-items: flex-start; gap: 12px; }
.season {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: #ffffff; font-size: 15px; font-weight: 800;
}
.season-spring { background: #f86b81; }
.season-summer { background: #4084f2; }
.season-autumn { background: #fea901; }
.season-winter { background: #6593dd; }
.event-name { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.event-month { margin-top: 5px; font-size: 14px; font-weight: 800; color: var(--blue-link); }
.event-card-bottom { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.event-card-bottom img { width: 56px; height: 60px; object-fit: contain; flex-shrink: 0; }
.event-desc { margin: 0; font-size: 12px; line-height: 1.75; color: var(--gray-2); font-weight: 500; }

/* ============ CTA band ============ */
.cta-band {
  position: relative; padding: 44px max(48px, calc((100% - 1280px) / 2)) 48px;
  background-color: #e3f2fc;
  background-image:
    radial-gradient(circle at 8% 110%, #ffffff 0%, rgba(255,255,255,0) 26%),
    radial-gradient(circle at 50% -40%, #ffffff 0%, rgba(255,255,255,0) 45%),
    radial-gradient(circle at 96% 16%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 22%);
}
.cta-inner { display: flex; align-items: center; gap: 36px; }
.cta-inner > img { width: 250px; flex-shrink: 0; }
.cta-body { flex: 1; }
.cta-title { margin: 0; font-size: 24px; font-weight: 900; color: #0461c3; letter-spacing: 0.01em; white-space: nowrap; }
.cta-text { margin: 14px 0 0; font-size: 14px; line-height: 1.95; color: var(--ink-2); font-weight: 500; }

/* ============ page hero (sub pages) ============ */
.page-hero {
  background: linear-gradient(120deg, #0a4a99 0%, #1268c3 55%, #2e7fd0 100%);
  text-align: center; padding: 44px 0 46px;
}
.page-hero .en { font-size: 13px; font-weight: 700; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.8); text-transform: uppercase; }
.page-hero h1 { margin: 10px 0 0; font-size: 30px; font-weight: 900; color: #ffffff; letter-spacing: 0.04em; }

/* ============ schedule tabs + table ============ */
.tabs { display: flex; justify-content: center; gap: 16px; padding: 38px 0 30px; }
.tab-btn {
  font-family: inherit; cursor: pointer; padding: 11px 36px; border-radius: 999px;
  font-size: 14.5px; font-weight: 800; border: 1.5px solid var(--blue);
  background: #ffffff; color: var(--blue);
}
.tab-btn.is-active {
  background: linear-gradient(180deg, var(--blue-bright) 0%, var(--blue-deep) 100%);
  color: #ffffff; box-shadow: 0 4px 10px rgba(13, 92, 186, 0.3);
}
.tab-panel[hidden] { display: none; }
.schedule-wrap { max-width: 940px; margin: 0 auto; padding: 0 24px 40px; }
.schedule-table {
  width: 100%; border-collapse: collapse; border: 1px solid #dfe5ec;
  border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(30, 60, 100, 0.06);
}
.schedule-table thead th {
  background: linear-gradient(180deg, #1f74cd 0%, var(--blue-deep) 100%);
  color: #ffffff; font-size: 13.5px; font-weight: 800; text-align: center; padding: 13px 8px;
}
.schedule-table tbody td { padding: 14px 10px; font-size: 13.5px; text-align: center; border-top: 1px solid #e9eef4; }
.schedule-table tbody tr:nth-child(even) { background: #f6f9fd; }
.schedule-table tbody tr:hover { background: #eaf3fd; }
.schedule-table td.c-date { font-weight: 800; color: #17467e; width: 82px; }
.schedule-table td.c-day { font-weight: 700; color: var(--red); width: 82px; }
.schedule-table td.c-day.sat { color: var(--blue-link); }
.schedule-table td.c-time { font-weight: 700; color: var(--ink-2); width: 82px; }
.schedule-table td.c-name { text-align: left; font-weight: 700; color: var(--ink); line-height: 1.5; padding-left: 14px; padding-right: 14px; }
.schedule-table td.c-venue { font-weight: 500; color: var(--gray-2); width: 150px; }
.schedule-table td.c-target { font-weight: 500; color: var(--gray-2); width: 158px; }
.schedule-note {
  margin-top: 22px; background: #f5f8fb; border-radius: 12px; padding: 18px 24px;
  font-size: 12.5px; line-height: 1.9; color: var(--gray-2); font-weight: 500;
}
.schedule-note b { font-weight: 800; color: var(--ink); }
/* 表の上部に置く凡例＋注意書き（インフォパネル） */
.schedule-note-top {
  margin: 0 0 26px; background: #eef5fc; border: 1.5px solid #b6d2ee;
}
.schedule-note-top .venue-legend { margin-bottom: 6px; }
.schedule-empty { background: #f3f7fb; border-radius: 14px; padding: 78px 30px; text-align: center; }
.schedule-empty svg { display: block; margin: 0 auto; }
.schedule-empty p { margin: 22px 0 0; font-size: 14.5px; line-height: 2.1; color: #6b7682; font-weight: 500; }
/* 会場略称の色分けバッジ（体＝青／グ＝緑／KH＝黄） */
.venue-tag {
  display: inline-block; min-width: 1.7em; padding: 2px 7px; border-radius: 6px;
  color: #ffffff; font-weight: 800; font-size: 12px; line-height: 1.6; text-align: center;
}
.venue-tai { background: var(--blue); }
.venue-gra { background: var(--green); }
.venue-kh  { background: var(--yellow); color: #4a3500; }
.venue-place { font-weight: 500; }
.venue-legend .venue-tag { margin: 0 2px; }

/* ============ わくわくクラブ タブ ============ */
.club-block { margin-bottom: 40px; }
.club-block:last-child { margin-bottom: 0; }
.club-h2 {
  font-size: 19px; font-weight: 800; color: var(--blue-deep);
  text-align: center; margin: 0 0 20px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.club-h2::before, .club-h2::after {
  content: ""; height: 2px; width: 34px; background: #cfe0f2; border-radius: 2px;
}
/* 活動カレンダー（月ごとカード） */
.club-cal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 640px; margin: 0 auto; }
.club-cal-month {
  border: 1px solid #dfe5ec; border-radius: 14px; overflow: hidden;
  background: #ffffff; box-shadow: 0 2px 8px rgba(30, 60, 100, 0.06);
}
.club-cal-mhead {
  background: linear-gradient(180deg, #1f74cd 0%, var(--blue-deep) 100%);
  color: #ffffff; font-weight: 800; font-size: 15px; text-align: center; padding: 10px 8px;
}
.club-cal-list { list-style: none; margin: 0; padding: 6px 16px 12px; }
.club-cal-list li { display: flex; align-items: baseline; gap: 12px; padding: 9px 2px; border-bottom: 1px solid #eef2f7; }
.club-cal-list li:last-child { border-bottom: none; }
.club-cal-date { flex-shrink: 0; font-weight: 800; color: #17467e; font-size: 13.5px; min-width: 58px; }
.club-cal-dow { font-weight: 700; font-size: 12px; color: var(--blue-link); }
.club-cal-dow.sun { color: var(--red); }
.club-cal-name { font-weight: 700; color: var(--ink); font-size: 13.5px; line-height: 1.5; }
/* 種目別活動計画テーブル */
.club-table {
  width: 100%; border-collapse: collapse; border: 1px solid #dfe5ec;
  border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(30, 60, 100, 0.06);
}
.club-table thead th {
  background: linear-gradient(180deg, #1f74cd 0%, var(--blue-deep) 100%);
  color: #ffffff; font-size: 13.5px; font-weight: 800; text-align: center; padding: 13px 8px;
}
.club-table tbody td { padding: 14px 10px; font-size: 13.5px; text-align: center; border-top: 1px solid #e9eef4; color: var(--ink-2); font-weight: 500; }
.club-table tbody tr:nth-child(even) { background: #f6f9fd; }
.club-table td.ct-name { font-weight: 800; color: #17467e; }
.club-table td.ct-teacher { font-weight: 500; color: var(--gray-2); }
/* お知らせ（熱中症など） */
.club-notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff7e8; border: 1.5px solid #f5c96b; border-radius: 14px;
  padding: 18px 22px; margin-bottom: 40px;
}
.club-notice-ico { flex-shrink: 0; font-size: 24px; line-height: 1.3; }
.club-notice-body { font-size: 13.5px; line-height: 1.9; color: var(--ink-2); font-weight: 500; }
.club-notice-body b { font-weight: 800; color: #a6601a; }
/* 会費 */
.club-fee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 640px; margin: 0 auto; }
.club-fee-card {
  border: 1px solid #dfe5ec; border-radius: 14px; overflow: hidden;
  background: #ffffff; box-shadow: 0 2px 8px rgba(30, 60, 100, 0.06);
}
.club-fee-head { background: #eef5fc; color: var(--blue-deep); font-weight: 800; font-size: 15px; text-align: center; padding: 12px 8px; border-bottom: 1px solid #dbe7f4; }
.club-fee-list { list-style: none; margin: 0; padding: 8px 20px 14px; }
.club-fee-list li { display: flex; align-items: center; justify-content: space-between; padding: 11px 2px; border-bottom: 1px solid #eef2f7; }
.club-fee-list li:last-child { border-bottom: none; }
.club-fee-list span { font-weight: 700; color: var(--ink); font-size: 14px; }
.club-fee-list b { font-weight: 800; color: var(--blue); font-size: 16px; }

/* ============ contact ============ */
.contact-wrap { padding: 44px max(48px, calc((100% - 1280px) / 2)) 50px; }
.contact-lead { max-width: 720px; margin: 0 auto; text-align: center; font-size: 14px; line-height: 2; color: var(--ink-2); font-weight: 500; }
.contact-ig-card { max-width: 360px; margin: 30px auto 0; background: #f3f8fd; border-radius: 12px; padding: 20px; text-align: center; }
.contact-ig-card svg { display: block; margin: 0 auto; }
.contact-ig-label { margin-top: 10px; font-size: 12px; font-weight: 700; color: #6b7682; }
.contact-ig-handle { margin-top: 4px; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.contact-form-card {
  max-width: 720px; margin: 34px auto 0; border: 1px solid var(--line); border-radius: 14px;
  padding: 34px 38px; box-shadow: 0 2px 10px rgba(30, 60, 100, 0.06);
}
.form-grid { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.req { font-size: 10.5px; font-weight: 800; color: #ffffff; background: var(--red); border-radius: 4px; padding: 2px 7px; }
.opt { font-size: 10.5px; font-weight: 800; color: var(--ink-2); background: #e7ebf0; border-radius: 4px; padding: 2px 7px; }
.field input, .field textarea, .contact-form-card input[type="text"], .contact-form-card input[type="email"], .contact-form-card textarea {
  width: 100%; border: 1.5px solid #dfe5ec; border-radius: 8px; padding: 11px 14px;
  font-size: 14px; color: var(--ink); outline: none; background: #fcfdfe;
  font-family: inherit; line-height: 1.7;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); background: #ffffff; }
.field textarea { resize: vertical; }
.form-actions { text-align: center; margin-top: 4px; }
.contact-privacy-note { max-width: 720px; margin: 16px auto 0; font-size: 12px; line-height: 1.8; color: #8a939c; font-weight: 500; }
.contact-privacy-note a { color: var(--blue-link); font-weight: 700; }

/* ============ prose (privacy / single) ============ */
.prose-wrap { padding: 48px max(48px, calc((100% - 1280px) / 2)) 54px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 13.5px; line-height: 2; color: #444444; font-weight: 500; }
.prose > p:first-child { font-size: 14px; color: var(--ink-2); }
.prose h2 {
  margin: 36px 0 0; padding-bottom: 10px; border-bottom: 2px solid #e3ecf5;
  font-size: 17px; font-weight: 800; color: #17467e;
}
.prose h2 + p { margin-top: 14px; }
.prose ul { margin: 10px 0 0; padding-left: 22px; font-size: 13.5px; line-height: 2.1; color: #444444; font-weight: 500; }
.prose a { color: var(--blue-link); font-weight: 700; }
.prose .doc-meta { margin-top: 40px; text-align: right; font-size: 12.5px; color: #8a939c; }

/* ============ single post ============ */
.single-wrap { padding: 44px max(48px, calc((100% - 1280px) / 2)) 50px; }
.single-inner { max-width: 760px; margin: 0 auto; }
.single-eyecatch { border-radius: 12px; overflow: hidden; margin-top: 22px; }
.single-eyecatch img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.single-title { margin: 18px 0 0; font-size: 24px; font-weight: 900; color: var(--ink); line-height: 1.6; }
.single-content { margin-top: 22px; font-size: 14px; line-height: 2.1; color: var(--ink-2); font-weight: 500; }
.single-content img { border-radius: 10px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 34px; font-size: 13.5px; font-weight: 800; color: var(--blue-link); }
.back-link:hover { opacity: 0.75; }

/* ============ footer ============ */
.site-footer { position: relative; background: #ffffff; border-top: 1px solid #eef1f4; }
.footer-cols { display: grid; grid-template-columns: 380px 1fr auto; gap: 56px; padding: 40px max(48px, calc((100% - 1280px) / 2)) 32px; align-items: start; }
.footer-brand img { height: 100px !important; max-height: 100px; display: block; width: auto !important; }
.footer-brand p { margin: 14px 0 0; font-size: 12px; line-height: 1.9; color: var(--gray-2); font-weight: 500; }
.footer-menu { border-left: 1px solid #eceff2; padding-left: 26px; }
.footer-menu .heading { font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 12px; white-space: nowrap; }
.footer-menu nav { display: grid; gap: 9px; white-space: nowrap; }
.footer-menu nav a { font-size: 12px; font-weight: 500; color: var(--gray-2); }
.footer-menu nav a:hover { color: var(--blue); }
.footer-follow {
  justify-self: end; background: #ffffff; border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 22px; box-shadow: 0 2px 8px rgba(30, 60, 100, 0.06); text-align: center;
}
.footer-follow .heading { font-size: 12.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.footer-follow .icons { display: flex; justify-content: center; gap: 16px; margin-top: 14px; }
.footer-follow .icons a:hover { opacity: 0.8; }
.footer-trees { position: absolute; right: 4px; bottom: 26px; width: 130px; }
.footer-bar { background: var(--blue-bar); color: #ffffff; text-align: center; font-size: 12.5px; font-weight: 700; padding: 8px 0; }

/* ============ responsive (simple) ============ */
@media (max-width: 960px) {
  .site-header { padding: 12px 20px; }
  .global-nav { gap: 22px; }
  .hero-title { font-size: 33px; }
  .hero-photo { width: 70%; }
  .news-grid { grid-template-columns: 1fr; }
  .event-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-title { white-space: normal; }
  .news-row { grid-template-columns: 1fr; }
  .news-row .eyecatch { width: 100%; height: 180px; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .footer-menu { border-left: none; padding-left: 0; }
  .footer-follow { justify-self: start; }
  .section, .schedule-wrap, .contact-wrap, .prose-wrap, .single-wrap { padding-left: 20px; padding-right: 20px; }
}

/* ============ responsive: tablet〜phone (hamburger + hero stack) ============ */
@media (max-width: 768px) {
  /* header: ハンバーガー化 */
  .site-header { position: relative; padding: 12px 16px; }
  .site-header .brand { gap: 9px; }
  .site-header .brand img { height: 42px !important; max-height: 42px; }
  .brand-names { line-height: 1.4; gap: 1px; }
  .brand-name-top, .brand-name-bottom { font-size: 12.5px; letter-spacing: 0; }
  .nav-toggle { display: flex; }
  .global-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #ffffff; border-top: 1px solid #eef1f4;
    box-shadow: 0 14px 26px rgba(20, 50, 90, 0.12);
    padding: 6px 0; display: none;
  }
  .global-nav.is-open { display: flex; }
  .global-nav a {
    padding: 15px 22px; font-size: 16px; border-bottom: 1px solid #f1f4f7;
    border-bottom-width: 1px;
  }
  .global-nav a:last-child { border-bottom: none; }
  .global-nav a.is-active { color: var(--blue); background: #f3f8fd; border-bottom-color: #f1f4f7; }

  /* hero: 写真を上に、コピーを下に縦積み */
  .hero { height: auto; padding-bottom: 34px; }
  .hero-photo {
    position: relative; width: 100%; min-width: 0; max-width: none; height: 210px;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-copy { padding: 26px 20px 0; max-width: none; }
  .hero-title { white-space: normal; font-size: 28px; }
  .hero-lead { font-size: 14.5px; }
  .hero-lead br { display: none; }
  .hero-actions { flex-wrap: wrap; gap: 12px; margin-top: 22px; }
  .hero-wave, .hero-town { display: none; }

  /* gallery / event */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .event-grid { grid-template-columns: 1fr 1fr; }

  /* CTA */
  .cta-inner > img { width: 200px; }
  .cta-text { text-align: left; }
  .cta-text br { display: none; }

  /* footer 装飾の溢れ防止 */
  .footer-trees { display: none; }

  /* section heading: 折返し許容 */
  .section-head { flex-wrap: wrap; gap: 10px; }
  .more-link { font-size: 13px; }
}

/* ============ responsive: phone ============ */
@media (max-width: 600px) {
  .section, .gallery-band, .cta-band { padding-top: 34px; padding-bottom: 34px; }

  /* gallery: フルワイド2列（スマホ・現状維持） */
  .gallery-grid {
    grid-template-columns: 1fr 1fr; gap: 10px;
    width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  }
  .gallery-grid img { height: 130px; border-radius: 0; }
  .gallery-grid img:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* schedule タブ */
  .tabs { gap: 10px; padding: 26px 16px 22px; flex-wrap: wrap; }
  .tab-btn { padding: 10px 15px; font-size: 12.5px; letter-spacing: 0; white-space: nowrap; }

  /* schedule テーブル → カード型に縦積み */
  .schedule-wrap { padding-bottom: 30px; }
  .schedule-table { border: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .schedule-table thead { display: none; }
  .schedule-table tbody,
  .schedule-table tbody tr,
  .schedule-table tbody td { display: block; width: 100%; }
  .schedule-table tbody tr {
    display: flex; flex-direction: column;
    margin-bottom: 16px; border: 1px solid #e3e9f1; border-radius: 14px;
    overflow: hidden; background: #ffffff; box-shadow: 0 4px 14px rgba(30, 60, 100, 0.08);
  }
  .schedule-table tbody tr:nth-child(even) { background: #ffffff; }
  .schedule-table tbody tr:hover { background: #ffffff; }
  .schedule-table tbody td {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px;
    width: auto; text-align: left; border: none; border-top: 1px solid #eef2f6;
    padding: 11px 16px; font-size: 14px; color: var(--ink); font-weight: 700;
  }
  .schedule-table tbody td::before {
    width: 3.6em; flex-shrink: 0; font-weight: 700; color: #6b7888; text-align: left; font-size: 12.5px;
  }
  .schedule-table td.c-date, .schedule-table td.c-day, .schedule-table td.c-time,
  .schedule-table td.c-venue, .schedule-table td.c-target { width: auto; }
  .schedule-table td.c-date { font-size: 15px; font-weight: 800; }
  .schedule-table td.c-date::before { content: "日付"; }
  .schedule-table td.c-day::before { content: "曜日"; }
  .schedule-table td.c-time::before { content: "時間"; }
  .schedule-table td.c-venue::before { content: "会場"; }
  .schedule-table td.c-target::before { content: "対象"; }
  /* 事業名はカード見出し（最上段の青帯）に */
  .schedule-table td.c-name {
    order: -1; display: block; text-align: left; border-top: none;
    background: linear-gradient(180deg, #1f74cd 0%, var(--blue-deep) 100%);
    color: #ffffff; font-weight: 800; font-size: 14.5px; line-height: 1.55; padding: 13px 16px;
  }
  .schedule-table td.c-name::before { content: none; }

  /* contact / prose */
  .contact-form-card { padding: 24px 18px; }
  .contact-ig-card { max-width: none; }

  /* single */
  .single-title { font-size: 21px; }
  .single-eyecatch img { max-height: 260px; }
}

/* ============ responsive: small phone ============ */
@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .hero-photo { height: 180px; }
  .section-title h2 { font-size: 20px; }
  .event-grid { grid-template-columns: 1fr; }
  .cta-title { font-size: 20px; white-space: normal; }
  .page-hero h1 { font-size: 25px; }
  .btn-blue, .btn-yellow { width: 100%; justify-content: center; }
  .hero-actions { gap: 10px; }
}
