:root {
  --bg: #050505;
  --panel: #0d0d0d;
  --panel-2: #141414;
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --line: rgba(255,255,255,0.12);
  --accent: #00c2ff;
  --accent-soft: rgba(0,194,255,0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(5,5,5,0.68);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 18px;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

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

.menu-button {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  letter-spacing: 0.12em;
}

.section {
  padding: 128px 0;
  position: relative;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #030303;
}

.hero-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.72) 42%, rgba(0,0,0,0.28) 100%),
    radial-gradient(circle at 75% 45%, rgba(0,194,255,0.2), transparent 32%),
    linear-gradient(135deg, #090909 0%, #111 38%, #050505 100%);
}

.hero-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255,255,255,0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.065) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(800px) rotateX(62deg) rotateZ(-8deg) translateY(18%);
  transform-origin: center;
  opacity: 0.32;
}

.hero-frame {
  position: absolute;
  right: 8%;
  top: 18%;
  width: min(46vw, 560px);
  height: min(48vw, 560px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 36px;
  transform: rotate(-8deg);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.01)),
    radial-gradient(circle at 80% 20%, rgba(0,194,255,0.15), transparent 42%);
  box-shadow: 0 40px 120px rgba(0,0,0,0.55);
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
}

.hero-frame::before {
  inset: 42px;
}

.hero-frame::after {
  inset: 84px;
  border-color: rgba(0,194,255,0.28);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.62;
}

.hero-orb-1 {
  right: 16%;
  top: 22%;
  width: 220px;
  height: 220px;
  background: rgba(0,194,255,0.22);
}

.hero-orb-2 {
  right: 5%;
  bottom: 18%;
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,0.07);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin: 0 0 20px;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(64px, 13vw, 172px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
}

.hero-copy {
  font-size: clamp(36px, 7vw, 92px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 24px);
  margin-bottom: 36px;
}

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

.hero-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,0.035);
}

.scroll {
  position: absolute;
  right: 32px;
  bottom: 32px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.grid-2 {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.lead {
  color: #d8d8d8;
  font-size: 18px;
}

.lead p {
  margin-bottom: 28px;
}

.section-title {
  margin-bottom: 56px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--panel);
  padding: 40px;
  min-height: 420px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  background: var(--panel-2);
  transform: translateY(-6px);
}

.service-number {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.22em;
  margin-bottom: 80px;
}

.service-card h3 {
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.service-card h4 {
  font-size: 18px;
  margin-bottom: 28px;
}

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

.philosophy {
  background: linear-gradient(180deg, var(--bg), #0a0a0a);
}

.narrow {
  width: min(860px, calc(100% - 48px));
}

.narrow p {
  color: #d7d7d7;
  font-size: 18px;
}

.company-table {
  border-top: 1px solid var(--line);
}

.company-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.company-table dt {
  color: var(--muted);
}

.company-table dd {
  margin: 0;
}

.company-table a:hover {
  color: var(--accent);
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 64px;
  background:
    radial-gradient(circle at top right, rgba(0,194,255,0.12), transparent 26%),
    var(--panel);
}

.contact-box > p {
  color: #d7d7d7;
  max-width: 720px;
}

.contact-form {
  margin-top: 40px;
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #e8e8e8;
  font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.045);
  color: var(--text);
  font: inherit;
  outline: none;
}

.contact-form select option {
  color: #111;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(0,194,255,0.65);
  box-shadow: 0 0 0 4px rgba(0,194,255,0.1);
}

.contact-form textarea {
  resize: vertical;
}

.button {
  justify-self: start;
  display: inline-flex;
  margin-top: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  background: var(--text);
  color: #000;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: var(--accent);
}

.form-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}

.site-footer {
  padding: 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .site-header {
    padding: 0 20px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(13,13,13,0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .section {
    padding: 96px 0;
  }

  .hero-frame {
    right: -28%;
    top: 26%;
    width: 420px;
    height: 420px;
    opacity: 0.55;
  }

  .hero-grid {
    background-size: 54px 54px;
  }

  .grid-2,
  .service-list,
  .company-table div,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 32px;
  }

  .service-number {
    margin-bottom: 48px;
  }

  .contact-box {
    padding: 36px 24px;
    border-radius: 24px;
  }

  .scroll {
    display: none;
  }
}
