@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ── Design Tokens ─────────────────────────────── */
:root {
  --primary:        #0891B2;
  --primary-dark:   #0E7490;
  --primary-light:  #E0F7FA;
  --secondary:      #0D9488;
  --success:        #10B981;
  --warning:        #F59E0B;
  --bg:             #F8FAFB;
  --card:           #FFFFFF;
  --text:           #1E293B;
  --muted:          #64748B;
  --border:         #E8EEF4;
  --radius:         16px;
  --radius-sm:      10px;
  --shadow:         0 4px 24px rgba(8,145,178,.10);
  --shadow-sm:      0 2px 12px rgba(8,145,178,.07);
}

/* ── Base ──────────────────────────────────────── */
body {
  background: var(--bg);
  font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.75;
}

/* ── Navbar ────────────────────────────────────── */
.navbar {
  background: #fff !important;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,.05);
  padding: 12px 0;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary) !important;
  letter-spacing: -0.3px;
}
.navbar-brand .brand-sub {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}
.navbar-nav .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: 6px 14px !important;
  border-radius: 20px;
  transition: background .15s, color .15s;
}
.navbar-nav .nav-link:hover {
  background: var(--primary-light);
  color: var(--primary) !important;
}
.btn-signup {
  background: var(--primary);
  color: #fff !important;
  border-radius: 24px;
  padding: 7px 20px !important;
  font-weight: 600;
  font-size: .85rem;
  transition: background .15s, transform .1s;
}
.btn-signup:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ── Hero ──────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #0891B2 0%, #0D9488 100%);
  color: #fff;
  padding: 64px 0 52px;
  margin: -24px -12px 40px !important;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}
@media(min-width:576px){
  .hero-section { margin: -24px -24px 40px !important; }
}
.hero-section .form-control,
.hero-section .form-select {
  border: none;
  border-radius: 14px;
  padding: 11px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.hero-section .btn-light {
  border-radius: 14px;
  font-weight: 700;
  padding: 11px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  transition: transform .1s;
}
.hero-section .btn-light:hover { transform: translateY(-1px); }

/* ── Cards ─────────────────────────────────────── */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--card);
  transition: box-shadow .2s;
}
.card:not(.border-primary) { border-color: var(--border); }

/* ── Stat cards ────────────────────────────────── */
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 12px;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.5rem;
}

/* ── Hospital card ─────────────────────────────── */
.hospital-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.hospital-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ── Review card ────────────────────────────────── */
.review-card {
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ── Rating badge ───────────────────────────────── */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 700;
  font-size: .85rem;
  color: #92400E;
}
.rating-badge .star-icon { color: #F59E0B; }

/* ── Bool chips ─────────────────────────────────── */
.bool-chip {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
}
.bool-chip.yes { background: #ECFDF5; color: #065F46; }
.bool-chip.no  { background: #F8FAFC; color: #64748B; border: 1px solid var(--border); }

/* ── Staleness badges ───────────────────────────── */
.badge-stale-old      { background: #FEF3C7; color: #92400E; }
.badge-stale-very-old { background: #FEE2E2; color: #991B1B; }

/* ── Star rating input ──────────────────────────── */
.star-radio { display: none; }
.star-rating label {
  font-size: 1.8rem;
  color: #E2E8F0;
  cursor: pointer;
  transition: color .1s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #F59E0B; }
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* ── Buttons ────────────────────────────────────── */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 24px;
  font-weight: 600;
  padding: 8px 22px;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8,145,178,.3);
}
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  border-radius: 24px;
  font-weight: 600;
  transition: all .15s;
}
.btn-outline-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.btn-outline-secondary {
  border-radius: 24px;
  font-weight: 600;
}
.btn-warning {
  border-radius: 24px;
  font-weight: 600;
}
.btn-success {
  border-radius: 24px;
  font-weight: 600;
}
.btn-danger {
  border-radius: 24px;
  font-weight: 600;
}
.btn-sm { border-radius: 20px !important; padding: 5px 14px !important; }

/* ── Section headings ───────────────────────────── */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.section-title-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ── CTA block ──────────────────────────────────── */
.cta-block {
  background: linear-gradient(135deg, #E0F7FA 0%, #E0F2F1 100%);
  border-radius: var(--radius);
  border: 1px solid #B2EBF2;
}

/* ── About block ─────────────────────────────────── */
.about-block {
  background: linear-gradient(135deg, #F0FDFA 0%, #E0F7FA 100%);
  border-radius: var(--radius);
  border: 1px solid #B2EBF2;
}

/* ── Footer ─────────────────────────────────────── */
footer {
  background: #1A2535 !important;
  margin-top: 60px;
}
footer .footer-brand { color: #94A3B8; font-size: .8rem; }
footer a { transition: color .15s; }
footer a:hover { color: #fff !important; }

/* ── Misc ────────────────────────────────────────── */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rounded-xl { border-radius: var(--radius) !important; }
.bg-primary-subtle { background: var(--primary-light) !important; }
.text-primary { color: var(--primary) !important; }

/* ── Article body ────────────────────────────────── */
.article-body h2 { font-size: 1.3rem; font-weight: 700; margin-top: 2rem; margin-bottom: .75rem; padding-left: .75rem; border-left: 4px solid var(--primary); }
.article-body h3 { font-size: 1.1rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: .5rem; }
.article-body p  { margin-bottom: 1rem; }
