/* Loading Animation Styles */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: #000;
  z-index: 9999999;
  overflow: hidden;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  text-align: center;
  letter-spacing: 0.1em;
  font-size: 24px;
  color: white;
}

.loader-img {
  width: 150px;
  height: 100px;
  background: url('../img/loader.webp') no-repeat;
  animation: loader 1.8s steps(30) infinite;
  background-size: 100% auto;
  margin: 0 auto 20px auto;
}

@keyframes loader {
  0% { background-position: 0 0; }
  100% { background-position: 0 -3000px; }
}

.loading span {
  animation: text-rotation 1s linear infinite;
  display: inline-block;
  font-weight: 900;
  color: white;
}

@keyframes text-rotation {
  0% { transform: rotate3d(0, 1, 0, 0deg); }
  40% { transform: rotate3d(0, 1, 0, 360deg); }
  100% { transform: rotate3d(0, 1, 0, 360deg); }
}

.loading span:nth-child(2) { animation-delay: 0.1s !important; }
.loading span:nth-child(3) { animation-delay: 0.2s !important; }
.loading span:nth-child(4) { animation-delay: 0.3s !important; }
.loading span:nth-child(5) { animation-delay: 0.4s !important; }
.loading span:nth-child(6) { animation-delay: 0.5s !important; }
.loading span:nth-child(7) { animation-delay: 0.6s !important; }

.grid-container {
  display: grid;
  width: calc(100vw + 300px);
  height: calc(100vh + 300px);
  position: absolute;
  top: -150px;
  left: -150px;
}

.grid-item {
  background-color: #000;
  opacity: 1;
  transition-duration: 0.8s;
  will-change: opacity;
  transform: translateZ(0);
}

.grid-item.load {
  opacity: 0;
  background: #fff;
  pointer-events: none;
}

.loading.load {
  background: none;
  pointer-events: none;
}

.loading.load .loader {
  opacity: 0;
}

.wrap {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.wrap.load {
  height: 100svh;
  overflow: hidden;
  opacity: 0;
}

.wrap:not(.load) {
  opacity: 1;
}

@media screen and (max-width: 896px) {
  .loader {
    font-size: 16px;
  }
  .loader-img {
    width: 90px;
    height: 60px;
    background: url('../img/loader.webp') no-repeat;
    animation: loader-mobile 1.8s steps(30) infinite;
    background-size: 100% auto;
  }
  @keyframes loader-mobile {
    0% { background-position: 0 0; }
    100% { background-position: 0 -1800px; }
  }
}

/* Canvas background animation */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  opacity: .7;
  pointer-events: none;
  display: none;
}

.electric-glow {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.text-glow {
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}

.lightning-animation {
  animation: lightning 2s ease-in-out infinite;
}

@keyframes lightning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* レスポンシブ画像 */
.responsive-image {
  transition: all 0.3s ease;
}

/* コンテンツを前面に */
body {
  position: relative;
  z-index: 1;
}

/* Footer Styles */
footer {
  margin: 0 auto;
  margin-top: 64px;
  padding-bottom: 80px;
  width: 100%;
  background: rgba(255, 255, 255, .05);
  color: white;
}

footer a {
  color: inherit;
  text-decoration: none;
  transition-duration: 0.2s;
}

footer a:hover {
  opacity: 0.5;
}

/* Breadcrumb Navigation */
.breadcrumb {
  padding: 20px 60px;
  background: rgba(255, 255, 255, .05);
}

.breadcrumb ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: flex;
  margin: 4px 0;
  align-items: center;
}

.breadcrumb li:not(:last-child):after {
  content: "";
  display: block;
  width: 60px;
  height: 12px;
  margin: 0 8px;
  background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCA2MCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDZMMTcgMTJMMjQgNkwzMSAxMkwzOCA2TDQ1IDEyTDUyIDYiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPg==') center/contain no-repeat;
}

.breadcrumb li a {
  font-size: 12px;
  padding: 4px 8px;
}

/* Social Media Links */
.sns {
  display: flex;
  margin-bottom: 40px;
  padding-top: 40px;
  justify-content: center;
  gap: 8px;
}

.sns a {
  width: 120px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.sns a:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .3);
  transform: translateY(-2px);
  opacity: 1;
}

/* Footer Links */
.footer-link {
  margin-bottom: 60px;
}

.footer-link ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link li:not(:last-child) {
  border-right: solid 2px rgba(255, 255, 255, .5);
}

.footer-link a {
  padding: 0 20px;
  font-size: 14px;
  display: inline-block;
}

/* Copyright */
footer small {
  display: block;
  text-align: center;
  font-size: 12px;
}

