@charset "UTF-8";

:root {
  --bg: #211a1d;
  --surface: rgba(255, 255, 255, 0.04);
  --text: #f5f1ec;
  --muted: rgba(245, 241, 236, 0.7);
  --line: rgba(245, 241, 236, 0.22);
  --header-bg: rgba(20, 17, 19, 0.3);
  --header-border: rgba(255, 255, 255, 0.1);
  --button-bg: transparent;
  --button-text: inherit;
  --typo-opacity: 0.1;
  --panel-padding-x: 48px;
  --panel-padding-y: 128px;
  --content-width: 1360px;
  --header-height: 92px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --shadow-soft: 0 18px 40px rgba(7, 6, 7, 0.08);
  --transition-slow: 420ms ease;
  --font-display: "Inter", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color var(--transition-slow),
    color var(--transition-slow);
}

body[data-theme="dark"] {
  --bg: #221b1e;
  --surface: rgba(255, 255, 255, 0.04);
  --text: #f6f1ea;
  --muted: rgba(246, 241, 234, 0.7);
  --line: rgba(246, 241, 234, 0.18);
  --header-bg: rgba(24, 19, 22, 0.34);
  --header-border: rgba(255, 255, 255, 0.08);
  --button-bg: transparent;
  --button-text: #f6f1ea;
  --typo-opacity: 0.1;
}

body[data-theme="light"] {
  --bg: #f4efe9;
  --surface: rgba(255, 255, 255, 0.45);
  --text: #2f2c2a;
  --muted: rgba(47, 44, 42, 0.72);
  --line: rgba(47, 44, 42, 0.2);
  --header-bg: rgba(244, 239, 233, 0.7);
  --header-border: rgba(47, 44, 42, 0.08);
  --button-bg: transparent;
  --button-text: #2f2c2a;
  --typo-opacity: 0.11;
}

body[data-theme="muted"] {
  --bg: #d7d2cb;
  --surface: rgba(255, 255, 255, 0.26);
  --text: #2a2624;
  --muted: rgba(42, 38, 36, 0.72);
  --line: rgba(42, 38, 36, 0.2);
  --header-bg: rgba(215, 210, 203, 0.68);
  --header-border: rgba(42, 38, 36, 0.09);
  --button-bg: transparent;
  --button-text: #2a2624;
  --typo-opacity: 0.14;
}

body[data-theme="accent"] {
  --bg: #101417;
  --surface: rgba(255, 255, 255, 0.05);
  --text: #eff4f1;
  --muted: rgba(239, 244, 241, 0.72);
  --line: rgba(239, 244, 241, 0.2);
  --header-bg: rgba(12, 15, 17, 0.45);
  --header-border: rgba(239, 244, 241, 0.1);
  --button-bg: transparent;
  --button-text: #eff4f1;
  --typo-opacity: 0.12;
}

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

button {
  font: inherit;
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 20px 24px 0;
}

.header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  align-items: center;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0 20px;
  border: 1px solid var(--header-border);
  border-radius: var(--radius-md);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  transition:
    border-color var(--transition-slow),
    background-color var(--transition-slow),
    color var(--transition-slow);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 0.98rem;
}

.site-nav a,
.header-cta,
.text-link {
  position: relative;
}

.site-nav a::after,
.header-cta::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.header-cta:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.header-menu-button {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.header-menu-button span {
  grid-area: 1 / 1;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 -10px 0 currentColor,
    0 10px 0 currentColor;
}

.panel {
  position: relative;
  min-height: 100svh;
  overflow: clip;
}

.panel-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--content-width));
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-height) + 92px) var(--panel-padding-x) var(--panel-padding-y);
}

.panel-typo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.panel-typo-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1em;
  display: flex;
  width: max-content;
  gap: 80px;
  font-family: var(--font-display);
  font-size: 16rem;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: uppercase;
  color: currentColor;
  opacity: var(--typo-opacity);
  animation: drift-left 28s linear infinite;
}

.panel-typo-track.reverse {
  top: 18%;
  bottom: auto;
  animation-name: drift-right;
}

.panel-typo-track span {
  display: inline-block;
}

.hero-layout,
.contact-layout {
  display: grid;
  align-items: end;
}

