:root {
  --navy-950: #06101d;
  --navy-900: #0a1728;
  --navy-800: #132238;
  --ink: #162032;
  --muted: #68778d;
  --soft: #f2f6f9;
  --soft-2: #e7eef4;
  --line: rgba(22, 32, 50, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --white: #ffffff;
  --moon: #d9e4ed;
  --blue: #75b9ff;
  --cyan: #7ad7d1;
  --max-width: 1120px;
  --page-gutter: 40px;
  --radius: 8px;
  --shadow-soft: 0 18px 48px rgba(22, 32, 50, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--navy-950);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
  letter-spacing: 0;
}

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

.page {
  min-height: 100vh;
  overflow: hidden;
  background: var(--navy-950);
}

.wrap,
.nav,
.hero-inner {
  width: min(var(--max-width), calc(100% - var(--page-gutter)));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--white);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  letter-spacing: 0.18em;
}

.brand strong {
  font-weight: 700;
}

.brand span,
.nav-links {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.brand span {
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 80vh;
  min-height: 80svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 34%, rgba(117, 185, 255, 0.2), transparent 28%),
    radial-gradient(circle at 18% 22%, rgba(122, 215, 209, 0.12), transparent 24%),
    linear-gradient(140deg, #06101d 0%, #0b1b31 54%, #132238 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  opacity: 0.16;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.45) 0 1px, transparent 1px);
  background-position: 10px 18px, 52px 70px;
  background-size: 118px 118px, 72px 72px;
}

.hero::after {
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 74%, rgba(6, 16, 29, 0.88) 100%),
    linear-gradient(92deg, rgba(6, 16, 29, 0.82) 0%, transparent 48%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 52px;
  min-height: inherit;
  padding-block: 126px 72px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--blue);
  letter-spacing: 0.24em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(72px, 13vw, 152px);
  font-weight: 650;
  line-height: 0.86;
  letter-spacing: 0.15em;
}

.hero-copy {
  max-width: 680px;
  margin-top: 38px;
}

.hero-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4.8vw, 54px);
  font-weight: 700;
  line-height: 1.25;
}

.hero-copy p,
.section-lead,
.card p,
.work-card p,
.profile-detail,
.rd-panel p {
  overflow-wrap: anywhere;
}

.hero-copy p {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 2;
}

.mobile-only {
  display: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 12px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: rgba(6, 16, 29, 0.2);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #071324;
  background: var(--moon);
  border-color: var(--moon);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #071324;
  background: #f4f8fb;
}

.hero-visual {
  position: relative;
  min-height: 470px;
}

.moon-system {
  position: absolute;
  top: 50%;
  right: 10%;
  width: clamp(185px, 25vw, 305px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  animation: moon-drift 12s ease-in-out infinite;
}

.moon {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.96) 0 7%, transparent 8%),
    radial-gradient(circle at 66% 35%, rgba(141, 157, 171, 0.52) 0 6%, transparent 7%),
    radial-gradient(circle at 50% 68%, rgba(128, 145, 160, 0.44) 0 8%, transparent 9%),
    radial-gradient(circle at 38% 58%, rgba(105, 122, 138, 0.36) 0 4%, transparent 5%),
    radial-gradient(circle at 55% 45%, #eef5fa 0%, #c9d8e2 52%, #8294a8 100%);
  box-shadow: 0 0 70px rgba(117, 185, 255, 0.36), inset -36px -18px 54px rgba(27, 42, 62, 0.28);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orbit-width);
  height: var(--orbit-height);
  border: 1px solid rgba(122, 215, 209, 0.16);
  border-left-color: rgba(122, 215, 209, 0.035);
  border-bottom-color: rgba(117, 185, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--orbit-angle));
  pointer-events: none;
  z-index: 3;
}

.orbit span {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--dot-size);
  aspect-ratio: 1;
  border-radius: 50%;
  offset-path: ellipse(50% 50% at 50% 50%);
  offset-distance: 0%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.95) 0 15%, var(--dot-color) 42%, rgba(122, 215, 209, 0.68) 100%);
  box-shadow: 0 0 14px var(--dot-glow), 0 0 30px rgba(122, 215, 209, 0.28);
  transform: translate(-50%, -50%);
  animation: dot-orbit var(--orbit-speed) linear infinite var(--orbit-delay), dot-pulse 4.4s ease-in-out infinite;
  animation-direction: var(--orbit-direction, normal), normal;
}

