:root {
  --base: #f6f4ee;
  --ink: #161616;
  --dark: #111316;
  --muted: rgba(22, 22, 22, 0.6);
  --line: rgba(0, 0, 0, 0.1);
  --container: 1320px;
  --wide: 1480px;
  --font-latin: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-latin-light: Helvetica, Arial, sans-serif;
  --font-ja: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-body: var(--font-latin), var(--font-ja);
  --text-body-size: 16px;
  --text-body-weight: 400;
  --text-small-size: 14px;
  --text-small-weight: 700;
  --header-glass-bg: rgba(255, 255, 255, 0.58);
  --header-glass-blur: 28px;
  --section-content-space: 40px; /* 見出し→本文／一覧。縦並びレイアウトでも共用 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p {
  font-family: var(--font-latin-light), var(--font-ja);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
}

span {
  font-family: var(--font-latin-light), var(--font-ja);
}

body.is-menu-open {
  overflow: hidden;
}

::selection {
  background: #000;
  color: #fff;
}

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

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

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

.wide-container {
  width: min(100% - 64px, var(--wide));
  margin-inline: auto;
}

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

.header-inner {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--wide));
  margin-inline: auto;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

/* 親全体にblurを掛けると、子のWorksメニューが背面をぼかせないため背景だけ分離。 */
.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--header-glass-bg);
  backdrop-filter: blur(var(--header-glass-blur));
  -webkit-backdrop-filter: blur(var(--header-glass-blur));
  pointer-events: none;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease);
}

.site-logo:hover,
.footer-logo:hover {
  opacity: 0.55;
}

.site-logo img,
.footer-logo img {
  display: block;
  width: auto;
  height: 24px;
}

.header-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: rgba(0, 0, 0, 0.7);
  font-size: var(--text-small-size);
  font-weight: var(--text-small-weight);
}

.global-nav a:not(.btn),
.footer-nav a,
.mobile-nav a {
  transition: color 0.3s var(--ease);
}

.global-nav a:not(.btn):hover,
.footer-nav a:hover,
.mobile-nav a:hover {
  color: #000;
}

.mobile-nav a {
  transition: opacity 0.3s var(--ease);
}

.mobile-nav a:hover {
  opacity: 0.55;
  color: inherit;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s var(--ease);
}

.nav-trigger svg {
  width: 11px;
  transition: transform 0.3s var(--ease);
}

