:root {
  --bg-dark: #0f1117;
  --bg-card: rgba(20, 23, 31, 0.8);
  --bg-panel: #151823;
  --bg-soft: rgba(255, 255, 255, 0.04);
  --text-primary: #f6f7fb;
  --text-muted: #a5adc6;
  --accent: #5fd3ff;
  --accent-strong: #3e95ff;
  --divider: rgba(255, 255, 255, 0.08);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --shadow-elevated: 0 40px 120px rgba(6, 10, 30, 0.45);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

.gradient-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(95, 211, 255, 0.25), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(62, 149, 255, 0.35), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(128, 108, 255, 0.25), transparent 50%),
    var(--bg-dark);
  z-index: -2;
}

main {
  width: min(1200px, 90vw);
  margin: 0 auto;
  padding: 120px 0 80px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1260px, 94vw);
  margin: 0 auto;
  padding: 30px 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions .lang-toggle {
  margin: 0;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
}

.brand-label {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.brand-name {
  margin: 2px 0 0;
  font-size: 1.4rem;
  font-weight: 600;
}

nav {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
}

nav a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--text-primary);
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

.hero-text {
  flex: 1 1 420px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(20px);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  margin: 8px 0 24px;
  line-height: 1.3;
}

.lead {
  color: var(--text-muted);
  font-size: 1rem;
}


.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--bg-dark);
  box-shadow: 0 15px 35px rgba(95, 211, 255, 0.3);
}

.cta.primary:hover {
  transform: translateY(-2px);
}

.cta.secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

.cta.ghost {
  border-color: transparent;
  color: var(--text-muted);
  padding-left: 18px;
  padding-right: 18px;
}

.panel {
  margin-bottom: 80px;
  padding: 60px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-soft);
}

.panel.soft {
  background: var(--bg-soft);
  border-color: rgba(255, 255, 255, 0.05);
}

.panel-header {
  max-width: 640px;
}

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

.panel-header p:last-child {
  color: var(--text-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--divider);
  min-height: 220px;
}

.value-label {
  margin: 0 0 16px;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--text-muted);
}

.value-card h3 {
  margin: 0 0 12px;
}

.value-card p {
  margin: 0;
  color: var(--text-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.service-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 210px;
}

.service-card h3 {
  margin: 0 0 12px;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

dl {
  margin: 0;
}

dt {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

dd {
  margin: 8px 0 0;
  font-weight: 600;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(95, 211, 255, 0.08), rgba(62, 149, 255, 0.08));
  border: 1px solid rgba(95, 211, 255, 0.2);
}

.contact p {
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.achievement-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.achievement-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.achievement-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
  line-height: 1.6;
}

.achievement-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 12px rgba(95, 211, 255, 0.6);
}

.summary-content {
  margin-top: 32px;
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary-list li {
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
  line-height: 1.7;
}

.summary-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 12px rgba(95, 211, 255, 0.6);
}

.summary-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.site-footer {
  width: min(1260px, 94vw);
  margin: 0 auto 60px;
  padding: 32px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-note {
  margin: 0;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-actions {
    flex-direction: column;
  }

  .hero-text,
  .hero-card {
    padding: 32px;
  }

  .panel {
    padding: 40px 24px;
  }

  .contact {
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-wrapper {
  width: min(640px, 90vw);
  margin: 0 auto;
  padding: 80px 0;
}

.error-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--divider);
  backdrop-filter: blur(18px);
}

.error-card h1 {
  margin: 16px 0 16px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.error-card .lead {
  margin-bottom: 32px;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle button.active {
  background: var(--accent);
  color: var(--bg-dark);
}

/* Work History / Achievements Page */
.work-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-elevated);
  backdrop-filter: blur(20px);
  border: 1px solid var(--divider);
}

.work-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}

.work-category {
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
}

.work-item h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.3;
}

.work-period {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.work-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.work-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-section h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.work-section p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.work-section ul {
  margin: 0;
  padding-left: 24px;
  color: var(--text-muted);
  line-height: 1.8;
}

.work-section ul li {
  margin-bottom: 8px;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 0;
}

.tech-list > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-list dt {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.tech-list dd {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
