/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  --bg: #07070f;
  --bg-card: #0d0d1f;
  --bg-card2: #111128;
  --border: #1e1e3a;
  --accent: #4facfe;
  --accent2: #c471ed;
  --gradient: linear-gradient(135deg, #4facfe 0%, #c471ed 100%);
  --gradient-text: linear-gradient(135deg, #4facfe 0%, #c471ed 100%);
  --text: #e8e8f0;
  --text-muted: #6868a0;
  --text-sub: #9898c0;
  --nav-h: 70px;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   Layout
   =========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-sub);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(79, 172, 254, 0.3);
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79, 172, 254, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ===========================
   Navigation
   =========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(7, 7, 15, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
.logo-haco { color: var(--accent); }
.logo-motion { color: var(--accent2); }
.logo-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-sub);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem !important;
}
.nav-cta:hover { opacity: 0.85; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===========================
   Hero
   =========================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  /* 背景は装飾用レイヤー。クリックを下に透過させてボタン等の操作を妨げない */
  pointer-events: none;
}

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

/* 動画の上に重ねる暗幕＋グラデ */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(7,7,15,0.75) 0%,
      rgba(7,7,15,0.60) 50%,
      rgba(7,7,15,0.90) 100%),
    linear-gradient(135deg,
      rgba(79,172,254,0.12) 0%,
      rgba(196,113,237,0.08) 100%);
  z-index: 1;
}

/* gridとorbは動画の上に重ねる */
.hero-grid { z-index: 2; position: relative; }
.hero-orb  { z-index: 2; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,172,254,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,172,254,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 40%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}
.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #4facfe, transparent);
  top: -100px; left: -100px;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #c471ed, transparent);
  bottom: -80px; right: -80px;
}

.hero-content {
  position: relative;
  z-index: 3; /* .hero-bg 内の装飾(z-index:2)より必ず手前に置く */
  max-width: 800px;
}

/* ヒーロー内ボタンを最前面に確実に表示し、クリック可能にする */
.hero-actions {
  position: relative;
  z-index: 4;
}
.hero-actions .btn {
  pointer-events: auto;
  cursor: pointer;
}

