/* ==========================================
   AI動画制作ページ — page-ai-video.css
   ========================================== */

/* ===== HERO ===== */
.aiv-eyebrow {
  display: block;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.aiv-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.aiv-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #100000 0%, #0A0A0A 55%);
}
.aiv-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 8% 55%, rgba(229,0,18,0.16) 0%, transparent 52%),
    radial-gradient(ellipse at 88% 18%, rgba(229,0,18,0.06) 0%, transparent 42%);
}
.aiv-hero-deco {
  position: absolute;
  right: -2%; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: clamp(90px, 15vw, 200px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.035);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.aiv-hero .container {
  position: relative; z-index: 1;
  flex: 1; display: flex; align-items: center;
  padding-top: 72px; padding-bottom: 72px;
}
.aiv-hero-inner { max-width: 720px; }
.aiv-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800; color: #fff;
  line-height: 1.17; letter-spacing: 0.02em; margin-bottom: 28px;
}
.aiv-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.55);
  line-height: 2; margin-bottom: 48px;
}
.aiv-hero-btn {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 17px 52px; border-radius: 3px;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}
.aiv-hero-btn:hover {
  background: var(--red-dark);
  box-shadow: 0 0 36px var(--red-glow);
  transform: translateY(-2px);
}
.aiv-hero-stats-bar {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px); padding: 26px 0;
}
.aiv-stats-row { display: flex; align-items: center; justify-content: center; }
.aiv-stat { flex: 1; text-align: center; padding: 10px 20px; }
.aiv-stat-sep { width: 1px; height: 32px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.aiv-stat-num { display: block; font-family: var(--font-en); font-size: 1.45rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 6px; }
.aiv-stat-label { display: block; font-size: 0.7rem; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; }

/* ===== CHAPTER COMMON ===== */
.aiv-chapter { padding: 112px 0; }
.aiv-chapter--white { background: #fff; }
.aiv-chapter--gray  { background: #F6F6F6; }
.aiv-chapter--dark  { background: #0A0A0A; position: relative; overflow: hidden; }

.aiv-ch-label {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 52px;
}
.aiv-ch-num {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0,0,0,0.06);
  line-height: 1;
  letter-spacing: -0.04em;
}
.aiv-ch-num--dim { color: rgba(229,0,18,0.2); }
.aiv-ch-en {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
  padding-bottom: 6px;
}
.aiv-center-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800; color: #111;
  line-height: 1.25; margin-bottom: 12px;
  text-align: center;
}
.aiv-center-title--white { color: #fff; }
.aiv-center-sub {
  font-size: 0.95rem; color: #777;
  text-align: center; margin-bottom: 56px;
}

/* ===== SPLIT LAYOUT (2col) ===== */
.aiv-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.aiv-split--reverse { direction: rtl; }
.aiv-split--reverse > * { direction: ltr; }
.aiv-split-text {}
.aiv-split-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800; color: #111;
  line-height: 1.3; margin-bottom: 24px;
}
.aiv-split-text p {
  font-size: 0.96rem; color: #555;
  line-height: 2.05; margin-bottom: 16px;
}
.aiv-split-text p strong { color: #111; font-weight: 700; }
.aiv-split-visual { }
.aiv-split-visual--wide { }

/* Tool tags */
.aiv-tool-list { margin-top: 28px; }
.aiv-tool-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; color: #aaa;
  text-transform: uppercase; display: block; margin-bottom: 10px;
}
.aiv-tool-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.aiv-tool-tags span {
  font-family: var(--font-en); font-size: 0.73rem; font-weight: 600;
  color: var(--red); border: 1px solid rgba(229,0,18,0.3);
  border-radius: 4px; padding: 5px 12px; background: rgba(229,0,18,0.03);
}

/* ===== FLOW DIAGRAM (sec 01) ===== */
.aiv-flow-box {
  background: #F8F8F8;
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid #EBEBEB;
}
.aiv-flow-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 24px;
}
.aiv-flow-node {
  flex: 1;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.aiv-flow-node--gray {
  background: #fff;
  border: 1px solid #E0E0E0;
}
.aiv-flow-node--red {
  background: #fff;
  border: 1.5px solid var(--red);
  box-shadow: 0 4px 20px rgba(229,0,18,0.1);
}
.aiv-flow-node-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.aiv-flow-node--gray .aiv-flow-node-icon { background: #F0F0F0; color: #777; }
.aiv-flow-node--red  .aiv-flow-node-icon { background: rgba(229,0,18,0.08); color: var(--red); }
.aiv-flow-node strong {
  display: block;
  font-size: 0.82rem; font-weight: 700; color: #111;
  margin-bottom: 4px; line-height: 1.4;
}
.aiv-flow-node span {
  font-size: 0.72rem; color: #999; line-height: 1.5;
}
.aiv-flow-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px; color: #CCC; font-size: 1.1rem;
  flex-shrink: 0; margin-top: 32px;
}
.aiv-flow-result {
  background: #fff;
  border: 1.5px solid var(--red);
  border-radius: 12px;
  padding: 18px 20px;
}
.aiv-flow-result-inner { display: flex; align-items: center; gap: 20px; }
.aiv-flow-result-tag {
  font-family: var(--font-en);
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.16em; color: var(--red);
  background: rgba(229,0,18,0.07);
  padding: 6px 10px; border-radius: 4px;
  white-space: nowrap;
}
.aiv-flow-result-items { display: flex; gap: 16px; flex-wrap: wrap; }
.aiv-flow-result-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: #222;
}
.aiv-check-sm {
  width: 18px; height: 18px;
  background: var(--red); color: #fff;
  border-radius: 50%;
  font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===== SERVICE TILES ===== */
.aiv-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.aiv-tile {
  background: #fff;
  border-radius: 14px;
  padding: 32px 26px;
  border: 1px solid #E5E5E5;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.aiv-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.aiv-tile:hover { border-color: transparent; box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
.aiv-tile:hover::before { transform: scaleX(1); }
.aiv-tile-no {
  font-family: var(--font-en); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.18em; color: var(--red); margin-bottom: 14px;
}
.aiv-tile-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: rgba(229,0,18,0.06); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.aiv-tile h3 { font-size: 0.97rem; font-weight: 700; color: #111; line-height: 1.5; margin-bottom: 10px; }
.aiv-tile p  { font-size: 0.85rem; color: #666; line-height: 1.85; }

/* ===== COMPARISON TABLE (sec 02) ===== */
.aiv-compare-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 28px;
}
.aiv-legend-good, .aiv-legend-mid, .aiv-legend-bad {
  font-size: 0.8rem; font-weight: 600; padding: 4px 12px;
  border-radius: 20px;
}
.aiv-legend-good { color: var(--red); background: rgba(229,0,18,0.08); }
.aiv-legend-mid  { color: #888; background: #EEE; }
.aiv-legend-bad  { color: #BBB; background: #F0F0F0; }

.aiv-table-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.09);
}
.aiv-table {
  width: 100%; border-collapse: collapse;
  background: #fff;
}
.aiv-table thead tr { border-bottom: 2px solid #EBEBEB; }
.aiv-th-label { width: 30%; padding: 16px 18px; background: #fff; }
.aiv-th-old, .aiv-th-indie {
  width: 23%; padding: 16px 12px;
  text-align: center;
  font-size: 0.78rem; font-weight: 700; color: #999;
  background: #FAFAFA; letter-spacing: 0.04em;
}
.aiv-th-us {
  width: 24%; padding: 16px 12px;
  text-align: center;
  font-size: 0.82rem; font-weight: 700; color: #fff;
  background: #0A0A0A; letter-spacing: 0.04em;
}
.aiv-table tbody tr { border-bottom: 1px solid #F2F2F2; }
.aiv-table tbody tr:last-child { border-bottom: none; }
.aiv-td-label { padding: 14px 18px; font-size: 0.88rem; font-weight: 600; color: #333; }
.aiv-td-old, .aiv-td-indie { padding: 14px 12px; text-align: center; background: #FAFAFA; }
.aiv-td-us   { padding: 14px 12px; text-align: center; background: #0D0D0D; }

.aiv-badge-good, .aiv-badge-mid, .aiv-badge-bad {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
}
.aiv-badge-good { color: #888; background: #EEEEEE; }
.aiv-badge-mid  { color: #AAA; background: #F2F2F2; }
.aiv-badge-bad  { color: #CCC; background: #F5F5F5; }
.aiv-td-us .aiv-badge-good { color: #fff; background: var(--red); }

/* ===== MERITS GRID (sec 03) ===== */
.aiv-dark-deco {
  position: absolute;
  bottom: -8%; right: -2%;
  font-family: var(--font-en);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.025);
  pointer-events: none; user-select: none; line-height: 1;
}
.aiv-merit-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.aiv-merit-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative; overflow: hidden;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.aiv-merit-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.aiv-merit-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.13);
  transform: translateY(-4px);
}
.aiv-merit-card:hover::after { transform: scaleX(1); }
.aiv-merit-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.aiv-merit-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(229,0,18,0.12); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.aiv-merit-tag-label {
  font-family: var(--font-en);
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--red);
  border: 1px solid rgba(229,0,18,0.3);
  border-radius: 4px; padding: 4px 10px;
  text-transform: uppercase;
}
.aiv-merit-card h3 {
  font-size: 1rem; font-weight: 700; color: #fff;
  line-height: 1.55; margin-bottom: 12px;
}
.aiv-merit-card p {
  font-size: 0.87rem; color: rgba(255,255,255,0.5);
  line-height: 1.9;
}

/* ===== CTA ===== */
.aiv-cta {
  position: relative; padding: 140px 0;
  overflow: hidden; text-align: center;
}
.aiv-cta-bg {
  position: absolute; inset: 0;
  background: linear-gradient(150deg, #100000 0%, #0A0A0A 60%);
}
.aiv-cta-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(229,0,18,0.18) 0%, transparent 60%);
}
.aiv-cta .container { position: relative; z-index: 1; }
.aiv-cta-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 20px;
}
.aiv-cta-desc {
  font-size: 0.95rem; color: rgba(255,255,255,0.52);
  line-height: 2; margin-bottom: 52px;
}
.aiv-cta-btn {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 1rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 20px 64px; border-radius: 3px;
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}
.aiv-cta-btn:hover {
  background: var(--red-dark);
  box-shadow: 0 0 48px var(--red-glow);
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .aiv-merit-grid { grid-template-columns: repeat(2, 1fr); }
  .aiv-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .aiv-split { grid-template-columns: 1fr; gap: 48px; }
  .aiv-split--reverse { direction: ltr; }
  .aiv-chapter { padding: 80px 0; }
}
@media (max-width: 768px) {
  .aiv-hero { min-height: auto; }
  .aiv-hero .container { padding-top: 56px; padding-bottom: 56px; }
  .aiv-hero-title { font-size: 2.1rem; }
  .aiv-hero-deco { display: none; }
  .aiv-stats-row { flex-wrap: wrap; }
  .aiv-stat { min-width: 50%; }
  .aiv-stat-sep { display: none; }

  .aiv-flow-row { flex-direction: column; gap: 8px; }
  .aiv-flow-arrow { transform: rotate(90deg); margin: 0 auto; }
  .aiv-flow-result-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  .aiv-tiles { grid-template-columns: 1fr; }
  .aiv-merit-grid { grid-template-columns: 1fr; }
  .aiv-chapter { padding: 64px 0; }
  .aiv-ch-num { font-size: 2.8rem; }

  .aiv-cta { padding: 90px 0; }
  .aiv-cta-btn { padding: 17px 40px; }
  .pc-only { display: none; }
}
@media (max-width: 560px) {
  .aiv-tiles { grid-template-columns: 1fr; }
}