.orbit-1 {
  --orbit-width: 156%;
  --orbit-height: 72%;
  --orbit-angle: -18deg;
  --orbit-speed: 19s;
  --orbit-delay: -3s;
  --dot-size: 10px;
  --dot-color: #7ad7d1;
  --dot-glow: rgba(122, 215, 209, 0.86);
}

.orbit-2 {
  --orbit-width: 132%;
  --orbit-height: 96%;
  --orbit-angle: 31deg;
  --orbit-speed: 23s;
  --orbit-delay: -9s;
  --dot-size: 7px;
  --dot-color: #75b9ff;
  --dot-glow: rgba(117, 185, 255, 0.8);
  --orbit-direction: reverse;
}

.orbit-3 {
  --orbit-width: 178%;
  --orbit-height: 107%;
  --orbit-angle: -46deg;
  --orbit-speed: 31s;
  --orbit-delay: -14s;
  --dot-size: 6px;
  --dot-color: #d9e4ed;
  --dot-glow: rgba(217, 228, 237, 0.76);
}

.orbit-4 {
  --orbit-width: 112%;
  --orbit-height: 146%;
  --orbit-angle: 68deg;
  --orbit-speed: 17s;
  --orbit-delay: -6s;
  --dot-size: 8px;
  --dot-color: #aee8ff;
  --dot-glow: rgba(174, 232, 255, 0.8);
  --orbit-direction: reverse;
}

.orbit-5 {
  --orbit-width: 194%;
  --orbit-height: 54%;
  --orbit-angle: 7deg;
  --orbit-speed: 27s;
  --orbit-delay: -18s;
  --dot-size: 5px;
  --dot-color: #b8f3e7;
  --dot-glow: rgba(184, 243, 231, 0.78);
}

.orbit-6 {
  --orbit-width: 146%;
  --orbit-height: 158%;
  --orbit-angle: 12deg;
  --orbit-speed: 35s;
  --orbit-delay: -24s;
  --dot-size: 7px;
  --dot-color: #d9e4ed;
  --dot-glow: rgba(217, 228, 237, 0.68);
  --orbit-direction: reverse;
}

.signal {
  position: absolute;
  z-index: 1;
  left: var(--signal-left);
  top: var(--signal-top);
  width: var(--signal-width);
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--signal-color), transparent);
  box-shadow: 0 0 14px var(--signal-color);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--signal-angle)) scaleX(0.18);
  transform-origin: center;
  animation: signal-ping var(--signal-speed) ease-out infinite var(--signal-delay);
}

.signal-1 {
  --signal-left: 69%;
  --signal-top: 31%;
  --signal-width: 24%;
  --signal-angle: -18deg;
  --signal-color: rgba(255, 196, 87, 0.82);
  --signal-speed: 13s;
  --signal-delay: -1.3s;
}

.signal-2 {
  --signal-left: 30%;
  --signal-top: 37%;
  --signal-width: 20%;
  --signal-angle: 34deg;
  --signal-color: rgba(255, 119, 214, 0.7);
  --signal-speed: 17s;
  --signal-delay: -6.2s;
}

.signal-3 {
  --signal-left: 63%;
  --signal-top: 66%;
  --signal-width: 22%;
  --signal-angle: 12deg;
  --signal-color: rgba(139, 255, 173, 0.72);
  --signal-speed: 19s;
  --signal-delay: -9.6s;
}

.section {
  position: relative;
  padding-block: clamp(76px, 10vw, 132px);
}

.section-light {
  background: var(--soft);
}

.works {
  background: var(--white);
}

.about {
  background: linear-gradient(180deg, var(--soft-2), var(--soft));
}

.section-dark,
.contact {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 10%, rgba(117, 185, 255, 0.18), transparent 24%),
    radial-gradient(circle at 22% 85%, rgba(122, 215, 209, 0.12), transparent 26%),
    linear-gradient(145deg, var(--navy-900), var(--navy-800));
}