.hero-layout {
  grid-template-columns: minmax(0, 720px);
}

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

.lead-in,
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.72;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: 4.75rem;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.body-copy,
.section-copy p,
.service-card p {
  font-size: 1rem;
  color: var(--muted);
}

.body-copy {
  max-width: 520px;
  margin-top: 24px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 36px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid currentColor;
  border-radius: var(--radius-md);
  background: var(--button-bg);
  color: var(--button-text);
  transition:
    background-color 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

.ghost-button:hover {
  background: currentColor;
  color: var(--bg);
}

.ghost-button-light:hover {
  color: #171417;
}

.ghost-button-dark:hover {
  color: #f4efe9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
}

.concept-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: center;
}

.section-heading.compact {
  max-width: 640px;
}

.section-copy {
  max-width: 420px;
  display: grid;
  gap: 22px;
  justify-self: end;
}

.service-layout {
  display: grid;
  gap: 48px;
  align-content: center;
}

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

.service-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: grid;
  align-content: start;
  gap: 18px;
}

.service-index {
  font-family: var(--font-display);
  font-size: 0.9rem;
  opacity: 0.6;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.1;
}

.service-note {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.contact-layout {
  display: grid;
  gap: 40px;
  align-content: center;
}

.contact-message {
  max-width: 720px;
}

.works-band {
  display: grid;
  gap: 24px;
}

.works-slider {
  display: grid;
  gap: 18px;
}

.works-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.work-card {
  flex: 0 0 min(100%, 920px);
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 0.62fr);
  gap: 28px;
  scroll-snap-align: start;
}

.work-header {
  display: grid;
  align-content: start;
  gap: 14px;
}

.work-body {
  display: grid;
  gap: 16px;
}

.work-number,
.work-row span,
.contact-footer p {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.work-number,
.work-row span {
  text-transform: uppercase;
  opacity: 0.64;
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
}

.work-row {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.work-row p {
  margin: 0;
  color: var(--muted);
}

.work-highlight {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.28;
  color: var(--text) !important;
}

.contact-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-footer p {
  color: var(--muted);
}

.works-scroll::-webkit-scrollbar {
  display: none;
}

.works-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.works-arrow {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.works-arrow:hover {
  background: var(--text);
  color: var(--bg);
}

.panel-inner > * {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.panel.is-active .panel-inner > * {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes drift-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 1180px) {
  .header-shell {
    grid-template-columns: auto 1fr auto;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3.1rem;
  }

  .panel-typo-track {
    font-size: 13rem;
  }
}

@media (min-width: 921px) {
  .works-scroll {
    overflow-x: auto;
  }
}

@media (max-width: 920px) {
  :root {
    --panel-padding-x: 28px;
    --panel-padding-y: 88px;
    --header-height: 82px;
  }

  .site-header {
    padding: 16px 16px 0;
  }

  .header-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 16px;
  }

  .site-nav {
    display: none;
  }

  .concept-layout,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    gap: 28px;
  }

  .work-card {
    flex-basis: min(100%, 720px);
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .section-copy {
    justify-self: start;
  }

  .service-card {
    min-height: 220px;
  }

  .panel-typo-track {
    font-size: 9rem;
    gap: 48px;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.6rem;
  }
}

@media (max-width: 640px) {
  :root {
    --panel-padding-x: 20px;
    --panel-padding-y: 72px;
  }

  .site-logo {
    font-size: 1.55rem;
  }

  .header-menu-button {
    width: 52px;
    height: 52px;
  }

  .panel-inner {
    padding-top: calc(var(--header-height) + 72px);
  }

  .panel-typo-track {
    font-size: 5.25rem;
    line-height: 0.9;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 2rem;
    line-height: 1.14;
  }

  .body-copy,
  .section-copy p,
  .service-card p,
  .site-nav,
  .header-cta,
  .ghost-button,
  .text-link {
    font-size: 0.95rem;
  }

  .button-row {
    gap: 12px;
  }

  .ghost-button,
  .text-link {
    min-height: 52px;
  }

  .work-card h3,
  .work-highlight {
    font-size: 1.45rem;
  }

  .works-arrow {
    width: 48px;
    height: 48px;
  }

  .contact-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@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;
  }
}
