* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ナビ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.btn-nav:hover { background: var(--primary-dark) !important; }

/* ヒーロー */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 60px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 60px;
}

.hero-content { flex: 1; }

.badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid #bfdbfe;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.accent { color: var(--primary); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--primary);
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary:hover {
  background: #eff6ff;
  transform: translateY(-1px);
}

/* ヒーローイラスト */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration {
  position: relative;
  width: 380px;
  height: 380px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 24px;
  border: 2px solid #bfdbfe;
}

.pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: float 3s ease-in-out infinite;
}

.pin-emoji {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.pin-label {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pin-1 { top: 40px; left: 50px; animation-delay: 0s; }
.pin-2 { top: 60px; right: 60px; animation-delay: 0.8s; }
.pin-3 { bottom: 80px; left: 70px; animation-delay: 1.6s; }
.pin-4 { bottom: 60px; right: 50px; animation-delay: 0.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* セクション共通 */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-inner h2 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* 特徴 */
.features { background: var(--white); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* カテゴリ */
.categories { background: var(--bg); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--primary);
}

.cat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cat-name {
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
}

.cat-arrow {
  font-size: 1.3rem;
  color: var(--text-light);
  transition: color 0.2s, transform 0.2s;
}

.cat-card:hover .cat-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  padding: 80px 24px;
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.cta .btn-primary {
  background: var(--accent);
  color: var(--text);
  font-size: 1.1rem;
  padding: 16px 36px;
}

.cta .btn-primary:hover { background: #d97706; }

/* フッター */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: 60px 24px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  color: var(--white);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 240px;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-links div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  font-size: 0.85rem;
  text-align: center;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding-top: 100px;
    text-align: center;
  }

  .hero h1 { font-size: 2.2rem; }
  .hero-actions { justify-content: center; }
  .hero-illustration { width: 300px; height: 300px; }
  .nav-links a:not(.btn-nav) { display: none; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* サービス状況 */
.status-section { background: var(--white); }

.overall-status {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  border-left: 4px solid #22c55e;
}

.overall-status.checking { border-left-color: #f59e0b; }
.overall-status.error { border-left-color: #ef4444; }

.overall-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-green 2s infinite;
}

.overall-status.checking .overall-dot { background: #f59e0b; animation: pulse-yellow 1s infinite; }
.overall-status.error .overall-dot { background: #ef4444; animation: none; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

@keyframes pulse-yellow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(245,158,11,0); }
}

.overall-text strong { display: block; font-size: 1.05rem; font-weight: 700; }
.overall-text span { font-size: 0.85rem; color: var(--text-light); }

.services-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.service-left { display: flex; align-items: center; gap: 12px; }
.service-icon { font-size: 1.3rem; width: 36px; text-align: center; }
.service-name { font-weight: 600; font-size: 0.95rem; }
.service-url { font-size: 0.8rem; color: var(--text-light); }

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.status-badge.ok { background: #f0fdf4; color: #16a34a; }
.status-badge.checking { background: #fffbeb; color: #d97706; }
.status-badge.error { background: #fff0f0; color: #dc2626; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-badge.ok .status-dot { background: #16a34a; }
.status-badge.checking .status-dot { background: #d97706; }
.status-badge.error .status-dot { background: #dc2626; }

.refresh-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.85rem;
}

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btn-refresh:hover { background: var(--primary-dark); }

.btn-refresh.spinning svg { animation: spin 0.8s linear infinite; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
