/* ============================================================
   cocone — style.css
   Outfit × Share Tech Mono · モダンダッシュボード
   ============================================================ */

/* ----------------------------------------------------------
   CSS Variables — Dark Theme (default)
   ---------------------------------------------------------- */
:root {
  --bg:          #04060f;
  --bg-alt:      #080c1a;
  --bg-card:     #0c1225;
  --border:      #131e3a;
  --border-subtle: #1a2640;
  --text:        #d4dff0;
  --text-sub:    #8899bb;
  --text-muted:  #556080;
  --accent:      #5b8dff;
  --accent-bg:   #0d1a3a;
  --accent2:     #a78bfa;
  --accent2-bg:  #1a1030;
  --gold:        #f59e0b;
  --green:       #10b981;
  --header-bg:   rgba(4,6,15,0.92);
  --shadow:      0 2px 12px rgba(0,0,0,0.4);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --glow:        0 0 18px rgba(91,141,255,.35);
  --bar-a:       #5b8dff;
  --bar-b:       #a78bfa;
  --bar-avg:     #556080;

  --font-serif:  'Outfit', 'Zen Kaku Gothic New', sans-serif;
  --font-mono:   'Share Tech Mono', monospace;
  --font-body:   'Outfit', 'Zen Kaku Gothic New', sans-serif;

  --toggle-icon: '☀';
}

/* ----------------------------------------------------------
   Light Theme
   ---------------------------------------------------------- */
body.light {
  --bg:          #f2f5fc;
  --bg-alt:      #edf1fb;
  --bg-card:     #ffffff;
  --border:      #d0daea;
  --border-subtle: #dde5f5;
  --text:        #1e293b;
  --text-sub:    #64748b;
  --text-muted:  #94a3b8;
  --accent:      #3b6fd4;
  --accent-bg:   #ebf0fd;
  --accent2:     #7c5cbf;
  --accent2-bg:  #f0ebfd;
  --gold:        #d97706;
  --green:       #059669;
  --header-bg:   rgba(242,245,252,0.92);
  --shadow:      0 2px 12px rgba(0,0,0,0.07);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.08);
  --glow:        0 0 12px rgba(59,111,212,.25);
  --bar-a:       #3b6fd4;
  --bar-b:       #7c5cbf;
  --bar-avg:     #94a3b8;

  --toggle-icon: '☾';
}

/* ----------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  transition: background 0.35s, color 0.35s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  transition: background 0.35s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  flex-shrink: 0;
}

.logo-coco {
  font-family: 'Outfit', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}

.logo-ne {
  font-family: 'Outfit', sans-serif;
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--accent2);
  letter-spacing: 2px;
}

.logo-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 0.6rem;
  letter-spacing: 0.08em;
  align-self: center;
}

.header-nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  padding: 6px 13px;
  font-size: 0.75rem;
  color: var(--text-sub);
  border-radius: 20px;
  transition: all 0.2s;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent);
  color: #fff;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 13px;
  cursor: pointer;
  font-size: 0.69rem;
  color: var(--text-sub);
  margin-left: 8px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, var(--bg) 90%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.1s forwards;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50% { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.25s forwards;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: var(--glow);
}

.hero-desc {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  color: var(--text-sub);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.hero-search-wrap {
  position: relative;
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.55s forwards;
}

.hero-search {
  flex: 1;
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.hero-search:focus { border-color: var(--accent); }
.hero-search::placeholder { color: var(--text-muted); }

.hero-search-btn {
  padding: 0.9rem 1.6rem;
  background: var(--accent);
  color: #0f172a;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

body.light .hero-search-btn { color: #fff; }
.hero-search-btn:hover { opacity: 0.85; }

.search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: none;
  z-index: 50;
}

.search-suggest.open { display: block; }

.suggest-item {
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-subtle);
}

.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--accent-bg); color: var(--accent); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  animation: floatY 2s ease-in-out infinite;
}

/* ----------------------------------------------------------
   Sections
   ---------------------------------------------------------- */
.section { padding: 4.375rem 0; }
.section:nth-child(even) { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.section-title .accent { color: var(--accent); }

.section-sub {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 2.8rem;
}

/* ----------------------------------------------------------
   Stats Bar
   ---------------------------------------------------------- */
.stats-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.stat-lbl {
  font-size: 0.69rem;
  color: var(--text-sub);
  margin-top: 4px;
  letter-spacing: 1px;
}

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

/* ----------------------------------------------------------
   Metrics Grid
   ---------------------------------------------------------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.metric-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.metric-card:hover::before { transform: scaleX(1); }

.metric-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.metric-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.metric-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   Ranking Table
   ---------------------------------------------------------- */
.ranking-section,
.ranking-full-section { }

.rank-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.rank-tab {
  padding: 0.45rem 1.1rem;
  font-size: 0.82rem;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
}

.rank-tab.active,
.rank-tab:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.rank-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.rank-table th {
  padding: 0.75rem 1.2rem;
  text-align: left;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.rank-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.rank-table tbody tr:last-child td { border-bottom: none; }

.rank-table tbody tr:hover { background: var(--accent-bg); }

.rank-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 2rem;
  text-align: center;
}

.rank-num.top1 { color: var(--gold); font-size: 1.2rem; }
.rank-num.top2 { color: var(--text-sub); }
.rank-num.top3 { color: var(--accent); }

.rank-city-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
}

.rank-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
}

