:root {
  --bg: #f6f5f1;
  --surface: #fff;
  --ink: #17202d;
  --muted: #657080;
  --line: #dcdedb;
  --accent: #ff5f3d;
  --accent-2: #8174e8;
  --header: rgba(246, 245, 241, 0.88);
  --radius: 24px;
  --shadow: 0 24px 70px rgba(23, 32, 45, 0.12);
  --max: 1240px;
}

[data-theme="dark"] {
  --bg: #111722;
  --surface: #1a2230;
  --ink: #f5f4ef;
  --muted: #a7afba;
  --line: #303a49;
  --header: rgba(17, 23, 34, 0.88);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", "Noto Sans JP", Arial, sans-serif;
  line-height: 1.7;
  transition:
    background 0.3s,
    color 0.3s;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 999;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.site-header.scrolled {
  background: var(--header);
  backdrop-filter: blur(14px);
  border-color: var(--line);
  box-shadow: 0 8px 25px rgba(20, 30, 40, 0.05);
}

.header-inner {
  height: 84px;
  width: min(calc(100% - 48px), var(--max));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: grid;
  grid-template-columns: 32px auto;
  grid-template-rows: 20px 12px;
  column-gap: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
}

.logo>span {
  grid-row: 1/3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.logo small {
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--muted);
}

.global-nav {
  display: flex;
  gap: 30px;
  font-size: 13px;
  font-weight: 600;
}

.global-nav a {
  position: relative;
  padding-block: 12px;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--accent);
  transition: right 0.25s;
}

.global-nav a:hover::after,
.global-nav a.active::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  min-height: 54px;
  padding: 0 24px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 0.2s,
    background 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 44px;
  padding-inline: 20px;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
  padding-block: 5px;
}

.hero {
  min-height: auto;
  padding-top: 110px;
  padding-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.eyebrow,
.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 30px;
  height: 2px;
  background: var(--accent);
}

h1 {
  font-size: clamp(3.3rem, 7.2vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  margin: 28px 0 32px;
  font-weight: 760;
}

h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--accent);
  position: relative;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--muted);
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 600px;
}

