:root {
  color-scheme: dark;
  --bg: #0b1118;
  --panel: #101923;
  --panel-2: #13202b;
  --ink: #f4f7fb;
  --muted: #aeb9c5;
  --soft: #d9e2ea;
  --line: #253341;
  --line-strong: #3a4a5b;
  --accent: #4bc3d3;
  --gold: #c8aa6e;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(75, 195, 211, 0.08), transparent 360px),
    var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Yu Gothic UI", "Meiryo", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
}

img {
  display: block;
  max-width: 100%;
}

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

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  text-wrap: pretty;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(58, 74, 91, 0.7);
  background: rgba(11, 17, 24, 0.92);
  backdrop-filter: blur(16px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.nav a {
  padding: 7px 0;
  white-space: nowrap;
}

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

.nav a:focus-visible,
.button:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.section + .section {
  border-top: 1px solid rgba(37, 51, 65, 0.75);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: 54px;
  padding-top: 72px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  text-wrap: balance;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: normal;
}

h1 {
  font-size: clamp(56px, 6.2vw, 88px);
  line-height: 1;
}

.app-title {
  white-space: nowrap;
}

.hero-subtitle {
  margin-top: 24px;
  color: var(--soft);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 900;
  line-height: 1.35;
}

h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.32;
}

h3 {
  font-size: 21px;
  line-height: 1.45;
}

.lead {
  margin-top: 24px;
  color: var(--soft);
  font-size: 17px;
  line-height: 2;
}

.title-line {
  display: block;
}

.single-line-title {
  max-width: none;
  white-space: nowrap;
}

.mobile-line {
  display: inline;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 900;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #061015;
}

.button.primary:hover {
  background: #74d9e4;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--accent);
}

.feature-reveal-action {
  width: min(100%, 340px);
  margin-top: 28px;
  border-color: rgba(75, 195, 211, 0.85);
  background: rgba(75, 195, 211, 0.1);
  color: var(--accent);
  cursor: pointer;
}

.features.is-revealed .feature-reveal-action {
  border-color: var(--accent);
  background: rgba(75, 195, 211, 0.16);
  color: var(--accent);
}

.media-frame {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-strong);
  background: #070d12;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #05090d;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.media-frame figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-media {
  align-self: center;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.wide {
  max-width: 900px;
}

.section-heading.compact {
  max-width: none;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 18px;
  max-width: 760px;
}

.balanced-copy {
  display: grid;
  gap: 8px;
}

.balanced-copy span {
  display: block;
}

.one-line-copy {
  max-width: none;
  white-space: nowrap;
}

.feature-preview-grid,
.proof-grid,
.case-card-grid,
.submission-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature-preview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.feature-preview-grid article,
.proof-grid article,
.case-card-grid article,
.submission-grid article {
  background: var(--panel);
}

.feature-preview-grid article {
  min-height: 170px;
  padding: 22px;
}

.feature-preview-grid span,
.proof-grid span,
.case-card-grid span,
.submission-grid span,
.flow-map span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feature-preview-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
}

.overview-grid,
.flow-grid,
.goal-list,
.tech-grid,
.profile-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-grid,
.tech-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.goal-list,
.profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-grid article,
.flow-grid article,
.goal-list article,
.tech-grid article,
.profile-grid article,
.timeline article {
  background: var(--panel);
}

.overview-grid article,
.flow-grid article,
.goal-list article,
.tech-grid article,
.profile-grid article {
  min-height: 210px;
  padding: 28px;
}

.overview-grid span,
.flow-grid span,
.profile-grid span,
.timeline span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.overview-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.35;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(430px, 0.95fr) minmax(0, 1.05fr);
  gap: 54px;
  align-items: start;
}

