/* ===================================================================
   FULL COURT GUNMA - 群馬特化コンポーネント
   =================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- ロゴの GUNMA バッジ --- */
.logo-region {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: var(--orange);
  border-radius: 4px;
  vertical-align: middle;
}
.footer-logo .accent + span,
.footer-logo { letter-spacing: 0.01em; }

/* --- パンくず --- */
.breadcrumb {
  padding: 96px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; color: var(--gray); }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb [aria-current] { color: var(--text-muted); }
.breadcrumb + .page-hero { padding-top: 24px; }

/* --- ヒーロー補足 --- */
.hero-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

/* --- 群馬マップ --- */
#gunma-map { width: 100%; height: auto; max-height: 520px; display: block; }
.gunma-area { color: var(--navy-light); cursor: pointer; transition: var(--transition); outline: none; }
.gunma-area polygon {
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linejoin: round;
  transition: fill 0.25s ease, opacity 0.25s ease;
}
.gunma-area:hover { color: var(--navy-mid); }
.gunma-area.active { color: var(--orange); }
.gunma-area.dimmed { opacity: 0.25; }
.gunma-area:focus-visible polygon { stroke: var(--orange); stroke-width: 4; }
.area-label {
  fill: var(--white);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 26px;
  font-weight: 700;
  pointer-events: none;
  letter-spacing: 0.1em;
}
.gunma-area.active .area-label { fill: var(--navy); }
.city-dots circle { fill: var(--white); opacity: 0.85; pointer-events: none; }
.city-dots text {
  fill: var(--gray-light);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-anchor: middle;
  pointer-events: none;
}

/* --- マップパネル --- */
.panel-area-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 12px 0 16px;
}
.panel-city-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.panel-city-chips li {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-light);
  background: var(--navy);
  border: 1px solid var(--card-border);
  border-radius: 999px;
}

/* --- 空状態 --- */
.empty-state {
  grid-column: 1 / -1;
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 32px;
  text-align: center;
  background: var(--card-bg);
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
}
.empty-icon { font-size: 44px; margin-bottom: 18px; }
.empty-state h1,
.empty-state h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.5;
}
.empty-state p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.empty-state .empty-sub {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--gray);
}
.nf-links {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: center;
  margin-top: 28px;
  font-size: 13px;
}
.nf-links a { color: var(--gray); border-bottom: 1px solid transparent; }
.nf-links a:hover { color: var(--orange); border-bottom-color: var(--orange); }

/* --- 立ち上げ期セクション --- */
.launch-section { padding: 90px 0; background: var(--navy-light); }
.launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.launch-card {
  padding: 32px 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.launch-card:hover { border-color: rgba(232,101,26,0.4); transform: translateY(-3px); }
.launch-num {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 14px;
}
.launch-card h3 { font-size: 17px; color: var(--white); margin-bottom: 12px; }
.launch-card p { font-size: 14px; line-height: 1.9; color: var(--text-muted); }
.launch-cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
  margin-top: 44px;
}

