/* ========== 基本設定 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "BIZ UDPGothic", "BIZ UDGothic", "Meiryo", sans-serif;
  color: #333;
  background-color: #faf8f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ========== ヘッダー ========== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

#site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: padding 0.3s ease;
  gap: 8px;
}

#site-header.scrolled .header-inner {
  padding: 10px 32px 0;
  gap: 4px;
}

/* ロゴ */
.logo a {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #f5e06b, #7bb8e0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

#site-header.scrolled .logo-icon {
  width: 32px;
  height: 32px;
  font-size: 10px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

#site-header.scrolled .logo-text {
  font-size: 16px;
}

/* ナビゲーション */
.nav-list {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
}

.nav-list > li > a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #444;
  transition: color 0.25s ease;
  position: relative;
  white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
  color: #2a5a8c;
}

.nav-list > li > a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 2px;
  background: #7bb8e0;
  transition: transform 0.25s ease;
}

.nav-list > li > a:hover::after,
.nav-list > li > a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.arrow {
  font-size: 10px;
  margin-left: 2px;
}

/* プルダウンメニュー */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s ease;
  z-index: 100;
  padding: 8px 0;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 11px 24px;
  font-size: 14px;
  color: #555;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown li a:hover {
  background-color: #f0f6fb;
  color: #2a5a8c;
}

/* ========== ヒーローバナー（水彩風） ========== */
.hero-banner {
  position: relative;
  padding: 80px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 280px;
}

.hero-watercolor {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(255, 220, 100, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 30%, rgba(255, 180, 180, 0.3) 0%, transparent 45%),
    radial-gradient(ellipse at 55% 60%, rgba(160, 220, 255, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 40%, rgba(200, 180, 255, 0.3) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 70%, rgba(180, 255, 200, 0.25) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 200, 150, 0.2) 0%, transparent 45%);
  background-color: #fdf8ee;
  filter: blur(2px);
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-banner-content h1 {
  font-size: 42px;
  font-weight: 900;
  color: #2a2a2a;
  line-height: 1.5;
  letter-spacing: 2px;
}

/* 下層ページ用ヒーロー */
.page-hero {
  position: relative;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 180px;
}

.page-hero .hero-watercolor {
  position: absolute;
  inset: 0;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero-content h1 {
  font-size: 32px;
  font-weight: 800;
  color: #2a2a2a;
  letter-spacing: 2px;
}

/* ========== メイン ========== */
.main-content {
  flex: 1;
  width: 100%;
}

/* ========== 共通セクション ========== */
.section {
  padding: 72px 0;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #2a3a50;
  margin-bottom: 48px;
  position: relative;
}

.section-title span {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-title span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #f5e06b, #7bb8e0);
  border-radius: 2px;
}

.section-more {
  text-align: center;
  margin-top: 36px;
}

/* ========== スライドショー ========== */
.slideshow {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #111;
}

.slideshow-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  aspect-ratio: 16 / 6;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 0 8%;
  width: 100%;
}

.slide-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
  display: block;
}

.slide-title {
  font-size: clamp(22px, 3.5vw, 44px);
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 16px;
}

.slide-desc {
  font-size: clamp(13px, 1.5vw, 16px);
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 480px;
}

/* インジケーター（ドット） */
.slideshow-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.s-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.s-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* プログレスバー */
.slideshow-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255,255,255,0.3);
  width: 100%;
  z-index: 10;
}

.slideshow-progress-bar {
  height: 100%;
  background: #f5e06b;
  width: 0%;
  transition: width linear;
}

/* ========== お知らせセクション ========== */
.news-section {
  background-color: #fff;
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
}

.news-date {
  font-size: 13px;
  color: #999;
  flex-shrink: 0;
  width: 90px;
}

.news-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  flex-shrink: 0;
}

.tag-info {
  background-color: #e3f0fa;
  color: #2a5a8c;
}

.tag-result {
  background-color: #fdf6d0;
  color: #8a7000;
}

.tag-event {
  background-color: #e0f5e0;
  color: #2a6a2a;
}

.news-link {
  font-size: 14px;
  color: #333;
  transition: color 0.2s ease;
}

.news-link:hover {
  color: #2a5a8c;
}

