/* ========================================
   広島スチール工業 — 宇宙開発 LP
   ======================================== */

:root {
  --color-bg: #050510;
  --color-bg-deep: #020208;
  --color-text: #f0f0f8;
  --color-text-muted: rgba(240, 240, 248, 0.72);
  --color-accent: #7b5cff;
  --color-accent-pink: #e040a0;
  --color-accent-cyan: #40c8e0;
  --color-border: rgba(255, 255, 255, 0.12);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --container-max: 960px;
  --header-height: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --container-gutter: 1.25rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg-deep);
  color: var(--color-text);
  line-height: 1.9;
  font-weight: 300;
  overflow-x: hidden;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
.contact-form__submit,
.movie__facade {
  touch-action: manipulation;
}

body.is-menu-open {
  overflow: hidden;
  touch-action: none;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img, video, iframe {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - var(--container-gutter) * 2, var(--container-max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__heading {
  display: block;
  margin: 0;
  font: inherit;
  font-weight: inherit;
}

/* ---- Starfield & Nebula ---- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(80, 40, 120, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(40, 80, 160, 0.12) 0%, transparent 50%),
    var(--color-bg-deep);
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 45%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 35%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 75%, rgba(255,255,255,0.6) 0%, transparent 100%);
  background-size: 100% 100%;
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.85; }
  100% { opacity: 1; }
}

.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  pointer-events: none;
  animation: nebula-drift 20s ease-in-out infinite alternate;
}

.nebula--1 {
  width: 60vw;
  height: 50vh;
  top: -10%;
  right: -15%;
  background: radial-gradient(circle, rgba(120, 60, 200, 0.35) 0%, rgba(200, 60, 140, 0.15) 50%, transparent 70%);
}

.nebula--2 {
  width: 50vw;
  height: 45vh;
  bottom: 10%;
  left: -10%;
  background: radial-gradient(circle, rgba(60, 100, 220, 0.3) 0%, rgba(140, 60, 200, 0.12) 50%, transparent 70%);
  animation-delay: -10s;
}

@keyframes nebula-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, 2%) scale(1.05); }
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(5, 5, 16, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  width: min(100% - var(--container-gutter) * 2, var(--container-max));
  margin-inline: auto;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.header__logo:hover {
  opacity: 0.85;
}

/* ---- Brand lockup (logo + text) ---- */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-lockup--center {
  justify-content: center;
}

.brand-lockup__mark {
  flex-shrink: 0;
}

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  line-height: 1;
}

.brand-lockup__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
  white-space: nowrap;
}

.brand-lockup__line--sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(240, 240, 248, 0.88);
}

.site-logo {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.header__logo-img {
  width: auto;
  height: 40px;
}

.header__nav {
  display: flex;
  gap: 2rem;
}

.header__nav a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--color-text);
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  margin-right: -10px;
  -webkit-tap-highlight-color: transparent;
}

.header__menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding:
    calc(var(--header-height) + var(--safe-top) + 2rem)
    max(1.25rem, var(--safe-left))
    calc(3rem + var(--safe-bottom))
    max(1.25rem, var(--safe-right));
  overflow: hidden;
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--color-bg-deep);
}