.nav-trigger span {
  font-size: 12px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.has-submenu:hover .nav-trigger,
.has-submenu:focus-within .nav-trigger {
  color: #000;
}

.has-submenu:hover .nav-trigger svg,
.has-submenu:focus-within .nav-trigger svg {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  left: 50%;
  top: calc(100% + 24px);
  z-index: 60;
  display: grid;
  min-width: 160px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  background: var(--header-glass-bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(var(--header-glass-blur));
  -webkit-backdrop-filter: blur(var(--header-glass-blur));
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -24px;
  height: 24px;
}

.has-submenu:hover .nav-submenu,
.has-submenu:focus-within .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-submenu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(0, 0, 0, 0.62);
  font-size: var(--text-small-size);
  font-weight: var(--text-small-weight);
  white-space: nowrap;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.nav-submenu a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-black {
  background: #000;
  color: #fff;
}

.btn-black:hover {
  background: #fff;
  color: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.btn-white {
  background: #fff;
  color: #000;
}

.btn-white:hover {
  background: #000;
  color: #fff;
}

.btn-outline-dark {
  border-color: rgba(0, 0, 0, 0.15);
  background: transparent;
  color: #000;
}

.btn-outline-dark:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(16px);
}

.btn-outline-light:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

.nav-contact {
  padding: 8px 16px;
  color: rgba(0, 0, 0, 0.7);
}

.language-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.language-current,
.language-target {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  line-height: 1;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

.language-current {
  background: #000;
  color: #fff;
}

.language-target {
  color: rgba(0, 0, 0, 0.7);
}

.language-target:hover {
  background: #000;
  color: #fff;
}

.language-pill:has(.language-target:hover) .language-current {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.36);
}

.language-pill-small {
  height: 34px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.language-pill-small .language-current,
.language-pill-small .language-target {
  min-width: 31px;
  height: 26px;
  padding: 0 8px;
}

.header-mobile {
  display: none;
  align-items: center;
  gap: 12px;
}

.menu-button {
  display: grid;
  gap: 4px;
  width: 22px;
  padding: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  height: 1.5px;
  border-radius: 999px;
  background: #000;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  padding: 96px 20px 20px;
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.mobile-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.mobile-nav a {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: 0.001em;
}

.mobile-subnav {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.mobile-nav .mobile-subnav a {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.001em;
}

.mobile-nav .mobile-subnav a:hover {
  opacity: 0.55;
}

.mobile-social {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav .mobile-social a {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  font-size: 0;
  transition: opacity 0.3s var(--ease);
}

.mobile-nav .mobile-social a:hover {
  opacity: 0.45;
}

.mobile-social img {
  display: block;
  width: 32px;
  height: 32px;
}

.section {
  padding: 96px 0;
}

.section-label {
  margin: 0 0 16px;
  color: rgba(0, 0, 0, 0.45);
  font-size: var(--text-small-size);
  font-weight: var(--text-small-weight);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-label-light {
  color: rgba(255, 255, 255, 0.42);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0.001em;
}

h3 {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0.001em;
}

.dark-section {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.24), transparent 18%), linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.16) 48%, transparent 64%), linear-gradient(135deg, #07090c, #28313f 52%, #bff3ff);
  opacity: 0.55;
}

.dark-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 19, 22, 0.72);
}

.dark-section > .container,
.dark-section > .wide-container {
  position: relative;
  z-index: 2;
}

.video-dark-section {
  position: relative;
  overflow: hidden;
  background: #07090c;
  isolation: isolate;
}

.video-dark-section::before,
.video-dark-section::after {
  content: none;
}

.section-video-bg,
.section-video,
.section-video-overlay,
.section-video-noise,
.section-video-gradient {
  position: absolute;
  inset: 0;
}

.section-video-bg {
  z-index: 0;
  overflow: hidden;
  background-color: #07090c;
  background-size: cover;
  background-position: center;
}

.section-video-bg {
  z-index: 0;
  overflow: hidden;
  background-color: #07090c;
}

.section-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: brightness(0.62) contrast(1.08) saturate(0.9);
}

.section-video-overlay {
  background-image:
    linear-gradient(
      115deg,
      transparent 0%,
      rgba(255, 255, 255, 0.22) 42%,
      transparent 60%
    ),
    radial-gradient(
      circle at 78% 22%,
      rgba(255, 255, 255, 0.24),
      transparent 20%
    );
  opacity: 0.7;
  pointer-events: none;
}

.section-video-noise {
  opacity: 0.14;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.75) 0 1px, transparent 1px),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.75) 0 1px, transparent 1px);
  background-position: 0 0, 2px 2px;
  background-size: 4px 4px;
}

.section-video-gradient {
  background: rgba(0, 0, 0, 0.26);
  pointer-events: none;
}

.video-dark-section > .container,
.video-dark-section > .wide-container {
  position: relative;
  z-index: 2;
}

.video-dark-section .dark-card,
.video-dark-section .dark-card-large {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

@media (prefers-reduced-motion: reduce) {
  .section-video {
    display: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--base);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s var(--ease);
}

.page-wipe.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  /* Heroの上下余白と内部の高さ計算を同じ値で管理する。 */
  --hero-padding-top: 112px;
  --hero-padding-bottom: 40px;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: var(--hero-padding-top) 32px var(--hero-padding-bottom);
}

.hero-bg,
.hero-media,
.hero-overlay,
.hero-gradient,
.hero-noise {
  position: absolute;
  inset: 0;
}

.hero-bg {
  overflow: hidden;
}

.hero-media {
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}

.hero-media.is-active {
  opacity: 1;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #020617, #475569, #cffafe);
}