.hero-badge {
  display: inline-block;
  background: rgba(79,172,254,0.12);
  border: 1px solid rgba(79,172,254,0.3);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.hero-title-jp {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-en {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-sub);
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.hero-tags span {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-sub);
  padding: 5px 14px;
  border-radius: 100px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ===========================
   Features
   =========================== */
#features { background: var(--bg-card); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: rgba(79,172,254,0.4);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px; height: 52px;
  background: var(--gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 26px; height: 26px;
  color: #fff;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.8;
}

/* ===========================
   Studio
   =========================== */
.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.studio-specs h3,
.studio-layout h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th, .spec-table td {
  padding: 12px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
.spec-table th {
  color: var(--text-muted);
  width: 42%;
  padding-right: 16px;
  font-weight: 500;
}
.spec-table td { color: var(--text); }
.spec-table small { color: var(--text-muted); font-size: 0.75rem; }
.spec-table strong { color: var(--accent); }

/* Studio photos grid */
.studio-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  margin-bottom: 16px;
}
.studio-photo-slot {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.studio-photo-slot img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}
.studio-photo-wide {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
/* フロアマップは図全体を見せたいので contain で全部入れる（白背景で見やすく） */
/* 詳細セレクタ + !important で .studio-photo-slot img の cover を確実に上書き */
.studio-photos-grid .studio-photo-wide img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block;
  background: #ffffff;
  border-radius: 0;
  padding: 0;
}
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  height: 180px;
  color: var(--text-muted);
}
.photo-placeholder svg { opacity: 0.35; }
.photo-placeholder span { font-size: 0.78rem; }
.photo-placeholder-map { height: 160px; }

/* Layout image placeholder */
.layout-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.layout-image-placeholder svg { opacity: 0.4; }
.layout-image-placeholder p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
  margin: 0;
}
.layout-image-placeholder span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.layout-note {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Layout diagram */
.layout-diagram {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.layout-area {
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}
.layout-area small { display: block; font-weight: 400; color: rgba(255,255,255,0.6); margin-top: 4px; }
.acting { background: rgba(79,172,254,0.15); border: 1px solid rgba(79,172,254,0.3); color: #7fccff; }
.operation { background: rgba(196,113,237,0.1); border: 1px solid rgba(196,113,237,0.25); color: #d888f5; }
.layout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.changing, .waiting { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-sub); }

.layout-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-sub); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-acting { background: #4facfe; }
.dot-op { background: #c471ed; }
.dot-other { background: #444; }

/* ===========================
   Pricing
   =========================== */
#pricing { background: var(--bg-card); }

.pricing-label {
  margin-bottom: 28px;
}
.pricing-label span {
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.pricing-label p {
  color: var(--text-sub);
  font-size: 0.875rem;
}

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

.pack-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.pack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79,172,254,0.3);
}

.pack-featured {
  border-color: rgba(79,172,254,0.5) !important;
  background: linear-gradient(160deg, rgba(79,172,254,0.06), rgba(196,113,237,0.06));
  box-shadow: 0 0 40px rgba(79,172,254,0.1);
}

.pack-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(79,172,254,0.12);
  border: 1px solid rgba(79,172,254,0.25);
  padding: 3px 12px;
  border-radius: 100px;
  width: fit-content;
}
.pack-featured .pack-badge {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-color: rgba(79,172,254,0.4);
}

.pack-name {
  font-size: 1.15rem;
}

.pack-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.pack-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
}
.pack-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

.pack-includes {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pack-includes li {
  font-size: 0.83rem;
  color: var(--text-sub);
  padding-left: 18px;
  position: relative;
}
.pack-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.pack-target {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Base pricing */
.base-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.base-price-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.base-price-block h4 {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
}
.base-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.875rem;
}
.base-price-row:last-child { border-bottom: none; }
.base-price-row span { color: var(--text-sub); }
.base-price-row strong { color: var(--text); white-space: nowrap; }

.pricing-notes {
  margin-top: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.pricing-notes h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 700;
}
.pricing-notes ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pricing-notes li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.pricing-notes li::before {
  content: '※';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ===========================
   Works
   =========================== */
#works { background: var(--bg-card); }

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

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  border-color: rgba(79,172,254,0.4);
  transform: translateY(-4px);
}

.work-thumb-link { display: block; }

.work-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.work-card:hover .work-thumb img {
  transform: scale(1.04);
}

.work-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.25s;
  color: #fff;
}
.work-card:hover .work-play { opacity: 1; }

.work-info {
  padding: 12px 14px 20px;
  background: var(--bg);
  flex: 1;
}
.work-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(79,172,254,0.1);
  border: 1px solid rgba(79,172,254,0.2);
  padding: 3px 10px;
  border-radius: 100px;
}

.work-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 0;
  line-height: 1.4;
}

.work-cast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}
.work-cast-label {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.work-cast a {
  color: var(--accent);
  transition: color 0.2s;
}
.work-cast a:hover {
  color: #fff;
  text-decoration: underline;
}
.work-org {
  color: var(--text-muted);
  font-size: 0.72rem;
}

@media (max-width: 768px) {
  .works-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ===========================
   Flow
   =========================== */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.flow-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.flow-step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  padding-top: 4px;
}

.step-content h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.step-content p {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.8;
}
.step-alert {
  display: inline-block;
  background: rgba(255,100,100,0.1);
  border: 1px solid rgba(255,100,100,0.25);
  color: #ff8080;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 8px !important;
}

/* ===========================
   Notes
   =========================== */
#notes { background: var(--bg-card); }

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.note-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.note-card h4 {
  font-size: 0.9rem;
  margin-bottom: 14px;
  color: var(--text);
}
.note-card ul { display: flex; flex-direction: column; gap: 8px; }
.note-card li {
  font-size: 0.83rem;
  color: var(--text-sub);
  padding-left: 14px;
  position: relative;
}
.note-card li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.note-important {
  border-color: rgba(255,100,100,0.25);
  background: rgba(255,50,50,0.03);
}
.note-important h4 { color: #ff8080; }
.note-reason {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===========================
   Recruit
   =========================== */
.recruit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.recruit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, transform 0.3s;
}
.recruit-card:hover {
  border-color: rgba(79,172,254,0.35);
  transform: translateY(-4px);
}

.recruit-type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent2);
  background: rgba(196,113,237,0.1);
  border: 1px solid rgba(196,113,237,0.25);
  padding: 3px 12px;
  border-radius: 100px;
  width: fit-content;
}

