/* ==========================================================
   ストレス発散ゲーム スッキリ — 単一ゲーム SEO サイト
   ========================================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* 横向きスクロールを完全に禁止 */
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic UI", Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #23232b;
  background: #ffffff;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

img,
iframe,
video {
  max-width: 100%;
}

/* ---------- Header（極簡） ---------- */
.site-header {
  width: 100%;
  max-width: 100%;
  background: #ff5722;
  padding: 10px 16px;
}

.site-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.site-name-accent {
  font-weight: 500;
  opacity: 0.92;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

/* ---------- メイン ---------- */
.page {
  width: 100%;
  max-width: 100%;
  padding: 18px 14px 40px;
}

.page-title {
  margin: 0 auto 6px;
  max-width: 1200px;
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  color: #1c1c24;
}

.page-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  margin: 10px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff5722, #ff9800);
}

.page-lead {
  margin: 10px auto 0;
  max-width: 1200px;
  text-align: center;
  font-size: 15px;
  color: #55555f;
}

/* ---------- 広告スロット（予約のみ・未接続） ---------- */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 14px auto;
  min-height: 100px;
  border: 1.5px dashed #d9d9de;
  border-radius: 12px;
  background: #fafafa;
  color: #a0a0aa;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* モバイルではゲーム上部に広告を出さない（ゲームを最優先） */
.ad-slot-top {
  display: none;
}

@media (min-width: 769px) {
  .ad-slot-top {
    display: flex;
    min-height: 110px;
  }
}

/* ---------- ゲームエリア（ページの絶対コア） ---------- */
.game-section {
  width: 100%;
  max-width: 100%;
  margin: 14px auto 0;
  padding: 0;
  overflow: hidden; /* iframe の幅が body を突き抜けない */
}

.game-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.game-box {
  position: relative;
  width: 100%;
  /* デスクトップは 16:9 のワイド表示 */
  aspect-ratio: 16 / 9;
  background: #101018;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.game-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.game-credit {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12px;
  color: #8a8a94;
}

/* 大きなデスクトップではゲームを可能な限り大きく */
@media (min-width: 1200px) {
  .game-box {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

/* ---------- SEO コンテンツ（ゲームの下） ---------- */
.seo-content {
  width: 100%;
  max-width: 820px;
  margin: 26px auto 0;
  padding: 0 4px;
}

.seo-content h2 {
  margin: 34px 0 10px;
  font-size: clamp(19px, 3vw, 24px);
  font-weight: 800;
  color: #1c1c24;
  border-left: 5px solid #ff5722;
  padding-left: 12px;
}

.seo-content p {
  margin: 0 0 10px;
  font-size: 15px;
  color: #3c3c46;
}

.howto {
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
  color: #3c3c46;
}

.howto li {
  margin: 6px 0;
}

details {
  margin: 10px 0;
  border: 1px solid #ececf0;
  border-radius: 10px;
  background: #fcfcfd;
  overflow: hidden;
}

summary {
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #23232b;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

summary::-webkit-details-marker {
  color: #ff5722;
}

details p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 14.5px;
  color: #4a4a55;
}

/* ---------- フッター ---------- */
.site-footer {
  width: 100%;
  max-width: 100%;
  padding: 18px 16px 26px;
  text-align: center;
  border-top: 1px solid #f0f0f2;
  background: #fafafa;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  color: #8a8a94;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0 auto 10px;
  max-width: 1200px;
}

.footer-nav a {
  color: #ff5722;
  font-size: 13px;
  text-decoration: none;
  padding: 4px 2px;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* ---------- サブページ（サイトについて / プライバシーポリシー） ---------- */
.page-narrow .seo-content {
  max-width: 780px;
}

.page-narrow .seo-content a {
  color: #ff5722;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- タッチしやすさ（モバイル） ---------- */
@media (max-width: 767px) {
  .page {
    padding: 14px 10px 36px;
  }

  .page-title {
    margin-bottom: 4px;
  }

  .game-section {
    margin-top: 10px;
  }

  /* スマホではゲーム窓を画面高さに合わせて確保（Kiz10 公式モバイル同様に縦長表示） */
  .game-box {
    aspect-ratio: auto;
    height: calc(100svh - 190px);
    min-height: 280px;
    max-height: 780px;
  }

  .ad-slot-bottom {
    min-height: 110px;
    margin: 12px auto;
  }

  summary {
    padding: 15px 16px; /* タップターゲットを十分に */
  }
}
