/* ========================================
   Kei Films - Corporate Film Director
   ======================================== */

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

html {
  scroll-behavior: auto;
}

body {
  font-family: "Noto Sans JP", "Helvetica Neue", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background-color: #050505;
  color: #ffffff;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

@media (pointer: fine) {
  body {
    cursor: none;
  }
}

/* スクリーンリーダー・SEO用：視覚非表示・意味は保持 */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 背景レイヤー（線がコンテンツの下で見えるようにする） */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #050505;
  z-index: 0;
  pointer-events: none;
}

/* サイト背景の等間隔極小ライン（グリッド） */
.page-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to bottom, transparent 0, transparent 47px, rgba(255, 255, 255, 0.06) 47px, rgba(255, 255, 255, 0.06) 48px),
    linear-gradient(to right, transparent 0, transparent 47px, rgba(255, 255, 255, 0.06) 47px, rgba(255, 255, 255, 0.06) 48px);
  background-size: 100% 48px, 48px 100%;
  background-repeat: repeat;
  pointer-events: none;
}

/* スクロールに合わせて交差する極小の白い線（オブジェクトの下レイヤー） */
.scroll-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.main-layer {
  position: relative;
  z-index: 2;
}

.scroll-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.08s linear;
}

.scroll-line--1 {
  left: 0;
  top: 28%;
  width: 100%;
  height: 1px;
}

.scroll-line--2 {
  left: 0;
  top: 72%;
  width: 100%;
  height: 1px;
}

.scroll-line--3 {
  left: 25%;
  top: 0;
  width: 1px;
  height: 100%;
}

.scroll-line--4 {
  left: 75%;
  top: 0;
  width: 1px;
  height: 100%;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}

.cursor .cursor-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #050505;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor.is-hover {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.25);
}

.cursor.is-hover .cursor-label {
  opacity: 1;
}

@media (hover: none) or (pointer: coarse) {
  body {
    cursor: auto;
  }
  .cursor {
    display: none !important;
  }
}

.js-fade-in-up {
  opacity: 0;
  transform: translateY(48px) scale(0.98);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.js-fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.js-typewriter {
  overflow: hidden;
}

.work-item.js-fade-in-up:nth-child(1) { transition-delay: 0s; }
.work-item.js-fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.work-item.js-fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.work-item.js-fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.work-item.js-fade-in-up:nth-child(5) { transition-delay: 0.4s; }
.work-item.js-fade-in-up:nth-child(6) { transition-delay: 0.5s; }

.works .work-item.js-fade-in-up {
  opacity: 0;
  transform: translateY(56px) scale(0.96);
  transition: opacity 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.works .work-item.js-fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a0a0a0;
  margin-bottom: 64px;
}

.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 10002;
  pointer-events: none;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.12s ease-out;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease;
}

.header.header--hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 40px;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #a0a0a0;
  transition: color 0.25s ease;
}

.nav a:hover {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
}

.hero-video-wrap iframe,
.hero-video-wrap .hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.35);
  pointer-events: none;
}

/* ファーストビュー：スクロールで上下から幕が降りる */
.hero-curtain {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0;
  background: #050505;
  z-index: 4;
  pointer-events: none;
  transition: height 0.18s ease-out;
}

.hero-curtain--top {
  top: 0;
}

.hero-curtain--bottom {
  bottom: 0;
}

/* ヒーロー左下テキスト（動画の上に固定） */
.hero-copy {
  position: absolute;
  left: 120px;
  bottom: 120px;
  z-index: 5;
  margin: 0;
  opacity: 0;
  animation: hero-copy-fade 0.8s ease forwards;
}

.hero-copy-line1,
.hero-copy-line2 {
  margin: 0;
  font-family: "Noto Sans JP", "Helvetica Neue", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-copy-line1 {
  font-size: 36px;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.hero-copy-line2 {
  font-size: 18px;
  color: #cfcfcf;
  margin-top: 2px;
}

@keyframes hero-copy-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: #ffffff;
  opacity: 0.5;
}

/* マーキー（無限ループ・アウトラインのみの透明文字装飾） */
.marquee-container {
  overflow: hidden;
  width: 100%;
  background: #000;
  padding: 0.65em 0;
}

.marquee-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee-flow 30s linear infinite;
}

.marquee-text {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
  padding-right: 0.4em;
  flex-shrink: 0;
}

@keyframes marquee-flow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.works {
  background: #050505;
}

.works-title-wrap {
  margin-bottom: 0;
}

.works-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: clamp(20px, 3vw, 32px);
  width: 100%;
  padding: 0 clamp(24px, 5vw, 48px) 24px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.works-grid::-webkit-scrollbar {
  height: 6px;
}

