*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent: #1a56db; --accent-light: #e1effe; --accent-dark: #1e40af;
  --bg: #f8fafc; --card: #fff; --text: #1e293b; --sub: #64748b; --border: #e2e8f0;
  --radius: 10px; --shadow: 0 1px 3px rgba(0,0,0,.06);
  --green: #059669; --orange: #d97706; --red: #dc2626; --purple: #7c3aed;
}
body { font-family: "Hiragino Kaku Gothic ProN","Noto Sans JP","Meiryo",sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Global Header ── */
.g-header { background: #fff; border-bottom: 1px solid var(--border); padding: 0 20px; position: sticky; top: 0; z-index: 100; }
.g-header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; height: 56px; gap: 16px; }
.g-logo { font-size: 15px; font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
.g-logo small { font-size: 11px; color: var(--sub); font-weight: 400; display: block; line-height: 1; margin-top: -2px; }
.g-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
.g-nav a { font-size: 13px; padding: 6px 12px; border-radius: 6px; white-space: nowrap; color: var(--text); }
.g-nav a:hover, .g-nav a.active { background: var(--accent-light); color: var(--accent-dark); text-decoration: none; }

/* ── Breadcrumb ── */
.breadcrumb { padding: 10px 20px; font-size: 12px; color: var(--sub); background: #fff; border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--sub); }
.breadcrumb span { margin: 0 4px; }

/* ── Page Container ── */
.page { max-width: 1100px; margin: 0 auto; padding: 24px 20px 60px; }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.page-sub { font-size: 14px; color: var(--sub); margin-bottom: 24px; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.card-accent { border-color: var(--accent); border-width: 2px; }
.card-label { font-size: 12px; color: var(--sub); margin-bottom: 2px; }
.card-value { font-size: 28px; font-weight: 700; }
.card-value small { font-size: 14px; font-weight: 400; }
.card-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.card-accent .card-value { color: var(--accent); }

/* ── Section ── */
.section { margin-bottom: 32px; }
.section-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }

/* ── Insight Box ── */
.insight { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; font-size: 14px; }
.insight p { margin-bottom: 4px; }

/* ── Interactive Panel ── */
.estimator { background: linear-gradient(135deg,#eff6ff,#f0f9ff); border: 2px solid var(--accent); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.estimator h3 { font-size: 16px; margin-bottom: 12px; }
.est-inputs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.est-inputs label { font-size: 13px; color: var(--sub); display: flex; flex-direction: column; gap: 4px; }
.est-inputs select, .est-inputs input { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; min-width: 130px; }
.est-result { text-align: center; padding: 16px; background: #fff; border-radius: 8px; }
.est-price { font-size: 32px; font-weight: 700; color: var(--accent); }
.est-range { font-size: 13px; color: var(--sub); margin-top: 4px; }

/* ── Chart Placeholder ── */
.chart-placeholder { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; height: 300px; display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 14px; }

/* ── Table ── */
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.tbl th { background: #f8fafc; font-size: 12px; font-weight: 600; color: var(--sub); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:hover { background: var(--accent-light); }
.tbl a { font-weight: 500; }

/* ── Compare Bar ── */
.compare-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 20px; font-size: 14px; flex-wrap: wrap; }
.compare-bar .up { color: var(--green); font-weight: 700; }
.compare-bar .down { color: var(--red); font-weight: 700; }

/* ── CTA ── */
.cta-box { background: linear-gradient(135deg,#1e40af,#1a56db); color: #fff; border-radius: 12px; padding: 28px; text-align: center; margin: 32px 0; }
.cta-box h3 { font-size: 18px; margin-bottom: 8px; }
.cta-box p { font-size: 14px; opacity: .85; margin-bottom: 16px; }
.cta-btn { display: inline-block; padding: 12px 32px; background: #fff; color: var(--accent-dark); border-radius: 8px; font-weight: 700; font-size: 15px; }
.cta-btn:hover { opacity: .9; text-decoration: none; }

/* ── Tags ── */
.tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.tag-m { background: #dbeafe; color: #1e40af; }
.tag-t { background: #dcfce7; color: #166534; }
.tag-k { background: #fef3c7; color: #92400e; }

/* ── Per-minute badge ── */
.per-min { text-align: center; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 24px; }
.per-min .big { font-size: 28px; font-weight: 700; color: var(--red); }

/* ── Map Link ── */
.map-link { display: inline-block; padding: 10px 24px; background: var(--accent); color: #fff; border-radius: var(--radius); font-weight: 600; font-size: 14px; }
.map-link:hover { opacity: .9; text-decoration: none; }

/* ── Link Grid ── */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.link-grid a { display: block; padding: 10px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.link-grid a:hover { border-color: var(--accent); text-decoration: none; }
.link-grid .cnt { font-size: 11px; color: var(--sub); }

/* ── Footer ── */
.g-footer { background: #1e293b; color: #94a3b8; padding: 32px 20px; margin-top: 40px; font-size: 13px; }
.g-footer-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 40px; flex-wrap: wrap; }
.g-footer h4 { color: #e2e8f0; font-size: 13px; margin-bottom: 8px; }
.g-footer a { color: #94a3b8; }
.g-footer a:hover { color: #fff; }
.g-footer ul { list-style: none; line-height: 2; }
.g-footer-bottom { max-width: 1100px; margin: 20px auto 0; padding-top: 16px; border-top: 1px solid #334155; font-size: 11px; }
.g-footer-author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.g-footer-author img { width: 40px; height: 40px; border-radius: 50%; background: #475569; }

/* ── Hero (TOP) ── */
.hero { text-align: center; padding: 60px 20px 40px; background: linear-gradient(135deg,#eff6ff 0%,#f8fafc 50%,#ecfdf5 100%); }
.hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.hero p { color: var(--sub); font-size: 15px; margin-bottom: 28px; }
.search-box { max-width: 580px; margin: 0 auto; position: relative; }
.search-input { width: 100%; padding: 14px 18px 14px 44px; font-size: 16px; border: 2px solid var(--border); border-radius: 28px; outline: none; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.search-input:focus { border-color: var(--accent); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--sub); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .g-nav { display: none; }
  .hero h1 { font-size: 22px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card-value { font-size: 22px; }
  .page { padding: 16px 12px 40px; }
  .est-price { font-size: 26px; }
  .link-grid { grid-template-columns: 1fr 1fr; }
  .g-footer-inner { flex-direction: column; gap: 20px; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .compare-bar { font-size: 13px; }
}
