/* ===========================================
   BizInsight - 共通スタイルシート
   背景: 白/ライトグレー（医療系の清潔感）
   プライマリ: #0EA5E9 (スカイブルー)
   アクセント: #10B981 (エメラルド)
   フォント: Noto Sans JP / Inter
   =========================================== */

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

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: #1E293B;
  background: #F8FAFC;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* 英数字はInterを優先 */
h1, h2, h3, h4, h5, h6,
.stat-number, .score-value, .chart-label {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
}

a {
  color: #0EA5E9;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #0284C7;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Typography --- */
h1 { font-size: 2rem; font-weight: 700; line-height: 1.3; }
h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.4; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.5; }

p { margin-bottom: 1rem; }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  padding: 4rem 0;
  background: #FFFFFF;
}

/* --- Header --- */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0EA5E9;
  letter-spacing: -0.02em;
}

.site-logo span {
  color: #1E293B;
}

.site-nav a {
  color: #475569;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 2rem;
}

.site-nav a:hover {
  color: #0EA5E9;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #F0FDFA 100%);
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.25rem;
  color: #0F172A;
  margin-bottom: 1.25rem;
}

.hero .lead {
  font-size: 1.15rem;
  color: #475569;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.9;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
}

.btn-primary {
  background: #0EA5E9;
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #0284C7;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
  background: #FFFFFF;
  color: #0EA5E9;
  border: 2px solid #0EA5E9;
}

.btn-secondary:hover {
  background: #F0F9FF;
}

.btn-accent {
  background: #10B981;
  color: #FFFFFF;
}

.btn-accent:hover {
  background: #059669;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* --- Cards --- */
.card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-icon-blue { background: #E0F2FE; color: #0EA5E9; }
.card-icon-green { background: #D1FAE5; color: #10B981; }
.card-icon-amber { background: #FEF3C7; color: #F59E0B; }
.card-icon-red { background: #FEE2E2; color: #EF4444; }

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: #64748B;
  font-size: 0.95rem;
}

/* --- Grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* --- Stats --- */
.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0EA5E9;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748B;
  margin-top: 0.25rem;
}

/* --- Score Display --- */
.score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
}

.score-value {
  font-size: 2.5rem;
  font-weight: 700;
}

.score-max {
  font-size: 0.85rem;
  color: #94A3B8;
}

.score-good { border-color: #10B981; }
.score-good .score-value { color: #10B981; }

.score-warning { border-color: #F59E0B; }
.score-warning .score-value { color: #F59E0B; }

.score-danger { border-color: #EF4444; }
.score-danger .score-value { color: #EF4444; }

/* --- Form --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #FFFFFF;
}

.form-input:focus {
  outline: none;
  border-color: #0EA5E9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-input::placeholder {
  color: #9CA3AF;
}

.form-hint {
  font-size: 0.8rem;
  color: #6B7280;
  margin-top: 0.3rem;
}

/* --- Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  background: #F1F5F9;
  color: #475569;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #E2E8F0;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  color: #334155;
}

.data-table tr:hover td {
  background: #F8FAFC;
}

/* --- Tags / Badges --- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-blue { background: #DBEAFE; color: #1D4ED8; }
.badge-green { background: #D1FAE5; color: #047857; }
.badge-amber { background: #FEF3C7; color: #B45309; }
.badge-red { background: #FEE2E2; color: #B91C1C; }

/* --- Alert / Callout --- */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border-left: 4px solid;
  margin-bottom: 1.5rem;
}

.callout-info {
  background: #F0F9FF;
  border-left-color: #0EA5E9;
  color: #0C4A6E;
}

.callout-success {
  background: #F0FDF4;
  border-left-color: #10B981;
  color: #064E3B;
}

.callout-warning {
  background: #FFFBEB;
  border-left-color: #F59E0B;
  color: #78350F;
}

.callout-danger {
  background: #FEF2F2;
  border-left-color: #EF4444;
  color: #7F1D1D;
}

/* --- Report Specific --- */
.report-header {
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  color: #FFFFFF;
  padding: 3rem 0;
  border-radius: 0 0 20px 20px;
}

.report-header h1 {
  color: #FFFFFF;
  font-size: 1.75rem;
}

.report-header .subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.report-section {
  margin-bottom: 3rem;
}

.report-section h2 {
  color: #0F172A;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #E2E8F0;
}

.report-section h2 .section-num {
  display: inline-block;
  background: #0EA5E9;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* --- Chart Container --- */
.chart-container {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
}

.chart-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 1rem;
}

.chart-wrapper {
  position: relative;
  height: 300px;
}

/* --- Map Container --- */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  height: 400px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  color: #FFFFFF;
  padding: 4rem 0;
  text-align: center;
  border-radius: 16px;
  margin: 2rem 0;
}

.cta-section h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-section .btn {
  background: #FFFFFF;
  color: #0EA5E9;
  font-weight: 700;
}

.cta-section .btn:hover {
  background: #F0F9FF;
  transform: translateY(-1px);
}

/* --- Footer --- */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
}

.site-footer a {
  color: #CBD5E1;
}

.site-footer a:hover {
  color: #FFFFFF;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-copy {
  border-top: 1px solid #1E293B;
  padding-top: 1.5rem;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.75rem; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .site-nav { display: none; }

  .section { padding: 2.5rem 0; }
  .section-alt { padding: 2.5rem 0; }

  .stat-number { font-size: 2rem; }

  .chart-wrapper { height: 250px; }
  .map-container { height: 300px; }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
  .card { padding: 1.5rem; }
}

/* --- Print (for reports) --- */
@media print {
  body { background: #FFFFFF; }
  .site-header, .site-footer, .cta-section { display: none; }
  .card { box-shadow: none; border: 1px solid #E2E8F0; }
  .chart-container { box-shadow: none; border: 1px solid #E2E8F0; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: #64748B; }
.text-small { font-size: 0.85rem; }
.text-primary { color: #0EA5E9; }
.text-accent { color: #10B981; }
.text-danger { color: #EF4444; }
.text-warning { color: #F59E0B; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }
