/*
=========================================================
N1E LAB - Main site
=========================================================
編集しやすい場所:
下の :root / html[data-theme="dark"] の色を変えると
サイト全体の雰囲気が変わります。
*/

:root {
  color-scheme: light;

  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #111827;
  --muted: #667085;
  --line: #e3e8f0;

  --accent: #4d79ff;
  --accent-2: #845ef7;
  --cyan: #33c8e0;
  --green: #25a866;

  --header-bg: rgba(247, 248, 252, 0.88);
  --shadow: 0 24px 70px rgba(35, 53, 92, 0.11);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #070b14;
  --surface: #0f1624;
  --surface-2: #141d2d;
  --text: #f5f7ff;
  --muted: #a6b0c5;
  --line: #243047;

  --accent: #76a0ff;
  --accent-2: #a281ff;
  --cyan: #65dff4;
  --green: #69dfa2;

  --header-bg: rgba(7, 11, 20, 0.88);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(77, 121, 255, 0.10), transparent 30rem),
    radial-gradient(circle at 90% 16%, rgba(132, 94, 247, 0.08), transparent 27rem),
    var(--bg);
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: max(10px, env(safe-area-inset-top));
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 9px 11px 9px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 36px rgba(0,0,0,.06);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: .03em;
}

.brand-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 11px;
  box-shadow: 0 8px 24px rgba(77,121,255,.24);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.desktop-nav a {
  padding: 8px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.desktop-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  gap: 7px;
}

.theme-button,
.menu-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

.menu-button {
  display: none;
}

.mobile-menu {
  display: none;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.mobile-menu.is-open {
  display: grid;
}

.mobile-menu a {
  padding: 12px 13px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
}

.mobile-menu a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.hero {
  display: grid;
  min-height: 690px;
  min-height: 78svh;
  align-items: center;
  padding: 110px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.hero h1 {
  max-width: 940px;
  margin: 0 0 24px;
  font-size: clamp(48px, 8.2vw, 102px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(110deg, var(--accent), var(--accent-2), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 760px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 900;
}

.button-primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.section {
  padding: 92px 0;
}

.section-head {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.section-head > p {
  margin: 0;
  color: var(--muted);
}

.about-panel {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-panel p {
  max-width: 880px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

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

.project-card {
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 46px;
}

.project-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--accent);
  background: var(--surface-2);
  font-size: 20px;
  font-weight: 900;
}

.project-index {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: var(--surface-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.3;
}

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

.project-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 900;
}

.team-card {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.avatar {
  display: grid;
  width: 108px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-2), var(--cyan));
  font-size: 34px;
  font-weight: 1000;
}

.team-card h3 {
  margin: 0 0 8px;
  font-size: 27px;
}

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

.member-role {
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 300px;
  }

  .team-card {
    grid-template-columns: 88px 1fr;
  }

  .avatar {
    width: 88px;
  }

  .team-card .button {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-top: max(8px, env(safe-area-inset-top));
  }

  .header-inner {
    min-height: 58px;
    border-radius: 17px;
  }

  .brand {
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding: 88px 0 54px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 70px);
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

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

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

  .team-card .button {
    grid-column: auto;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}
