/* =============================================
   main_anim.css - メインビジュアル アニメーション
   ============================================= */

/* ▼ キーフレーム ▼ */

/* 背景：ホワイトインしながら110%→100%縮小 */
@keyframes mainBgIn {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1.0);
  }
}

/* 集中線：ゆっくり回転 */
@keyframes linesRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ▼ 背景画像レイヤー ▼ */
#main_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img_ind/main.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center center;
  animation: mainBgIn 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  z-index: 0;
}

/* ▼ 集中線コンテナ ▼ */
#main_lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

/* 集中線の中心点（画面中央） */
.lines_inner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  animation: linesRotate 60s linear infinite;
}

/* 各線の共通スタイル */
.lines_inner::before,
.lines_inner::after,
.lines_inner span,
.lines_inner span::before,
.lines_inner span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1px;
  transform-origin: 0 0;
}

/* ▼ #main_catch を最前面に ▼ */
#main_catch {
  z-index: 10;
}
