/* =====================================================
   ガチャガチャどこ — Yahoo Finance-inspired design
   ===================================================== */

:root {
  --gh-bg:       #f0f2f5;
  --gh-surface:  #ffffff;
  --gh-header:   #1a1d3a;
  --gh-subnav:   #242850;
  --gh-accent:   #e94560;
  --gh-accent2:  #ff8c42;
  --gh-link:     #1d4ed8;
  --gh-text:     #111827;
  --gh-muted:    #6b7280;
  --gh-border:   #e5e7eb;
  --gh-up:       #16a34a;
  --gh-down:     #dc2626;
  --gh-hot-bg:   #fef2f2;
  --gh-new-bg:   #eff6ff;
  --gh-rating:   #f59e0b;
  --gh-shadow:   0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --gh-shadow-md:0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --gh-radius:   8px;
  --gh-header-h: 56px;
  --gh-subnav-h: 40px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gh-bg);
  color: var(--gh-text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--gh-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }

.gh-container {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

/* ── Header ── */
.gh-header { position: sticky; top: 0; z-index: 100; }

.gh-header__top {
  background: var(--gh-header);
  height: var(--gh-header-h);
}
.gh-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.gh-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.gh-logo__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gh-accent);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-family: Arial, sans-serif;
}
.gh-logo__text {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.gh-logo__text em { font-style: normal; color: var(--gh-accent); }

/* Search bar */
.gh-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  border-radius: var(--gh-radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
}
.gh-search__input {
  flex: 1;
  padding: 8px 14px;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 13px;
  outline: none;
}
.gh-search__input::placeholder { color: rgba(255,255,255,.5); }
.gh-search__input:focus { background: rgba(255,255,255,.18); }
.gh-search__btn {
  padding: 8px 14px;
  border: none;
  background: var(--gh-accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.gh-search__btn:hover { background: #c73550; }

/* Header nav (ログイン/無料登録) — 現状は非表示。アカウント機能を作るときに
   この display:none を外せば復活します（マークアップは各ページに残置）。 */
.gh-header__nav {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.gh-header__nav a {
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.gh-header__nav a:hover { color: #fff; }

/* Hamburger */
.gh-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.gh-hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .2s;
}

/* Sub nav */
.gh-subnav {
  background: var(--gh-subnav);
  height: var(--gh-subnav-h);
}
.gh-nav-tabs {
  height: 100%;
  display: flex;
  align-items: stretch;
}
.gh-nav-tabs a {
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.gh-nav-tabs a:hover { color: #fff; }
.gh-nav-tabs a.active {
  color: #fff;
  border-bottom-color: var(--gh-accent);
}

/* ── Ticker bar ── */
.gh-ticker-bar {
  background: #fff;
  border-bottom: 1px solid var(--gh-border);
  height: 36px;
}
.gh-ticker-bar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.gh-ticker-bar__label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--gh-accent);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .05em;
}
.gh-ticker-scroll { flex: 1; overflow: hidden; }
.gh-ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.gh-ticker-track:hover { animation-play-state: paused; }

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

.gh-ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--gh-text);
  white-space: nowrap;
  text-decoration: none;
}
.gh-ticker-item:hover { color: var(--gh-link); text-decoration: none; }
.gh-ticker-item::before { content: "｜"; color: var(--gh-border); margin-right: 20px; }
.gh-ticker-item__star { color: var(--gh-rating); }
.gh-ticker-item em { font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.gh-ticker-item--hot em { background: var(--gh-hot-bg); color: var(--gh-down); }
.gh-ticker-item--new em { background: var(--gh-new-bg); color: var(--gh-link); }

/* ── Main layout ── */
.gh-main {
  padding: 24px 0 48px;
}
.gh-main__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
/* Allow grid columns to shrink below content min-width so inner
   overflow-x containers (wide tables) can scroll instead of blowing
   out the page width. */
.gh-main__content,
.gh-detail-content { min-width: 0; }
.gh-main--detail { padding-top: 16px; }

/* ── Summary bar (like index cards) ── */
.gh-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.gh-summary-card {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 14px 18px;
  box-shadow: var(--gh-shadow);
}
.gh-summary-card__label {
  display: block;
  font-size: 11px;
  color: var(--gh-muted);
  margin-bottom: 4px;
}
.gh-summary-card__value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.gh-summary-card__change {
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--gh-muted);
}

/* ── Sections ── */
.gh-section {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--gh-shadow);
}
.gh-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.gh-section__title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -.01em;
}
.gh-section__sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--gh-muted);
  margin-left: 6px;
}
.gh-section__more {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Spot grid (featured cards) ── */
.gh-spot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 12px;
}
.gh-spot-card {
  display: flex;
  flex-direction: column;
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--gh-text);
  transition: box-shadow .2s, transform .2s;
}
.gh-spot-card:hover {
  box-shadow: var(--gh-shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.gh-spot-card__img {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8px;
  overflow: hidden;
}
.gh-spot-card--lg .gh-spot-card__img { height: 180px; }
.gh-spot-card__img--akiba { background: linear-gradient(135deg, #fecdd3 0%, #fb7185 50%, #e11d48 100%); }
.gh-spot-card__img--akiba::after { content: "🎰🎮🎯"; font-size: 32px; position: absolute; bottom: 10px; left: 14px; }
.gh-spot-card__img--osaka { background: linear-gradient(135deg, #fed7aa 0%, #fb923c 50%, #ea580c 100%); }
.gh-spot-card__img--osaka::after { content: "🏯🎰🍡"; font-size: 28px; position: absolute; bottom: 10px; left: 14px; }
.gh-spot-card__img--nagoya { background: linear-gradient(135deg, #a7f3d0 0%, #34d399 50%, #059669 100%); }
.gh-spot-card__img--nagoya::after { content: "🗻🎰🌿"; font-size: 28px; position: absolute; bottom: 10px; left: 14px; }
.gh-spot-card__img-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-spot-card__badge {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}
.gh-spot-card__body { padding: 12px 14px 14px; flex: 1; }
.gh-spot-card__area {
  font-size: 11px;
  color: var(--gh-muted);
  font-weight: 600;
}
.gh-spot-card__name {
  font-size: 14px;
  font-weight: 800;
  margin: 4px 0 8px;
  line-height: 1.3;
}
.gh-spot-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 8px;
}
.gh-spot-card__desc {
  font-size: 12px;
  color: var(--gh-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

/* ── Tags ── */
.gh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.gh-tags span {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  background: #f3f4f6;
  color: var(--gh-muted);
  border: 1px solid var(--gh-border);
}
.gh-tags--sm span { font-size: 10px; }

/* ── Tab groups ── */
.gh-tab-group {
  display: flex;
  gap: 4px;
}
.gh-tab {
  padding: 5px 12px;
  border: 1px solid var(--gh-border);
  border-radius: 100px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--gh-muted);
  cursor: pointer;
  transition: .15s;
}
.gh-tab:hover { border-color: #9ca3af; color: var(--gh-text); }
.gh-tab.active {
  background: var(--gh-header);
  border-color: var(--gh-header);
  color: #fff;
}

/* ── Tables ── */
.gh-table-wrap { overflow-x: auto; }
.gh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.gh-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--gh-border);
  font-size: 11px;
  font-weight: 700;
  color: var(--gh-muted);
  white-space: nowrap;
}
.gh-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--gh-border);
  vertical-align: middle;
}
.gh-table tr:last-child td { border-bottom: none; }
.gh-table tr:hover td { background: #f9fafb; }
.gh-table__row--top td { background: #fffbeb; }
.gh-table__row--top:hover td { background: #fef9c3; }
.gh-table__link { font-weight: 600; color: var(--gh-link); }
.gh-table__link:hover { text-decoration: underline; }
.gh-num { text-align: right; }
.gh-table__more {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
}

/* ── Rank badges ── */
.gh-rank {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  background: #f3f4f6;
  color: var(--gh-muted);
  font-family: Arial, sans-serif;
}
.gh-rank--1 { background: #fbbf24; color: #fff; }
.gh-rank--2 { background: #9ca3af; color: #fff; }
.gh-rank--3 { background: #cd7c2f; color: #fff; }

/* ── Badges ── */
.gh-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
  background: #f3f4f6;
  color: var(--gh-muted);
  letter-spacing: .03em;
}
.gh-badge--hot { background: var(--gh-hot-bg); color: var(--gh-down); }
.gh-badge--new { background: var(--gh-new-bg); color: var(--gh-link); }
.gh-badge--lg { font-size: 12px; padding: 3px 10px; }

/* ── Rating ── */
.gh-rating { color: var(--gh-rating); font-weight: 700; font-size: 13px; }
.gh-rating--lg { font-size: 14px; }
.gh-rating--lg small { font-size: 12px; color: var(--gh-muted); font-weight: 500; }

/* ── Up/Down colors ── */
.gh-up { color: var(--gh-up) !important; }
.gh-down { color: var(--gh-down) !important; }

/* ── Status indicators ── */
.gh-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}
.gh-status--active { background: #dcfce7; color: #15803d; }
.gh-status--low    { background: #fef9c3; color: #a16207; }
.gh-status--new    { background: var(--gh-new-bg); color: var(--gh-link); }
.gh-status--empty  { background: #fee2e2; color: var(--gh-down); }
.gh-status--busy   { background: #fef3c7; color: #b45309; }

/* ── Popularity bar ── */
.gh-popbar {
  display: inline-flex;
  width: 60px;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
}
.gh-popbar span {
  background: linear-gradient(90deg, var(--gh-accent), var(--gh-accent2));
  border-radius: 4px;
  transition: width .5s;
}
.gh-popbar__val {
  font-size: 11px;
  color: var(--gh-muted);
  margin-left: 6px;
  vertical-align: middle;
}

/* ── News list ── */
.gh-news-list { display: flex; flex-direction: column; }
.gh-news-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gh-border);
  color: var(--gh-text);
  font-size: 13px;
  text-decoration: none;
  transition: background .1s;
}
.gh-news-item:last-child { border-bottom: none; }
.gh-news-item:hover { color: var(--gh-link); text-decoration: none; }
.gh-news-item__date {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--gh-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Area cards ── */
.gh-area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gh-area-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: #f9fafb;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  text-decoration: none;
  color: var(--gh-text);
  transition: .2s;
  text-align: center;
}
.gh-area-card:hover {
  background: var(--gh-header);
  color: #fff;
  border-color: var(--gh-header);
  text-decoration: none;
}
.gh-area-card__icon { font-size: 22px; line-height: 1; }
.gh-area-card strong { font-size: 13px; font-weight: 700; }
.gh-area-card small { font-size: 10px; color: var(--gh-muted); }
.gh-area-card:hover small { color: rgba(255,255,255,.7); }
.gh-area-card--more { border-style: dashed; }

/* ── Sidebar ── */
.gh-sidebar { display: flex; flex-direction: column; gap: 16px; }

.gh-widget {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 16px;
  box-shadow: var(--gh-shadow);
}
.gh-widget--accent { background: linear-gradient(135deg, #1a1d3a 0%, #242850 100%); color: #fff; }
.gh-widget__title {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gh-border);
  letter-spacing: .01em;
}
.gh-widget--accent .gh-widget__title { border-color: rgba(255,255,255,.15); color: #fff; }
.gh-widget__text { font-size: 12px; color: rgba(255,255,255,.8); margin: 0 0 12px; line-height: 1.6; }
.gh-widget__form { display: flex; flex-direction: column; gap: 8px; }

/* Select */
.gh-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: var(--gh-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.gh-select:focus { outline: 2px solid var(--gh-accent); outline-offset: -1px; }

/* Categories */
.gh-category-list { display: flex; flex-direction: column; gap: 2px; }
.gh-category-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--gh-text);
  font-size: 12px;
  transition: background .15s;
}
.gh-category-item:hover { background: #f3f4f6; text-decoration: none; }
.gh-category-item__icon { font-size: 16px; flex-shrink: 0; }
.gh-category-item > span:nth-child(2) { flex: 1; font-weight: 500; }
.gh-category-item__count { font-size: 11px; color: var(--gh-muted); font-family: Arial, sans-serif; }

/* Trending list */
.gh-trending-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: trend;
}
.gh-trending-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-bottom: 1px solid var(--gh-border);
  counter-increment: trend;
}
.gh-trending-list li:last-child { border-bottom: none; }
.gh-trending-list li::before {
  content: counter(trend);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f3f4f6;
  font-size: 10px;
  font-weight: 800;
  color: var(--gh-muted);
  flex-shrink: 0;
  font-family: Arial, sans-serif;
}
.gh-trending-list li:nth-child(1)::before { background: #fbbf24; color: #fff; }
.gh-trending-list li:nth-child(2)::before { background: #9ca3af; color: #fff; }
.gh-trending-list li:nth-child(3)::before { background: #cd7c2f; color: #fff; }
.gh-trending-list a {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--gh-text);
  text-decoration: none;
}
.gh-trending-list a:hover { color: var(--gh-link); }

/* App buttons */
.gh-app-btns { display: flex; flex-direction: column; gap: 8px; }
.gh-app-btn {
  display: block;
  padding: 9px;
  text-align: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.gh-app-btn:hover { background: rgba(255,255,255,.2); text-decoration: none; }

/* ── Buttons ── */
.gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--gh-border);
  background: #fff;
  color: var(--gh-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: .15s;
  white-space: nowrap;
}
.gh-btn:hover { background: #f9fafb; text-decoration: none; }
.gh-btn--primary { background: var(--gh-accent); border-color: var(--gh-accent); color: #fff; }
.gh-btn--primary:hover { background: #c73550; }
.gh-btn--outline { background: transparent; }
.gh-btn--outline-white { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff; }
.gh-btn--outline-white:hover { background: rgba(255,255,255,.2); }
.gh-btn--sm { padding: 5px 12px; font-size: 12px; }
.gh-btn--xs { padding: 3px 10px; font-size: 11px; }
.gh-btn--block { width: 100%; }

/* ── Footer ── */
.gh-footer {
  background: var(--gh-header);
  color: rgba(255,255,255,.8);
  padding: 40px 0 20px;
  margin-top: 48px;
}
.gh-footer__main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.gh-footer__brand p {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 10px;
  line-height: 1.7;
}
.gh-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.gh-footer__links div { display: flex; flex-direction: column; gap: 8px; }
.gh-footer__links strong { font-size: 12px; color: #fff; margin-bottom: 4px; }
.gh-footer__links a { font-size: 12px; color: rgba(255,255,255,.5); text-decoration: none; }
.gh-footer__links a:hover { color: #fff; }
.gh-footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px;
  color: rgba(255,255,255,.35);
}

/* ============================================================
   DETAIL PAGE (location.html)
   ============================================================ */

/* Breadcrumb */
.gh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gh-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.gh-breadcrumb a { color: var(--gh-link); }
.gh-breadcrumb a:hover { text-decoration: underline; }
.gh-breadcrumb [aria-current="page"] { color: var(--gh-text); font-weight: 600; }

/* Location hero */
.gh-hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--gh-shadow);
}
.gh-hero__title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.gh-hero__name {
  font-size: 24px;
  font-weight: 900;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.gh-hero__address {
  font-size: 13px;
  color: var(--gh-muted);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gh-hero__divider { color: var(--gh-border); }

/* Key metrics (like stock price + change) */
.gh-metrics {
  display: flex;
  gap: 0;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.gh-metric {
  flex: 1;
  padding: 14px 18px;
  border-right: 1px solid var(--gh-border);
  display: flex;
  flex-direction: column;
}
.gh-metric:last-child { border-right: none; }
.gh-metric--primary { background: linear-gradient(135deg, #fff7f0, #fff); }
.gh-metric__label { font-size: 11px; color: var(--gh-muted); margin-bottom: 4px; }
.gh-metric__value { font-size: 24px; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; }
.gh-metric--primary .gh-metric__value { color: var(--gh-accent); }
.gh-metric__sub { font-size: 12px; color: var(--gh-muted); margin-top: 4px; }

.gh-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Info card */
.gh-info-card {
  background: #f9fafb;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  overflow: hidden;
  height: 100%;
}
.gh-info-card__title {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  padding: 12px 16px;
  background: #f3f4f6;
  border-bottom: 1px solid var(--gh-border);
}
.gh-info-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}
.gh-info-table th, .gh-info-table td {
  padding: 9px 16px;
  border-bottom: 1px solid var(--gh-border);
  text-align: left;
  vertical-align: top;
}
.gh-info-table tr:last-child th,
.gh-info-table tr:last-child td { border-bottom: none; }
.gh-info-table th { color: var(--gh-muted); font-weight: 600; width: 38%; white-space: nowrap; }
.gh-map-link {
  display: block;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gh-link);
  border-top: 1px solid var(--gh-border);
}
.gh-map-link:hover { background: var(--gh-new-bg); }

/* Detail layout */
.gh-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

/* Chart */
.gh-chart-wrap { padding: 0 4px; }
.gh-chart { overflow-x: auto; padding-bottom: 4px; }
.gh-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  padding: 16px 0 0;
  min-width: 400px;
}
.gh-chart__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.gh-chart__bar {
  width: 100%;
  background: var(--gh-link);
  border-radius: 4px 4px 0 0;
  height: calc(var(--h) * 1%);
  position: relative;
  transition: opacity .2s;
  cursor: default;
}
.gh-chart__bar:hover .gh-chart__tip { opacity: 1; }
.gh-chart__bar--today { background: var(--gh-accent); }
.gh-chart__bar--weekend { background: #8b5cf6; }
.gh-chart__tip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.gh-chart__label { font-size: 11px; color: var(--gh-muted); white-space: nowrap; }
.gh-chart__legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--gh-muted);
}
.gh-chart__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--gh-link);
  margin-right: 4px;
  vertical-align: middle;
}
.gh-chart__dot--today { background: var(--gh-accent); }
.gh-chart__dot--weekend { background: #8b5cf6; }

/* Rating summary */
.gh-rating-summary {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  margin-bottom: 16px;
}
.gh-rating-summary__big { text-align: center; flex-shrink: 0; }
.gh-rating-summary__score {
  display: block;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: var(--gh-accent);
}
.gh-rating-summary__stars {
  display: block;
  color: var(--gh-rating);
  font-size: 18px;
  margin: 4px 0 2px;
}
.gh-rating-summary__bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.gh-rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--gh-muted);
}
.gh-rating-bar__track {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}
.gh-rating-bar__track span {
  display: block;
  height: 100%;
  background: var(--gh-rating);
  border-radius: 4px;
}

/* Reviews */
.gh-reviews { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.gh-review {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 14px 16px;
  background: #fafafa;
}
.gh-review__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.gh-review__avatar { font-size: 28px; flex-shrink: 0; }
.gh-review__meta { flex: 1; }
.gh-review__meta strong { display: block; font-size: 13px; font-weight: 700; }
.gh-review__meta time { font-size: 11px; color: var(--gh-muted); }
.gh-review__text { margin: 0 0 10px; font-size: 13px; line-height: 1.65; }

/* Detail sidebar widgets */
.gh-dl { margin: 0; display: flex; flex-direction: column; gap: 0; }
.gh-dl__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--gh-border);
  gap: 12px;
}
.gh-dl__row:last-child { border-bottom: none; }
.gh-dl__row dt { font-size: 11px; color: var(--gh-muted); flex-shrink: 0; }
.gh-dl__row dd { margin: 0; font-size: 12px; font-weight: 600; text-align: right; }

/* Nearby spots */
.gh-nearby { display: flex; flex-direction: column; gap: 4px; }
.gh-nearby__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--gh-text);
  transition: background .15s;
}
.gh-nearby__item:hover { background: #f3f4f6; text-decoration: none; }
.gh-nearby__item strong { display: block; font-size: 12px; font-weight: 700; }
.gh-nearby__item small { font-size: 11px; color: var(--gh-muted); }

/* Share buttons */
.gh-share { display: flex; flex-direction: column; gap: 6px; }
.gh-share__btn {
  display: block;
  padding: 9px 14px;
  border-radius: 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--gh-border);
  background: #fff;
  color: var(--gh-text);
  transition: .15s;
}
.gh-share__btn:hover { text-decoration: none; }
.gh-share__btn--x { background: #000; border-color: #000; color: #fff; }
.gh-share__btn--x:hover { background: #333; }
.gh-share__btn--line { background: #06c755; border-color: #06c755; color: #fff; }
.gh-share__btn--line:hover { background: #05a847; }
.gh-share__btn--copy:hover { background: #f3f4f6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .gh-main__layout,
  .gh-detail-layout { grid-template-columns: 1fr; }
  .gh-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
  .gh-spot-grid { grid-template-columns: 1fr 1fr; }
  .gh-spot-card--lg { grid-column: span 2; flex-direction: row; }
  .gh-spot-card--lg .gh-spot-card__img { width: 240px; height: auto; flex-shrink: 0; }
  .gh-summary-bar { grid-template-columns: repeat(2, 1fr); }
  .gh-area-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile nav open state */
.gh-nav-tabs--open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(var(--gh-header-h) + var(--gh-subnav-h));
  left: 0;
  right: 0;
  background: var(--gh-subnav);
  z-index: 200;
  padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.gh-nav-tabs--open a {
  padding: 12px 20px;
  border-bottom: none;
  border-left: 3px solid transparent;
}
.gh-nav-tabs--open a.active { border-left-color: var(--gh-accent); }

@media (max-width: 768px) {
  .gh-header__nav { display: none; }
  .gh-hamburger { display: flex; }
  .gh-header__inner { gap: 10px; }
  .gh-search { max-width: none; flex: 1; }

  /* Subnav: scroll horizontally instead of wrapping into broken multi-line tabs */
  .gh-nav-tabs:not(.gh-nav-tabs--open) {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .gh-nav-tabs:not(.gh-nav-tabs--open)::-webkit-scrollbar { display: none; }
  .gh-nav-tabs:not(.gh-nav-tabs--open) a { white-space: nowrap; flex-shrink: 0; }

  .gh-spot-grid { grid-template-columns: 1fr; }
  .gh-spot-card--lg { flex-direction: column; }
  .gh-spot-card--lg .gh-spot-card__img { width: 100%; height: 180px; }
  .gh-area-grid { grid-template-columns: repeat(2, 1fr); }
  .gh-sidebar { grid-template-columns: 1fr; }
  .gh-hero { grid-template-columns: 1fr; }
  .gh-metrics { flex-wrap: wrap; }
  .gh-metric { min-width: 140px; }
  .gh-footer__main { grid-template-columns: 1fr; gap: 24px; }
  .gh-footer__links { grid-template-columns: repeat(2, 1fr); }
  .gh-footer__bottom { flex-direction: column; gap: 8px; }
  .gh-rating-summary { flex-direction: column; align-items: flex-start; }
  .gh-tab-group { flex-wrap: wrap; }

  /* Wide tables (ranking, machine list): scroll horizontally so cells keep one line */
  .gh-table-wrap {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .gh-table { min-width: 560px; }
  .gh-table th, .gh-table td { white-space: nowrap; }
  .gh-table td .gh-table__link { white-space: normal; }
}

@media (max-width: 520px) {
  .gh-nav-tabs a { padding: 0 12px; font-size: 12px; }
  .gh-summary-bar { grid-template-columns: 1fr 1fr; }
  .gh-summary-card__value { font-size: 18px; }
  .gh-section { padding: 16px; }
  .gh-section__header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gh-hero__name { font-size: 19px; }
  .gh-hero { padding: 16px; }
  .gh-metric__value { font-size: 19px; }
  .gh-table th, .gh-table td { padding: 8px 8px; }
  .gh-area-grid { grid-template-columns: repeat(2, 1fr); }
  .gh-page-hero { padding: 16px 0 14px; }
  .gh-logo__text { font-size: 16px; }
  .gh-logo__icon { width: 30px; height: 30px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .gh-ticker-track { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* ============================================================
   INNER PAGES (area / category / ranking / news / map)
   ============================================================ */

/* Page hero */
.gh-page-hero {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--gh-border);
  margin-bottom: 24px;
}
.gh-page-hero__title {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.gh-page-hero__desc {
  font-size: 13px;
  color: var(--gh-muted);
  margin: 0;
  line-height: 1.65;
}

/* Tab group size modifier */
.gh-tab-group--lg .gh-tab { padding: 6px 16px; font-size: 13px; }

/* Area section (region blocks on area.html) */
.gh-area-section { margin-bottom: 8px; }

/* Prefecture grid */
.gh-pref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.gh-pref-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  text-decoration: none;
  color: var(--gh-text);
  transition: .2s;
  box-shadow: var(--gh-shadow);
}
.gh-pref-card:hover {
  border-color: var(--gh-link);
  box-shadow: 0 4px 12px rgba(29,78,216,.12);
  text-decoration: none;
}
.gh-pref-card--top { border-color: var(--gh-accent); }
.gh-pref-card--top:hover { border-color: var(--gh-accent); box-shadow: 0 4px 12px rgba(233,69,96,.15); }
.gh-pref-card__name { font-size: 15px; font-weight: 800; }
.gh-pref-card__count { font-size: 12px; color: var(--gh-muted); }
.gh-pref-card__top {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--gh-border);
  font-size: 11px;
  line-height: 1.5;
}
.gh-pref-card__top small { display: block; color: var(--gh-muted); }
.gh-pref-card__top strong { color: var(--gh-link); font-size: 11px; }

/* Category grid (category.html) */
.gh-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.gh-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px 16px;
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  text-align: center;
  text-decoration: none;
  color: var(--gh-text);
  transition: .2s;
  box-shadow: var(--gh-shadow);
}
.gh-cat-card:hover {
  border-color: var(--gh-link);
  box-shadow: 0 4px 12px rgba(29,78,216,.12);
  text-decoration: none;
}
.gh-cat-card--featured { border-color: var(--gh-accent); background: #fff7f7; }
.gh-cat-card__icon { font-size: 32px; line-height: 1; }
.gh-cat-card__name { font-size: 13px; font-weight: 700; }
.gh-cat-card__count { font-size: 11px; color: var(--gh-muted); }

/* News articles (news.html) */
.gh-news-feed { display: flex; flex-direction: column; gap: 0; }
.gh-news-article {
  padding: 20px 0;
  border-bottom: 1px solid var(--gh-border);
}
.gh-news-article:last-child { border-bottom: none; }
.gh-news-article__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.gh-news-article__date { font-size: 11px; color: var(--gh-muted); }
.gh-news-article__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.4;
}
.gh-news-article__title a { color: var(--gh-text); text-decoration: none; }
.gh-news-article__title a:hover { color: var(--gh-link); text-decoration: underline; }
.gh-news-article__body {
  font-size: 13px;
  color: var(--gh-muted);
  margin: 0 0 12px;
  line-height: 1.7;
}
.gh-news-article__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Pagination */
.gh-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 0 4px;
}
.gh-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: #fff;
  color: var(--gh-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: .15s;
}
.gh-page-btn:hover { background: #f3f4f6; text-decoration: none; }
.gh-page-btn--active { background: var(--gh-header); border-color: var(--gh-header); color: #fff; }
.gh-page-btn--next { padding: 0 12px; }
.gh-page-ellipsis { font-size: 13px; color: var(--gh-muted); padding: 0 4px; }

/* Map search layout (map.html) */
.gh-map-search-bar {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 16px;
  box-shadow: var(--gh-shadow);
  margin-bottom: 16px;
}
.gh-map-search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.gh-map-search-input-wrap {
  flex: 1;
  position: relative;
  min-width: 200px;
}
.gh-map-search-input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--gh-text);
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}
.gh-map-search-input:focus { border-color: var(--gh-link); }
.gh-map-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.gh-map-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
  min-height: 520px;
  margin-bottom: 40px;
}

/* Map area */
.gh-map-area {
  position: relative;
  border-radius: var(--gh-radius);
  overflow: hidden;
  border: 1px solid var(--gh-border);
  box-shadow: var(--gh-shadow);
}
.gh-map-placeholder {
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 40%, #e0f2fe 100%);
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.gh-map-placeholder__inner { text-align: center; position: relative; z-index: 2; }
.gh-map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
}
.gh-map-ctrl-btn {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--gh-shadow);
  transition: background .15s;
}
.gh-map-ctrl-btn:hover { background: #f3f4f6; }

/* Map pins */
.gh-map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 5;
  transform: translateX(-50%);
}
.gh-map-pin__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gh-link);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.gh-map-pin__dot--hot { background: var(--gh-accent); }
.gh-map-pin__label {
  background: #fff;
  border: 1px solid var(--gh-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--gh-shadow);
}

/* Map list panel */
.gh-map-list {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow);
  display: flex;
  flex-direction: column;
  max-height: 520px;
  overflow-y: auto;
}
.gh-map-list__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gh-border);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  background: var(--gh-surface);
  z-index: 2;
}
.gh-map-list__header strong { font-size: 13px; font-weight: 800; flex: 1; }
.gh-map-list__count { font-size: 11px; color: var(--gh-muted); }
.gh-map-list__footer { padding: 12px 16px; border-top: 1px solid var(--gh-border); }

.gh-map-spot {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gh-border);
  text-decoration: none;
  color: var(--gh-text);
  transition: background .15s;
}
.gh-map-spot:last-of-type { border-bottom: none; }
.gh-map-spot:hover { background: #f9fafb; text-decoration: none; }
.gh-map-spot--selected { background: #eff6ff; }
.gh-map-spot--selected:hover { background: #dbeafe; }
.gh-map-spot__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f3f4f6;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  font-family: Arial, sans-serif;
  margin-top: 2px;
}
.gh-map-spot__num--1 { background: var(--gh-accent); color: #fff; }
.gh-map-spot__info { flex: 1; min-width: 0; }
.gh-map-spot__name { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.gh-map-spot__area { display: block; font-size: 11px; color: var(--gh-muted); margin-bottom: 4px; }
.gh-map-spot__meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--gh-muted); margin-bottom: 4px; }
.gh-map-spot__dist { font-size: 11px; font-weight: 700; color: var(--gh-link); flex-shrink: 0; white-space: nowrap; }

/* ── Responsive: inner pages ── */
@media (max-width: 1024px) {
  .gh-map-layout { grid-template-columns: 1fr; }
  .gh-map-list { max-height: none; }
  .gh-pref-grid { grid-template-columns: repeat(3, 1fr); }
  .gh-cat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .gh-page-hero__title { font-size: 18px; }
  .gh-pref-grid { grid-template-columns: repeat(2, 1fr); }
  .gh-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .gh-map-search-form { flex-direction: column; }
  .gh-map-search-input-wrap { min-width: auto; }
  .gh-news-article__title { font-size: 14px; }
  .gh-tab-group--lg { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .gh-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .gh-map-filters { flex-direction: column; }
  .gh-map-filters .gh-select { width: 100% !important; min-width: auto !important; }
}

/* ============================================================
   DETAIL PAGE v2 (Yahoo Finance individual-stock style)
   quote hero / tab bar / detail info / 掲示板 (bulletin board)
   ============================================================ */

/* Quote-style hero */
.gh-quote {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--gh-shadow);
}
.gh-quote__head { margin-bottom: 4px; }
.gh-quote__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.gh-quote__name {
  font-size: 24px;
  font-weight: 900;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.gh-quote__address {
  font-size: 12px;
  color: var(--gh-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gh-quote__price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--gh-border);
  margin-bottom: 14px;
}
.gh-quote__label { font-size: 12px; color: var(--gh-muted); align-self: center; }
.gh-quote__rating-num {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: var(--gh-accent);
  letter-spacing: -.02em;
  font-family: Arial, sans-serif;
}
.gh-quote__stars { color: var(--gh-rating); font-size: 20px; letter-spacing: 2px; }
.gh-quote__change { font-size: 14px; font-weight: 700; }
.gh-quote__updated { font-size: 11px; color: var(--gh-muted); margin-left: auto; align-self: center; }

/* Spot exterior photo (left column of the detail hero) */
.gh-quote--with-photo {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}
.gh-quote__photo {
  position: relative;
  border-radius: var(--gh-radius);
  overflow: hidden;
  border: 1px solid var(--gh-border);
  background: #eef2ff;
  aspect-ratio: 4 / 3;
}
.gh-quote__photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gh-quote__photo-note {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(17, 24, 39, .6);
  padding: 3px 8px;
  border-radius: 4px;
}
.gh-quote__photo-img.is-user + .gh-quote__photo-note { display: none; }
.gh-quote__photo-upload {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(17, 24, 39, .62);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.gh-quote__photo-upload:hover { background: rgba(17, 24, 39, .82); }
.gh-quote__info { min-width: 0; }
@media (max-width: 768px) {
  .gh-quote--with-photo { grid-template-columns: 1fr; }
  .gh-quote__photo { aspect-ratio: 16 / 9; }
}

/* Detail tab bar: お気に入り登録 / 詳細 / 掲示板 */
.gh-detail-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  border-bottom: 2px solid var(--gh-border);
  margin-bottom: 20px;
}
.gh-detail-tabs button {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gh-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}
.gh-detail-tabs button:hover { color: var(--gh-text); }
.gh-detail-tabs button.active {
  color: var(--gh-accent);
  border-bottom-color: var(--gh-accent);
}
/* Favorite tab (action, not a content panel) */
.gh-detail-tabs__fav { color: var(--gh-accent); }
.gh-detail-tabs__fav:hover { color: var(--gh-accent); background: var(--gh-hot-bg); }
.gh-detail-tabs__fav.is-faved {
  color: #fff;
  background: var(--gh-accent);
  border-radius: 6px 6px 0 0;
}

/* Tab panels */
.gh-tab-panel[hidden] { display: none; }

/* Full-width detail info table (詳細情報) */
.gh-info-table--full { border: 1px solid var(--gh-border); border-radius: var(--gh-radius); overflow: hidden; }
.gh-info-table--full th { width: 32%; background: #f9fafb; }

/* ── 掲示板 (5ch / 2ch-style bulletin board) ── */
.gh-bbs { background: #f7f5ef; }            /* faint cream tint, 2ch flavor */
.gh-bbs__head {
  border-bottom: 2px solid #c9c2b0;
  padding-bottom: 10px;
  margin-bottom: 6px;
}
.gh-bbs__title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #7a1f1f;                            /* dark red thread title */
  line-height: 1.4;
}
.gh-bbs__meta { font-size: 12px; color: var(--gh-muted); }
.gh-bbs__nav { font-size: 12px; margin-top: 6px; color: var(--gh-muted); display: flex; gap: 6px; flex-wrap: wrap; }
.gh-bbs__nav a { color: var(--gh-link); }
.gh-bbs__nav a:hover { text-decoration: underline; }

.gh-bbs__list { padding: 6px 0; }
.gh-bbs__post { padding: 10px 0; border-bottom: 1px dashed #d8d2c4; }
.gh-bbs__post:last-child { border-bottom: none; }
.gh-bbs__post:target { background: #fff7d6; }   /* highlight when jumped via >>N */

.gh-bbs__resline {
  font-size: 12px;
  line-height: 1.7;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.gh-bbs__num { font-weight: 800; color: #444; font-family: Arial, sans-serif; }
.gh-bbs__num::after { content: " :"; color: var(--gh-muted); font-weight: 400; }
.gh-bbs__name { color: #178a3a; font-weight: 700; }   /* classic 2ch green name */
.gh-bbs__name::before { content: "名前："; color: var(--gh-muted); font-weight: 400; }
.gh-bbs__date { color: #555; }
.gh-bbs__date::before { content: "投稿日："; color: var(--gh-muted); }
.gh-bbs__id { color: #888; }
.gh-bbs__body {
  font-size: 14px;
  line-height: 1.9;
  margin: 4px 0 0;
  padding-left: 1.6em;
  color: #1a1a1a;
  white-space: pre-wrap;
  word-break: break-word;
}
.gh-bbs__anchor { color: var(--gh-link); text-decoration: underline; font-weight: 700; }

/* Write form (5ch style) */
.gh-bbs__form {
  margin-top: 16px;
  border: 1px solid #c9c2b0;
  border-radius: var(--gh-radius);
  padding: 14px;
  background: #fffdf8;
}
.gh-bbs__form-title { font-size: 13px; font-weight: 800; margin: 0 0 10px; color: #7a1f1f; }
.gh-bbs__form-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gh-bbs__form-row label { font-size: 12px; color: var(--gh-muted); width: 44px; flex-shrink: 0; }
.gh-bbs__form-row input {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}
.gh-bbs__textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid var(--gh-border);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
  outline: none;
  background: #fff;
  transition: border-color .15s;
}
.gh-bbs__textarea:focus { border-color: var(--gh-link); }
.gh-bbs__form-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.gh-bbs__note { font-size: 11px; color: var(--gh-muted); flex: 1; min-width: 160px; }

/* ── Responsive: detail v2 ── */
@media (max-width: 768px) {
  .gh-quote { padding: 16px; }
  .gh-quote__name { font-size: 19px; }
  .gh-quote__rating-num { font-size: 36px; }
  .gh-quote__updated { margin-left: 0; width: 100%; }
  .gh-detail-tabs { overflow-x: auto; scrollbar-width: none; }
  .gh-detail-tabs::-webkit-scrollbar { display: none; }
  .gh-detail-tabs button { padding: 11px 16px; flex-shrink: 0; }
  .gh-bbs__body { padding-left: 1em; }
}

/* ============================================================
   OPENSTREETMAP (map.html, Leaflet)
   ============================================================ */
/* Confine Leaflet's internal z-indexes below the sticky header */
.gh-map-area { z-index: 0; }
.gh-osm-map {
  height: 520px;
  width: 100%;
  z-index: 0;
}
.gh-osm-map .leaflet-popup-content { font-size: 13px; line-height: 1.6; }
.gh-osm-map .leaflet-popup-content a { color: var(--gh-link); font-weight: 700; }
.gh-osm-map .leaflet-container { font: inherit; }
@media (max-width: 1024px) { .gh-osm-map { height: 380px; } }

/* Embedded OSM map (location.html access map) */
.gh-osm-embed {
  position: relative;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  overflow: hidden;
  background: #eef2ff;
}
.gh-osm-embed iframe { width: 100%; height: 340px; border: 0; display: block; }
.gh-osm-embed__addr { font-size: 12px; color: var(--gh-muted); margin: 10px 0 0; line-height: 1.6; }
@media (max-width: 768px) { .gh-osm-embed iframe { height: 260px; } }

/* ============================================================
   LEGAL / PROSE PAGES (terms / privacy / advertising)
   ============================================================ */
.gh-legal {
  background: var(--gh-surface);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  padding: 28px 32px;
  box-shadow: var(--gh-shadow);
  margin-bottom: 24px;
}
.gh-prose { font-size: 14px; line-height: 1.9; color: var(--gh-text); }
.gh-prose h2 {
  font-size: 17px;
  font-weight: 800;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gh-border);
}
.gh-prose h2:first-of-type { margin-top: 0; }
.gh-prose h3 { font-size: 14px; font-weight: 700; margin: 18px 0 6px; }
.gh-prose p { margin: 0 0 12px; }
.gh-prose ul, .gh-prose ol { margin: 0 0 14px; padding-left: 1.5em; }
.gh-prose li { margin-bottom: 6px; }
.gh-prose a { color: var(--gh-link); text-decoration: underline; }
.gh-prose__updated { font-size: 12px; color: var(--gh-muted); margin-bottom: 18px; }
.gh-prose table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0 0 14px; }
.gh-prose th, .gh-prose td { border: 1px solid var(--gh-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.gh-prose th { background: #f9fafb; white-space: nowrap; }
@media (max-width: 768px) { .gh-legal { padding: 20px 16px; } }

/* ============================================================
   AD SLOTS (clearly labelled per 景表法 / stealth-marketing rules)
   ============================================================ */
.gh-ad {
  position: relative;
  border: 1px dashed #cbd5e1;
  border-radius: var(--gh-radius);
  background: #fafafa;
  padding: 22px 12px 16px;
  text-align: center;
  overflow: hidden;
}
.gh-ad__label {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gh-muted);
  background: #fff;
  border: 1px solid var(--gh-border);
  padding: 1px 7px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.gh-ad__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 70px;
  color: var(--gh-muted);
  font-size: 12px;
}
.gh-ad__body strong { font-size: 13px; font-weight: 700; color: #94a3b8; }
.gh-ad--banner .gh-ad__body { min-height: 90px; }
.gh-ad--inline { margin: 20px 0; }

/* ============================================================
   BULLETIN BOARD HUB (board.html, Yahoo Finance /cm style)
   ============================================================ */
.gh-momentum { font-weight: 800; color: var(--gh-accent); font-family: Arial, sans-serif; }
.gh-cm-latest { display: block; font-size: 12px; color: var(--gh-text); }
.gh-cm-latest small { color: var(--gh-muted); }

/* recent-posts feed */
.gh-cm-feed { display: flex; flex-direction: column; }
.gh-cm-feed__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px solid var(--gh-border);
  text-decoration: none;
  color: var(--gh-text);
}
.gh-cm-feed__item:last-child { border-bottom: none; }
.gh-cm-feed__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gh-cm-feed__board {
  font-size: 11px;
  font-weight: 700;
  color: var(--gh-link);
  background: var(--gh-new-bg);
  padding: 1px 8px;
  border-radius: 100px;
}
.gh-cm-feed__time { font-size: 11px; color: var(--gh-muted); }
.gh-cm-feed__text { font-size: 13px; line-height: 1.6; margin: 0; }
.gh-cm-feed__item:hover .gh-cm-feed__text { color: var(--gh-link); }

/* ============================================================
   DAILY HASHTAGS (index.html)
   ============================================================ */
.gh-hashtags__list { display: flex; flex-wrap: wrap; gap: 8px; }
.gh-hashtag {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gh-link);
  background: var(--gh-new-bg);
  border: 1px solid #dbe4ff;
  padding: 7px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.gh-hashtag:hover { background: #dbe4ff; text-decoration: none; transform: translateY(-1px); }
.gh-hashtags__note { font-size: 12px; color: var(--gh-muted); margin: 12px 0 0; }