.case-text {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.goal-list {
  margin-top: 48px;
}

.goal-list h3,
.flow-grid h3,
.tech-grid h3,
.profile-grid h3,
.timeline h3 {
  margin-bottom: 12px;
}

.showcase-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.features {
  display: grid;
  gap: 34px;
}

.feature-list {
  display: grid;
  max-height: 0;
  border-top: 0 solid transparent;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-18px);
  transition: max-height 620ms ease, opacity 360ms ease, transform 420ms ease, border-color 360ms ease;
}

.features.is-revealed .feature-list {
  max-height: 9000px;
  border-top: 1px solid var(--line);
  opacity: 1;
  transform: translateY(0);
}

.feature-item {
  border-bottom: 1px solid var(--line);
}

.feature-toggle {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  padding: 30px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.feature-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.feature-icon {
  position: relative;
  width: 42px;
  height: 42px;
  margin-top: 33px;
  border: 1px solid var(--line-strong);
  background: rgba(75, 195, 211, 0.08);
}

.feature-icon::before,
.feature-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.feature-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 180ms ease;
}

.feature-item.is-open .feature-icon::after {
  opacity: 0;
}

.feature-copy {
  display: grid;
  gap: 12px;
  max-width: none;
}

.feature-copy .eyebrow {
  margin-bottom: 0;
}

.feature-title,
.feature-body {
  display: block;
}

.feature-title {
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.45;
  line-break: strict;
  word-break: keep-all;
}

.feature-body {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 6px;
  max-width: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.feature-body span {
  display: block;
}

.feature-image {
  max-height: 0;
  margin-left: 80px;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition: max-height 360ms ease, opacity 260ms ease, transform 260ms ease, margin-bottom 260ms ease;
}

.feature-item.is-open .feature-image {
  max-height: 780px;
  margin-bottom: 32px;
  opacity: 1;
  transform: translateY(0);
}

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

.flow-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.flow-map div {
  position: relative;
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(16, 25, 35, 0.78);
}

.flow-map div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.65;
}

.flow-map strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 21px;
}

.proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-grid article,
.case-card-grid article,
.submission-grid article {
  min-height: 230px;
  padding: 28px;
}

.case-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
}