.recruit-card h3 {
  font-size: 1rem;
  line-height: 1.5;
}

.recruit-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.8;
  flex: 1;
}

.recruit-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.recruit-detail-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  font-size: 0.8rem;
}
.detail-label {
  color: var(--text-muted);
  font-weight: 500;
}
.recruit-detail-item span:last-child { color: var(--text-sub); }

.recruit-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ===========================
   Contact
   =========================== */
#contact { background: var(--bg-card); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-sub);
}
.required {
  font-size: 0.7rem;
  background: rgba(255,100,100,0.15);
  color: #ff8080;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select option { background: #1a1a2e; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ハニーポット（人間には見えないようにオフスクリーン配置） */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 送信ステータス表示 */
.form-status {
  font-size: 0.88rem;
  text-align: center;
  padding: 0;
  margin: 0;
  line-height: 1.6;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.form-status:empty {
  padding: 0;
  margin: 0;
  border: 0;
}
.form-status-success {
  background: rgba(79, 172, 254, 0.10);
  border: 1px solid rgba(79, 172, 254, 0.35);
  color: #7fccff;
  padding: 14px 18px;
}
.form-status-error {
  background: rgba(255, 100, 100, 0.10);
  border: 1px solid rgba(255, 100, 100, 0.35);
  color: #ff8888;
  padding: 14px 18px;
}

/* 送信中ボタン */
#contactSubmit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info-block {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-info-block h4 {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.contact-info-block p {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.8;
}
.contact-info-block small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===========================
   Terms (利用規約)
   =========================== */
#terms {
  background: var(--bg);
}

.terms-content {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#terms .terms-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

#terms .terms-article h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--accent) !important;
  margin: 0 0 14px 0 !important;
  padding: 0 0 10px 0 !important;
  border-bottom: 1px solid var(--border);
}

#terms .terms-article p {
  font-size: 0.9rem !important;
  color: var(--text-sub) !important;
  line-height: 1.9;
  margin: 0 0 12px 0 !important;
}
#terms .terms-article p:last-child { margin-bottom: 0 !important; }

#terms .terms-article ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px 0;
  list-style: none;
  padding-left: 0;
}
#terms .terms-article li {
  font-size: 0.88rem !important;
  color: var(--text-sub) !important;
  padding-left: 18px;
  position: relative;
  line-height: 1.8;
}
#terms .terms-article li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
#terms .terms-article strong {
  color: var(--text) !important;
  font-weight: 700;
}

.terms-note {
  margin-top: 12px;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent2);
  border-radius: 4px;
}

.terms-table-wrap {
  overflow-x: auto;
  margin: 8px 0 12px;
}
.terms-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 360px;
}
.terms-table thead th {
  background: rgba(79,172,254,0.08);
  color: var(--accent);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.terms-table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-sub);
  vertical-align: top;
}
.terms-table tbody tr:last-child td {
  border-bottom: none;
}
.terms-table tbody td:last-child {
  color: var(--text);
  font-weight: 600;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}

/* 本文中インラインリンク：a のグローバル color: inherit を上書きするため !important で強制 */
a.inline-link,
.inline-link {
  color: var(--accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
a.inline-link:hover,
.inline-link:hover {
  color: var(--accent2) !important;
}

@media (max-width: 768px) {
  #terms .terms-article {
    padding: 22px 20px;
  }
  #terms .terms-article h3 {
    font-size: 1.05rem !important;
  }
}

/* ===========================
   Footer
   =========================== */
#footer {
  background: #040408;
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}
.footer-nav a {
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }

.footer-company-link {
  color: var(--text-sub);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer-company-link:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===========================
   Scroll Animation
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 960px) {
  .studio-grid { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .recruit-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav ul { text-align: left; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(7,7,15,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .base-pricing-grid { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .recruit-detail-item { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-tags span { font-size: 0.75rem; }
}