.contact {
  background:
    radial-gradient(circle at 18% 12%, rgba(122, 215, 209, 0.12), transparent 22%),
    linear-gradient(150deg, var(--navy-900), #08111e 70%);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 44px;
}

.section-head-compact {
  margin-bottom: 28px;
}

.section-head > *,
.about-panel > *,
.contact-box > * {
  min-width: 0;
}

.section-kicker {
  color: #2d77be;
}

.section-dark .section-kicker,
.contact .section-kicker,
.panel-label {
  color: var(--cyan);
}

.section-title {
  margin: 0;
  font-size: clamp(34px, 3.7vw, 52px);
  font-weight: 700;
  line-height: 1.18;
  word-break: keep-all;
}

.section-lead,
.rd-panel p,
.profile-detail {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.95;
}

.section-dark .section-lead,
.contact .section-lead,
.rd-panel p {
  color: rgba(255, 255, 255, 0.72);
}

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

.card,
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.card {
  position: relative;
  min-height: 140px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  width: 44px;
  height: 3px;
  background: var(--cyan);
}

.card h3,
.work-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.4;
}

.card h3 {
  margin-top: 10px;
  font-size: 22px;
}

.card p,
.work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.work-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  padding: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.work-card h3 {
  font-size: 23px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 28px;
  color: #1e66ad;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  width: 34px;
}

.text-link-invert {
  color: var(--cyan);
}

.text-link.is-disabled {
  color: #8795a7;
  cursor: default;
}

.text-link.is-disabled::after {
  width: 14px;
  opacity: 0.5;
}

.rd-panel,
.about-panel,
.contact-box {
  border-radius: var(--radius);
}

.rd-panel {
  max-width: 760px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.rd-panel h3 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.35;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 46px;
  align-items: start;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
}

.profile-summary h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
}

.profile-summary p {
  margin: 14px 0 0;
  color: #2d77be;
  font-weight: 800;
}

.profile-detail > p {
  margin: 0;
}

.profile-detail > p + p {
  margin-top: 12px;
}

.profile-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 28px;
  margin-top: 32px;
}

.profile-block {
  min-width: 0;
}

.profile-block h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.profile-list,
.technology-list {
  margin: 0;
  padding: 0;
}

.profile-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.profile-list li {
  position: relative;
  padding-left: 18px;
}

.profile-list li::before {
  content: "";
  position: absolute;
  top: 0.86em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.technology-list {
  display: grid;
  gap: 12px;
}

.technology-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.technology-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.technology-list dt {
  color: #2d77be;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.technology-list dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(48px, 6vw, 86px);
  align-items: start;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.contact-list {
  display: grid;
  gap: 12px;
  align-self: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.84);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  border-color: rgba(122, 215, 209, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.contact-list span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.contact-list strong {
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 650;
}

.footer {
  padding-block: 28px 34px;
  color: rgba(255, 255, 255, 0.52);
  background: #08111e;
  font-size: 13px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.js .hero .reveal,
.js .section-head.reveal,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes moon-drift {
  0%,
  100% {
    transform: translateY(-50%) translateX(0) rotate(0deg);
  }

  50% {
    transform: translateY(calc(-50% - 12px)) translateX(-8px) rotate(1.4deg);
  }
}

@keyframes dot-orbit {
  to {
    offset-distance: 100%;
  }
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 0.72;
  }

  45% {
    opacity: 1;
  }
}

@keyframes signal-ping {
  0%,
  43%,
  60%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--signal-angle)) scaleX(0.18);
  }

  48%,
  54% {
    opacity: 0.72;
    transform: translate(-50%, -50%) rotate(var(--signal-angle)) scaleX(1);
  }
}

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

  .hero-inner,
  .section-head,
  .about-panel,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: start;
    gap: 34px;
    padding-top: 112px;
    padding-bottom: 120px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .moon-system {
    right: 8%;
    width: min(46vw, 245px);
  }

  .section-head,
  .about-panel,
  .contact-box,
  .profile-columns {
    gap: 26px;
  }

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

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

@media (max-width: 560px) {
  :root {
    --page-gutter: 28px;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .brand span {
    letter-spacing: 0.05em;
  }

  .hero h1 {
    font-size: clamp(62px, 23vw, 98px);
  }

  .hero-copy {
    margin-top: 30px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .btn {
    min-width: 0;
  }

  .btn:not(.btn-primary) {
    background: rgba(6, 16, 29, 0.58);
  }

  .mobile-only {
    display: inline;
  }

  .hero-visual {
    position: absolute;
    right: 14px;
    bottom: -38px;
    z-index: 0;
    width: min(42vw, 168px);
    min-height: 140px;
    opacity: 0.62;
    pointer-events: none;
  }

  .moon-system {
    right: 0;
    width: clamp(118px, 34vw, 150px);
  }

  .contact-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
