/* =================================
  背景
================================= */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  display: grid;
  gap: 60px; /* SVG同士の余白 */
  padding: 24px; /* 画面端との余白 */
}
.bg img {
  width: 40px;   /* SVGサイズ固定 */
  height: 40px;
}


/* =================================
  ページ移動
================================= */
.page {
  display: none;
}
.page.active {
  display: block;
}


/* =================================
  Base
================================= */
/* メインコンテンツのブロック関連 */
html, body {
  height: 100%;      /* bodyを画面全体の高さに */
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif; 
  font-weight: 400;
}
.container {
  width: 440px;            /* 固定幅 */
  background-color: #282828;
  height: 100dvh;            /* 画面の高さいっぱい (NOTE: vhで設定すると、iphoneのsafariで上が切れてしまうので、dvhを設定) */
  box-sizing: border-box;  /* padding込みで高さが100% */
  overflow-y: auto;

  /* ↓ 追加 */
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE / Edge(旧) */  
}
/* Chrome / Safari / Edge(Chromium) */
.container::-webkit-scrollbar {
  display: none;
}

/* 共通スタイル */
h1, h2, h3, h4, h5, h6, p, span {
  margin: 0;
  line-height: 100%;
  letter-spacing: 0.1px;

  /* 右にはみ出ないように折り返す */
  overflow-wrap: break-word;
  word-break: break-word;   
}
ul {
  list-style: none;  /* 点を消す */
  padding: 0;        /* ul の余白を消す */
  margin: 0;         /* ul の余白を消す */
}
img {
  max-width: 100%;   /* 親要素の幅を超えないようにする */
  height: auto;      /* 縦横比を維持する */
  display: block;    /* 不要な隙間を消す */ 
}
button:hover {
  opacity: 0.8;
}
input:focus {
  outline: none;
}


/* =================================
  ヘッダー
================================= */
header {
  position: sticky;
  top: 0;
  width: 100%; /* 親幅に100% */
  height: 108px;
  z-index: 1000;
  background-color: #282828;
  border-bottom: 1px solid white;
  display: none;
}
#header-logo-btn {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  opacity: 100%;
}
#header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 58px;
}


/* =================================
  各ページ
================================= */
.page {
  padding: 60px 30px; 
}
.page-title {
  font-weight: 900;
  font-size: 23px;  
  text-align: center;
  color: #FFFFFF;
}

/* [ページ] トップ */
.page[data-page="top"] {
  padding: 0 30px;
  height: 100%;
}
#top-contents {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column
}
#fv {
  width: 330px;
}
#top-contents .gacha-machine {
  margin: 33px auto;
}
#purchaser-only-message {
  margin-bottom: 18px;
  font-weight: 900;
  font-size: 18px;
  color: #FFFFFF;
}

/* [ページ] ご利用の流れ */
#step-container {
  display: flex;
  flex-direction: column;  
  gap: 30px;
  margin: 60px 0;
}
.step-unit {
  display: flex;
  flex-direction: column; 
  gap: 10px;  
}
.step-number {
  font-weight: 700;
  font-size: 14px;
  color: #6F855B;
}
.step-title {
  width: fit-content;
  background: #6F855B;
  font-weight: 700;
  font-size: 20px;  
  color: #FFFFFF;
}
.step-text {
  line-height: 17px;
  font-weight: 700;
  font-size: 14px;  
  color: #FFFFFF;
}
.step-text span {
  font-size: 11.5px;
}

/* [ページ] コードを入力してガチャを回す */
#code-input-container {
  margin-top: 60px;
  display: flex;
  flex-direction: column; 
  gap: 13px;
}
#code-input-container p {
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
  text-align: center;
}
#code-input-container input {
  height: 50px;
  font-size: 50px;
}
section[data-page="play"] .gacha-machine {
  margin: 40px auto;
}

/* [ページ] コードを入力してガチャを回す */
#items {
  margin: 60px 0;
  display: flex;
  flex-direction: column;  
  gap: 60px;  
  text-align: center;
}
.item-name {
  display: inline;
  font-weight: 700;
  font-size: 40px;
}
.item-name.black {
  color: #FFFFFF;
  background-color: #000000;
}
.item-name.green {
  color: #FFFFFF;
  background-color: #6F855B;
}
.item-name.yellow {
  color: #282828;
  background-color: #FFEB51;
}
.item-name.red {
  color: #FFFFFF;
  background-color: #DD0000;
}
.item-name.blue {
  color: #FFFFFF;
  background-color: #5964F2;
}
.item-name.gray {
  color: #FFFFFF;
  background-color: #7A7A7A;
}
.item-name.secret {
  color: #282828;
  background-color: #FFFFFF;
}
.item-image-frame {
  max-width: 250px;
  height: 250px;
  margin: 40px auto 5px;
  background: #FFFFFF;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}
.item-image-frame .secret-qmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 50%;
  max-height: 50%;
}
.item-image {
  width: 180px;
}
.item-image.secret-size {
  width: 187.79px;
}
.item-image-note {
  font-weight: 700;
  font-size: 10px;  
  color: #FFFFFF;
}
#shipping-message {
  margin-bottom: 46px;
  font-weight: 700;
  font-size: 14px;  
  color: #FFFFFF;
  line-height: 17px;
  text-align: center;
}

/* [ページ] 認証エラー */
#error-message {
  margin: 42px 0 60px;
  font-weight: 700;
  font-size: 14px;  
  line-height: 17px;
  color: #FFFFFF;  
}

/* =================================
  その他
================================= */
/* 進むボタン */
.btn-next {
  width: 100%;
  height: 63px;
  position: relative;
  display: inline-block;
  background: #6F855B;
  border: none;
  border-radius: 32px;

  font-weight: 900;
  font-size: 23px;  
  color: #FFFFFF;
}
.btn-next::after {
  background-image: url("images/button-arrow.svg");
  content: "";
  position: absolute;
  top: 50%;
  right: 25px;
  width: 13px;
  height: 26px;  
  transform: translateY(-50%);
}

/* 戻るボタン */
.btn-prev {
  display: block !important;
  background: none;
  border: none;
  padding: 0;
  margin: 24px auto 0;
  font: inherit;
  cursor: pointer;  

  font-weight: 700;
  font-size: 14px;  
  color: #FFFFFF;
}