:root {
  color-scheme: light;
  --ink: #182026;
  --muted: #5b6871;
  --line: #d9e0e4;
  --paper: #f7f5ef;
  --surface: #ffffff;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --warm: #c45d32;
  --blue: #2f5d8c;
  --shadow: 0 22px 60px rgba(24, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(247, 245, 239, 0.92);
  border-bottom: 1px solid rgba(217, 224, 228, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.tag-row,
.project-topline,
.profile-strip,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent-dark);
  font-size: 0.9rem;
}

.nav-links {
  gap: clamp(14px, 3vw, 30px);
}

.nav-links a,
.text-link,
.site-footer a {
  text-decoration: none;
  font-weight: 700;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), rgba(196, 93, 50, 0.08) 48%, rgba(47, 93, 140, 0.12)),
    var(--paper);
}

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

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

h1 {
  max-width: 860px;
  margin: 14px 0 20px;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: #34424a;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}

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

.button.secondary {
  color: var(--accent-dark);
  border-color: rgba(11, 79, 74, 0.28);
  background: rgba(255, 255, 255, 0.58);
}

.hero-visual {
  position: relative;
  max-width: 440px;
  justify-self: end;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.profile-strip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(24, 32, 38, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.intro,
.activity {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.58fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.activity p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading {
  margin-bottom: 30px;
}

.projects {
  background: #fffdf8;
  border-bottom: 1px solid var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.project-topline {
  justify-content: space-between;
  gap: 12px;
}

.version {
  color: var(--blue);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 93, 140, 0.1);
  white-space: nowrap;
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.tag-row span {
  padding: 4px 9px;
  border: 1px solid rgba(91, 104, 113, 0.25);
  border-radius: 999px;
  color: #40505a;
  font-size: 0.82rem;
  font-weight: 700;
}

.text-link {
  margin-top: 18px;
  color: var(--accent-dark);
}

.profile-section {
  border-bottom: 1px solid var(--line);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-panel {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 28px;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.credential-badge {
  width: min(150px, 48vw);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.feature-panel strong {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.feature-panel span:last-child {
  color: var(--muted);
}

.activity {
  align-items: center;
}

.activity .button {
  justify-self: end;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #182026;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 980px) {
  .hero,
  .intro,
  .activity {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    justify-self: start;
    max-width: 360px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity .button {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .hero {
    padding-top: 42px;
  }

  .hero-visual {
    max-width: 100%;
  }

  .profile-strip {
    position: static;
    margin-top: 10px;
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
  }

  .project-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
