/* =========================
   マップページ
========================= */

#map {
  width: 100%;
  height: 68vh;
  min-height: 400px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200);
  margin-top: 20px;
  z-index: 1;
  overflow: hidden;
}

.filter-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-grid select,
.filter-grid input[type="text"] {
  border-radius: var(--radius-md);
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  outline: none;
  font-family: var(--font-ja);
  font-size: 14px;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s;
}

.filter-grid select:focus,
.filter-grid input[type="text"]:focus { border-color: var(--black); }

.filter-grid .btn-apply   { background: var(--black);   color: var(--white); width:auto; padding:10px 18px; border-radius:var(--radius-md); border:none; font-weight:700; font-size:13px; cursor:pointer; }
.filter-grid .btn-reset   { background: var(--gray-600); color: var(--white); width:auto; padding:10px 18px; border-radius:var(--radius-md); border:none; font-weight:700; font-size:13px; cursor:pointer; }
.filter-grid .btn-location{ background: var(--accent);  color: var(--white); width:auto; padding:10px 18px; border-radius:var(--radius-md); border:none; font-weight:700; font-size:13px; cursor:pointer; }

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  min-height: 44px;
}

.filter-checkbox-label input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--black); }

#count-badge { font-size: 11px; font-weight: 700; color: var(--gray-400); margin-top: 8px; }

/* Leaflet ポップアップ */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-lg) !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1.5px solid var(--gray-200) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: min(560px, calc(100vw - 60px)) !important;
  max-height: 72vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.leaflet-popup-content:hover { cursor: auto; }

.leaflet-popup-close-button {
  font-size: 20px !important;
  width: 32px !important;
  height: 32px !important;
  top: 8px !important;
  right: 10px !important;
  color: var(--gray-600) !important;
  background: rgba(255,255,255,0.95) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}

.card-marker {
  background: white;
  border: 2px solid white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  overflow: hidden;
  transition: transform 0.2s;
}

.card-marker img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-marker:hover { transform: scale(1.1) translateY(-4px); z-index: 1000 !important; }

@media (max-width: 600px) {
  .popup-flex { flex-direction: column !important; }
  .popup-left { width: 100% !important; border-right: none !important; border-bottom: 1px solid var(--gray-100); padding: 16px !important; }
  .popup-left img { width: 100px !important; }
}


/* =========================
   ルート作成ページ
========================= */

.route-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .route-container { grid-template-columns: 1fr; }
}

.modern-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-ja);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
}

.modern-input:focus { border-color: var(--black); }
.modern-input::placeholder { color: var(--gray-400); font-size: 13px; }

input[type="time"].modern-input { min-width: 0; }

.input-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.transport-selector {
  display: flex;
  gap: 8px;
}

.transport-selector label {
  flex: 1;
  padding: 10px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--gray-200);
  transition: 0.2s;
}

.transport-selector input { display: none; }

.transport-selector label:has(input:checked) {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* 選択中の経由地リスト */
.waypoint-list {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  max-height: 360px;
  overflow-y: auto;
  margin: 12px 0;
}

.waypoint-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--white);
}

.waypoint-item:last-child { border-bottom: none; }