.works-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.works-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.work-item {
  flex: 0 0 min(360px, 85vw);
  display: flex;
  flex-direction: column;
  min-height: 0;
  scroll-snap-align: start;
}

.work-thumb {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
  cursor: pointer;
}

.work-item[data-video-id] .work-thumb {
  cursor: pointer;
}

.work-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.work-thumb-play::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 24px 0 24px 40px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
  transition: opacity 0.25s ease;
}

.work-item[data-video-id]:hover .work-thumb-play::after {
  border-color: transparent transparent transparent rgba(255, 255, 255, 1);
}

.work-item:not([data-video-id]) .work-thumb {
  cursor: default;
}

.works-grid .work-thumb {
  aspect-ratio: 16 / 9;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

.work-item:hover .work-thumb img {
  opacity: 0.85;
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-meta-reveal {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: 0s;
}

.work-item.is-visible .work-meta .work-client .work-meta-reveal {
  clip-path: inset(0 0 0 0);
  transition-delay: 0.12s;
}

.work-item.is-visible .work-meta .work-title .work-meta-reveal {
  clip-path: inset(0 0 0 0);
  transition-delay: 0.32s;
}

.work-item.is-visible .work-meta .work-role .work-meta-reveal {
  clip-path: inset(0 0 0 0);
  transition-delay: 0.52s;
}

.work-client {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #a0a0a0;
}

.work-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.work-role {
  font-size: 0.75rem;
  color: #a0a0a0;
  letter-spacing: 0.05em;
}

.about {
  background: #050505;
  overflow: hidden;
}

/* 素材レイヤー＋大見出しのヒーロー領域 */
.about-hero {
  position: relative;
  width: 100%;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 64px;
}

.about-materials {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.about-material {
  position: absolute;
  will-change: transform;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-material--front {
  z-index: 2;
}

.about-material--back {
  z-index: 0;
  filter: blur(5px);
  opacity: 0.92;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease, opacity 0.5s ease;
}

.about-material img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-material--1 {
  width: 42%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  left: 8%;
  top: 15%;
}

.about-material--2 {
  width: 38%;
  max-width: 460px;
  aspect-ratio: 3 / 4;
  right: 12%;
  top: 20%;
}

.about-material--3 {
  width: 36%;
  max-width: 420px;
  aspect-ratio: 16 / 10;
  right: 18%;
  bottom: 18%;
}

.about-material--4 {
  width: 32%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  left: 4%;
  bottom: 12%;
}

.about-material--5 {
  width: 30%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  left: 18%;
  top: 8%;
}

.about-material--6 {
  width: 34%;
  max-width: 400px;
  aspect-ratio: 16 / 10;
  right: 6%;
  top: 12%;
}

.about-material--7 {
  width: 28%;
  max-width: 340px;
  aspect-ratio: 3 / 2;
  right: 22%;
  bottom: 8%;
}

.about-title-overlay {
  position: relative;
  z-index: 2;
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  margin: 0;
  pointer-events: none;
  will-change: transform;
  text-transform: uppercase;
  transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-content-wrap {
  padding-top: 0;
  padding-bottom: 80px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}

.about-image {
  flex: 0 0 auto;
  width: 280px;
  overflow: hidden;
  border-radius: 8px;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  border-radius: 8px;
  filter: grayscale(100%) blur(5px);
  opacity: 0.8;
  transition: filter 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.about-image:hover img {
  filter: grayscale(0%) blur(0);
  opacity: 1;
}

.about-text {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-name {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.about-role {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 28px 0;
}

.about-lead {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 0;
  color: #c0c0c0;
  letter-spacing: 0.02em;
}

.about-prose {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.about-prose p {
  font-size: 0.9375rem;
  color: #c0c0c0;
  letter-spacing: 0.02em;
}

.about-prose strong {
  color: #ffffff;
  font-weight: 500;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.about-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
}

/* STUDIO section: minimal, portfolio-style */
.studio {
  background: #050505;
  padding-top: 120px;
  padding-bottom: 120px;
}

.studio .studio-title {
  letter-spacing: 0.2em;
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 32px;
}

.studio-block {
  max-width: 520px;
  text-align: left;
  line-height: 1.8;
}

.studio-name {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
}

.studio-concept {
  margin: 0 0 28px 0;
  font-size: 14px;
  opacity: 0.85;
  font-style: italic;
}

.studio-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.studio-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.studio-label {
  font-weight: 500;
  min-width: 80px;
  opacity: 0.8;
}

.studio-value {
  font-weight: 400;
}

@media (max-width: 640px) {
  .studio {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .studio-name {
    font-size: 24px;
  }
  .studio-concept,
  .studio-row {
    font-size: 13px;
  }
}

.contact {
  background: #050505;
  padding-bottom: 120px;
}

.contact-header {
  margin-bottom: 48px;
}

.contact-text {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

.contact-trigger {
  display: block;
  width: 100%;
  padding: 0 clamp(24px, 5vw, 48px);
  font-size: clamp(5vw, 8vw, 9vw);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px #555;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: color 0.4s ease, -webkit-text-stroke 0.4s ease, transform 0.4s ease;
}

.contact-trigger:hover {
  color: #fff;
  -webkit-text-stroke: 1px #fff;
  transform: scale(1.02);
}

/* フルスクリーン・オーバーレイ型お問い合わせモーダル */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.contact-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.contact-modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

.contact-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 0;
  transition: color 0.25s ease;
}

.contact-modal-close:hover {
  color: #fff;
}

/* Works: YouTube 動画モーダル */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.video-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.video-modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
}

.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 0;
  transition: color 0.25s ease;
}

.video-modal-close:hover {
  color: #fff;
}

.video-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  padding: 12px 0;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-family: inherit;
  letter-spacing: 0.02em;
  resize: vertical;
  min-height: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-bottom-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.5);
}

.contact-form-submit {
  margin-top: 16px;
  padding: 16px 32px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.contact-form-submit:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.9);
}

.footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid #1a1a1a;
}

.footer-copy {
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }
  .section-title {
    margin-bottom: 48px;
  }
  .works-grid {
    gap: 20px;
    padding: 0 clamp(24px, 4vw, 40px) 20px;
  }
  .work-item {
    flex: 0 0 min(320px, 80vw);
  }
  .about-hero {
    min-height: 60vh;
    margin-bottom: 48px;
  }
  .about-material--1,
  .about-material--2,
  .about-material--3,
  .about-material--4,
  .about-material--5,
  .about-material--6,
  .about-material--7 { width: 38%; max-width: none; }
  .about-material--1 { left: 2%; top: 10%; }
  .about-material--2 { right: 2%; top: 15%; }
  .about-material--3 { right: 8%; bottom: 12%; }
  .about-material--4 { left: 2%; bottom: 8%; }
  .about-material--5 { left: 12%; top: 5%; }
  .about-material--6 { right: 2%; top: 8%; }
  .about-material--7 { right: 15%; bottom: 5%; }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 16px 20px;
  }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav.is-open {
    transform: translateX(0);
  }
  .nav a {
    font-size: 1rem;
  }
  .nav-toggle {
    display: flex;
    z-index: 101;
  }
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .hero-copy {
    left: 24px;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
  .hero-copy-line1 {
    font-size: clamp(1rem, 4.5vw, 1.5rem);
  }
  .hero-copy-line2 {
    font-size: clamp(0.8125rem, 3.5vw, 1.125rem);
  }
  .section {
    padding: 64px 0;
  }
  .container {
    padding: 0 20px;
  }
  .section-title {
    margin-bottom: 40px;
  }
  .works-grid {
    padding: 0 20px 20px;
    gap: 16px;
  }
  .work-item {
    flex: 0 0 min(280px, 82vw);
  }
  .work-thumb {
    margin-bottom: 12px;
  }
  .about-hero {
    min-height: 55vh;
    margin-bottom: 40px;
  }
  .about-title-overlay {
    font-size: clamp(3rem, 14vw, 5rem);
  }
  .about-material--1,
  .about-material--2,
  .about-material--3,
  .about-material--4,
  .about-material--5,
  .about-material--6,
  .about-material--7 {
    width: 55%;
    max-width: none;
  }
  .about-material--1 { left: 3%; top: 8%; }
  .about-material--2 { right: 3%; top: 20%; }
  .about-material--3 { right: 10%; bottom: 8%; }
  .about-material--4 { left: 3%; bottom: 5%; }
  .about-material--5 { left: 8%; top: 3%; }
  .about-material--6 { right: 3%; top: 5%; }
  .about-material--7 { right: 12%; bottom: 3%; }
  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .about-image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .about-text {
    flex: 1 1 auto;
    width: 100%;
  }
  .about-lead {
    margin-bottom: 24px;
  }
  .about-prose {
    margin-bottom: 40px;
  }
  .about-content-wrap {
    padding-bottom: 64px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
  }
  .hero-copy {
    left: 20px;
  }
  .hero-scroll-hint {
    bottom: 24px;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
  }
  .marquee-text {
    font-size: clamp(1.25rem, 4vw, 2.5rem);
  }
  .section {
    padding: 56px 0;
  }
  .footer {
    padding: 32px 20px;
  }
}
