/* ===== Base ===== */
body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Dot Pattern Background ===== */
.dot-pattern {
  background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===== Navigation Glassmorphism ===== */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 9999px;
}

/* ===== Compact Career List ===== */
.career-list {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.career-item {
  position: relative;
  padding: 8px 0 8px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.career-dot {
  position: absolute;
  left: -11px;
  top: 14px;
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px #2563eb;
}

.career-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  min-width: 100px;
  flex-shrink: 0;
}

.career-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2937;
}

a.career-link {
  text-decoration: none;
  color: inherit;
}

a.career-link:hover {
  text-decoration: underline;
}

.career-role {
  font-size: 0.8rem;
  color: #6b7280;
}

@media (max-width: 639px) {
  .career-year {
    min-width: auto;
    width: 100%;
  }
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Smooth Scroll ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Section Title Underline ===== */
.section-title {
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #2563eb;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== Hero Canvas ===== */
.hero-canvas-wrap {
  width: 100%;
  max-width: 640px;
  height: 180px;
  position: relative;
}

@media (min-width: 768px) {
  .hero-canvas-wrap {
    height: 220px;
  }
}

.hero-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===== Scrollbar (subtle) ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