.hero-media[data-slide-media="1"]::before {
  background: linear-gradient(135deg, #09090b, #78716c, #fef3c7);
}

.hero-media[data-slide-media="2"]::before {
  background: linear-gradient(135deg, #1e1b4b, #475569, #ede9fe);
}

/* posterは通常ロード時に出さず、再生失敗時だけJSから背景として使う。 */
.hero-media.has-video-fallback::before {
  background-image: var(--hero-video-fallback);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-video.is-video-ready {
  opacity: 1;
}

.hero-overlay {
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}

.hero-overlay.is-active {
  opacity: 0.55;
}

.hero-overlay-01 {
  background-image: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.35) 42%, transparent 58%), radial-gradient(circle at 32% 60%, rgba(255, 255, 255, 0.45), transparent 16%);
}

.hero-overlay-02 {
  background-image: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 62%), radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.26), transparent 18%);
}

.hero-overlay-03 {
  background-image: linear-gradient(130deg, transparent 0%, rgba(255, 255, 255, 0.22) 44%, transparent 60%), radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.28), transparent 16%);
}

.hero-noise {
  opacity: 0.14;
  mix-blend-mode: soft-light;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.75) 0 1px, transparent 1px), radial-gradient(circle at center, rgba(0, 0, 0, 0.75) 0 1px, transparent 1px);
  background-position: 0 0, 2px 2px;
  background-size: 4px 4px;
}

.hero-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.1));
}

.hero-light {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  pointer-events: none;
}

.hero-light-top {
  top: 64px;
  right: -96px;
  width: 34rem;
  height: 34rem;
  background: rgba(255, 255, 255, 0.35);
  animation: heroLightTop 9s ease-in-out infinite;
}

.hero-light-bottom {
  bottom: 48px;
  left: 40px;
  width: 20rem;
  height: 20rem;
  background: rgba(165, 243, 252, 0.3);
  animation: heroLightBottom 7s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--hero-padding-top) - var(--hero-padding-bottom));
  padding: 32px 56px 96px;
  color: #fff;
}

.hero-copy {
  display: none;
  width: 100%;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 32px;
  opacity: 0;
  filter: blur(6px);
}

.hero-copy.is-active {
  display: grid;
  animation: heroCopyIn 0.55s ease-out forwards;
}

.hero-eyebrow {
  max-width: 960px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--text-small-size);
  font-weight: var(--text-small-weight);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 960px;
  margin-bottom: 0;
  font-size: clamp(64px, 7.1vw, 100px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.001em;
}

.hero-copy-sub {
  max-width: 448px;
  justify-self: end;
}

