:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --text: #1c2723;
  --muted: #65726d;
  --line: #d9ded5;
  --accent: #0b6b57;
  --accent-strong: #084b3e;
  --coral: #c35b46;
  --shadow: 0 18px 50px rgba(31, 42, 37, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(11, 107, 87, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(195, 91, 70, 0.08), transparent 30%),
    var(--bg);
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", "Microsoft YaHei", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(28, 39, 35, 0.08);
  background: rgba(247, 244, 239, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.language-switcher {
  display: inline-flex;
  min-width: 116px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.language-button {
  flex: 1;
  min-width: 34px;
  border: 0;
  border-radius: 999px;
  padding: 6px 8px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.language-button.active {
  color: #fff;
  background: var(--accent);
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: end;
  min-height: calc(100vh - 78px);
  padding: 86px 0 72px;
}

.eyebrow,
.section-kicker,
.project-type,
.panel-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 8px 0 18px;
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.hero-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.hero-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
}

.section {
  padding: 74px 0;
  border-top: 1px solid rgba(28, 39, 35, 0.12);
}

.section-heading {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.lead {
  max-width: 780px;
  margin: 0 0 0 222px;
  color: var(--muted);
  font-size: 1.18rem;
}

.timeline,
.projects {
  display: grid;
  gap: 18px;
  margin-left: 222px;
}

.timeline-item,
.project-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child,
.project-card:first-child {
  border-top: 0;
}

time,
.project-number {
  color: var(--coral);
  font-weight: 700;
}

.timeline-item h3,
.project-card h3 {
  margin: 0 0 6px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.timeline-item p,
.project-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.project-type {
  margin-bottom: 8px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 222px;
}

.skill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.contact-section {
  padding-bottom: 88px;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-left: 222px;
  font-size: 1.08rem;
  font-weight: 700;
}

.contact-links a {
  width: fit-content;
  color: var(--accent-strong);
  border-bottom: 1px solid rgba(8, 75, 62, 0.28);
}

.site-footer {
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid rgba(28, 39, 35, 0.12);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 64px 0 54px;
  }

  .section-heading,
  .timeline-item,
  .project-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lead,
  .timeline,
  .projects,
  .skill-list,
  .contact-links {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    gap: 12px;
    padding: 14px;
  }

  .brand {
    font-size: 0.94rem;
  }

  .language-switcher {
    min-width: 104px;
  }

  h1 {
    font-size: 3.1rem;
  }

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

  .button {
    width: 100%;
  }

  .section {
    padding: 54px 0;
  }
}
