*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  vertical-align: bottom;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  position: relative;
  width: 100%;
  max-width: 750px;
  background-color: #000;
}

/* ========================================
   キービジュアル
   ======================================== */
.kv {
  position: relative;
  width: 100%;
  margin-bottom: 0;
}

.kv-image {
  width: 100%;
  height: auto;
  display: block;
}

.kv-logo {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
}

.kv-logo img {
  width: 100%;
  height: auto;
}

/* ========================================
   ストアボタン（インライン）
   ======================================== */
.store-buttons {
  display: flex;
  justify-content: center;
  gap: 3%;
  padding: 5% 6% 3%;
  background: #000;
}

.store-btn {
  display: inline-block;
  width: 46%;
  line-height: 0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(255, 255, 150, 0.6);
  animation: pulse-glow 3s ease-in-out infinite;
}

.store-btn:hover {
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 150, 1);
}

.store-btn:active {
  animation: none;
  transform: scale(0.97);
  box-shadow: 0 0 10px rgba(255, 255, 150, 0.4);
}

.store-btn img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@keyframes pulse-glow {
  0%   { transform: scale(1);    box-shadow: 0 0 15px rgba(255, 255, 150, 0.6); }
  50%  { transform: scale(1.05); box-shadow: 0 0 25px rgba(255, 255, 150, 0.9); }
  100% { transform: scale(1);    box-shadow: 0 0 15px rgba(255, 255, 150, 0.6); }
}

/* ========================================
   追従ストアバー
   ======================================== */
.sticky-store-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 750px;
  background: linear-gradient(180deg, rgba(10,5,0,0.92) 0%, rgba(30,15,0,0.97) 100%);
  border-top: 2px solid #c8922a;
  padding: 10px 5% 12px;
  z-index: 100;
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
  box-shadow: 0 -4px 24px rgba(180,130,40,0.25);
  /* safe area (iPhone ノッチ対応) */
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.sticky-store-bar.is-visible {
  transform: translateX(-50%) translateY(0);
}

.sticky-store-label {
  text-align: center;
  color: #f5d080;
  font-size: 12px;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(240,190,60,0.7);
}

.sticky-store-buttons {
  display: flex;
  justify-content: center;
  gap: 3%;
}

.sticky-store-btn {
  display: block;
  width: 46%;
  border-radius: 10px;
  box-shadow: 0 5px 0 rgba(0,0,0,0.6), 0 0 16px rgba(200,146,42,0.5);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  transform: translateY(0);
  animation: storePulse 2.5s ease-in-out infinite;
}

.sticky-store-btn:nth-child(2) {
  animation-delay: 0.4s;
}

.sticky-store-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.6), 0 0 24px rgba(240,180,60,0.7);
  animation: none;
}

.sticky-store-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(0,0,0,0.6), 0 0 8px rgba(200,146,42,0.3);
  animation: none;
}

.sticky-store-btn img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

@keyframes storePulse {
  0%, 100% { box-shadow: 0 5px 0 rgba(0,0,0,0.6), 0 0 16px rgba(200,146,42,0.5); }
  50%       { box-shadow: 0 5px 0 rgba(0,0,0,0.6), 0 0 28px rgba(240,190,60,0.85); }
}

/* X(Twitter)バナーボタン */
.btn-x {
  width: 100%;
  padding: 3% 6% 6%;
  background: #000;
}

.btn-x a {
  display: block;
}

.btn-x img {
  width: 100%;
  height: auto;
}

/* ========================================
   コンテンツエリア（背景画像）
   ======================================== */
.content-area {
  background: url('images/pre_bg.webp') top center / 100% auto repeat-y;
  padding: 2% 0;
}

.no-webp .content-area {
  background-image: url('images/pre_bg.png');
}

/* セクション共通 */
.section {
  margin-bottom: 4%;
}

.section-heading {
  width: 100%;
}

.section-heading img {
  width: 100%;
  height: auto;
}

.section-body {
  padding: 0 4%;
}

.section-body img {
  width: 100%;
  height: auto;
}

/* 動画フレーム */
.movie-frame {
  position: relative;
}

.movie-frame-border {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.movie-iframe {
  position: absolute;
  top: 14%;
  left: 10%;
  width: 80%;
  height: 72%;
  z-index: 0;
}

/* YouTube Facade */
.movie-facade {
  position: absolute;
  top: 14%;
  left: 10%;
  width: 80%;
  height: 72%;
  z-index: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.movie-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-play-btn {
  position: absolute;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.movie-play-btn:hover {
  opacity: 1;
}

/* システム紹介 */
.system-list {
  padding: 0 4%;
}

.system-item {
  margin-bottom: 4%;
}

.system-item img {
  width: 100%;
  height: auto;
}

/* キャラクター */
.chara-item {
  margin-bottom: 4%;
}

.chara-item img {
  width: 100%;
  height: auto;
}

/* 報酬 */
.reward-item {
  margin-bottom: 4%;
}

.reward-item img {
  width: 100%;
  height: auto;
}

/* ========================================
   フッター
   ======================================== */
.footer-area {
  position: relative;
  background: url('images/pre_footerBG.webp') top center / 100% auto no-repeat;
  background-color: #000;
  padding: 10% 0 6%;
  text-align: center;
}

.no-webp .footer-area {
  background-image: url('images/pre_footerBG.png');
}

.footer-store-buttons {
  display: flex;
  justify-content: center;
  gap: 3%;
  padding: 0 6% 6%;
}

.footer-logo {
  width: 50%;
  margin: 0 auto 5%;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.logos-company {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.logos-company img {
  width: 120px;
  height: auto;
}

/* コピーライト */
.credit {
  width: 100%;
  max-width: 750px;
  padding: 16px 0;
  background: #000;
  color: #aaa;
  font-size: 12px;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
  letter-spacing: 0.02em;
  text-align: center;
}

.credit a {
  color: #aaa;
  text-decoration: underline;
}

/* ========================================
   PC
   ======================================== */
@media (min-width: 751px) {
  .container {
    border-left: 2px solid #333;
    border-right: 2px solid #333;
  }
}
