:root {
  color-scheme: light;
  --bg: #eaf1ff;
  --surface: #ffffff;
  --surface-light: #f7faff;
  --text: #16233b;
  --muted: #4b5d78;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --card-border: rgba(22, 35, 59, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  background: var(--surface-light);
  border: 1px solid rgba(22, 35, 59, 0.08);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(22, 35, 59, 0.12);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 24px;
  border-bottom: 1px solid rgba(22, 35, 59, 0.12);
}

.navbar h1 {
  font-size: 1.4rem;
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 12px;
  font-size: 0.95rem;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lang-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(22, 35, 59, 0.12);
  box-shadow: 0 10px 18px rgba(22, 35, 59, 0.08);
}

.lang-button {
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.lang-button.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.35);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  margin-top: 32px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid rgba(22, 35, 59, 0.18);
  border-radius: 24px;
  box-shadow: 0 22px 40px rgba(22, 35, 59, 0.12);
}

.hero img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(37, 99, 235, 0.3);
  box-shadow: 0 16px 32px rgba(22, 35, 59, 0.12);
  justify-self: center;
}

.hero h2 {
  font-size: 2rem;
  margin: 0 0 12px;
}

.hero p {
  margin: 0 0 16px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.view-toggle {
  display: inline-flex;
  gap: 10px;
  margin-top: 24px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(22, 35, 59, 0.16);
  box-shadow: 0 12px 24px rgba(22, 35, 59, 0.08);
}

.toggle-button {
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.toggle-button.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.35);
}

.is-hidden {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.2);
}

.button.secondary {
  background: transparent;
  border: 1px solid rgba(37, 99, 235, 0.35);
  color: var(--accent);
}

.section {
  margin-top: 48px;
}

.section h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.section .lead {
  color: var(--muted);
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 12px 24px rgba(22, 35, 59, 0.08);
}

.card h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card ul,
.card ol {
  margin: 0;
  padding-left: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  font-size: 0.9rem;
}

.timeline li {
  margin-bottom: 10px;
}

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(22, 35, 59, 0.12);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .container {
    padding: 24px 16px 64px;
    border-radius: 20px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .nav-group {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding: 24px;
  }

  .view-toggle {
    flex-direction: column;
    align-items: stretch;
  }

  .hero img {
    width: 180px;
    height: 180px;
  }

  .hero h2 {
    font-size: 1.65rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button.secondary {
    justify-content: center;
    width: 100%;
  }
}