.hero-copy-sub p {
  margin-bottom: 0;
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: 1.7;
  letter-spacing: -0.02em;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-buttons .btn {
  padding: 12px 24px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.carousel-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.carousel-arrow:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

.carousel-arrow span {
  display: block;
  margin-top: -2px;
  font-size: 24px;
  line-height: 1;
}

.hero-progress-wrap {
  min-width: 104px;
  padding-inline: 4px;
}

.hero-count {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.hero-progress {
  width: 96px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.hero-progress span.is-running {
  animation: heroProgress 6.5s linear forwards;
}

.message-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: stretch;
  gap: 40px;
}

.message-visual {
  min-height: 520px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.message-visual {
  position: relative;
}

.message-visual > div {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
}

.message-visual img {
    position: absolute;
    top: 45%;
    left: 74%;
    width: 180%;
    height: 125%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    transform: translate3d(-50%, -50%, 0) scale(var(--visual-scale, 0.9));
    transform-origin: center center;
    will-change: transform;
}

.message-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.message-text p:last-child,
.lead-copy {
  max-width: 672px;
  margin: 0;
  color: rgba(0, 0, 0, 0.64);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: 1.9;
}

.message-text > h2 {
  margin-bottom: var(--section-content-space);
}

.lead-copy {
  margin-top: var(--section-content-space);
}

.section-head {
  margin-bottom: var(--section-content-space);
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.section-head-row .btn {
  padding: 12px 20px;
}

.what-list {
  display: grid;
  gap: 16px;
}

.dark-card {
  display: grid;
  grid-template-columns: 220px 1fr 56px;
  align-items: center;
  gap: 24px;
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.dark-card p {
  max-width: 768px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: 1.8;
}

/* WHAT WE DOの本文は行ボックスの見た目に合わせて2px下へ補正。 */
.what-list .dark-card p {
  transform: translateY(2px);
}

.sparkle {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sparkle img {
  display: block;
  width: 55%;
  height: 55%;
  object-fit: contain;
}

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

.work-card {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.work-thumb {
  position: relative;
  height: 256px;
  overflow: hidden;
  background: #ddd;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
}

.work-card:hover .work-thumb img {
  transform: scale(1.05);
  filter: brightness(0.92);
}

.work-thumb span {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 4px 12px;
  line-height: 1.2;
  font-size: var(--text-small-size);
  font-weight: var(--text-small-weight);
  backdrop-filter: blur(16px);
}

.work-thumb .work-status {
  top: auto;
  left: auto;
  right: 20px;
  bottom: 20px;

  display: inline-flex;
  align-items: center;
}

.work-tone-01 { background: linear-gradient(135deg, #0f172a, #334155, #cffafe); }
.work-tone-02 { background: linear-gradient(135deg, #18181b, #78716c, #fde68a); }
.work-tone-03 { background: linear-gradient(135deg, #1e1b4b, #4338ca, #ddd6fe); }
.work-tone-04 { background: linear-gradient(135deg, #171717, #0f766e, #ecfccb); }
.work-tone-05 { background: linear-gradient(135deg, #27272a, #71717a, #f4f4f5); }
.work-tone-06 { background: linear-gradient(135deg, #1e293b, #be123c, #ffedd5); }
.work-thumb[class*="work-tone-"] {
  position: relative;
  overflow: hidden;
  background: #f8f6ee;
}

.work-thumb[class*="work-tone-"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--work-bg);
  background-size: cover;
  background-position: center;
}

.work-tone-game {
  --work-bg: url("../images/works/works-game.png");
}

.work-tone-smartphone {
  --work-bg: url("../images/works/works-smartphone.png");
}

.work-tone-web {
  --work-bg: url("../images/works/works-web.png");
}


.work-body {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.work-body h3 {
  padding-right: 32px;
  font-size: 20px;
}

.work-body p {
  margin: 16px 0 0;
  color: rgba(0, 0, 0, 0.56);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: 1.7;
}

.work-body p:not(.work-status) {
  flex: 1;
}

.work-credit {
  display: block;
  align-self: flex-end;
  margin-top: 4px;
  color: rgba(0, 0, 0, 0.34);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-align: right;
}

.arrow-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 22px;
}

.dark-card-large {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: var(--section-content-space);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: 1.7;
}

.service-list li::before {
  content: "-";
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.28);
}

.service-note {
  max-width: 672px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: 1.9;
}

.about-grid {
  position: relative;
  display: block;
}

.about-grid > img {
  position: absolute;
  left: clamp(-24px, -2vw, 0px);
  top: 50%;
  z-index: 2;
  width: clamp(260px, 35vw, 450px);
  max-width: none;
  height: auto;
  pointer-events: none;
  transform: translateY(-50%);
}

.about-grid .about-text {
  position: relative;
  z-index: 1;
  min-height: 420px;
  margin-left: clamp(220px, 28vw, 360px);
  padding: 48px;
}

.about-text {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 20px;
  background: #fff;
  padding: 48px;
  gap: var(--section-content-space);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.about-text p:not(.section-label) {
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: 2;
  }

.about-text .btn {
  display: flex;
  width: fit-content;
  margin-top: 32px;
  margin-left: auto;
  padding: 12px 20px;
}

.about-info{
    border-radius: 20px;
    background: #fff;
    padding: 40px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.about-info p:not(.section-label) {
    color: rgba(0, 0, 0, 0.62);
    font-size: var(--text-body-size);
    font-weight: var(--text-body-weight);
    line-height: 2;
}

.about-info > h2 {
  margin-bottom: var(--section-content-space);
}

.about-meta {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.about-meta > div {
    display: grid;
    grid-template-columns: minmax(100px, max-content) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 14px;
    color: rgba(0, 0, 0, 0.58);
    font-size: var(--text-small-size);
    font-weight: var(--text-small-weight);
}

.about-meta > div > span {
    display: flex;
    align-items: center;
    min-width: 100px;
    min-height: calc(var(--text-body-size) * 2);
    color: var(--ink);
}

.about-meta > div > p,
.about-business-list {
    margin: 0;
    font-size: var(--text-body-size);
    font-weight: var(--text-body-weight);
    line-height: 2;
}

.about-business-list {
    padding-left: 1.5em;
}

/* 英語版のBusiness本文は、ラベルより軽いウエイトで表示する。 */
html[lang="en"] .about-business-list {
    font-family: var(--font-latin-light), var(--font-ja);
    font-weight: 300;
}

.about-business-list li + li {
    margin-top: 8px;
}

.news-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.news-row {
  display: grid;
  grid-template-columns: 160px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: #fff;
}

.news-row time {
  color: rgba(0, 0, 0, 0.45);
  font-size: var(--text-small-size);
  font-weight: var(--text-small-weight);
  }

.news-row span {
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  }

.news-row em {
  color: rgba(0, 0, 0, 0.35);
  font-style: normal;
  font-size: 22px;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.news-row:hover span {
  color: #000;
  transform: translateX(4px);
}

.news-row:hover em {
  color: #000;
  transform: translateX(6px);
}

.contact-section {
  padding: 0 0 40px;
}

/* Studio末尾のContact導線だけ、前のセクションから距離を空ける。 */
.studio-contact-section {
  margin-top: 96px;
}

.contact-card {
  border-radius: 20px;
  background: #fff;
  padding: 64px;
  text-align: center;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.contact-visual {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: min(1440px, 100%);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.contact-card > :not(.contact-visual) {
  position: relative;
  z-index: 2;
}

.contact-card h2 {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: var(--section-content-space);
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.98;
}

.contact-card p:not(.section-label) {
  max-width: 576px;
  margin: 0 auto;
  color: rgba(0, 0, 0, 0.58);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
    line-height: 2;
}

.contact-card .btn {
  margin-top: 40px;
  padding: 16px 28px;
}

.page-hero {
  padding: 180px 0 0;
}

/* 下層のコンテンツ余白は .section と同じくコンテンツ側で管理する。 */
.page-band {
  padding: 96px 0;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--section-content-space);
  align-items: end;
}

.page-title {
  margin: 0;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 560;
  line-height: 0.9;
}

.page-lead {
  max-width: 680px;
  margin: 0 0 10px;
  color: rgba(0, 0, 0, 0.62);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: 1.9;
}

.split-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.text-block {
  display: grid;
  gap: 28px;
}

.text-block p {
  margin: 0;
  color: rgba(0, 0, 0, 0.62);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: 2;
}

.contact-grid {
  /* 現在は1カラムのみ。コンテナ幅いっぱいを使用する。 */
  display: block;
}

.contact-form {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    font-family: var(--font-ja);
    border-radius: 20px;
    background: #fff;
    padding: 40px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form .btn {
  height: 43px;
  padding: 0 20px;
  align-self: flex-end;
}

/* Bot trap: keep this field off-screen without using display:none. */
.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-feedback {
  margin: 0;
  color: #9b2525;
  font-size: var(--text-small-size);
  line-height: 1.8;
}

.form-feedback[hidden] {
  display: none;
}

.contact-form .btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.contact-complete-message {
  display: flex;
  flex-direction: column;
  gap: var(--section-content-space);
}

.contact-complete-message p {
  margin: 0;
  align-self: stretch;
  line-height: 2;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  display: flex;
  align-items: center;
  font-size: var(--text-small-size);
  font-weight: var(--text-small-weight);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 必須フィールドの目印。入力チェック自体はHTMLとPHPのrequiredで行う。 */
.field-required {
  margin-left: 0.3em;
  color: #c62828;
  font-weight: 700;
}

/* ブラウザ標準の入力バルーンではなく、ラベル右側と枠線で知らせる。 */
.field-error {
  display: none;
  margin-left: auto;
  color: #c62828;
  text-align: right;
  letter-spacing: 0;
  text-transform: none;
}

.field.is-invalid .field-error:not(:empty) {
  display: inline;
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
  border-color: #c62828;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: #fbfaf6;
  padding: 14px 16px;
  color: #111;
  font: inherit;
}

/* CATEGORYの未選択表示を他のプレースホルダーと同じ色に揃える。 */
.field input::placeholder,
.field textarea::placeholder,
.field select:has(option[value=""]:checked) {
  color: var(--muted);
  opacity: 1;
}

/* ドロップダウンを開いたときの選択肢は通常の文字色にする。 */
.field select option {
  color: #111;
}

.field textarea {
  min-height: 168px;
  resize: vertical;
}

/* ネイティブの矢印を置き換え、右端から16pxの位置に固定する。 */
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23161616' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}

.site-footer {
  color: rgba(0, 0, 0, 0.5);
}

.footer-main {
  display: grid;
  row-gap: 20px;
  padding: 24px 20px;
}

.footer-main::before {
  content: "";
  width: min(100% - 64px, var(--container));
  border-top: 1px solid var(--line);
  justify-self: center;
}
.footer-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 32px;
  font-size: var(--text-small-size);
  font-weight: var(--text-small-weight);
  }

.footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 20px;
  white-space: nowrap;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.footer-social a {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition:
    background-color 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

.footer-social a img {
  display: block;
  width: 32px;
  height: 32px;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}


.footer-social a:hover img {
  opacity: 0.45;
  transform: scale(0.92);
}

.footer-credit {
  background: #000;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 20px;
  text-align: center;
  font-size: var(--text-small-size);
  font-weight: var(--text-small-weight);
  letter-spacing: 0.12em;
}

@keyframes heroProgress {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes heroCopyIn {
  from { opacity: 0; filter: blur(6px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes heroLightTop {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(-24px) scale(1.08); }
}

@keyframes heroLightBottom {
  0%, 100% { transform: translateY(0) scale(1.05); }
  50% { transform: translateY(20px) scale(1); }
}

@media (max-width: 1023px) {
  .header-desktop {
    display: none;
  }

  .header-mobile {
    display: flex;
  }

  .hero-copy,
  .message-grid,
  .about-grid,
  .dark-card-large,
  .page-hero-inner,
  .split-panel {
    grid-template-columns: 1fr;
  }

  /* 横並び時は列間gap、縦並び時は同じ40pxを見出しブロックの下に適用。 */
  .page-hero-inner,
  .dark-card-large {
    row-gap: 0;
  }

  .page-hero-inner > :first-child,
  .dark-card-large > :first-child {
    margin-bottom: var(--section-content-space);
  }

  .hero-copy-sub {
    justify-self: start;
  }

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

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

  .sparkle {
    display: none;
  }

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

  .footer-nav,
  .footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .container,
  .wide-container {
    width: min(100% - 32px, var(--container));
  }

  .site-header {
    padding: 16px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    --hero-padding-top: 96px;
    padding-inline: 20px;
  }

  .hero-light-top {
    width: 18rem;
    height: 18rem;
  }

  .hero-inner {
    padding: 32px 0 104px;
  }

  .hero h1 {
    font-size: 12vw;
  }

  .hero-copy-sub p {
  margin-bottom: 0;
  line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .message-visual,
  .about-visual,
  .about-text {
    min-height: 360px;
  }

  .message-text p:last-child,
  .lead-copy {
    font-size: 16px;
  }

  .section-head-row {
    align-items: flex-start;
  }

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

  .about-grid {
    min-height: 0;
  }

  .about-grid > img {
    position: relative;
    left: auto;
    top: auto;
    width: min(100vw, 540px);
    margin: 0 auto -64px;
    transform: none
  }

  .about-grid .about-text {
    margin-left: 0;
    min-height: 0;
    padding: 72px 28px 28px;
    gap: var(--section-content-space);
  }

  .dark-card,
  .dark-card-large,
  .about-text,
  .contact-card,
  .contact-info,
  .contact-form {
    padding: 28px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .news-row {
    grid-template-columns: 1fr;
  }

  .news-row em {
    display: none;
  }

  .page-hero {
    padding: 150px 0 0;
  }

  .page-band {
    padding: 72px 0;
  }

  .about-meta > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-meta > div > span {
    min-height: 0;
  }

  .page-title {
    font-size: clamp(44px, 12vw, 72px);
  }

  .page-lead {
    font-size: var(--text-body-size);
  }
  
   .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-nav {
    position: static;
    transform: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .footer-social {
    justify-content: flex-start;
    margin-left: 0;
  }
}
