/* avxoxo.com — jav.com-style landing (v20260610) */

:root {
  --bg: #141414;
  --text: #ffffff;
  --muted: #b3b3b3;
  --dim: #737373;
  --accent: #ff2d6a;
  --border: #333333;
  --font: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Mosaic background (jav.com) ── */
.mosaic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #141414;
}

/* 与 jav.com 一致：仅 rotate + scale，不用超大容器 */
.mosaic-rotate {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-15deg) scale(1.35);
  transform-origin: center center;
  width: max-content;
}

.mosaic-track {
  animation: scroll-mosaic 60s linear infinite;
  will-change: transform;
}

/* 每格约 20vw（手机 5 列），scale 后 ~30vw ≈ 120px，480px 源图不糊 */
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(5, 20vw);
  gap: 5px;
}

@media (min-width: 768px) {
  .mosaic-grid {
    grid-template-columns: repeat(6, 16vw);
    gap: 7px;
  }
}

.mosaic-cell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: #1a1a1a;
}

.mosaic-cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  image-rendering: auto;
}

.mosaic-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    #141414 0%,
    rgba(20, 20, 20, 0.85) 30%,
    rgba(20, 20, 20, 0.65) 55%,
    rgba(20, 20, 20, 0.5) 100%
  );
}

@keyframes scroll-mosaic {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fade-in 0.65s ease-out both; }

/* ── Header ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.logo {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.25rem 2.5rem;
  background: transparent;
}

.hero-content {
  width: 100%;
  max-width: 520px;
}

.hero-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.875rem;
}

.hero-sub {
  font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
  color: var(--muted);
  max-width: 36ch;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

/* ── Hero video ── */
.hero-video {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid rgba(255, 45, 106, 0.35);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(255, 45, 106, 0.15);
}

.hero-video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.hero-video-player::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
}

/* ── Popular casts marquee ── */
.popular-casts {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.popular-casts-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.875rem;
  padding: 0 1rem;
}

.casts-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.casts-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.casts-set {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0 0.5rem;
}

.cast-item {
  flex: 0 0 auto;
  width: 3.75rem;
  text-align: center;
}

.cast-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.cast-avatar {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #333;
  border: 2px solid #dc3545;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cast-name {
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.2;
  color: #6ea8fe;
  word-break: break-word;
}

/* ── Download (gradient + glow + shimmer) ── */
.btn-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 300px;
  padding: 0;
  background: linear-gradient(135deg, #ff2d6a 0%, #e91e8c 45%, #ff6b9d 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow:
    0 4px 24px rgba(255, 45, 106, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  animation: btn-pulse 2.8s ease-in-out infinite;
}

.btn-download-inner {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 2rem;
  width: 100%;
}

.btn-download-glow {
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #ff2d6a, #ff6b9d, #e91e8c);
  filter: blur(12px);
  opacity: 0.55;
  animation: btn-glow 2.8s ease-in-out infinite;
}

.btn-download-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: btn-shine 3.2s ease-in-out infinite;
}

.btn-download-icon {
  flex-shrink: 0;
  animation: btn-icon-bounce 2.8s ease-in-out infinite;
}

.btn-download:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 36px rgba(255, 45, 106, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.btn-download:active {
  transform: scale(0.97);
  animation: none;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(255, 45, 106, 0.45), 0 0 0 1px rgba(255,255,255,0.12) inset; }
  50%      { box-shadow: 0 6px 32px rgba(255, 45, 106, 0.65), 0 0 20px rgba(255, 107, 157, 0.35), 0 0 0 1px rgba(255,255,255,0.15) inset; }
}

@keyframes btn-glow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.04); }
}

@keyframes btn-shine {
  0%   { transform: translateX(-120%); }
  45%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@keyframes btn-icon-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* ── Floating download bar ── */
.float-download {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.75rem 1.25rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(20,20,20,0.97) 60%, transparent);
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.float-download.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-download-float {
  max-width: 420px;
  margin: 0 auto;
  margin-bottom: 0;
  animation: btn-pulse 2.8s ease-in-out infinite;
}

/* ── Recruitment ── */
.recruit {
  width: 100%;
  text-align: left;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.375rem 1.25rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.recruit.is-highlight {
  border-color: rgba(255,45,106,0.55);
  box-shadow: 0 0 0 2px rgba(255,45,106,0.2);
}

.recruit-label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}

.recruit h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.recruit > p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.875rem;
}

.recruit-points { list-style: none; margin-bottom: 0.875rem; }

.recruit-points li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.8125rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.recruit-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.recruit-jp,
.recruit-note {
  font-family: "Noto Sans JP", "Noto Sans SC", "Noto Sans KR", var(--font);
  font-size: 0.75rem !important;
  color: var(--dim) !important;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.75rem;
  margin-bottom: 0 !important;
  line-height: 1.6;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 1.75rem 0.35rem 0.6rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23b3b3b3' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
}

/* ── Panels ── */
.panel {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  padding-bottom: calc(2.5rem + var(--safe-b));
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.info-list div {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}

.info-list div:last-child { border-bottom: none; }

.info-list dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.2rem;
}

.info-list dd {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

.info-list .jp {
  font-family: "Noto Sans JP", var(--font);
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.card h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.8125rem 0.9375rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  -webkit-appearance: none;
  appearance: none;
}

.form input::placeholder,
.form textarea::placeholder { color: var(--dim); }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form textarea { resize: vertical; min-height: 80px; }

.btn-submit {
  padding: 0.875rem;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.form-ok {
  font-size: 0.8125rem;
  color: #4ade80;
  text-align: center;
}

.contact-email {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
}

.contact-email a {
  color: var(--muted);
  text-decoration: underline;
}

.footer {
  position: relative;
  z-index: 2;
  background: #000;
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  padding-bottom: calc(1.5rem + var(--safe-b));
  text-align: center;
}

.footer p {
  font-size: 0.6875rem;
  color: var(--dim);
}

@media (min-width: 768px) {
  .hero { padding: 6rem 2rem 4rem; }
  .hero-content { max-width: 600px; }
  .recruit { padding: 1.75rem; }
  .recruit h2 { font-size: 1.25rem; }
  .recruit > p, .recruit-points li { font-size: 0.875rem; }
  .panel { max-width: 680px; margin-inline: auto; padding-inline: 2rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .panel { max-width: 720px; }
}