.waypoint-thumb {
  width: 40px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.waypoint-info { flex: 1; min-width: 0; }

.waypoint-location {
  font-size: 10px;
  color: var(--accent);
  font-weight: 700;
  display: block;
}

.waypoint-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-remove {
  color: var(--gray-400);
  background: var(--gray-100);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: 0.2s;
}

.btn-remove:hover { background: #fee2e2; color: var(--danger); }

.btn-primary {
  background: var(--black);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* ルート計算結果エリア */
#route-result-area {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
  #route-result-area { padding: 14px; }
}

.route-title {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-100);
  color: var(--black);
}

.total-summary {
  background: var(--black);
  color: var(--white);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-around;
  text-align: center;
  gap: 8px;
  flex-wrap: wrap;
}

.total-summary div span {
  display: block;
  font-size: 10px;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}

.total-summary div strong {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 900;
}

.route-step { display: flex; gap: 12px; margin-bottom: 8px; }

.step-num {
  background: var(--black);
  color: var(--white);
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.step-info { flex: 1; min-width: 0; }

.route-gap {
  margin: 2px 0 10px 12px;
  padding-left: 28px;
  border-left: 2px solid var(--gray-200);
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 600;
  height: 28px;
  display: flex;
  align-items: center;
  font-family: var(--font-en);
}

/* マスターリスト */
.master-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.master-item:hover {
  border-color: var(--black);
  box-shadow: var(--shadow-sm);
}

.master-item.selected {
  background: var(--gray-50);
  border-color: var(--black);
}

.master-item-img {
  width: 52px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  flex-shrink: 0;
  background: var(--gray-100);
}

.master-item-body { flex: 1; min-width: 0; }

.master-item-meta {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.master-item-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.4;
  margin-top: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.master-item-icon {
  font-size: 18px;
  color: var(--gray-200);
  flex-shrink: 0;
  transition: color 0.15s;
}

.master-item.selected .master-item-icon { color: var(--black); }


/* =========================
   都道府県ページ
========================= */

.pref-list-group {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pref-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  text-decoration: none;
  color: var(--black);
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s;
}

.pref-list-item:last-child { border-bottom: none; }

.pref-list-item:hover { background: var(--gray-50); }

.pref-list-item__name {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}

.pref-list-item__count {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
}

.pref-list-item__arrow {
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1;
}


/* =========================
   TOPページ — ヒーロー
========================= */

.hero {
  position: relative;
  height: min(540px, 75vw);
  min-height: 280px;
  overflow: hidden;
  background: var(--black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  opacity: 0.35;
  pointer-events: none;
}

.hero__bg-card {
  width: calc(20% - 4px);
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

.hero__bg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  max-width: 680px;
}

.hero__eyebrow {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.hero__title {
  font-family: var(--font-en);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 16px;
}

.hero__sub {
  font-size: clamp(13px, 2vw, 16px);
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.2s;
}

.hero__btn--primary {
  background: var(--white);
  color: var(--black);
}
.hero__btn--primary:hover { background: var(--gray-100); }

.hero__btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.hero__btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

@media (max-width: 640px) {
  .hero__content { padding: 0 24px; }
}

@media (max-width: 380px) {
  .hero__btns { flex-direction: column; align-items: flex-start; }
  .hero__btn { width: 100%; justify-content: center; }
}


/* =========================
   TOPページ — セクション
========================= */

.top-section {
  margin-bottom: 64px;
}

.top-section__header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--black);
}

.top-section__title {
  font-family: var(--font-en);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
}


/* =========================
   TOPページ — NEWS
========================= */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

@media (max-width: 480px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: var(--black);
}

.news-card:hover {
  border-color: var(--black);
  box-shadow: var(--shadow-sm);
}

.news-card__img {
  width: 52px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  flex-shrink: 0;
  background: var(--gray-100);
}

.news-card__body   { flex: 1; min-width: 0; }

.news-card__date {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.news-card__meta {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.news-card__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  overflow-wrap: anywhere;
  line-height: 1.4;
}


/* =========================
   TOPページ — Features
========================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.feature-card:hover {
  border-color: var(--black);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card__icon  { font-size: 28px; margin-bottom: 12px; }
.feature-card__title { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.feature-card__desc  { font-size: 12px; color: var(--gray-600); line-height: 1.5; }


/* =========================
   弾数一覧ページ
========================= */

.series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

@media (max-width: 480px) {
  .series-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.series-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.series-card:hover {
  border-color: var(--black);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.series-card__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-100);
  aspect-ratio: 3/2;
  overflow: hidden;
}

.series-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.series-card__body  { padding: 14px 12px; }
.series-card__title { font-size: 16px; font-weight: 900; margin-bottom: 4px; }
.series-card__count { font-family: var(--font-en); font-size: 11px; font-weight: 700; color: var(--gray-400); }


/* =========================
   カードサムネイルグリッド
========================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
}

.card-thumb {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card-thumb:hover {
  border-color: var(--black);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-thumb__img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-100);
}

.card-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.card-thumb:hover .card-thumb__img { transform: scale(1.04); }

.card-thumb__img--placeholder { background: var(--gray-200); }

.card-thumb__body {
  padding: 10px;
}

.card-thumb__meta {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
  margin-bottom: 2px;
}

.card-thumb__code {
  font-size: 12px;
  font-weight: 800;
  color: var(--black);
}

.card-thumb__updated {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  color: var(--gray-400);
  margin-top: 4px;
}


/* =========================
   カード詳細ページ
========================= */

.detail-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .detail-hero { grid-template-columns: 1fr; gap: 24px; }
  .detail-hero__img-wrap { max-width: 220px; margin: 0 auto; }
}

.detail-hero__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  aspect-ratio: 3/4;
}

.detail-hero__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.detail-hero__img--placeholder { background: var(--gray-200); }

.detail-hero__badge { margin-bottom: 12px; }

.detail-hero__title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

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

.detail-table th {
  width: 110px;
  padding: 10px 12px 10px 0;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
  white-space: nowrap;
}

.detail-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  color: var(--black);
  font-weight: 600;
  vertical-align: top;
  word-break: break-word;
}

/* 配布場所リスト */
.detail-spots-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-spot {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}

.detail-spot:hover { border-color: var(--black); }

.detail-spot__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.detail-spot__num {
  width: 28px;
  height: 28px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.detail-spot__name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.detail-spot__body {
  padding: 16px;
  font-size: 13px;
}


/* =========================
   カードリスト形式 (cards.html)
========================= */

.card-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.15s, background 0.15s;
}

.card-list-item:hover {
  border-color: var(--black);
  background: var(--gray-50);
}

.card-list-item__img-wrap {
  width: 48px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}

.card-list-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-list-item__img--placeholder { background: var(--gray-200); }

.card-list-item__body { flex: 1; min-width: 0; }

.card-list-item__meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.card-list-item__code {
  font-size: 14px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}

.card-list-item__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-list-item__spots {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
}

.card-list-item__updated {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
}

.card-list-item__arrow {
  font-size: 20px;
  color: var(--gray-300);
  flex-shrink: 0;
  font-family: var(--font-en);
  line-height: 1;
}


/* =========================
   アコーディオン (card-detail.html)
========================= */

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.accordion:has(.accordion__trigger[aria-expanded="true"]) {
  border-color: var(--black);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-50);
  border: none;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-ja);
  color: var(--black);
  transition: background 0.15s;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 700;
}