.rank-ratio {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.rank-ratio.high {
  background: rgba(239,68,68,.15);
  color: #ef4444;
}
body.light .rank-ratio.high {
  background: #fee2e2;
  color: #dc2626;
}

.rank-ratio.low {
  background: rgba(16,185,129,.15);
  color: var(--green);
}
body.light .rank-ratio.low {
  background: #d1fae5;
  color: #059669;
}

.rank-ratio.mid {
  background: var(--bg-alt);
  color: var(--text-muted);
}

.rank-compare-btn {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font-body);
}

.rank-compare-btn:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  background: var(--accent2-bg);
}

.rank-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: #0f172a;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.2s;
}

body.light .btn-primary { color: #fff; }

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ----------------------------------------------------------
   Compare CTA
   ---------------------------------------------------------- */
.compare-cta-section { background: var(--bg-alt); }

.compare-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.compare-cta-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.compare-cta-text h2 em {
  font-style: normal;
  color: var(--accent);
}

.compare-cta-text p {
  color: var(--text-sub);
  margin-bottom: 1.8rem;
  line-height: 1.9;
}

.compare-cta-visual {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cta-city-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.cta-city-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: 0.1em;
}

.cta-city-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
}

.cta-city-value span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cta-vs {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   Sources
   ---------------------------------------------------------- */
.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.source-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
}

.source-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.source-org {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.source-desc {
  font-size: 0.84rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.source-link {
  font-size: 0.8rem;
  color: var(--accent2);
  display: inline-block;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s;
}

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

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.875rem 1.5rem;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.footer-copy a:hover { border-color: var(--accent); }

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--accent); }

/* ----------------------------------------------------------
   Page Hero (inner pages)
   ---------------------------------------------------------- */
.page-hero {
  padding: 5rem 2rem 3rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.page-title em {
  font-style: normal;
  color: var(--accent);
}

.page-desc {
  color: var(--text-sub);
  font-size: 1rem;
}

/* ----------------------------------------------------------
   Compare Page
   ---------------------------------------------------------- */
.compare-section { }

.city-selector-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.city-selector-wrap {
  flex: 1;
  min-width: 200px;
}

.selector-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.city-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-serif);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.city-select:focus { border-color: var(--accent); }

.vs-badge {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-top: 1.5rem;
}

.compare-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.summary-city {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.summary-total {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.summary-total span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-ratio {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.compare-bars {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 3rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: center;
}

.bar-label {
  font-size: 0.82rem;
  color: var(--text-sub);
  text-align: right;
}

.bar-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bar-track {
  height: 22px;
  background: var(--border-subtle);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 40px;
}

.bar-fill.city-a { background: var(--bar-a); }
.bar-fill.city-b { background: var(--bar-b); }

.bar-val {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #fff;
  white-space: nowrap;
}

.compare-detail-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.compare-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.compare-detail-table th {
  padding: 0.85rem 1.2rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.compare-detail-table td {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-detail-table tbody tr:last-child td { border-bottom: none; }
.compare-detail-table tbody tr:hover { background: var(--accent-bg); }

.cell-highlight-a { color: var(--bar-a); font-family: var(--font-mono); font-weight: 500; }
.cell-highlight-b { color: var(--bar-b); font-family: var(--font-mono); font-weight: 500; }
.cell-avg { color: var(--text-muted); font-family: var(--font-mono); }

.data-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ----------------------------------------------------------
   Ranking Full Page
   ---------------------------------------------------------- */
.rank-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.rank-order-wrap {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}

.rank-order-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s;
}

.rank-order-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.rank-table-full td:nth-child(3) {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   About Page
   ---------------------------------------------------------- */
.about-section { }

.about-inner {
  max-width: 780px;
}

.about-block {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.about-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.about-block p {
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 0.8rem;
}

.about-list {
  list-style: disc;
  padding-left: 1.4rem;
  color: var(--text-sub);
  line-height: 1.9;
}

.about-list li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.about-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1rem;
  border-radius: 0 8px 8px 0;
}

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

.sister-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.25s;
  display: block;
}

.sister-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.sister-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.sister-name { }

.sister-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.company-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.company-table th,
.company-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.company-table tbody tr:last-child th,
.company-table tbody tr:last-child td {
  border-bottom: none;
}

.company-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-alt);
  width: 180px;
  white-space: nowrap;
}

.company-table td a {
  color: var(--accent2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.company-table td a:hover { border-color: var(--accent2); }

/* ----------------------------------------------------------
   City Guide Grid
   ---------------------------------------------------------- */
.city-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.city-guide-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.2rem;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.city-guide-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.city-guide-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.city-guide-card:hover::after { transform: scaleX(1); }

.city-guide-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.city-guide-cost {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.city-guide-cost span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.city-guide-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ----------------------------------------------------------
   Animations
   ---------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .compare-cta-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .compare-cta-visual {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .header-nav { display: none; }

  .hero-inner { padding: 6rem 1.5rem 4rem; }

  .compare-summary { grid-template-columns: 1fr; }

  .rank-order-wrap { margin-left: 0; }

  .rank-controls { flex-direction: column; align-items: flex-start; }

  .bar-row { grid-template-columns: 80px 1fr; }

  .city-selector-row { flex-direction: column; }

  .vs-badge { padding-top: 0; }

  .section { padding: 3rem 0; }

  .page-hero { padding: 3.5rem 1.5rem 2rem; }
}