/* Back to Top Button */
.back-to-top-btn {
  position: fixed;
  right: 60px;
  bottom: 40px;
  z-index: 9999;
  display: flex;
  width: 80px;
  height: 80px;
  border: solid 2px #fff;
  border-radius: 100px;
  font-weight: 900;
  font-size: 14px;
  opacity: 0;
  transition-duration: 0.2s;
  pointer-events: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-flow: column;
}

/* Show state */
.back-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}

/* Arrow icon using CSS */
.back-to-top-btn:before {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 3px solid white;
  border-right: 3px solid white;
  content: "";
  transition-duration: 0.2s;
  transform: rotate(-45deg);
  margin-bottom: 2px;
}

/* Hover effects */
.back-to-top-btn:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
}

.back-to-top-btn:hover:before {
  border-top: 3px solid black;
  border-right: 3px solid black;
}

/* PC版画像固定サイズ表示 */
@media (min-width: 768px) {
  /* PC版画像の固定サイズ設定 - クラスベースで指定 */
  .pc-scale-80 {
    margin: 0 auto;
    display: block;
  }

  /* ロゴタグ用の固定サイズ (640×285 → 512×228) */
  .pc-scale-80[alt*="日本発"] {
    width: 512px !important;
    height: 228px !important;
  }

  /* キャッチコピー用の固定サイズ (626×158 → 500×126) */
  .pc-scale-80[alt*="2026年"] {
    width: 500px !important;
    height: 126px !important;
  }

  /* 特報用の固定サイズ (1024×142 → 819×113) */
  .pc-scale-80[alt*="特報"] {
    width: 819px !important;
    height: 113px !important;
  }

  .pc-scale-60 {
    margin: 0 auto;
    display: block;
  }

  /* 無料配信用の固定サイズ (734×104 → 585×83) */
  .pc-scale-60[alt*="2025年12月"] {
    width: 585px !important;
    height: 83px !important;
  }

  /* キャラクターアート用の固定サイズ (732×1167 → 585×933) */
  .pc-scale-60[alt*="バーチャファイター"] {
    width: 585px !important;
    height: 933px !important;
  }

  /* VFZテキスト用の固定サイズ (724×302 → 80%  579×241) */
  .pc-scale-60[alt*="14歳と３ヶ月"] {
    width: 579px !important;
    height: 241px !important;
  }

  .pc-scale-65 {
    margin: 0 auto;
    display: block;
  }

  /* フッターライン用の固定サイズ (1021×23 → 816×18) */
  .pc-scale-65[alt*="装飾ライン"] {
    width: 816px !important;
    height: 18px !important;
  }

  .pc-scale-70 {
    margin: 0 auto;
    display: block;
  }

  /* Xテキスト用の固定サイズ (1099×51 → 879×40) */
  .pc-scale-70[alt*="公式Xも始動"] {
    width: 879px !important;
    height: 40px !important;
  }

  /* YouTube固定サイズ */
  .youtube-expand {
    width: 819px !important;
    max-width: 819px !important;
    margin: 0 auto !important;
  }

  /*　テキストエリア　*/
  .txt-area {
    width: 780px;
    max-width: 780px;
    margin: 0 auto;
    text-align: left;
    letter-spacing: 0.02em;
    font-weight: 400;
    font-family: "Poppins", YakuHanJP_Noto, "Noto Sans JP", "HiraginoSans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 896px) {
  footer {
    margin-top: 48px;
    padding-bottom: 40px;
  }

  .breadcrumb {
    padding: 20px 5%;
  }

  .breadcrumb li:not(:last-child):after {
    width: 40px;
    height: 8px;
  }

  .breadcrumb li a {
    font-size: 10px;
  }

  .sns {
    width: 280px;
    margin: 0 auto 28px;
    flex-wrap: wrap;
  }

  .footer-link {
    margin-bottom: 40px;
  }

  .footer-link li {
    width: 100%;
    text-align: center;
  }

  .footer-link li:not(:last-child) {
    border-right: none;
  }

  .footer-link a {
    padding: 12px 40px;
    display: inline-block;
    font-size: 14px;
  }

  .back-to-top-btn {
    right: 5%;
    bottom: 20px;
    width: 60px;
    height: 60px;
    font-size: 12px;
  }

  .back-to-top-btn:before {
    width: 8px;
    height: 8px;
    border-width: 2px;
  }

  /* VFZテキスト用の固定サイズ SP版 (282px幅) */
  img[alt*="14歳と３ヶ月"] {
    width: 282px !important;
    height: auto !important;
  }

  /*　テキストエリア　*/
  .txt-area {
    text-align: left;
    letter-spacing: 0.02em;
    font-weight: 400;
    font-family: "Poppins", YakuHanJP_Noto, "Noto Sans JP", "HiraginoSans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  }
}
