/* Jリーグ マップページ専用スタイル */
.jleague-page {
  --jl-wrap-max: 920px;
  --jl-panel-bg: #ffffff;
  --jl-panel-border: #e4e8f2;
  --jl-panel-shadow: 0 4px 18px rgba(33, 61, 110, 0.08);
  --jl-accent: #2f5597;
  --jl-accent-soft: rgba(47, 85, 151, 0.14);
  --jl-marker-size: 54px;
}

.jleague-wrap {
  max-width: var(--jl-wrap-max);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.jleague-title {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  margin: 0;
  color: #14335f;
}

.jleague-lead {
  margin: 6px 0 0;
  color: #3f4b5d;
  line-height: 1.7;
}

.jleague-controls {
  background: var(--jl-panel-bg);
  border: 1px solid var(--jl-panel-border);
  border-radius: 14px;
  box-shadow: var(--jl-panel-shadow);
  padding: 18px 20px 20px;
  display: grid;
  gap: 12px;
}

.jleague-label {
  font-weight: 600;
  color: #1d3a63;
}

.jleague-selectors {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: end;
}

.jleague-selectors__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jleague-select {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #ccd4e4;
  font-size: 1rem;
  background-color: #f7f8fb;
}

.jleague-select--league {
  max-width: 200px;
}

.jleague-select--team {
  max-width: 420px;
}

.jleague-hint {
  font-size: 0.88rem;
  color: #5c6b84;
  margin-top: 2px;
}

.jleague-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jleague-buttons--secondary {
  padding-top: 8px;
  border-top: 1px dashed rgba(47, 85, 151, 0.18);
}

.jleague-buttons--secondary .btn {
  flex: 1 1 220px;
  min-width: 180px;
}

.jleague-help-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 40, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1100;
}

.jleague-help-modal.is-open {
  display: flex;
}

.jleague-help-modal__dialog {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(20, 43, 90, 0.25);
  display: flex;
  flex-direction: column;
}

.jleague-help-modal__header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(47, 85, 151, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.jleague-help-modal__header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  color: #14335f;
}

.jleague-help-modal__close {
  margin: 0;
  white-space: nowrap;
}

.jleague-help-modal__body {
  padding: 20px 24px 28px;
  display: grid;
  gap: 18px;
}

.jleague-help-modal__body h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #1d3a63;
}

.jleague-help-modal__body ul {
  margin: 0;
  padding-left: 1.2em;
  color: #344357;
  line-height: 1.7;
}

.jleague-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
}

.jleague-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--jl-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.48rem 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.jleague-page .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(47, 85, 151, 0.18);
}

.jleague-page .btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.jleague-page .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.jleague-page .btn.ghost {
  background: #f4f6fb;
  color: #2f4d7a;
  border-color: rgba(47, 85, 151, 0.18);
}
.jleague-page .btn.ghost:disabled {
  background: rgba(229, 235, 247, 0.8);
  color: rgba(82, 102, 140, 0.7);
  border-color: rgba(47, 85, 151, 0.12);
}

.jleague-map {
  background: var(--jl-panel-bg);
  border: 1px solid var(--jl-panel-border);
  border-radius: 20px;
  box-shadow: var(--jl-panel-shadow);
  padding: clamp(20px, 3vw, 28px);
}

.jleague-map__inner {
  position: relative;
  /*width: min(520px, 90vw);*/
  margin: 0 auto;
}

.jleague-map__image {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.9);
}

.jleague-map__markers {
  position: absolute;
  inset: 0;
}

.jleague-marker {
  position: absolute;
  width: var(--jl-marker-size);
  height: var(--jl-marker-size);
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.88), rgba(217, 232, 255, 0.98) 55%, rgba(189, 213, 247, 0.9));
  border: 2px solid rgba(47, 85, 151, 0.85);
  box-shadow: 0 10px 20px rgba(27, 61, 115, 0.18);
  color: #1c2f57;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.jleague-marker:focus-visible {
  outline: 3px solid rgba(255, 198, 10, 0.95);
  outline-offset: 4px;
}

.jleague-marker:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 14px 28px rgba(27, 61, 115, 0.26);
}

.jleague-marker[data-team-region="north"] {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(204, 227, 255, 0.95) 60%, rgba(171, 209, 255, 0.92));
}

.jleague-marker[data-team-region="central"] {
  background: radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.9), rgba(220, 231, 255, 0.95) 62%, rgba(199, 214, 247, 0.9));
}

.jleague-marker[data-team-region="west"] {
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(220, 241, 226, 0.95) 60%, rgba(193, 230, 205, 0.92));
  border-color: rgba(40, 122, 89, 0.68);
  color: #205540;
}

.jleague-marker[data-team-region="south"] {
  background: radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.92), rgba(255, 236, 210, 0.94) 58%, rgba(255, 216, 168, 0.9));
  border-color: rgba(191, 126, 32, 0.72);
  color: #774712;
}

.jleague-marker.is-highlight {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 16px 30px rgba(226, 156, 27, 0.36);
  border-color: rgba(235, 177, 21, 0.95);
}

.jleague-marker.is-dragging {
  cursor: grabbing;
  transition: none;
  box-shadow: 0 18px 32px rgba(27, 61, 115, 0.28);
}

.jleague-summary {
  background: var(--jl-panel-bg);
  border: 1px solid var(--jl-panel-border);
  border-radius: 14px;
  padding: 18px 20px 24px;
  box-shadow: var(--jl-panel-shadow);
}

.jleague-summary__header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: #17335b;
}

.jleague-summary__header p {
  margin: 6px 0 0;
  color: #536279;
  font-size: 0.9rem;
}

.jleague-summary__list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.jleague-summary__empty {
  grid-column: 1 / -1;
  background: rgba(47, 85, 151, 0.05);
  border: 1px dashed rgba(47, 85, 151, 0.3);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  text-align: center;
  color: #546283;
  font-size: 0.92rem;
}

.jleague-summary__list button {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(47, 85, 151, 0.25);
  background: rgba(47, 85, 151, 0.08);
  color: #1f3661;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.jleague-summary__list button:hover {
  transform: translateY(-1px);
  background: rgba(47, 85, 151, 0.16);
  box-shadow: 0 8px 16px rgba(47, 85, 151, 0.18);
}

.jleague-summary__list button:focus-visible {
  outline: 3px solid rgba(255, 198, 10, 0.95);
  outline-offset: 2px;
}

.jleague-summary__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(47, 85, 151, 0.85);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.jleague-summary__club {
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: left;
}

@media (max-width: 720px) {
  .jleague-controls {
    padding: 16px;
  }
  .jleague-selectors {
    grid-template-columns: 1fr;
  }
  .jleague-buttons {
    gap: 6px;
  }
  .jleague-page .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .jleague-map {
    padding: 16px;
  }
  .jleague-summary__list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .jleague-summary__badge {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }
  .jleague-summary__club {
    font-size: 0.88rem;
  }
}
