/*
Theme Name: 飯山国スポ2028
Theme URI: https://www.city.iiyama.nagano.jp/
Author: 飯山市
Description: 飯山国スポ2028 – 第82回国民スポーツ大会・第27回全国障害者スポーツ大会
Version: 1.8.0
License: GNU General Public License v2 or later
Text Domain: iiyama-kokuspo2028
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
html { font-size: 14px; }
body { font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif; font-size: 14px; color: #333; background: #faf8f5; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: #e6950a; text-decoration: underline; }
a:hover { color: #c00; }
ul, ol { list-style: none; }

/* サブバー */
#subMenuBar a:hover { text-decoration: underline; }

/* ヘッダー */
#header { background: #fff; border-bottom: 3px solid #c03030; }
#header .header-inner { max-width: 1020px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-title-link { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.site-title-sub { font-size: 11px; color: #666; }
.site-title-main { font-size: 18px; font-weight: 900; color: #e6950a; line-height: 1.25; }
.header-contact a { background: #c03030; color: #fff; padding: 6px 16px; font-size: 12px; text-decoration: none; border-radius: 3px; }
.header-contact a:hover { background: #8a7000; color: #fff; }

/* グローバルナビ */
#globalNav { background: #c03030; }
#globalNav .inner { max-width: 1020px; margin: 0 auto; }
#globalNav ul { display: flex; }
#globalNav ul li { flex: 1; border-right: 1px solid rgba(255,255,255,0.25); }
#globalNav ul li:last-child { border-right: none; }
#globalNav ul li a { display: block; padding: 11px 4px; text-align: center; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; transition: background 0.15s; white-space: nowrap; }
#globalNav ul li a:hover, #globalNav ul li.current-menu-item > a { background: #c0392b; }

/* スライダー */
#mainSlider { width: 100%; background: #111; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
  pointer-events: none;
}
.slide.active {
  position: relative;
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.slide a { display: block; text-decoration: none; width: 100%; }
.slide-img { width: 100%; height: auto; display: block; object-fit: contain; object-position: center; }
.slide-bg-placeholder { width: 100%; height: 340px; display: flex; align-items: center; justify-content: center; padding: 30px; }
.slide-inner { text-align: center; color: #fff; }
.slide-eyebrow { font-size: 12px; color: #ffd54f; letter-spacing: 0.1em; margin-bottom: 10px; }
.slide-title { font-size: 22px; font-weight: 900; line-height: 1.4; margin-bottom: 10px; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.55); color: #fff; font-size: 12px; padding: 8px 12px; display: flex; justify-content: space-between; align-items: center; }
.detail-btn { background: #e6950a; color: #fff !important; padding: 4px 14px; font-size: 12px; text-decoration: none !important; border-radius: 2px; }


.slider-paging { background: #e8e8e8; border-bottom: 1px solid #ccc; display: flex; gap: 4px; padding: 6px 10px; }
.slider-paging button { border: 2px solid transparent; background: none; cursor: pointer; padding: 2px; }
.slider-paging button.active { border-color: #e6950a; }
.paging-thumb { width: 120px; height: 44px; object-fit: cover; display: block; }
.paging-thumb-placeholder { width: 120px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; text-align: center; padding: 4px; }

/* コンテンツ */
#wrap { max-width: 1020px; margin: 0 auto; background: #fff; border-left: 1px solid #e8e0d8; border-right: 1px solid #e8e0d8; }
#contentArea { display: flex; align-items: flex-start; }
#mainContent { flex: 1; min-width: 0; padding: 18px 16px; }
#sideBar { width: 195px; flex-shrink: 0; padding: 18px 12px 18px 0; border-left: 1px solid #e0e0e0; }

/* セクション見出し */
.section-heading { font-size: 15px; font-weight: 900; color: #fff; background: linear-gradient(90deg, #e6950a 0%, #c0392b 100%); padding: 7px 12px; margin-bottom: 12px; border-left: 5px solid #d4a017; }

/* お知らせ */
#oshirase { margin-bottom: 26px; }






.news-list-ul { border-top: 1px solid #ccc; }
.news-list-ul li { border-bottom: 1px solid #e8e8e8; padding: 7px 4px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.news-date { font-size: 12px; color: #777; white-space: nowrap; min-width: 86px; }
.news-list-ul li a { font-size: 13px; color: #e6950a; }
.news-more-links { margin-top: 7px; display: flex; gap: 5px; flex-wrap: wrap; }
.news-more-links a { font-size: 12px; color: #c03030; background: #fff8ee; padding: 3px 8px; text-decoration: none; border: 1px solid #e8d4a0; }
.icon-links { display: flex; gap: 20px; margin-top: 14px; padding-top: 10px; border-top: 1px solid #e0e0e0; }
.icon-links a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: #333; font-size: 12px; }
.icon-link-icon { width: 46px; height: 46px; background: #e6950a; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }

/* ピックアップ */
#pickup { margin-bottom: 26px; }
.pickup-nav { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 7px; }
.pickup-nav button { background: #c03030; color: #fff; border: none; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.pickup-slider-outer { overflow: hidden; }
.pickup-slider-inner { display: flex; transition: transform 0.4s ease; }
.pickup-slide { flex: 0 0 33.333%; padding: 0 5px; }
.pickup-slide a { text-decoration: none; color: #333; display: block; }
.pickup-slide img { width: 100%; height: 100px; object-fit: cover; border: 1px solid #ddd; display: block; }
.pickup-slide .no-thumb { width: 100%; height: 100px; background: #fff3cd; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; border: 1px solid #ddd; }
.pickup-title { font-size: 12px; font-weight: 700; margin-top: 5px; line-height: 1.4; }

/* 競技 */
#kyogi { margin-bottom: 26px; }
.kyogi-subtitle { font-size: 13px; font-weight: 700; color: #c03030; border-bottom: 2px solid #c03030; padding-bottom: 4px; margin: 14px 0 10px; }
.kyogi-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.kyogi-item { width: calc(20% - 5px); min-width: 86px; border: 1px solid #e0e0e0; background: #ffffff; padding: 10px 4px 8px; text-align: center; text-decoration: none; color: #333; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.kyogi-item:hover { background: #fff8c0 !important; color: #8a6e00 !important; }
.kyogi-icon-emoji { font-size: 2rem; line-height: 1; }
.kyogi-name { font-size: 11px; font-weight: 700; line-height: 1.3; }

/* 協賛・関連 */
#kyosan { margin-bottom: 26px; }
.kyosan-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.kyosan-item { border: 1px solid #ddd; background: #fff; display: flex; align-items: center; justify-content: center; padding: 6px; width: 100px; height: 100px; font-size: 11px; color: #555; text-align: center; text-decoration: none; overflow: hidden; box-sizing: border-box; flex-shrink: 0; }
#related { margin-bottom: 10px; }
.related-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.related-btn { display: inline-block; padding: 7px 14px; border: 1px solid #c03030; color: #c03030; font-size: 12px; text-decoration: none; background: #fff; }
.related-btn:hover { background: #c03030; color: #fff; }

/* サイドバー */
.sidebar-box { margin-bottom: 14px; }
.sidebar-box-title { background: #c03030; color: #fff; font-size: 12px; font-weight: 700; padding: 6px 10px; }
.sidebar-box-body { border: 1px solid #ccc; border-top: none; padding: 8px 10px; font-size: 12px; }
.sidebar-box-body ul li { border-bottom: 1px dotted #ddd; padding: 5px 0; }
.sidebar-box-body ul li a { color: #e6950a; text-decoration: none; font-size: 12px; }

/* フッター */
.page-top-bar { border-top: 1px solid #e8e0d8; padding: 8px 16px; display: flex; justify-content: space-between; background: #faf8f5; max-width: 1020px; margin: 0 auto; }
.page-top-bar a { font-size: 12px; color: #e6950a; }
#footer { background: #c03030; color: #fff; padding: 16px 16px 12px; }
#footer .footer-inner { max-width: 1020px; margin: 0 auto; }



#footer .footer-org { font-size: 12px; line-height: 1.9; margin-bottom: 8px; }
#footer .footer-copy { font-size: 11px; color: rgba(255,255,255,0.65); }
#back-to-top { position: fixed; bottom: 20px; right: 16px; background: #c03030; color: #fff; border: none; width: 38px; height: 38px; border-radius: 3px; cursor: pointer; font-size: 15px; display: none; align-items: center; justify-content: center; z-index: 999; }
#back-to-top.visible { display: flex; }

/* 固定ページ・記事 */
.entry-header { margin-bottom: 20px; border-bottom: 2px solid #c03030; padding-bottom: 10px; }
.entry-date { font-size: 12px; color: #666; margin-bottom: 4px; }
.entry-title { font-size: 20px; font-weight: bold; color: #c03030; }
.entry-content { font-size: 14px; line-height: 1.9; width: 100%; }
.entry-content p { margin-bottom: 12px; }
.back-link { margin-top: 24px; }
.back-link a { background: #e6950a; color: #fff; padding: 6px 16px; text-decoration: none; font-size: 13px; }

/* Contact Form 7 */
.wpcf7 label { display: block; width: 100%; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea { display: block; width: 100%; max-width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid #bbb; font-size: 14px; margin-top: 4px; }
.wpcf7-form-control-wrap { display: block; width: 100%; }
.wpcf7 input[type="submit"] { background: #c03030; color: #fff; border: none; padding: 10px 30px; font-size: 14px; cursor: pointer; }

/* Responsive */
@media (max-width: 760px) {
  #contentArea { flex-direction: column; }
  #sideBar { width: 100%; border-left: none; border-top: 1px solid #e0e0e0; padding: 16px; }
  #globalNav ul { flex-wrap: wrap; }
  #globalNav ul li { flex: 0 0 50%; }
  .kyogi-item { width: calc(33.333% - 4px); }
  .pickup-slide { flex: 0 0 100%; }
  
}
@media (max-width: 480px) {
  .kyogi-item { width: calc(50% - 3px); }
  #globalNav ul li { flex: 0 0 100%; }
  .site-title-main { font-size: 14px; }
}

/* ヘッダー右側エリア */
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}



.header-contact-btn {
  background: #e6950a;
  color: #fff;
  padding: 6px 16px;
  font-size: 12px;
  text-decoration: none;
  border-radius: 3px;
}
.header-contact-btn:hover { background: #7a1a1a; color: #fff; }

/* SP用ハンバーガーボタン */
#navToggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 8px 14px;
  line-height: 1;
}
#navMenu { width: 100%; }

/* SP対応 */
@media (max-width: 760px) {
  /* ヘッダー */
  #header .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-right {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
  }

  /* ナビ */
  #globalNav .inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  #navToggle {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    order: -1;
  }
  #navMenu {
    display: none;
    width: 100%;
    order: 3;
  }
  #navMenu.open { display: block; }
  #globalNav ul { flex-direction: column; }
  #globalNav ul li { flex: none; width: 100%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  #globalNav ul li a { text-align: left; padding: 12px 16px; }
}

/* ===== SP用トップバー・ドロワーナビ ===== */
#spTopBar {
  display: none;
  background: #e6950a;
  padding: 0 12px;
  height: 46px;
  align-items: center;
  justify-content: flex-end;
}
#navToggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#navToggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}
#navToggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#navToggle.open span:nth-child(2) { opacity: 0; }
#navToggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#spNav {
  position: fixed;
  top: 0; right: -280px;
  width: 280px; height: 100%;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  padding-top: 60px;
}
#spNav.open { right: 0; }
#spNav ul { list-style: none; padding: 0; margin: 0; }
#spNav ul li { border-bottom: 1px solid #eee; }
#spNav ul li a { display: block; padding: 14px 20px; color: #333; text-decoration: none; font-size: 15px; font-weight: 700; }
#spNav ul li a:hover { background: #fff8ee; color: #c03030; }

#spNavOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
}
#spNavOverlay.open { display: block; }

@media (max-width: 760px) {
  #spTopBar { display: flex; }
  #globalNav { display: none; }
  #header .header-inner { flex-wrap: wrap; }
  .header-right { flex-direction: row; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; margin-top: 6px; }
}

/* 競技日程表示 */
.kyogi-date {
  font-size: 11px;
  color: #e6950a;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  width: 100%;
}

/* 競技詳細ページ */
.kyogi-detail-wrap {
  max-width: 1020px;
  margin: 0 auto;
  background: #fff;
  padding: 24px 16px;
}
.kyogi-detail-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.kyogi-detail-thumb {
  width: 200px;
  flex-shrink: 0;
}
.kyogi-detail-thumb img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
}
.kyogi-detail-thumb .no-img {
  width: 200px;
  height: 200px;
  background: #f0f7ec;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border: 1px solid #ddd;
}
.kyogi-detail-info {
  flex: 1;
  min-width: 0;
}
.kyogi-detail-info h1 {
  font-size: 22px;
  font-weight: 900;
  color: #8a7000;
  margin-bottom: 16px;
  border-bottom: 3px solid #e6950a;
  padding-bottom: 8px;
}
.kyogi-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 16px;
}
.kyogi-info-table th {
  background: #e6950a;
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  width: 120px;
  font-weight: 700;
  white-space: nowrap;
}
.kyogi-info-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
}
.kyogi-detail-content {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.9;
}
.kyogi-related-news {
  margin-top: 28px;
}
.kyogi-related-news h2 {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, #e6950a 0%, #c0392b 100%);
  padding: 7px 12px;
  margin-bottom: 10px;
  border-left: 5px solid #d4a017;
}
@media (max-width: 600px) {
  .kyogi-detail-header { flex-direction: column; }
  .kyogi-detail-thumb { width: 100%; }
  .kyogi-detail-thumb .no-img { width: 100%; }
}

/* フッタークレジット */
.footer-credit {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}



/* 競技会場表示 */
.kyogi-venue {
  font-size: 10px;
  color: #777;
  text-align: center;
  line-height: 1.3;
  width: 100%;
  margin-top: 2px;
}

/* カウントダウンアイコン画像 */
.countdown-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
}
.countdown-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.countdown-label {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.95;
  letter-spacing: 0.05em;
}
.countdown-days-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.countdown-icon-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* カウントダウン SP段組み調整 */
@media (max-width: 760px) {
  #countdown-bar { flex-direction: column; }
  .countdown-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .countdown-item:last-child { border-bottom: none; }
  .countdown-item:nth-child(even) {
    background: rgba(0,0,0,0.15);
  }
}

/* 関連サイト バナー表示 */
.related-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.related-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid #e6950a;
  color: #e6950a;
  font-size: 12px;
  text-decoration: none;
  background: #fff;
  min-height: 44px;
}
.related-btn:hover { background: #e6950a; color: #fff; }
.related-btn img {
  max-width: 160px;
  max-height: 50px;
  object-fit: contain;
  display: block;
}

/* カウントダウン内部レイアウト */
.countdown-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.countdown-label {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
}


/* 関連サイトバナー */
.related-banner {
  display: inline-block;
  border: 1px solid #ddd;
  transition: opacity 0.15s;
}
.related-banner:hover { opacity: 0.8; }
.related-banner img { height: 60px; width: auto; display: block; }

/* カウントダウン横並びレイアウト */
.countdown-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.countdown-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.countdown-days-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.countdown-unit-label {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.9;
}

/* 関連サイト バナー表示 */
.related-banner {
  display: inline-block;
  border: 1px solid #ddd;
  text-decoration: none;
  overflow: hidden;
  transition: opacity 0.15s;
}
.related-banner:hover { opacity: 0.8; }
.related-banner img {
  height: var(--banner-height, 60px);
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

/* カウントダウンバー */
#countdown-bar {
  width: 100%;
  display: flex;
  background: #7a6000;
}
.countdown-item {
  flex: 1;
  min-width: 260px;
  padding: 12px 20px 16px;
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.2);
  background: linear-gradient(135deg, #8a6e00 0%, #d4a800 60%, #f0c800 100%);
}
.countdown-item:last-child {
  border-right: none;
  background: linear-gradient(135deg, #7a5e00 0%, #c09000 60%, #e0b400 100%);
}
.countdown-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.countdown-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.countdown-icon-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.countdown-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.countdown-days-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.countdown-num {
  font-size: 64px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.countdown-unit-label {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
@media (max-width: 600px) {
  #countdown-bar { flex-direction: column; }
  .countdown-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .countdown-item:last-child { border-bottom: none; }
  .countdown-num { font-size: 48px; }
  .countdown-icon-img { height: 56px; }
}

/* Googleマップレスポンシブ */
.entry-content iframe,
.entry-content embed,
.entry-content object {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  min-height: 300px;
}
.map-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.map-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* カウントダウン絵文字アイコン */
.countdown-icon-emoji {
  font-size: 56px;
  line-height: 1;
  flex-shrink: 0;
}
.countdown-days-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

/* 競技詳細ページ 2カラム */
.kyogi-detail-wrap { max-width:1020px; margin:0 auto; background:#fff; padding:24px 16px; }
.kyogi-detail-title { font-size:22px; font-weight:900; color:#333; margin-bottom:20px; padding-bottom:10px; border-bottom:3px solid #e8b800; display:flex; align-items:center; gap:10px; }
.kyogi-title-icon { font-size:2rem; }
.kyogi-detail-columns { display:flex; gap:24px; margin-bottom:24px; align-items:flex-start; flex-wrap:wrap; }
.kyogi-detail-left { width:280px; flex-shrink:0; }
.kyogi-detail-right { flex:1; min-width:0; }
.kyogi-detail-thumb img { width:100%; height:auto; border:1px solid #ddd; border-radius:4px; margin-bottom:16px; }
.kyogi-info-table { width:100%; border-collapse:collapse; font-size:14px; }
.kyogi-info-table th { background:#e8b800; color:#222; padding:8px 12px; text-align:left; width:80px; font-weight:700; white-space:nowrap; font-size:13px; }
.kyogi-info-table td { padding:8px 12px; border-bottom:1px solid #e0e0e0; background:#fff; }
.kyogi-section-heading { font-size:14px; font-weight:900; color:#fff; background:#e8b800; padding:6px 12px; margin:20px 0 10px; border-left:4px solid #c0392b; }
.kyogi-map-wrap { position:relative; width:100%; padding-bottom:56.25%; height:0; overflow:hidden; margin-bottom:20px; }
.kyogi-map-wrap iframe { position:absolute; top:0; left:0; width:100%!important; height:100%!important; border:0; }
.kyogi-detail-content { font-size:14px; line-height:1.9; }
.kyogi-detail-content p { margin-bottom:12px; }
.kyogi-detail-content img { max-width:100%; height:auto; }
.kyogi-related-news { margin-top:24px; }
@media (max-width:640px) {
  .kyogi-detail-left { width:100%; }
}

/* 競技一覧アーカイブ */
.kyogi-archive-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; margin-bottom:20px; }
@media (max-width: 900px) { .kyogi-archive-grid { grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 480px) { .kyogi-archive-grid { grid-template-columns:repeat(2, 1fr); } }
.kyogi-archive-card { display:flex; flex-direction:column; text-decoration:none; color:#333; border:1px solid #e0e0e0; border-radius:6px; overflow:hidden; transition:box-shadow 0.2s, background 0.15s; background:#ffffff; }
.kyogi-archive-card:hover { background: #fff8c0 !important; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.kyogi-archive-img { width:100%; height:140px; background:#fff; border-bottom: 1px solid #eee; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.kyogi-archive-img img { width:100%; height:100%; object-fit:contain; background:#f8f8f8; }
.kyogi-archive-icon { font-size:2.5rem; }
.kyogi-archive-body { padding:10px 12px; }
.kyogi-archive-name { font-size:14px; font-weight:700; margin-bottom:6px; }
.kyogi-archive-date, .kyogi-archive-venue { font-size:12px; color:#666; line-height:1.6; }

/* カラムショートコード */
.sc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.sc-col {
  min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .sc-col { width: 100% !important; }
}

/* 管理画面メタボックスのth文字色 */
#kyogi_meta .form-table th,
#slide_meta .form-table th,
#sponsor_meta .form-table th,
#related_meta .form-table th {
  color: #333 !important;
  background: none;
  font-weight: 600;
}

/* 見出しスタイル（テーマデザイン統一） */
.entry-content h1,
.kyogi-detail-content h1,
.page-content h1 {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, #8a6e00 0%, #e8b800 100%);
  padding: 8px 14px;
  margin: 24px 0 12px;
  border-left: 5px solid #c0392b;
}
.entry-content h2,
.kyogi-detail-content h2,
.page-content h2 {
  font-size: 17px;
  font-weight: 900;
  color: #333;
  border-left: 5px solid #e8b800;
  border-bottom: 1px solid #e8e8e8;
  padding: 6px 12px;
  margin: 20px 0 10px;
  background: #fffbee;
}
.entry-content h3,
.kyogi-detail-content h3,
.page-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: #8a6e00;
  border-bottom: 2px solid #e8b800;
  padding: 4px 0 4px 8px;
  margin: 16px 0 8px;
}
.entry-content h4,
.kyogi-detail-content h4,
.page-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  padding: 4px 0 4px 12px;
  margin: 12px 0 6px;
  border-left: 3px solid #c0392b;
}

/* 競技サブ種別 */
.kyogi-sub-type {
  font-size: 11px;
  color: #555;
  background: #f5f5f5;
  border-radius: 3px;
  padding: 1px 5px;
  display: inline-block;
  line-height: 1.5;
  white-space: nowrap;
}

/* ── 競技会場一覧ページ（会場グルーピング） ── */
.kaijo-section { margin-bottom: 28px; }
.kaijo-heading {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, #c0392b 0%, #e6950a 100%);
  padding: 6px 12px;
  margin: 16px 0 10px;
  border-left: 5px solid #d4a017;
  border-radius: 2px;
}

/* ══════════════════════════════════════════
   競技会場一覧ページ
══════════════════════════════════════════ */
.kaijo-list-grid { display: flex; flex-direction: column; gap: 24px; }

.kaijo-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.kaijo-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  border-bottom: 1px solid #eee;
}
.kaijo-card-thumb {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.kaijo-card-icon {
  width: 80px;
  height: 80px;
  font-size: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 4px;
  flex-shrink: 0;
}
.kaijo-card-info { flex: 1; min-width: 0; }
.kaijo-card-name {
  font-size: 16px;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0 0 6px;
  line-height: 1.4;
}
.kaijo-card-address { font-size: 12px; color: #666; margin: 0 0 10px; }
.kaijo-detail-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #c0392b 0%, #e6950a 100%);
  padding: 5px 14px;
  text-decoration: none;
  border-radius: 3px;
}
.kaijo-detail-btn:hover { opacity: 0.85; }
.kaijo-card-kyogi-label {
  font-size: 11px;
  font-weight: 700;
  color: #c0392b;
  background: #fff5f5;
  padding: 6px 16px;
  border-bottom: 1px solid #f0dada;
  letter-spacing: 0.05em;
}
.kaijo-kyogi-grid { padding: 12px 16px 16px; }
.kaijo-no-kyogi { font-size: 12px; color: #999; padding: 12px 16px; }

/* ── 会場個別ページ ── */
.kaijo-single-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.kaijo-single-thumb {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.kaijo-single-icon {
  width: 120px;
  height: 100px;
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 4px;
  flex-shrink: 0;
}
.kaijo-single-name {
  font-size: 22px;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0 0 8px;
}
.kaijo-single-address { font-size: 13px; color: #555; margin: 0; }
.kaijo-access-box { margin: 24px 0; }
.kaijo-map-wrap { margin: 24px 0; }
.kaijo-map-embed iframe {
  width: 100% !important;
  height: 350px !important;
  border: none;
  display: block;
}

@media (max-width: 640px) {
  .kaijo-card-header { flex-direction: column; }
  .kaijo-card-thumb, .kaijo-card-icon { width: 100%; height: 160px; }
  .kaijo-single-header { flex-direction: column; }
  .kaijo-single-thumb { width: 100%; height: 200px; }
}

/* ── スライダー 左右矢印 ── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.slider-arrow:hover { background: rgba(0,0,0,0.6); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }

/* ── スライダー ドットページング ── */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0 4px;
  background: #1a1a1a;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.slider-dot.active { background: #e6950a; border-color: #e6950a; }