/* --- エリア解説（散文） --- */
.about-area-section { padding: 90px 0; }
.area-prose {
  max-width: 820px;
  margin: 40px auto 0;
}
.area-prose p {
  font-size: 15px;
  line-height: 2.05;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.area-prose strong { color: var(--white); font-weight: 700; }
.area-prose a { color: var(--orange); border-bottom: 1px solid rgba(232,101,26,0.4); }

/* --- エリアガイド（カード） --- */
.area-guide { margin-top: 72px; }
.area-guide > h2 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
}
.area-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.area-guide-card {
  padding: 26px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.area-guide-card h3 { font-size: 16px; color: var(--orange); margin-bottom: 10px; }
.area-guide-card p { font-size: 13px; line-height: 1.85; color: var(--gray-light); }
.area-guide-card .ag-note { color: var(--text-muted); margin-top: 10px; }

/* --- スポンサー誘導 --- */
.sponsor-teaser { padding: 0 0 90px; }
.sponsor-teaser-card {
  display: flex; flex-wrap: wrap; gap: 26px;
  align-items: center; justify-content: space-between;
  padding: 38px 40px;
  background: linear-gradient(120deg, var(--card-bg), var(--navy-light));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}
.sponsor-teaser-card h2 { font-size: 20px; color: var(--white); margin-bottom: 10px; }
.sponsor-teaser-card p { font-size: 14px; line-height: 1.85; color: var(--text-muted); max-width: 640px; }

/* --- 掲示板レイアウト --- */
.board-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.board-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.board-search-input {
  flex: 1; min-width: 200px;
  padding: 13px 18px;
  font-family: inherit; font-size: 14px;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.board-search-input:focus { outline: none; border-color: var(--orange); }
.sidebar-list { display: flex; flex-direction: column; gap: 11px; }
.sidebar-list li { font-size: 13px; line-height: 1.75; color: var(--text-muted); padding-left: 15px; position: relative; }
.sidebar-list li::before { content: '・'; position: absolute; left: 0; color: var(--orange); }
.sidebar-list a { color: var(--orange); }
.sidebar-card p { font-size: 13px; line-height: 1.8; color: var(--text-muted); margin-bottom: 14px; }

/* --- 広告掲載ページ --- */
.sp-block { margin-bottom: 72px; }
.sp-block > h2 {
  font-size: 24px;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.sp-lead { font-size: 14px; line-height: 1.95; color: var(--text-muted); margin-bottom: 30px; }
.sp-note { margin-top: 20px; font-size: 12px; color: var(--gray); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.plan-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}
.plan-card.featured-plan { border-color: var(--orange); box-shadow: 0 0 0 1px rgba(232,101,26,0.35); }
.plan-badge {
  position: absolute; top: -12px; left: 28px;
  padding: 4px 14px;
  font-size: 11px; font-weight: 700;
  color: var(--navy); background: var(--orange);
  border-radius: 999px;
}
.plan-name { font-size: 15px; font-weight: 700; color: var(--gray-light); margin-bottom: 10px; }
.plan-price {
  font-family: 'Oswald', sans-serif;
  font-size: 34px; font-weight: 700;
  color: var(--white);
  margin-bottom: 22px;
}
.plan-price span { font-family: 'Noto Sans JP', sans-serif; font-size: 13px; font-weight: 400; color: var(--gray); margin-left: 4px; }
.plan-list { flex: 1; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.plan-list li { font-size: 13px; line-height: 1.75; color: var(--text-muted); padding-left: 22px; position: relative; }
.plan-list li::before { content: '✓'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

.sp-honest {
  padding: 30px 32px;
  background: var(--navy-light);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.sp-honest p { font-size: 14px; line-height: 2; color: var(--text-muted); }
.sp-honest p + p { margin-top: 16px; }

.sp-deny { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sp-deny li { font-size: 13px; line-height: 1.8; color: var(--text-muted); padding-left: 22px; position: relative; }
.sp-deny li::before { content: '×'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }
.sp-block > p { font-size: 14px; line-height: 1.95; color: var(--text-muted); }

.cta-inline {
  padding: 40px;
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
}
.cta-inline h2 { border: none; display: block; font-size: 21px; color: var(--white); margin-bottom: 12px; padding: 0; }
.cta-inline p { font-size: 14px; line-height: 1.9; color: var(--text-muted); margin-bottom: 24px; }

/* --- FAQ --- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 22px 26px;
  font-size: 15px; font-weight: 700;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 54px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; color: var(--orange); font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--card-border); }
.faq-answer { padding: 20px 26px 24px; }
.faq-answer p { font-size: 14px; line-height: 1.95; color: var(--text-muted); }

/* --- 規約・About 本文 --- */
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 {
  font-size: 19px; color: var(--white);
  margin: 42px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font-size: 14px; line-height: 2.05; color: var(--text-muted); margin-bottom: 16px; }
.legal-body a { color: var(--orange); border-bottom: 1px solid rgba(232,101,26,0.4); }
.legal-body .updated { margin-top: 40px; font-size: 12px; color: var(--gray); }
.legal-body .btn-hero-primary { border-bottom: none; }

/* --- Cookie バナー --- */
.cookie-banner {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999;
  align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 16px;
  padding: 16px 24px;
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  border-top: 2px solid var(--orange);
  font-size: 13px;
  color: var(--text);
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { margin: 0; max-width: 760px; line-height: 1.7; }
.cookie-banner a { color: var(--orange); text-decoration: underline; }
.cookie-banner button {
  padding: 9px 24px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--navy); background: var(--orange);
  border: none; border-radius: 6px; cursor: pointer;
  white-space: nowrap;
}
.cookie-banner button:hover { background: var(--orange-light); }

/* --- モーション設定の尊重 --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --- レスポンシブ --- */
@media (max-width: 900px) {
  .board-layout { grid-template-columns: 1fr; }
  .sponsor-teaser-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .breadcrumb { padding-top: 84px; font-size: 11px; }
  .logo-region { font-size: 9px; padding: 1px 5px; margin-left: 5px; }
  .area-label { font-size: 22px; }
  .city-dots text { font-size: 15px; }
  .empty-state { padding: 40px 22px; }
  .launch-section, .about-area-section { padding: 60px 0; }
  .sp-block { margin-bottom: 52px; }
  .sp-block > h2 { font-size: 20px; }
  .plan-price { font-size: 28px; }
  .cta-inline { padding: 28px 20px; }
  .faq-item summary { padding: 18px 46px 18px 20px; font-size: 14px; }
  .faq-answer { padding: 16px 20px 20px; }
  .cookie-banner { font-size: 12px; padding: 14px 16px; }
}

/* --- 固定ナビ分の余白（page-hero を持たないページ） --- */
main > .page-body:first-child { padding-top: 120px; }

/* --- [hidden] の確実な適用 --- */
[hidden] { display: none !important; }

/* --- 未定義だったクラスの補完 --- */
.logo-text { display: inline-flex; align-items: center; white-space: nowrap; }

.mode-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 28px;
  padding: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  width: fit-content;
}

.board-main { min-width: 0; }

.panel-result { display: none; }
.panel-city-list { margin-top: 4px; }

.news-category.news { background: rgba(232,101,26,0.16); color: var(--orange-light); }

.legal-page { max-width: 820px; margin: 0 auto; padding: 40px 24px 90px; }
.legal-page h1 { font-size: 26px; color: var(--white); margin-bottom: 10px; }
.legal-page h2 {
  font-size: 18px; color: var(--white);
  margin: 38px 0 14px; padding-left: 14px;
  border-left: 3px solid var(--orange);
}
.legal-page p, .legal-page li { font-size: 14px; line-height: 2; color: var(--text-muted); }
.legal-page ul { margin: 0 0 18px 4px; }
.legal-page li { padding-left: 16px; position: relative; margin-bottom: 6px; }
.legal-page li::before { content: '・'; position: absolute; left: 0; color: var(--orange); }
.legal-page a { color: var(--orange); border-bottom: 1px solid rgba(232,101,26,0.4); }
.legal-page .updated { font-size: 12px; color: var(--gray); margin-bottom: 28px; }

/* ===================================================================
   日本語の折り返し制御
   =================================================================== */

/* 意味の切れ目でのみ改行させるユーティリティ */
.nb { display: inline-block; }

/* 見出しの行送り。ht-line で1行を明示する */
.ht-line { display: block; }

/* 行頭に句読点や閉じ括弧が来ないようにする */
h1, h2, h3, h4, p, li, summary, .hero-sub, .section-sub {
  line-break: strict;
  overflow-wrap: break-word;
}

/* --- ヒーロー：文字が大きすぎて折り返していたのを調整 --- */
.hero-content { max-width: 860px; }

.hero-title {
  font-size: clamp(32px, 5.2vw, 62px);
  letter-spacing: 0;
  line-height: 1.18;
}
.hero-title .ht-line + .ht-line { margin-top: 2px; }

.hero-sub {
  font-size: 17px;
  line-height: 1.85;
}

.hero-note { line-height: 1.7; }

@media (max-width: 900px) {
  .hero-content { max-width: 100%; }
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(28px, 8.2vw, 40px); line-height: 1.22; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 16px; }
}

/* --- セクション見出しの余白調整 --- */
.section-title { line-height: 1.3; letter-spacing: 0; }
.section-sub { line-height: 1.8; }
.page-title { line-height: 1.25; letter-spacing: 0; }
.cta-card h2 { line-height: 1.3; letter-spacing: 0; }

/* --- サブページのリード文 --- */
.page-hero p { line-height: 1.85; }
.page-hero p .nb + .nb { margin-left: 0; }
