/* --- 全体設定 --- */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

/* --- ヒーローイメージラップ --- */
.hero-image-wrap {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- コンテナ（中央エリア） --- */
.container {
  max-width: 900px;
  margin: 40px auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- ステップ全体 --- */
.step {
  background-color: #fafafa;
  border-radius: 8px;
  margin: 20px 0;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* --- ステップ番号 --- */
.step-number {
  background-color: #f2ab05;
  color: white;
  border-radius: 8px;
  padding: 6px 8px;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  width: fit-content;
}

/* --- ステップ内メイン部分（テキスト＆画像） --- */
.step-main {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
}

/* --- ステップテキスト部分 --- */
.step-content {
  flex: 1;
  min-width: 200px;
}
.step-content h2 {
  margin: 0 0 10px;
  color: #f2ab05;
  font-size: 1.4em;
}
.step-description {
  margin: 10px 0;
  color: #555;
}

/* --- ステップ画像ラップ --- */
.step-images {
  width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.step-image {
  background-color: #eee;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  width: 70px;
  aspect-ratio: 9 / 16;
}
.step-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}
/* 2個目以降のステップ画像幅拡大 */
.step:not(:nth-of-type(1)) .step-image {
  width: 100px;
}

/* --- ストアボタン群 --- */
.store-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 100%;
  flex-wrap: nowrap;
}

/* --- ストアQRコード --- */
.store-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 140px;
  cursor: pointer;
}
.store-qr-image {
  width: 130px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  user-select: none;
}
.store-qr-text {
  margin-top: 8px;
  font-size: 12px;
  color: #007AFF;
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
  display: block;
}

/* --- フッター --- */
.footer {
  text-align: center;
  margin-top: 40px;
  color: #777;
  font-size: 14px;
}

/* --- ページトップボタン --- */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  display: none;
  background-color: black;
  color: white;
  border: 2px solid black;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
#backToTop:hover {
  background-color: #333;
  transform: scale(1.1);
}

/* --- レスポンシブ: 768px以下 --- */
@media (max-width: 768px) {
  .step-main {
    flex-direction: column;
  }
  .step-images {
    width: 100%;
    margin-top: 10px;
    justify-content: center;
  }
  .step-image {
    width: 30%;
    max-width: 100px;
    margin-bottom: 10px;
  }
}

/* --- レスポンシブ: 400px以下 --- */
@media (max-width: 400px) {
  .step-image {
    width: 28%;
  }
}

/* --- 注意ボックス --- */
.note-box {
  display: flex;
  align-items: center;
  background-color: #f2f2f2;
  color: #333;
  border-left: 5px solid #ff4c4c;
  padding: 15px;
  margin-top: 20px;
  font-size: 1.1em;
  line-height: 1.6;
  font-weight: normal;
  box-shadow: none;
  white-space: nowrap;
  overflow-x: auto;
}
.note-icon {
  margin-right: 10px;
  font-size: 1.4em;
  flex-shrink: 0;
}
.note-text {
  font-size: 12px;
  white-space: normal;
  overflow-wrap: break-word;
}

/* ===== モーダルスタイル ===== */
#modal {
  display: none; /* 非表示 */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}
#modal.open {
  display: flex;
}
#modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.8);
  cursor: zoom-out;
  user-select: none;
}
#modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
}
/* QRコード表示：PC・タブレットのみ */
.desktop-only {
  display: block;
}
/* ストアボタン表示：スマホのみ */
.mobile-only {
  display: none;
}

@media (max-width: 599px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
}
.tag {
  display: inline-block;
  font-size: 0.8em;
  background: #f2ab05;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