.hero__video iframe,
.hero__video video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video iframe {
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(2, 2, 8, 0.55) 0%,
      rgba(2, 2, 8, 0.35) 40%,
      rgba(2, 2, 8, 0.5) 70%,
      rgba(2, 2, 8, 0.75) 100%
    ),
    radial-gradient(ellipse at 50% 40%, rgba(80, 40, 120, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

body.has-hero-video .header {
  background: rgba(5, 5, 16, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.has-hero-video .starfield,
body.has-hero-video .nebula {
  opacity: 0;
  visibility: hidden;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.787rem, 1.815vw, 0.968rem);
  letter-spacing: 0.35em;
  color: var(--color-accent-cyan);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2.5rem;
}

.hero__title-line {
  display: block;
  font-size: clamp(2.42rem, 7.7vw, 4.95rem);
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #fff 28%, rgba(220, 200, 255, 0.95) 55%, rgba(170, 210, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 20px rgba(200, 180, 255, 0.2));
  animation: hero-title-glow 4.5s ease-in-out infinite;
}

@keyframes hero-title-glow {
  0%, 100% {
    filter:
      drop-shadow(0 2px 20px rgba(0, 0, 0, 0.45))
      drop-shadow(0 0 18px rgba(200, 180, 255, 0.22))
      drop-shadow(0 0 36px rgba(160, 200, 255, 0.1));
  }
  50% {
    filter:
      drop-shadow(0 2px 22px rgba(0, 0, 0, 0.4))
      drop-shadow(0 0 28px rgba(220, 200, 255, 0.48))
      drop-shadow(0 0 52px rgba(160, 200, 255, 0.28));
  }
}

body.has-hero-video .hero__subtitle {
  color: rgba(240, 240, 248, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

body.has-hero-video .hero__subtitle-sign {
  color: rgba(240, 240, 248, 0.7);
}

.hero__subtitle {
  font-size: clamp(0.99rem, 2.2vw, 1.155rem);
  color: var(--color-text-muted);
  line-height: 2.2;
}

.hero__subtitle-sign {
  display: block;
  margin-top: 1rem;
  font-size: 0.9em;
  color: rgba(240, 240, 248, 0.55);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-muted);
  animation: scroll-bounce 2s ease-in-out infinite;
}

.hero__scroll-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---- Intro ---- */
.intro {
  padding: 5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(10, 10, 30, 0.4);
}

.intro__text {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

/* ---- Movie ---- */
.movie {
  padding: 5rem 0;
}

.movie--alt {
  background: rgba(10, 10, 30, 0.3);
}

.movie--cinematic {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.movie--cinematic.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.movie__telop {
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 1100px;
  margin-inline: auto;
}

.movie__telop-project {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--color-accent-cyan);
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.movie__telop-chapter {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--color-text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.movie__frame {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
}

.movie__glow {
  position: absolute;
  inset: -12px;
  z-index: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow:
    0 0 40px rgba(123, 92, 255, 0.2),
    0 0 80px rgba(64, 200, 224, 0.1);
  animation: movie-glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes movie-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 36px rgba(123, 92, 255, 0.18),
      0 0 70px rgba(64, 200, 224, 0.08);
  }
  50% {
    box-shadow:
      0 0 52px rgba(123, 92, 255, 0.38),
      0 0 100px rgba(160, 120, 255, 0.18);
  }
}

.movie__player {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.movie__player--facade,
.movie__player--simple {
  --yt-title-crop: 76px;
}

.movie__player--facade.is-playing,
.movie__player--simple {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.movie__player-crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.movie__player-crop iframe {
  position: absolute;
  top: calc(var(--yt-title-crop) * -1);
  left: 0;
  width: 100%;
  height: calc(100% + var(--yt-title-crop));
  border: none;
  max-width: none;
}

.movie__letterbox {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  height: 6%;
  min-height: 14px;
  max-height: 28px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
}

.movie__letterbox--top {
  top: 0;
}

.movie__letterbox--bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.movie__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 2px;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45);
}

/* Facade（サムネイル＋再生ボタン） */
.movie__facade {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}

.movie__facade-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.movie__facade-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 45%,
    rgba(0, 0, 0, 0.5) 100%
  );
  transition: background 0.4s ease;
}

.movie__facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(5, 5, 16, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 0 30px rgba(123, 92, 255, 0.35),
    0 4px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie__facade-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.movie__facade:hover .movie__facade-thumb {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.movie__facade:hover .movie__facade-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.08) 45%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

.movie__facade:hover .movie__facade-play {
  transform: translate(-50%, -50%) scale(1.08);
  border-color: #fff;
  box-shadow:
    0 0 48px rgba(123, 92, 255, 0.55),
    0 4px 32px rgba(0, 0, 0, 0.5);
}

.movie__facade:focus-visible {
  outline: 2px solid var(--color-accent-cyan);
  outline-offset: 3px;
}

.movie__player iframe,
.movie__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.movie__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(30, 20, 60, 0.8), rgba(10, 30, 60, 0.8));
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.movie__placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding-left: 4px;
}

.movie__placeholder--error {
  background: rgba(30, 10, 20, 0.8);
}

/* ---- Vision ---- */
.vision {
  position: relative;
  padding: 6rem 0;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
  isolation: isolate;
}

.vision__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(2, 2, 12, 0.78) 0%,
      rgba(2, 2, 12, 0.62) 45%,
      rgba(2, 2, 12, 0.8) 100%
    ),
    radial-gradient(ellipse at 70% 40%, rgba(0, 0, 0, 0.35) 0%, transparent 55%),
    url('../images/vision-bg.png') center / cover no-repeat;
}

.vision__inner {
  position: relative;
  z-index: 1;
}

.vision__header {
  text-align: center;
  margin-bottom: 3rem;
}

.vision__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--color-accent-cyan);
  display: block;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.vision__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  letter-spacing: 0.1em;
  font-weight: 600;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}