/* ========== ボタン ========== */
.btn-outline {
  display: inline-block;
  padding: 12px 36px;
  border: 2px solid #7bb8e0;
  color: #2a5a8c;
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background-color: #e3f0fa;
  border-color: #5a9fd0;
}

/* ========== HUMANとはセクション ========== */
.about-section {
  background-color: #faf8f5;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 28px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0ece5;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}

.about-icon {
  font-size: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.about-card h3 {
  font-size: 17px;
  color: #2a3a50;
  margin-bottom: 14px;
  text-align: center;
}

.about-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  text-indent: 1em;
}

/* フレイル予防カード */
.frail-card {
  margin-top: 32px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0ece5;
  padding: 40px 28px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.frail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}

.frail-card-inner {
  display: block;
}

.frail-icon {
  font-size: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.frail-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #2a3a50;
  margin-bottom: 14px;
  text-align: center;
}

.frail-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  text-indent: 1em;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .frail-card {
    padding: 24px 20px;
  }
}

/* ========== YouTube紹介セクション ========== */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.youtube-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

.youtube-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}

.youtube-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.youtube-thumb:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}

.youtube-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: transform 0.2s ease;
  pointer-events: none;
}

.youtube-thumb:hover .youtube-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
}

.youtube-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .youtube-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ========== 代表挨拶セクション ========== */
.greeting-section {
  background-color: #f8f6f0;
}
.greeting-inner {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.greeting-text {
  flex: 1;
  font-size: 15px;
  line-height: 2;
  color: #333;
}
.greeting-text p {
  margin-bottom: 1.4em;
  text-indent: 1em;
}
.greeting-profile {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.greeting-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #2a5fa8;
  background: #dce8f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.greeting-photo-placeholder {
  font-size: 14px;
  color: #7a9fc5;
}
.greeting-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.greeting-name-label {
  font-size: 12px;
  color: #2a5fa8;
  letter-spacing: 0.08em;
  margin: 0;
}
.greeting-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .greeting-inner {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .greeting-profile {
    flex: none;
  }
}

/* ========== 各地域 担当者挨拶 ========== */
.local-greeting {
  background: #f8f6f0;
  border-radius: 12px;
  padding: 36px 40px;
  margin-bottom: 48px;
}
.local-greeting-heading {
  font-size: 20px;
  font-weight: 700;
  color: #2a5fa8;
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c8d8f0;
}

/* ========== 地域別イメージカラー ========== */
/* 長岡：青 */
.page-nagaoka .page-content h2,
.page-nagaoka .local-greeting-heading {
  border-bottom-color: #2a5fa8;
  color: #1a3a6a;
}

/* 新潟：オレンジ */
.page-niigata .page-content h2,
.page-niigata .local-greeting-heading {
  border-bottom-color: #e07820;
  color: #8a4000;
}
.page-niigata .greeting-name-label { color: #e07820; }
.page-niigata .greeting-photo { border-color: #e07820; background: #fde8cc; }

/* しばた：紫 */
.page-shibata .page-content h2,
.page-shibata .local-greeting-heading {
  border-bottom-color: #7a3a9a;
  color: #5a2a6a;
}
.page-shibata .greeting-name-label { color: #7a3a9a; }
.page-shibata .greeting-photo { border-color: #7a3a9a; background: #f0e0f5; }

/* むらかみ：緑 */
.page-murakami .page-content h2,
.page-murakami .local-greeting-heading {
  border-bottom-color: #2a7a2a;
  color: #1a5a1a;
}
.page-murakami .greeting-name-label { color: #2a7a2a; }
.page-murakami .greeting-photo { border-color: #2a7a2a; background: #e0f5e0; }

/* ========== 活動拠点セクション ========== */
.locations-section {
  background-color: #fff;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.location-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0ece5;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.location-img {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-img.bg-blue {
  background: linear-gradient(135deg, #d6eaf8, #b8d8f0);
}

.location-img.bg-yellow {
  background: linear-gradient(135deg, #fdf6d0, #f5e8a0);
}

.location-img.bg-orange {
  background: linear-gradient(135deg, #fde8cc, #f5c080);
}

.location-img.bg-purple {
  background: linear-gradient(135deg, #f0e0f5, #c8a0e0);
}

.location-img.bg-green {
  background: linear-gradient(135deg, #e0f5e0, #a0d8a0);
}

.location-label {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 4px;
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.75);
  paint-order: stroke fill;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.location-body {
  padding: 20px;
}

.location-body h3 {
  font-size: 16px;
  color: #2a3a50;
  margin-bottom: 8px;
}

.location-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.location-place {
  color: #999 !important;
  font-size: 12px !important;
  margin-top: 4px;
}

/* ========== スケジュールセクション ========== */
.schedule-section {
  background-color: #faf8f5;
}

.schedule-table-wrap {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.schedule-table thead {
  background-color: #2a3a50;
  color: #fff;
}

.schedule-table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}

.schedule-table th:first-child {
  border-radius: 8px 0 0 0;
}

.schedule-table th:last-child {
  border-radius: 0 8px 0 0;
}

.schedule-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #eef1f5;
  color: #444;
  background: #fff;
}

.schedule-table tbody tr:hover td {
  background-color: #f5f8fb;
}

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-nagaoka {
  background-color: #d6eaf8;
  color: #1a4a7a;
}

.badge-niigata {
  background-color: #fde8cc;
  color: #8a4000;
}

.badge-shibata {
  background-color: #f0e0f5;
  color: #5a2a6a;
}

.badge-murakami {
  background-color: #e0f5e0;
  color: #2a6a2a;
}

.badge-event {
  background-color: #fff0cc;
  color: #8a5a00;
}

/* ========== ブルボン連携セクション ========== */
.partner-section {
  background-color: #fff;
}

.partner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  background: #faf8f5;
  border-radius: 20px;
  padding: 48px;
  border: 1px solid #f0ece5;
}

.partner-text {
  flex: 1;
  text-align: center;
}

.partner-text h2 {
  font-size: 22px;
  color: #2a3a50;
  margin-bottom: 16px;
  line-height: 1.5;
}

.partner-text p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 24px;
  text-indent: 0;
}

.partner-visual {
  flex-shrink: 0;
  width: 320px;
}

.partner-logo-img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.partner-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d6eaf8, #fdf6d0);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.partner-placeholder span {
  font-size: 48px;
}

.partner-placeholder p {
  font-size: 12px;
  color: #888;
  margin-bottom: 0;
}

/* ========== SDGsセクション ========== */
.sdgs-section {
  background: #f4f8f2;
  border-top: 3px solid #3f9c35;
  border-bottom: 3px solid #3f9c35;
}

.sdgs-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sdgs-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  width: 100%;
}

.sdgs-label {
  font-size: 13px;
  font-weight: 700;
  color: #3f9c35;
  letter-spacing: 3px;
  margin-bottom: 8px;
  text-indent: 0;
}

.sdgs-desc {
  font-size: 17px;
  font-weight: 700;
  color: #333;
  line-height: 1.8;
  text-indent: 0;
}

.sdgs-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sdg-icon {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .sdgs-inner {
    flex-direction: column;
    text-align: center;
  }
  .sdgs-desc {
    font-size: 15px;
  }
  .sdg-icon {
    width: 64px;
    height: 64px;
  }
}

/* ========== CTAセクション ========== */
.cta-section {
  background: linear-gradient(135deg, #2a3a50, #3a5a7c);
  text-align: center;
  padding: 80px 24px;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: 26px;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
}

.cta-btn {
  display: inline-block;
  padding: 18px 48px;
  background: linear-gradient(135deg, #f5e06b, #e8c840);
  color: #2a3a50;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 16px rgba(245, 224, 107, 0.3);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 224, 107, 0.5);
}

/* ========== 下層ページ共通コンテンツ ========== */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.page-content h2 {
  font-size: 22px;
  color: #2a3a50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e3f0fa;
}

.page-content h3 {
  font-size: 18px;
  color: #2a3a50;
  margin: 32px 0 12px;
}

.page-content p {
  font-size: 15px;
  color: #555;
  line-height: 2;
  margin-bottom: 24px;
  text-indent: 1em;
}

.page-matches .page-content p {
  text-indent: 0;
  margin-bottom: 16px;
}

.page-content ul {
  margin: 16px 0 24px 20px;
  list-style: disc;
}

.page-content ul li {
  font-size: 15px;
  color: #555;
  line-height: 2;
}

/* Google マップ埋め込み */
.map-wrap {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 300px;
}

.page-content .info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.page-content .info-table th {
  background: #f0f6fb;
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #2a3a50;
  border-bottom: 1px solid #dce8f0;
  width: 160px;
}

.page-content .info-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #eee;
}

.page-content .placeholder-img {
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, #d6eaf8, #fdf6d0);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
  color: #aaa;
  font-size: 14px;
}

/* ========== スポンサー帯（スライドショー直下） ========== */
/* ========== ご協力団体・企業（3段） ========== */
.sponsor-tiers-bar {
  background: #1a2a3a;
  padding: 16px 0;
}

.sponsor-tiers-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sponsor-tiers-row {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 0;
}

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

.sponsor-tiers-label {
  flex-shrink: 0;
  width: 140px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f5e06b;
  border-right: 1px solid rgba(255,255,255,0.15);
  padding-right: 24px;
  white-space: nowrap;
}

.sponsor-tiers-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 24px;
  flex-wrap: wrap;
}

/* 1段目：スクロールティッカー */
.sponsor-tiers-logos--ticker {
  overflow: hidden;
  flex: 1;
  padding-left: 24px;
  flex-wrap: nowrap;
  gap: 0;
}

.sponsor-tier-track {
  display: flex;
  align-items: center;
  gap: 32px;
  animation: tier-scroll 18s linear infinite;
  white-space: nowrap;
}

.sponsor-tier-track:hover {
  animation-play-state: paused;
}

.sponsor-tier-track-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #f5e06b;
  white-space: nowrap;
  padding: 0 16px;
}

.sponsor-tiers-row--ticker {
  padding-left: 0;
}

.sponsor-tiers-row--ticker .sponsor-tiers-logos--ticker {
  padding-left: 0;
}

@keyframes tier-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .sponsor-tiers-bar-inner { padding: 0 16px; }
  .sponsor-tiers-label { width: 90px; font-size: 11px; }
  .sponsor-tiers-logos { gap: 12px; padding-left: 12px; }
}

.ticker-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 8px 70px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-logo img {
  height: 90px;
  width: 180px;
  display: block;
  object-fit: contain;
  border-radius: 7px;
}


.ticker-logo:has(img) {
  padding: 0;
  background: transparent;
  border: none;
}


.ticker-logo:hover {
  background: rgba(245,224,107,0.15);
  border-color: rgba(245,224,107,0.4);
  color: #f5e06b;
}

/* ========== スポンサーセクション（フッター上） ========== */
/* 現在非表示 — 必要になったら display:none を削除 */
.sponsor-section {
  display: none;
  background: #f0f4f8;
  padding: 56px 0;
}

.sponsor-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sponsor-section-title {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #8a9aaa;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.sponsor-tiers {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sponsor-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sponsor-tier-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #aab;
  text-transform: uppercase;
}

.sponsor-tier-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

/* タイトルスポンサー */
.sponsor-logo.title {
  height: 80px;
  min-width: 240px;
  background: #fff;
  border: 2px solid #d4af37;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  color: #d4af37;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.sponsor-logo.title:hover {
  background: #fffdf0;
  box-shadow: 0 4px 20px rgba(212,175,55,0.2);
  transform: translateY(-2px);
}

/* ゴールドスポンサー */
.sponsor-logo.gold {
  height: 64px;
  min-width: 180px;
  background: #fff;
  border: 1.5px solid #e0c840;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  color: #b8a020;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
  cursor: pointer;
}

.sponsor-logo.gold:hover {
  background: #fffdf0;
  box-shadow: 0 4px 16px rgba(200,180,30,0.15);
  transform: translateY(-2px);
}

/* 通常スポンサー */
.sponsor-logo.regular {
  height: 52px;
  min-width: 140px;
  background: #fff;
  border: 1px solid #dde4ec;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  color: #778899;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}

.sponsor-logo.regular:hover {
  border-color: #7bb8e0;
  color: #2a5a8c;
  box-shadow: 0 2px 12px rgba(123,184,224,0.15);
  transform: translateY(-2px);
}

.sponsor-divider {
  border: none;
  border-top: 1px solid #dde4ec;
  margin: 0;
  width: 100%;
}

@media (max-width: 600px) {
  .sponsor-logo.title { min-width: 180px; font-size: 14px; }
  .sponsor-logo.gold  { min-width: 140px; font-size: 13px; }
  .sponsor-logo.regular { min-width: 110px; font-size: 12px; }
  .sponsor-ticker-label { padding: 0 16px; }
}

/* ========== ブルボン応援バナー ========== */
.bourbon-banner {
  text-align: center;
  padding: 32px 20px;
  margin: 0;
}

.bourbon-banner p {
  display: inline-block;
  padding: 16px 56px;
  background: linear-gradient(135deg, #1a3fbf, #2955e0);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  clip-path: polygon(2% 0%, 98% 0%, 100% 50%, 98% 100%, 2% 100%, 0% 50%);
}

/* ========== UDフォントバナー ========== */
.ud-banner {
  max-width: 900px;
  margin: 0 auto 32px;
  padding: 18px 32px;
  border: 2px solid #e8a050;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
}

.ud-icon {
  color: #e8a050;
  font-size: 18px;
  flex-shrink: 0;
}

.ud-label {
  color: #e8a050;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.ud-text {
  color: #444;
  font-size: 14px;
  line-height: 1.6;
}

/* ========== フッター ========== */
#site-footer {
  background-color: #3a3f47;
  color: #d0d5dc;
  margin-top: auto;
  padding-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon.small {
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.footer-right {
  text-align: right;
}

.footer-address {
  font-size: 14px;
  font-weight: 600;
  color: #e8ecf0;
  margin-bottom: 4px;
}

.footer-contact {
  font-size: 14px;
  font-weight: 600;
  color: #e8ecf0;
  margin-bottom: 4px;
}

.footer-rep {
  font-size: 14px;
  color: #e8ecf0;
  margin-top: 4px;
  font-weight: 600;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-line {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 32px 0 18px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
}

.footer-updated {
  font-size: 13px;
  color: #8a9099;
}

.footer-copyright {
  font-size: 13px;
  color: #8a9099;
}

/* ========== ハンバーガーボタン ========== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== レスポンシブ ========== */
@media (max-width: 768px) {
  /* 全体 */
  body {
    overflow-x: hidden;
  }

  /* テーブル横スクロール */
  .info-table,
  .schedule-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  /* 代表挨拶・地域挨拶 写真サイズ縮小 */
  .greeting-photo {
    width: 120px;
    height: 120px;
  }

  .greeting-name {
    font-size: 15px;
  }

  /* 地域挨拶ボックス */
  .local-greeting {
    padding: 24px 16px;
  }

  /* page-content 余白 */
  .page-content {
    padding: 32px 16px;
  }

  .hamburger {
    display: flex;
    align-self: flex-end;
    margin-top: 2px;
  }

  .header-inner {
    padding: 10px 16px 6px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .logo {
    width: 100%;
  }

  .logo a {
    justify-content: flex-start;
  }

  .logo-text {
    font-size: 10px;
    white-space: nowrap;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .global-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    padding: 8px 0;
  }

  .nav-list > li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-list > li:last-child {
    border-bottom: none;
  }

  .nav-list > li > a {
    padding: 14px 24px;
    font-size: 15px;
    display: block;
  }

  .nav-list > li > a::after {
    display: none;
  }

  /* スマホ用ドロップダウン */
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f9fbfd;
    border-radius: 0;
    padding: 0;
    display: none;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown li a {
    padding: 12px 36px;
    font-size: 14px;
    border-top: 1px solid #eee;
  }

  .hero-banner-content h1 {
    font-size: 28px;
  }

  .hero-banner {
    min-height: 200px;
    padding: 48px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-box {
    flex-direction: column;
    padding: 32px;
  }

  .partner-visual {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-right {
    text-align: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .logo-text {
    font-size: 14px;
  }

  .hero-banner-content h1 {
    font-size: 22px;
  }

  .page-hero-content h1 {
    font-size: 22px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 32px;
  }

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

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cta-inner h2 {
    font-size: 20px;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}