.art-card {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.art-card-main {
  inset: 7% 0 12% 7%;
  padding: 38px;
  background: linear-gradient(145deg, #202a39 0 58%, #775eff 58%);
  color: white;
  transform: rotate(3deg);
  overflow: hidden;
}

.art-card-main strong {
  position: absolute;
  left: 38px;
  bottom: 42px;
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.art-card-main i {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: #ff8065;
}

.art-label {
  font-size: 10px;
  letter-spacing: 0.2em;
}

.art-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 65%);
  mask-image: linear-gradient(to bottom, black, transparent 65%);
}

.art-card-note {
  left: -8%;
  bottom: 3%;
  background: #fff;
  color: #17202d;
  padding: 20px 28px;
  transform: rotate(-5deg);
  font-size: 12px;
}

.art-card-note b {
  font-size: 20px;
}

.art-dot {
  position: absolute;
  right: -20px;
  top: 3%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 20px rgba(255, 255, 255, 0.14);
}

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

.orb-one {
  width: 360px;
  height: 360px;
  background: #aa9cff;
  right: -150px;
  top: -150px;
}

.orb-two {
  width: 260px;
  height: 260px;
  background: #ff8b73;
  left: -160px;
  bottom: 0;
}

.hero-bottom {
  margin-top: auto;
  padding-top: 38px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.section {
  padding: clamp(90px, 12vw, 170px) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.section h2 {
  font-size: clamp(2.3rem, 4.5vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 20px 0;
}

.about-intro {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  align-self: end;
  color: var(--muted);
}

.about-intro .text-link {
  margin-top: 20px;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.body-lock,
.menu-open {
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 52px;
}

.section-heading>p {
  max-width: 420px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 35px 20px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border: 0;
}

.stats strong {
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stats sup {
  font-size: 0.45em;
  color: var(--accent);
}

.stats span {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.data-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  text-align: right;
}

.services {
  background: var(--surface);
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tabs button,
.filters button {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.tabs button {
  padding: 18px 24px;
  border-bottom: 3px solid transparent;
}

.tabs button[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--accent);
}

.service-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 0 10px;
}

.service-number {
  color: var(--accent);
  font-weight: 800;
}

.service-panel h3 {
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 18px 0;
}

.service-panel p {
  color: var(--muted);
  max-width: 570px;
}

.service-panel ul {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.service-panel li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.service-visual {
  min-height: 390px;
  border-radius: var(--radius);
  background: #dcd8ff;
  display: grid;
  place-items: center;
  padding: 10%;
  overflow: hidden;
}

.mock-browser {
  width: 100%;
  height: 78%;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 25px 40px rgba(70, 52, 150, 0.22);
  transform: rotate(4deg);
}

.mock-browser>i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0d0d0;
}

.mock-content {
  height: 80%;
  margin-top: 12px;
  padding: 9%;
  background: #f1efe9;
}

.mock-content span {
  display: block;
  width: 42%;
  height: 10px;
  background: #ff6b4b;
}

.mock-content b {
  display: block;
  width: 75%;
  height: 28px;
  background: #202a39;
  margin-top: 10px;
}

.mock-content b:last-child {
  width: 55%;
}

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

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.filters button {
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filters button.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 54px 24px;
}

.work-card {
  min-width: 0;
}

.work-card.hidden {
  display: none;
}

.work-card-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.work-image {
  aspect-ratio: 16/10;
  border-radius: 18px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s;
}

.work-card:hover .work-image {
  transform: scale(0.985);
}

.work-image span {
  font-size: clamp(1.8rem, 4vw, 4.3rem);
  line-height: 0.84;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.work-image i {
  position: absolute;
  right: 22px;
  top: 18px;
  font-size: 11px;
}

.work-category {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 16px 0 4px;
}

.work-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.work-noma {
  background: #e96845;
  color: #fff;
}

.work-axis {
  background: #d9dce0;
  color: #29313c;
}

.work-mori {
  background: #294a3e;
  color: #ede7d9;
}

.work-nexus {
  background: #8070e6;
  color: #fff;
}

.work-harbor {
  background: #bed7db;
  color: #243b43;
}

.work-sowa {
  background: #e6cfd0;
  color: #513a42;
}

.strengths,
.contact {
  background: #17202d;
  color: #f5f4ef;
}

.light {
  color: #adb4bd;
}

.strengths .section-heading {
  margin-bottom: 70px;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #3c4654;
}

.strength-grid article {
  background: #17202d;
  padding: 45px 34px;
}

.strength-grid span {
  color: #ff7657;
  font-size: 12px;
}

.strength-grid h3 {
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.strength-grid p {
  color: #adb4bd;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-list li {
  padding: 32px 25px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.process-list b {
  color: var(--accent);
  font-size: 11px;
}

.process-list strong {
  font-size: 22px;
}

.process-list span {
  font-size: 13px;
  color: var(--muted);
}

.testimonials {
  background: var(--surface);
}

.testimonials h2,
.faq h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.06;
}

.slider {
  margin-top: 50px;
}

.slide {
  display: none;
  margin: 0;
  max-width: 1000px;
}

.slide.active {
  display: block;
}

.slide>p {
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: clamp(1.6rem, 3vw, 3.2rem);
  line-height: 1.55;
  margin: 0;
}

.slide footer {
  margin-top: 35px;
  display: grid;
  font-style: normal;
}

.slide footer span {
  color: var(--muted);
  font-size: 12px;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}

.slider-controls button,
.to-top {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: var(--line);
  border: 0;
}

.slider-dots button.active {
  background: var(--accent);
}

.narrow {
  max-width: 900px;
}

.accordion {
  margin-top: 55px;
  border-top: 1px solid var(--line);
}

.accordion article {
  border-bottom: 1px solid var(--line);
}

.accordion h3 {
  margin: 0;
}

.accordion h3 button {
  width: 100%;
  min-height: 78px;
  border: 0;
  background: none;
  display: flex;
  justify-content: space-between;
  text-align: left;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}

.accordion h3 span {
  font-size: 24px;
  font-weight: 400;
}

.answer {
  color: var(--muted);
  padding: 0 50px 24px 0;
}

.answer p {
  margin: 0;
}

.contact-head h2 {
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  margin: 25px 0;
}

.contact-head h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: #ff7657;
}

.contact-head>p:last-child {
  color: #adb4bd;
}

.contact form {
  margin-top: 80px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.field {
  display: grid;
  align-self: start;
  gap: 8px;
}

.field-full {
  grid-column: 1/-1;
}

.field label {
  font-size: 13px;
  font-weight: 700;
}

.field label b {
  font-size: 9px;
  color: #ff9279;
  margin-left: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: #202b39;
  color: #fff;
  border: 1px solid #46505d;
  border-radius: 9px;
  padding: 14px 16px;
  min-height: 52px;
}

.field textarea {
  resize: vertical;
}

.field small,
.privacy-error {
  color: #ff9e88;
  min-height: 1.2em;
}

.field [aria-invalid="true"] {
  border-color: #ff8065;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.consent input {
  width: 20px;
  height: 20px;
}

.consent a {
  text-decoration: underline;
}

.submit-button {
  background: #ff6544;
  border-color: #ff6544;
  color: #fff;
  margin-top: 22px;
}

.form-status {
  font-weight: 700;
}

.footer {
  background: #0e141d;
  color: #fff;
  padding: 65px 0 25px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: start;
  gap: 60px;
}

.footer nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials span {
  width: 42px;
  height: 42px;
  border: 1px solid #39414c;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.privacy {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.privacy h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.privacy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #333b47;
  margin-top: 55px;
  padding-top: 18px;
  color: #89919d;
  font-size: 10px;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.work-modal {
  width: min(850px, calc(100% - 32px));
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.work-modal::backdrop {
  background: rgba(7, 12, 20, 0.75);
  backdrop-filter: blur(5px);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  font-size: 25px;
  cursor: pointer;
}

.modal-image {
  height: 280px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.modal-body {
  padding: 35px;
}

.modal-category {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.modal-body h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.modal-summary {
  color: var(--muted);
}

.modal-body dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
}

.modal-body dl div {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.modal-body dt {
  font-size: 11px;
  color: var(--muted);
}

.modal-body dd {
  margin: 5px 0;
}

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

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

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

@media (max-width: 900px) {
  .global-nav {
    position: fixed;
    inset: 84px 0 auto;
    z-index: -1;
    display: grid;
    gap: 4px;
    padding: 28px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    transform: translateY(-130%);
    transition: transform 0.3s;
  }

  .global-nav.open {
    transform: none;
  }

  .global-nav a {
    padding: 12px;
    font-size: 18px;
  }

  .menu-toggle {
    display: grid;
    place-content: center;
    gap: 6px;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    position: absolute;
    right: -8%;
    width: 40%;
    opacity: 0.3;
  }

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

  .section-grid {
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .section-heading {
    display: block;
  }

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

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
  }

  .service-panel,
  .work-grid,
  .strength-grid,
  .process-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-panel {
    gap: 30px;
  }

  .service-visual {
    min-height: 260px;
  }

  .strength-grid article {
    padding: 34px 20px;
  }

  .process-list li {
    border-right: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .field-full {
    grid-column: auto;
  }

  .modal-body dl {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: block;
  }

  .work-modal {
    max-height: 85vh;
  }

  .modal-image {
    height: 190px;
  }
}

@media (max-width: 600px) {

  .container,
  .header-inner {
    width: min(calc(100% - 32px), var(--max));
  }

  .header-inner {
    height: 72px;
  }

  .global-nav {
    inset: 72px 0 auto;
  }

  .hero {
    padding-top: 110px;
  }

  .hero-art {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-bottom span:last-child {
    display: none;
  }
}

@media (max-width: 390px) {
  .tabs button {
    padding-inline: 14px;
  }

  .work-image {
    padding: 20px;
  }

  .footer nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

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