:root {
  --bg: #060608;          /* ほぼ黒の地 */
  --surface: #101015;     /* パネル面 */
  --surface-alt: #0B0B0F; /* セクション切替の地色 */
  --ink: #F4F5F7;         /* ほぼ白のテキスト */
  --ink-soft: #B3B5BE;    /* 本文 */
  --muted: #75767F;       /* 補助テキスト */
  --accent: #7C5CFF;      /* バイオレット */
  --accent-2: #4F9CFF;    /* ブルー */
  --accent-cyan: #38E1C8; /* シアン（差し色） */
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --maxw: 1100px;
  --sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --mono: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* 全面に薄いグロー */
  background-image:
    radial-gradient(900px 500px at 80% -5%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(79, 156, 255, 0.12), transparent 55%);
  background-attachment: fixed;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 500;
  margin: 0 0 18px;
}

/* ====== Nav ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.6);
}
.brand__name { font-weight: 700; font-size: 18px; letter-spacing: 0.01em; white-space: nowrap; }
/* ナビのロゴ（ワードマーク） */
.brand__word { display: flex; flex-direction: column; line-height: 1.0; }
.nav .brand__name {
  font-weight: 900; font-size: 28px; letter-spacing: 0.12em;
  background: linear-gradient(90deg, #ffffff, #c7beff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__tag {
  font-family: var(--mono);
  font-size: 10px; font-weight: 600; letter-spacing: 0.44em;
  color: var(--muted); padding-left: 2px; margin-top: 3px;
}
@media (max-width: 640px) {
  .nav .brand__name { font-size: 23px; }
  .brand__tag { font-size: 9px; letter-spacing: 0.36em; }
}
.nav__links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.nav__links a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 500;
  white-space: nowrap; transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: #fff; font-weight: 700; }

/* ====== Page hero (下層ページの見出し) ====== */
.page-hero { border-bottom: 1px solid var(--line-soft); }
.page-hero__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 88px 24px 64px;
}
.page-hero__title {
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 10px 0 0;
}
.page-hero__lead {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 60ch;
  margin: 22px 0 0;
}

/* ====== 「もっと見る」リンク ====== */
.more {
  max-width: var(--maxw); margin: 40px auto 0;
  text-align: right;
}
.more a {
  color: var(--accent-cyan); text-decoration: none; font-weight: 700; font-size: 15px;
}
.more a:hover { text-decoration: underline; }
.more a::after { content: " →"; }

/* ====== Hero ====== */
.hero { border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.hero__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 130px 24px 120px;
}
.hero__title {
  font-weight: 700;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  background: linear-gradient(180deg, #ffffff 30%, #b9b3e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title span { display: inline-block; }
/* 2カラムのヒーロー */
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__copy { min-width: 0; }
.hero__visual { display: flex; justify-content: center; }
.hero__visual svg { width: 100%; max-width: 460px; height: auto; }
.hv-node { animation: hv-pulse 3.2s ease-in-out infinite; }
.hv-core { animation: hv-pulse 4.5s ease-in-out infinite; transform-origin: center; }
@keyframes hv-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__visual svg { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-node, .hv-core { animation: none; }
}
.hero__lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 44px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ====== Buttons ====== */
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 700; font-size: 15px;
  padding: 14px 30px; border-radius: 12px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn--solid {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.45);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(124, 92, 255, 0.6); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.02); color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }

/* ====== Sections ====== */
.section { padding: 100px 24px; }
.section__head, .message, .cta { max-width: var(--maxw); margin: 0 auto; }
.section--alt { background: var(--surface-alt); }
.section__title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.01em;
  margin: 0 0 56px;
  line-height: 1.3;
}
.section__head { margin-bottom: 56px; }
.section__head .section__title { margin-bottom: 0; }

/* ====== Cards ====== */
.cards {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 34px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border-color: rgba(124, 92, 255, 0.55);
}
.card:hover::before { opacity: 1; }
.card__media {
  height: 140px;
  border-radius: 14px;
  margin: -8px 0 26px;
  display: grid; place-items: center;
  background:
    radial-gradient(140px 90px at 50% 35%, rgba(124, 92, 255, 0.20), transparent 70%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.card__media svg { width: 104px; height: 104px; }
.card:hover .card__media { border-color: rgba(124, 92, 255, 0.4); }
.card__num {
  font-family: var(--mono);
  font-size: 14px; font-weight: 500; letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card__title { font-weight: 700; font-size: 23px; margin: 14px 0 16px; }
.card__body { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ====== News ====== */
.news { max-width: var(--maxw); margin: 0 auto; list-style: none; padding: 0; }
.news__item {
  display: grid;
  grid-template-columns: 130px 110px 1fr;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  border-top: 1px solid var(--line-soft);
  transition: background 0.2s;
}
.news__item:last-child { border-bottom: 1px solid var(--line-soft); }
.news__date { font-family: var(--mono); color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
.news__tag {
  justify-self: start;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 225, 200, 0.4);
  border-radius: 999px;
  padding: 4px 14px;
}
.news__text { margin: 0; color: var(--ink); font-size: 16px; }

/* ====== Message ====== */
.message__lead {
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.6;
  letter-spacing: -0.01em;
  margin: 16px 0 0;
  max-width: 22ch;
}
.message__body {
  margin-top: 36px;
  max-width: 64ch;
  display: grid;
  gap: 22px;
}
.message__body p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }

/* ====== Works ====== */
.works {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.work {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.work:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border-color: rgba(79, 156, 255, 0.55);
}
.work__cat {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.work__title { font-weight: 700; font-size: 20px; margin: 0 0 12px; }
.work__body { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ====== Company profile ====== */
.profile { max-width: var(--maxw); margin: 0 auto; }
.profile__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 4px;
  border-top: 1px solid var(--line-soft);
}
.profile__row:last-child { border-bottom: 1px solid var(--line-soft); }
.profile dt { font-weight: 700; font-size: 15px; color: var(--accent-cyan); letter-spacing: 0.04em; }
.profile dd { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 560px) { .profile__row { grid-template-columns: 1fr; gap: 6px; } }

/* ====== Contact page ====== */
.contact {
  max-width: var(--maxw); margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(124, 92, 255, 0.18), transparent 70%),
    var(--surface);
  padding: 56px 40px;
  text-align: center;
}
.contact__label { font-family: var(--mono); color: var(--muted); font-size: 13px; margin: 0 0 14px; letter-spacing: 0.06em; }
.contact__mail {
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 32px);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}
.contact__mail:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }
.contact__btn { margin-top: 32px; }

/* ====== CTA ====== */
.section--cta { background: var(--surface-alt); }
.cta {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(700px 260px at 50% -10%, rgba(124, 92, 255, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  padding: 72px 32px;
}
.cta__title {
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 48px);
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.cta__lead { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 40px; font-size: 17px; }

/* ====== Footer ====== */
.footer { border-top: 1px solid var(--line-soft); padding: 40px 24px; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer .brand__name { color: var(--ink); }
.footer__copy { color: var(--muted); font-size: 14px; font-family: var(--mono); letter-spacing: 0.03em; }

/* ====== Responsive ====== */
@media (max-width: 640px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 14px; }
  .hero__inner { padding: 90px 24px 80px; }
  .section { padding: 72px 24px; }
  .news__item { grid-template-columns: 1fr; gap: 6px; }
  .news__date { font-size: 13px; }
}
