/* ==========================================================================
   Footer: Glass World（全画面・最背面固定）デザイン
   - footer-designs-v2.jsx のデザイン2をベースにWPフッターへ適用
   - 適用範囲は body.makuai-footer-reveal のみ（全ページ共通）
   ========================================================================== */

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world {
  background: linear-gradient(180deg, #0a0a1a 0%, #0f1225 50%, #1a1a2e 100%);
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  overflow: hidden; /* reveal用の固定背景として扱う */
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Hero（星＋グラス＋タグライン）
   -------------------------------------------------------------------------- */

body.makuai-footer-reveal .makuai-footer-hero {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(72px, 10vh, 120px);
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 28px;
}

body.makuai-footer-reveal .makuai-footer-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 1200px;
}

body.makuai-footer-reveal .makuai-footer-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body.makuai-footer-reveal .makuai-footer-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.2;
  will-change: opacity;
  animation-name: makuaiFooterTwinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes makuaiFooterTwinkle {
  0%, 100% { opacity: 0.10; }
  50% { opacity: 0.50; }
}

body.makuai-footer-reveal .makuai-footer-glass-container {
  position: relative;
  width: min(420px, 86vw);
  aspect-ratio: 4 / 3;
  margin: 0 auto 28px;
}

body.makuai-footer-reveal .makuai-footer-glass-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body.makuai-footer-reveal .makuai-footer-tagline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -70%);
  width: min(280px, 70vw);
  text-align: center;
}

body.makuai-footer-reveal .makuai-footer-tagline p {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  letter-spacing: 0.2em;
  color: #C9A84C;
  line-height: 1.8;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.4);
  margin: 0;
}

body.makuai-footer-reveal .makuai-footer-icon {
  position: absolute;
  pointer-events: none;
}

body.makuai-footer-reveal .makuai-footer-icon-film {
  top: 25%;
  left: 15%;
  animation: makuaiFooterFloat1 6s ease-in-out infinite;
}

body.makuai-footer-reveal .makuai-footer-icon-book {
  top: 30%;
  right: 18%;
  animation: makuaiFooterFloat2 7s ease-in-out infinite;
}

@keyframes makuaiFooterFloat1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(10deg); }
}

@keyframes makuaiFooterFloat2 {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

body.makuai-footer-reveal .makuai-footer-subtitle-en {
  font-size: 0.85rem;
  letter-spacing: 0.5em;
  opacity: 0.5;
  margin: 0 0 24px;
}

body.makuai-footer-reveal .makuai-footer-genres {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 0;
}

body.makuai-footer-reveal .makuai-footer-genre {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
}

body.makuai-footer-reveal .makuai-footer-genre-line {
  width: 40px;
  height: 1px;
  background: #C9A84C;
  margin-bottom: 12px;
  display: block;
}

body.makuai-footer-reveal .makuai-footer-genre span {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #C9A84C;
}

/* --------------------------------------------------------------------------
   Nav（既存の footer.php を世界観に合わせて整形）
   -------------------------------------------------------------------------- */

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-widgets {
  position: relative;
  z-index: 2;
  padding: 0 0 12px;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-widgets-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 36px;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-widget .widget-title {
  color: #C9A84C;
  font-size: 0.9rem;
  margin: 0 0 1rem;
  letter-spacing: 0.1em;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-widget li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-widget a {
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-widget a:hover {
  color: #C9A84C;
  opacity: 1;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-logo-img {
  max-width: 180px;
  height: auto;
  display: block;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-social {
  margin-top: 14px;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .social-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  opacity: 0.8;
  transition: opacity 0.25s ease;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .social-link:hover .social-icon {
  opacity: 1;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-bottom {
  position: relative;
  z-index: 2;
  padding: 14px 0 22px;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin-left: 14px;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-bottom a:hover {
  color: #C9A84C;
}

body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .copyright {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Responsive（MD指示書の方針に合わせて：モバイルはHeroを縮小して残す）
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-widgets-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  body.makuai-footer-reveal .makuai-footer-genres {
    gap: 2rem;
  }

  body.makuai-footer-reveal .makuai-footer-glass-container {
    transform: scale(0.85);
    transform-origin: top center;
  }
}

@media (max-width: 480px) {
  body.makuai-footer-reveal .site-footer.makuai-footer-glass-world .footer-widgets-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  body.makuai-footer-reveal .makuai-footer-genres {
    flex-direction: column;
    gap: 1.5rem;
  }

  body.makuai-footer-reveal .makuai-footer-glass-container {
    transform: scale(0.68);
    transform-origin: top center;
    margin-bottom: 16px;
  }

  body.makuai-footer-reveal .makuai-footer-subtitle-en {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  body.makuai-footer-reveal .makuai-footer-star,
  body.makuai-footer-reveal .makuai-footer-icon-film,
  body.makuai-footer-reveal .makuai-footer-icon-book {
    animation: none !important;
  }
}