.accordion__trigger:hover { background: var(--gray-100); }

.accordion__num {
  width: 26px;
  height: 26px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.accordion__name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.accordion__icon {
  font-size: 18px;
  font-weight: 400;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: transform 0.2s;
  font-family: var(--font-en);
}

.accordion__body {
  padding: 16px;
  font-size: 13px;
  border-top: 1px solid var(--gray-100);
}


/* =========================
   利用規約ページ
========================= */

.terms-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.terms-section {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-200);
}

.terms-section:last-child { border-bottom: none; }

.terms-section__title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--black);
}

.terms-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-800);
  margin-bottom: 12px;
}

.terms-section p:last-child { margin-bottom: 0; }

.terms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-list li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-800);
  padding-left: 16px;
  position: relative;
}

.terms-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gray-400);
}


/* =========================
   NEWSカード（1行タイトル・間隔統一）
========================= */

.news-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 6px;
}

.news-card__row {
  margin-bottom: 4px;
}

.news-card__updated {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-en);
}

/* 旧スタイルを上書き */

/* NEWSグリッドの縦間隔を統一 */
.news-grid {
  align-items: start;
}


/* =========================
   フッター
========================= */

.site-footer {
  background: var(--black);
  color: var(--white);
  margin-top: 80px;
}

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

/* フッターSNS — ヘッダーと同じカラーボタン型 */
.footer-sns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.footer-sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.footer-sns-link:hover { opacity: 0.85; transform: translateY(-2px); }
.footer-sns-link svg   { width: 20px; height: 20px; fill: white; display: block; }


.site-footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.site-footer__brand {}

.site-footer__tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: 8px 0 20px;
}

.site-footer__nav-group {
  display: flex;
  gap: 32px;
}

@media (max-width: 400px) {
  .site-footer__nav-group { gap: 20px; }
}

.site-footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__nav-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2px;
}

.site-footer__nav-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
  line-height: 1;
}

.site-footer__nav-link:hover { color: var(--white); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}


/* =========================
   運営者情報ページ (about.html)
========================= */

.about-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 700px) {
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-profile { position: static; }
}

.about-profile {
  text-align: center;
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  background: var(--gray-100);
  border: 3px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-avatar__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.about-name {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}

.about-handle {
  font-size: 14px;
  color: var(--gray-400);
  font-family: var(--font-en);
  margin-bottom: 20px;
}

.about-sns {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--gray-200);
}

.about-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.about-section__title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--black);
}

.about-section__text {
  font-size: 16px;
  line-height: 1.9;
  color: var(--gray-800);
}

.about-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  transition: opacity 0.2s;
}

.about-link:hover { opacity: 0.7; }

/* about stats */
.about-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 16px 0 20px;
}

.about-stat {
  text-align: center;
  padding: 12px 20px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  flex: 1;
}

.about-stat__num {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.2;
}

.about-stat__num span {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-400);
}

.about-stat__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

/* フッターロゴ+アイコン横並び */
.site-footer__logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.site-footer__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

/* © 中央配置 */
.site-footer__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* =========================
   表示切替ボタン
========================= */

