:root {
  --bg: #ffffff;
  --text: #111113;
  --muted: #6c7280;
  --line: #e8eaf0;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --dark: #08090b;
  --dark-card: #141519;
  --dark-card-2: #101114;
  --dark-line: #292b31;
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 16px 45px rgba(16, 24, 40, 0.08);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}

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

button {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1320px, calc(100% - 48px));
  height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  color: #666b76;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--blue);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta {
  min-height: 46px;
  padding: 0 24px;
  background: var(--text);
  color: var(--white);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
  transition: transform 0.2s ease;
}

.mobile-nav {
  display: none;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.mobile-nav a {
  display: block;
  padding: 12px;
  color: var(--muted);
  font-weight: 700;
}

.section-grid {
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero {
  min-height: 850px;
  display: flex;
  align-items: center;
  padding: 90px 0 80px;
}

.hero-profile {
  margin-top: 32px;
  margin-bottom: 28px;
  text-align: center;
}

.hero-name-ja {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #111111;
}

.hero-name-en {
  margin: 8px 0 0;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #3b82f6;
}

.hero-role {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
}

.hero-inner {
  text-align: center;
}

.pill {
  width: fit-content;
  margin: 0 auto 52px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 14px;
}

.pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.13;
  letter-spacing: -0.08em;
}

.hero h1 span,
.vision h2 span {
  color: var(--blue);
}

.hero-lead,
.hero-sub {
  max-width: 760px;
  margin: 28px auto 0;
  color: #5d6472;
  font-size: 18px;
  font-weight: 600;
}

.hero-sub {
  margin-top: 10px;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  min-height: 56px;
  padding: 0 30px;
}

.button-primary {
  background: var(--text);
  color: var(--white);
  box-shadow: 0 18px 35px rgba(17, 17, 19, 0.18);
}

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

.hero-stats {
  margin: 84px auto 0;
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hero-stats article {
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.hero-stats span {
  display: block;
  margin-top: 4px;
  color: #8a909b;
  font-size: 13px;
  font-weight: 800;
}

.dark-section {
  background: var(--dark);
  color: var(--white);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.about {
  padding: 170px 0;
}

.section-kicker {
  margin: 0 0 28px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-copy h2,
.project-heading h2,
.skills h2,
.timeline-container h2,
.vision h2,
.contact h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.07em;
}

.section-copy p {
  max-width: 620px;
  margin: 32px 0 0;
  color: #c5cad6;
  font-size: 18px;
  font-weight: 600;
}

.check-list {
  display: grid;
  gap: 16px;
}

.check-list article {
  min-height: 76px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  background: var(--dark-card);
}

.check-list span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.check-list p {
  margin: 0;
  color: #eef2f8;
  font-size: 17px;
  font-weight: 700;
}

.project-section {
  padding: 150px 0;
}

.project-heading {
  margin-bottom: 64px;
}

.project-heading p:not(.section-kicker) {
  margin: 14px 0 0;
  color: #b9bfca;
  font-size: 18px;
  font-weight: 600;
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.project-left,
.project-right {
  display: grid;
  gap: 26px;
  align-content: start;
}

.dark-card,
.code-window {
  border: 1px solid var(--dark-line);
  border-radius: 22px;
  background: var(--dark-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.project-description,
.progress-card,
.feature-card,
.architecture-card {
  padding: 32px;
}

.project-description p {
  margin: 0;
  color: #f5f7fb;
  font-size: 17px;
  font-weight: 700;
}

.status-badges {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-badges span,
.tech-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.status-badges span {
  padding: 6px 14px;
  border: 1px solid currentColor;
}

.status-green {
  color: #00dc82;
  background: rgba(0, 220, 130, 0.12);
}

.status-yellow {
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
}

.status-gray {
  color: #a5adba;
  background: rgba(165, 173, 186, 0.12);
}

.progress-card h3,
.feature-card h3,
.architecture-card h3 {
  margin: 0 0 24px;
  color: #8e96a6;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.progress-item {
  margin-top: 18px;
}

.progress-item > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #f1f4f9;
  font-weight: 800;
}

.progress-item > div:first-child span:last-child {
  color: #b7bdc8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.progress-track {
  margin-top: 8px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #2a2c31;
}

.progress-track span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00dc82, #3b82f6, #d946ef, #facc15);
}

.feature-card ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card li {
  color: #dce2ec;
  font-weight: 700;
}

.feature-card li::before {
  content: "›";
  margin-right: 10px;
  color: var(--blue);
  font-weight: 900;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tags span {
  padding: 7px 14px;
  border: 1px solid #2b2e35;
  background: #181a1f;
  color: #b9bfcc;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code-window {
  overflow: hidden;
  background: var(--dark-card-2);
}

.window-bar {
  height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #1e2025;
}

.window-bar p {
  margin: 0 0 0 14px;
  color: #858d9d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.red {
  background: #ef4444;
}

.yellow {
  background: #f59e0b;
}

.green {
  background: #10b981;
}

.endpoint-list {
  padding: 28px 32px 34px;
}

.code-comment {
  margin: 0 0 28px;
  color: #606777;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.endpoint {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}

.method {
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
}

.method.post {
  color: #00dc82;
  background: rgba(0, 220, 130, 0.12);
}

.method.get {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
}

.endpoint strong {
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
}

.endpoint p {
  margin: 2px 0 0;
  color: #6f7787;
  font-size: 13px;
}

.architecture-card pre {
  margin: 0;
  white-space: pre-wrap;
}

.architecture-card code {
  color: #d5dbea;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 1.9;
}

.activities,
.timeline-section,
.skills {
  padding: 150px 0;
}

.light-copy p {
  color: #646b78;
}

.activity-cards {
  display: grid;
  gap: 18px;
}

.activity-cards article {
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.activity-icon,
.skill-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #eff6ff;
  color: var(--blue);
  font-weight: 900;
}

.activity-icon {
  width: 56px;
  height: 56px;
  font-size: 26px;
}

.activity-cards h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.activity-cards p {
  margin: 4px 0 0;
  color: #8a909b;
  font-weight: 700;
}

.timeline-section {
  background: #f7f8fb;
}

.timeline-container {
  max-width: 860px;
}

.timeline {
  margin-top: 70px;
  border-left: 2px solid #dfe3eb;
}

.timeline-year {
  position: relative;
  padding: 0 0 70px 52px;
}

.timeline-year:last-child {
  padding-bottom: 0;
}

.timeline-year > span {
  position: absolute;
  left: -58px;
  min-width: 116px;
  padding: 6px 24px;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-dark);
  text-align: center;
  font-weight: 900;
}

.timeline-year ul {
  margin: 0;
  padding: 42px 0 0;
  list-style: none;
}

.timeline-year li {
  position: relative;
  margin-top: 14px;
  color: #636a77;
  font-size: 16px;
  font-weight: 600;
}

.timeline-year li::before {
  content: "";
  position: absolute;
  left: -58px;
  top: 0.8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c7ccd6;
}

.timeline-year strong {
  color: var(--text);
}

.skills h2 {
  margin-bottom: 70px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-grid article {
  min-height: 170px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.skill-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.skill-icon.blue {
  background: #eff6ff;
  color: var(--blue);
}

.skill-icon.green {
  background: #ecfdf5;
  color: #10b981;
}

.skill-icon.purple {
  background: #f5f3ff;
  color: #8b5cf6;
}

.skill-icon.orange {
  background: #fff7ed;
  color: #f59e0b;
}

.skill-icon.pink {
  background: #fdf2f8;
  color: #ec4899;
}

.skill-grid h3 {
  margin: 0 0 20px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
}

.vision {
  padding: 170px 0;
}

.narrow-container {
  max-width: 900px;
}

.vision h2 {
  font-size: clamp(52px, 6vw, 82px);
}

.vision p {
  max-width: 740px;
  margin: 50px 0 0;
  color: #c8ceda;
  font-size: 18px;
  font-weight: 600;
}

.contact {
  padding: 150px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 70px;
}

.contact p:not(.section-kicker) {
  margin: 28px 0 0;
  color: #c7ceda;
  font-size: 18px;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-grid a {
  min-height: 88px;
  padding: 22px 26px;
  border: 1px solid var(--dark-line);
  border-radius: 18px;
  background: var(--dark-card);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  background: #111827;
}

.contact-grid span,
.contact-grid small {
  display: block;
}

.contact-grid span {
  font-size: 18px;
  font-weight: 900;
}

.contact-grid small {
  margin-top: 2px;
  color: #8f97a6;
  font-weight: 700;
}

.site-footer {
  background: var(--dark);
  border-top: 1px solid #16181d;
  color: #7d8491;
}

.footer-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: var(--white);
  font-size: 18px;
}

.footer-inner p {
  margin: 4px 0 0;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.is-open .mobile-nav {
    display: block;
  }

  .site-header.is-open .menu-button span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header.is-open .menu-button span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
  }

  .hero-stats,
  .two-column,
  .project-layout,
  .contact-container,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    max-width: 520px;
  }

  .about,
  .project-section,
  .activities,
  .timeline-section,
  .skills,
  .vision,
  .contact {
    padding: 100px 0;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner,
  .mobile-nav {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    height: 64px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-lead,
  .hero-sub,
  .section-copy p,
  .vision p,
  .contact p:not(.section-kicker) {
    font-size: 16px;
  }

  .hero-stats,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .feature-card ul {
    grid-template-columns: 1fr;
  }

  .project-description,
  .progress-card,
  .feature-card,
  .architecture-card,
  .endpoint-list {
    padding: 24px;
  }

  .endpoint {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline {
    margin-left: 44px;
  }

  .timeline-year {
    padding-left: 34px;
  }

  .timeline-year > span {
    left: -74px;
    min-width: 92px;
    padding-inline: 14px;
  }

  .timeline-year li::before {
    left: -40px;
  }
}