.submission-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.submission-grid h3 {
  margin-bottom: 12px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.timeline article {
  min-height: 270px;
  padding: 30px;
}

.problem-solving .case-text {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

@media (min-width: 1081px) {
  .problem .case-text {
    border-left: 3px solid var(--accent);
    padding-left: 24px;
  }

  .problem-solving .case-text {
    border-left: 3px solid var(--accent);
    padding-top: 48px;
    padding-left: 24px;
    padding-bottom: 10px;
  }

  .tech-grid h3 {
    white-space: nowrap;
  }
}

.closing {
  max-width: 900px;
  text-align: center;
}

.closing p {
  margin: 22px auto 0;
  max-width: 760px;
}

.closing-copy span {
  display: block;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 96px), var(--max));
  margin: 0 auto;
  padding: 36px 24px 72px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.footer a {
  color: var(--accent);
}

@media (max-width: 1080px) {
  .hero,
  .case-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .overview-grid,
  .flow-grid,
  .feature-preview-grid,
  .flow-map,
  .tech-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-list,
  .output-grid,
  .case-card-grid,
  .submission-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-map div:not(:last-child)::after {
    display: none;
  }

  .feature-image {
    margin-left: 0;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .section,
  .site-header,
  .footer {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    padding-right: 16px;
    padding-left: 16px;
  }

  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 72px;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .hero-media {
    justify-self: start;
    align-self: start;
    width: 100%;
    max-width: none;
    margin-top: 0;
  }

  .footer {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: clamp(54px, 7vw, 64px);
  }

  .hero-subtitle {
    font-size: clamp(25px, 3.4vw, 32px);
    margin-top: 22px;
  }

  .lead {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.9;
  }

  .button {
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 0 18px;
    font-size: 13px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: none;
    margin-top: 28px;
  }

  .media-frame {
    padding: 12px;
  }

  .showcase-pair {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .case-layout {
    gap: 24px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading p:not(.eyebrow),
  .one-line-copy {
    max-width: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .problem .case-layout {
    gap: 22px;
  }

  .problem .section-heading {
    margin-bottom: 0;
  }

  #problem-title {
    font-size: clamp(30px, 4.3vw, 36px);
    line-height: 1.25;
    white-space: nowrap;
  }

  #problem-title .title-line {
    display: inline;
  }

  .problem .case-text {
    padding-top: 0;
  }

  .goal-list {
    margin-top: 34px;
  }

  .goal-list article {
    min-height: auto;
    padding: 22px;
  }

  .goal-list h3 {
    margin-bottom: 10px;
  }

  .problem-solving .case-layout {
    gap: 24px;
  }

  #solve-title,
  #profile-title {
    font-size: clamp(24px, 3.1vw, 28px);
    line-height: 1.25;
    white-space: nowrap;
  }

  #solve-title .title-line,
  #profile-title .title-line {
    display: inline;
  }

  .section h2 {
    font-size: 29px;
    line-height: 1.28;
  }

  #problem-title,
  #solve-title,
  #profile-title {
    font-size: 29px;
    line-height: 1.28;
  }

  .problem-solving .section-heading {
    margin-bottom: 18px;
  }

  .problem .case-text,
  .problem-solving .case-text {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    border-radius: 0;
  }

  .nav {
    flex: 1;
    width: auto;
    justify-content: flex-end;
    gap: 9px;
    overflow-x: hidden;
    padding-bottom: 0;
    font-size: 10px;
  }

  .section,
  .site-header,
  .footer {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .footer {
    width: 100%;
  }

  .site-header {
    padding: 9px 12px;
  }

  .brand {
    font-size: 13px;
  }

  .brand-mark {
    width: 11px;
    height: 11px;
  }

  .section {
    padding: 52px 16px;
  }

  main {
    padding-top: 46px;
  }

  .single-line-title {
    white-space: normal;
  }

  .one-line-copy {
    white-space: normal;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 22px;
    padding-top: 28px;
    padding-bottom: 44px;
  }

  .hero-copy,
  .hero-media {
    width: 100%;
    max-width: none;
  }

  h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  h2 {
    font-size: clamp(24px, 7.1vw, 31px);
    line-height: 1.24;
    line-break: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .mobile-line {
    display: block;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 21px;
  }

  .lead {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.85;
  }

  .case-text p,
  .section-heading p:not(.eyebrow) {
    overflow-wrap: anywhere;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .section-heading.compact {
    margin-bottom: 20px;
  }

  .case-layout {
    gap: 16px;
  }

  .case-text {
    padding-top: 0;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 10px;
  }

  .button {
    width: 100%;
  }

  .overview-grid,
  .flow-grid,
  .feature-preview-grid,
  .flow-map,
  .proof-grid,
  .case-card-grid,
  .submission-grid,
  .tech-grid,
  .timeline,
  .showcase-pair {
    grid-template-columns: 1fr;
  }

  .overview-grid article,
  .flow-grid article,
  .goal-list article,
  .feature-preview-grid article,
  .proof-grid article,
  .case-card-grid article,
  .tech-grid article,
  .profile-grid article,
  .timeline article {
    min-height: auto;
    padding: 24px;
  }

  .media-frame {
    padding: 6px;
  }

  .feature-toggle {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 16px;
    padding: 24px 0;
  }

  .feature-icon {
    width: 34px;
    height: 34px;
    margin-top: 32px;
  }

  .feature-title {
    font-size: 24px;
  }

  .feature-body {
    grid-template-columns: 1fr;
    font-size: 15px;
  }

  .feature-body span {
    white-space: normal;
  }

  .closing-copy {
    display: grid;
    gap: 12px;
    text-align: left;
  }

  .problem-solving .case-text {
    padding-left: 18px;
  }

  .footer {
    flex-direction: column;
    padding-right: 18px;
    padding-bottom: 64px;
    padding-left: 18px;
  }
}