.vision__body {
  max-width: 680px;
  margin-inline: auto;
  padding: 2.5rem 2rem;
  background: rgba(5, 5, 18, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.vision__lead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 2;
  color: rgba(245, 245, 252, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.vision__text p {
  margin-bottom: 1.5rem;
  color: rgba(240, 240, 248, 0.88);
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.vision__question {
  font-size: clamp(1rem, 2.5vw, 1.15rem) !important;
  font-weight: 500;
  color: #fff !important;
  text-align: center;
  padding: 1.5rem 1rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin: 2rem 0 !important;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* ---- Contact ---- */
.contact {
  position: relative;
  padding: 6rem 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(2, 2, 8, 0.82), rgba(2, 2, 8, 0.88)),
    radial-gradient(ellipse at 30% 20%, rgba(40, 60, 100, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(60, 40, 80, 0.25) 0%, transparent 50%),
    #0a0a18;
}

.contact__wrapper {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.contact__title {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.contact__info {
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 2;
  margin-bottom: 2rem;
}

.contact__info a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__info a:hover {
  color: var(--color-accent-cyan);
}

.contact-form {
  text-align: left;
  background: rgba(30, 30, 40, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem 2rem 2.25rem;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-of-type {
  margin-bottom: 1.75rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  margin-bottom: 0.45rem;
  color: var(--color-text);
}

.form-required {
  color: #e88080;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: #1a1a24;
  background: rgba(245, 245, 250, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: rgba(30, 30, 40, 0.45);
}

.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.2);
}

.form-input.is-error {
  border-color: #e05050;
  box-shadow: 0 0 0 3px rgba(224, 80, 80, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

.form-error {
  font-size: 0.78rem;
  color: #ff8a8a;
  margin-top: 0.35rem;
  min-height: 1.1em;
}

.contact-form__submit {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  min-height: 52px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #fff;
  background: #0a0a0f;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
}

.contact-form__submit:hover:not(:disabled) {
  background: #1a1a28;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.contact-form__submit:active:not(:disabled) {
  transform: scale(0.98);
}

.contact-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.contact__brand {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contact__logo {
  display: flex;
  transition: opacity 0.2s, transform 0.2s;
}

.contact__logo .brand-lockup__line {
  font-size: 1.05rem;
}

.contact__logo .brand-lockup__line--sub {
  font-size: 0.72rem;
}

.contact__logo .brand-lockup__mark {
  width: min(120px, 28vw);
}

.contact__logo:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

.contact__official-link {
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--color-text);
  transition: color 0.2s;
}

.contact__official-link:hover {
  color: var(--color-accent-cyan);
}

/* ---- Footer ---- */
.footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--color-border);
  background: rgba(2, 2, 8, 0.8);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__logo {
  display: inline-flex;
  margin-bottom: 0.25rem;
  transition: opacity 0.2s;
}

.footer__logo .brand-lockup__mark {
  width: 72px;
}

.footer__logo .brand-lockup__line {
  font-size: 0.78rem;
}

.footer__logo .brand-lockup__line--sub {
  font-size: 0.55rem;
}

.footer__logo:hover {
  opacity: 0.85;
}

.footer__company {
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.footer__address {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 2;
}

.footer__address a:hover {
  color: var(--color-text);
}

.footer__map {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.footer__map iframe {
  width: 100%;
  height: 200px;
}

.footer__copy {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(240, 240, 248, 0.4);
  padding-top: 1.5rem;
  padding-bottom: var(--safe-bottom);
  border-top: 1px solid var(--color-border);
  width: min(100% - var(--container-gutter) * 2, var(--container-max));
  margin-inline: auto;
}

/* ---- Tablet ---- */
@media (max-width: 900px) {
  .vision__title {
    letter-spacing: 0.06em;
  }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --container-gutter: 1rem;
  }

  .nebula {
    filter: blur(60px);
    animation: none;
  }

  .starfield {
    animation: none;
  }

  .header__logo-img,
  .header__logo .brand-lockup__mark {
    height: 32px;
    width: auto;
  }

  .brand-lockup__line {
    font-size: 0.72rem;
  }

  .brand-lockup__line--sub {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
  }

  .header__nav {
    position: fixed;
    top: calc(var(--header-height) + var(--safe-top));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 calc(1rem + var(--safe-bottom));
    background: rgba(5, 5, 16, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-height: calc(100dvh - var(--header-height) - var(--safe-top));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header__nav a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-align: center;
    min-height: 48px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .header__nav a:last-child {
    border-bottom: none;
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header__menu-btn {
    display: flex;
  }

  .header__menu-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header__menu-btn.is-open span:nth-child(2) {
    opacity: 0;
  }

  .header__menu-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: calc(100dvh - var(--safe-bottom));
    padding-top: calc(var(--header-height) + var(--safe-top) + 16dvh);
    padding-bottom: calc(2rem + var(--safe-bottom));
    justify-content: flex-start;
  }

  .hero__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.25rem;
  }

  .hero__title {
    margin-bottom: 1.75rem;
  }

  .hero__title-line {
    font-size: clamp(2.035rem, 10.45vw, 2.86rem);
    letter-spacing: 0.02em;
    line-height: 1.2;
  }

  .hero__subtitle {
    font-size: 1.012rem;
    line-height: 2;
    text-align: left;
  }

  .hero__subtitle br {
    display: none;
  }

  .u-pc-only {
    display: none;
  }

  .hero__subtitle-sign {
    margin-top: 0.75rem;
    font-size: 0.902rem;
    line-height: 1.8;
  }

  .hero__scroll {
    bottom: calc(1.5rem + var(--safe-bottom));
    transform: scale(0.9);
  }

  .intro {
    padding: 3rem 0;
  }

  .intro__text {
    font-size: 0.9rem;
    line-height: 2;
    text-align: left;
  }

  .movie {
    padding: 3.5rem 0;
  }

  .movie .container {
    width: 100%;
    padding-inline: 0;
  }

  .movie__telop {
    margin-bottom: 1.25rem;
    padding-inline: var(--container-gutter);
  }

  .movie__telop-project {
    font-size: 0.68rem;
    letter-spacing: 0.28em;
  }

  .movie__telop-chapter {
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    line-height: 1.7;
  }

  .movie__frame {
    max-width: none;
  }

  .movie__glow {
    inset: -6px;
    animation: none;
    box-shadow: 0 0 30px rgba(123, 92, 255, 0.25);
  }

  .movie__player {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .movie__player--facade,
  .movie__player--simple {
    --yt-title-crop: 88px;
  }

  .movie__facade-play {
    width: 60px;
    height: 60px;
  }

  .movie__facade-play::after {
    border-width: 10px 0 10px 16px;
  }

  .movie__placeholder {
    font-size: 0.82rem;
    padding: 1rem;
    text-align: center;
  }

  .movie__placeholder-icon {
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }

  .vision {
    padding: 3.5rem 0;
  }

  .vision__body {
    padding: 1.75rem 1.25rem;
    border-radius: 6px;
  }

  .vision__header {
    margin-bottom: 2rem;
  }

  .vision__label {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
  }

  .vision__title {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    letter-spacing: 0.04em;
    line-height: 1.6;
    padding-inline: 0.25rem;
  }

  .vision__lead {
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 1.75rem;
    text-align: left;
  }

  .vision__text p {
    font-size: 0.88rem;
    line-height: 2;
    margin-bottom: 1.25rem;
    text-align: justify;
    text-justify: inter-character;
  }

  .vision__question {
    font-size: 0.95rem !important;
    line-height: 1.9 !important;
    padding: 1.25rem 0 !important;
    margin: 1.5rem 0 !important;
    text-align: left !important;
  }

  .contact {
    padding: 3.5rem 0 calc(3rem + var(--safe-bottom));
  }

  .contact__title {
    font-size: 1.35rem;
    letter-spacing: 0.06em;
  }

  .contact__info {
    font-size: 0.85rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-align: left;
  }

  .contact-form {
    padding: 1.25rem 1rem 1.5rem;
    border-radius: 10px;
  }

  .form-label {
    font-size: 0.82rem;
  }

  .form-input {
    padding: 0.8rem 0.85rem;
    font-size: 16px; /* iOS zoom防止 */
  }

  .contact-form__submit {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .contact__brand {
    margin-top: 2.5rem;
  }

  .contact__logo .brand-lockup__line {
    font-size: 0.88rem;
  }

  .contact__logo .brand-lockup__line--sub {
    font-size: 0.62rem;
  }

  .contact__logo .brand-lockup__mark {
    width: min(100px, 26vw);
  }

  .footer__logo .brand-lockup__mark {
    width: 64px;
  }

  .contact__official-link {
    font-size: 0.88rem;
    text-align: center;
    line-height: 1.7;
  }

  .footer {
    padding: 2.5rem 0 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer__company {
    font-size: 0.95rem;
  }

  .footer__address {
    font-size: 0.85rem;
    line-height: 1.9;
  }

  .footer__address a[href^="tel:"] {
    min-height: 44px;
    line-height: 44px;
  }

  .contact__wrapper {
    padding-inline: var(--container-gutter);
  }

  .footer__map iframe {
    height: 160px;
  }

  .footer__copy {
    padding-bottom: calc(1rem + var(--safe-bottom));
  }
}

/* ---- Small phones ---- */
@media (max-width: 380px) {
  .header__logo .brand-lockup__line--sub {
    display: none;
  }

  .header__logo .brand-lockup__line {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .hero__title-line {
    font-size: 1.815rem;
  }

  .hero__eyebrow {
    letter-spacing: 0.14em;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .starfield,
  .nebula,
  .hero__scroll,
  .movie__glow {
    animation: none;
  }

  .movie--cinematic {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .movie__facade-thumb,
  .movie__facade-play,
  .movie__facade-overlay {
    transition: none;
  }

  .hero__title-line {
    animation: none;
    filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.45));
  }

  .header__nav,
  .header__menu-btn span,
  .contact-form__submit {
    transition: none;
  }
}