.view-toggle {
  display: inline-flex;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-toggle__btn {
  width: auto;
  padding: 8px 16px;
  background: var(--white);
  color: var(--gray-400);
  font-family: var(--font-ja);
  font-size: 12px;
  font-weight: 700;
  border: none;
  border-right: 1.5px solid var(--gray-200);
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
}

.view-toggle__btn:last-child { border-right: none; }

.view-toggle__btn.active {
  background: var(--black);
  color: var(--white);
}

/* =========================
   カードグリッド表示 (cards.html grid mode)
========================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.card-grid-item {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.card-grid-item:hover {
  border-color: var(--black);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.card-grid-item__img-wrap {
  aspect-ratio: 1/1;
  background: var(--gray-100);
  overflow: hidden;
}

.card-grid-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-grid-item__img--placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-100);
}

.card-grid-item__body {
  padding: 10px 12px 12px;
}

.card-grid-item__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 2px;
}

.card-grid-item__code {
  font-size: 14px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}

.card-grid-item__badge { line-height: 1; }

/* =========================
   関連リンク (card-detail.html)
========================= */

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.related-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--black);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.related-link:hover {
  border-color: var(--black);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.related-link__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  text-transform: uppercase;
}

.related-link__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}

/* =========================
   カード詳細h1サイズ
========================= */

.detail-hero__h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

/* =========================
   検索統合ページ (search.html)
========================= */

.search-page {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--nav-h));
}

.search-page__breadcrumb {
  padding: 16px 24px 0;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

.search-page__breadcrumb .breadcrumb { margin-bottom: 12px; }



/* モバイルタブ */
.search-tabs {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.search-tab {
  flex: 1;
  width: auto;
  padding: 14px;
  background: transparent;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  transition: all 0.15s;
}

.search-tab.active {
  color: var(--black);
  border-bottom-color: var(--black);
  background: var(--gray-50);
  transform: none;
}

/* レイアウト */
.search-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

.search-left {
  flex: 0 0 420px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--gray-200);
  background: var(--white);
  overflow: hidden;
}

.search-right {
  flex: 1;
  position: relative;
  min-width: 0;
}

#map {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  margin: 0;
}

/* フィルター部 */
.search-filters {
  padding: 24px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  flex-shrink: 0;
  max-height: 50%;
  overflow-y: auto;
}

.search-mode {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.search-mode .radio-btn {
  min-width: 0;
  padding: 10px 8px;
  font-size: 13px;
  text-align: center;
  justify-content: center;
}

.search-mode .radio-btn input { display: none; }

/* 結果リスト */
.search-results {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.search-results__header {
  padding: 12px 24px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-600);
  flex-shrink: 0;
}

.search-results__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 16px;
}

/* 結果アイテム */
.result-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.result-item:hover,
.result-item.active {
  border-color: var(--black);
  box-shadow: var(--shadow-sm);
}

.result-item.active {
  background: var(--gray-50);
}

.result-item__img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  flex-shrink: 0;
}

.result-item__body { flex: 1; min-width: 0; }

.result-item__meta {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.result-item__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.result-item__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.result-item__dist {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
}

.result-item__link {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.result-item__link:hover { text-decoration: underline; }

/* 現在地ボタン */
.map-locate-btn {
  position: absolute;
  bottom: 20px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--gray-200);
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  padding: 0;
}

.map-locate-btn:hover {
  background: var(--gray-50);
  transform: scale(1.05);
}

/* マップ上のカードマーカー */
.card-marker-wrap { background: transparent !important; border: none !important; }
.card-marker {
  border: 2px solid white;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  overflow: hidden;
  background: white;
}
.card-marker img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* レスポンシブ */
@media (max-width: 860px) {
  .search-tabs { display: flex; }

  .search-layout { flex-direction: column; }

  .search-left {
    flex: 1;
    border-right: none;
    display: block;
  }

  .search-right {
    display: none;
    flex: 1;
    height: calc(100dvh - var(--nav-h) - 52px);
  }

  /* 初期状態: フィルター表示、リスト非表示 */
  .search-results {
    display: none;
    flex: 1;
    height: calc(100dvh - var(--nav-h) - 52px);
    overflow: hidden;
  }

  .search-results__list {
    height: 100%;
    max-height: none;
  }

  .search-filters {
    max-height: none;
    overflow-y: auto;
    height: calc(100dvh - var(--nav-h) - 52px);
  }
}

/* ヒーローアイコン */
.hero__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 20px;
  border: 2px solid rgba(255,255,255,0.2);
}

@media (max-width: 640px) {
  .hero__icon { width: 48px; height: 48px; border-radius: 12px; }
}
/* ===== マーカークラスター ===== */
.cluster-icon-wrap {
  background: transparent !important;
  border: none !important;
}
.cluster-icon {
  background: #2563eb;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.cluster-icon:hover {
  transform: scale(1.12);
}
