@charset "UTF-8";
/* Original back image + light animation — easy to remove */
/* アレンジ色（#palette / divider / arrow / item枠）は content2 側の最終値に統合済み */

.cont.night-sky {
  background-color: #050516;
  background-image: url("../img/back.png");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
  background-attachment: scroll;
}

/* item03 より下：位置到達でフェード → 真っ白固定（背景のみ・画像は前面） */
.metal-zone {
  position: relative;
}
.metal-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background-color: #fff;
  background-image: none;
  transition: opacity 1.1s ease;
  visibility: hidden;
}
.cont.is-white-on .metal-fixed-bg {
  visibility: visible;
  opacity: 1;
}

.starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.cont.night-sky > *:not(.starfield-canvas):not(.metal-fixed-bg) {
  position: relative;
  z-index: 3;
}

/* 白固定時：文字は最初の背景に近い紺グラデ */
.metal-zone p,
.metal-zone .recommend p,
.metal-zone .itemtit,
.metal-zone .footer p,
.metal-zone .btn p {
  transition: color 1.1s ease, border-color 1.1s ease, -webkit-text-fill-color 1.1s ease;
}
.metal-zone.is-white-on p,
.metal-zone.is-white-on .recommend p,
.metal-zone.is-white-on .itemtit,
.metal-zone.is-white-on .footer p {
  color: transparent !important;
  background-image: linear-gradient(165deg, #1a2748 0%, #0a1240 40%, #050516 75%, #02011c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metal-zone.is-white-on .bottom .btn p,
.metal-zone.is-white-on .btn p {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  background-color: #0a1240 !important;
  background-image: linear-gradient(165deg, #1a2748 0%, #0a1240 40%, #050516 75%, #02011c 100%) !important;
  border-color: #0a1240 !important;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}
.metal-zone.is-white-on .bottom .btn p:hover,
.metal-zone.is-white-on .bottom .btn p:active,
.metal-zone.is-white-on .btn p:hover,
.metal-zone.is-white-on .btn p:active {
  color: #0a1240 !important;
  -webkit-text-fill-color: #0a1240;
  background-color: #fff !important;
  background-image: none !important;
  border-color: #0a1240 !important;
}
.metal-zone.is-white-on .footer p[style*="border-bottom"] {
  border-bottom-color: rgba(10, 18, 64, 0.35) !important;
  background-image: none;
  color: rgba(10, 18, 64, 0.55) !important;
  -webkit-text-fill-color: rgba(10, 18, 64, 0.55);
}

/* Text / titles readable on navy */
.cont.night-sky p,
.cont.night-sky .cont_tit,
.cont.night-sky .cont_text_p,
.cont.night-sky .recommend p,
.cont.night-sky ,
.cont.night-sky .arr-copy p,
.cont.night-sky .arr-section-title,
.cont.night-sky .arr-divider-text span,
.cont.night-sky .arr-item p {
  color: rgba(255, 255, 255, 1) !important;
}

.cont.night-sky .itemtit {
  color: #fff;
}

.cont.night-sky {
  color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  .starfield-canvas {
    display: none;
  }
}
