/* ===================================
   Global Theme: White × Light Green
   =================================== */

:root {
  --primary: #00a676;     /* メインのライトグリーン */
  --accent: #009966;      /* 濃いめグリーン（リンクや強調） */
  --bg: #f9fafb;          /* 背景 */
  --text: #2b2b2b;        /* 文字色 */
  --link: #007f5f;        /* リンクカラー */
  --border: #e0e0e0;      /* ボーダー */
}

/* -----------------------------------
   Base
----------------------------------- */
body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

html {
  scroll-behavior: smooth;
}

/* -----------------------------------
   Header
----------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 3px solid var(--primary);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-title {
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.3em;
}

.site-title:hover {
  opacity: 0.8;
}


.header-left {
  font-weight: 700;
  font-size: 1.3em;
  color: var(--primary);
}

/* メニュー */
.menu-btn {
  font-size: 1.8em;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
}

.menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  right: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.menu a {
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text);
  transition: 0.2s;
}

.menu a:hover {
  background: rgba(0,166,118,0.1);
  color: var(--accent);
}

.site-icon {
  width: 200px;        /* ← ここでサイズ指定 */
  vertical-align: middle;
}

/* -----------------------------------
   Banner
----------------------------------- */
.banner {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 10px 20px;
  background-image: url("img/top.png"); /* ← ここに画像パスを指定 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 900px; /* ← 好きな横幅に */
  margin: 0 auto;   /* ← 中央寄せ */
}

/* 半透明オーバーレイ */
.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35); /* 明るめの画像なら0.4〜0.5に調整 */
  z-index: 1;
}

.banner h1,
.banner p {
  position: relative;
  z-index: 2;
}

.banner h1 {
  font-size: 2em;
  margin-bottom: 10px;
  font-weight: 700;
}

.banner p {
  font-size: 1.1em;
}
/* -----------------------------------
   Content
----------------------------------- */
.content {
  max-width: 900px;
  margin: 40px auto 100px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content h1 {
  color: var(--accent);
  margin-top: 0;
}

.content h2 {
  border-left: 5px solid var(--primary);
  padding-left: 10px;
  color: var(--primary);
  margin-bottom: 25px;
}

.content h3 {
  margin-top: 50px;
  margin-bottom: 15px;
  color: var(--accent);
}

/* 段落・余白 */
section {
  margin-bottom: 50px;
}

section p {
  margin-bottom: 28px;
  line-height: 1.9;
}

section p + p {
  margin-top: 10px;
}

/* リスト */
ul {
  margin: 10px 0 20px 20px;
}

/* -----------------------------------
   Table (比較表)
----------------------------------- */
.casino-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.casino-compare th, .casino-compare td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.casino-compare thead {
  background: #e9f8f2;
  font-weight: bold;
}

.casino-compare tbody tr:nth-child(even) {
  background: #f9f9f9;
}

/* -----------------------------------
   TOC (目次)
----------------------------------- */
.toc {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.toc h2 {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 15px;
  color: var(--accent);
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin: 10px 0;
  font-size: 1rem;
  line-height: 1.6;
}

.toc a {
  text-decoration: none;
  color: var(--link);
  transition: color 0.2s;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ステップガイド */
.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 25px;
  position: relative;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  padding: 6px 14px;
  border-radius: 30px;
}

.step-card h2 {
  color: var(--accent);
  margin-top: 10px;
}

.step-card p {
  margin-top: 15px;
  line-height: 1.9;
}

/* ランキングページ */
.ranking {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.rank-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 25px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.rank-number {
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  padding: 6px 14px;
  border-radius: 30px;
}

.rank-card h2 {
  color: var(--accent);
  margin-top: 10px;
}

.rank-card ul {
  margin-top: 15px;
  margin-bottom: 20px;
  list-style: none;
  padding-left: 0;
}

.rank-card ul li {
  margin: 8px 0;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
  background: #f6fef9;
}

.rank-card .btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.rank-card .btn:hover {
  background: var(--accent);
}


/* ゲームルールカード */
.game-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px 25px;
  margin-bottom: 40px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.game-card h2 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 15px;
}

.game-card ul {
  margin: 10px 0 20px;
  list-style: none;
  padding-left: 0;
}

.game-card ul li {
  background: #f3fdf9;
  margin: 6px 0;
  padding: 8px 10px;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}

.summary {
  background: #f9fdfb;
  border-left: 5px solid var(--primary);
  padding: 25px;
  border-radius: 8px;
}


/* 攻略法ページ */
.game-card h3 {
  margin-top: 25px;
  color: var(--primary);
  font-weight: 600;
}

.game-card ul {
  margin-top: 10px;
  margin-bottom: 20px;
  list-style: none;
  padding-left: 0;
}

.game-card ul li {
  background: #f3fdf9;
  margin: 6px 0;
  padding: 8px 10px;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}


/* 決済方法ページ */
.game-card ul {
  margin: 10px 0 20px;
  list-style: none;
  padding-left: 0;
}

.game-card ul li {
  background: #f3fdf9;
  margin: 6px 0;
  padding: 8px 10px;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}

.summary table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.summary table th,
.summary table td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: center;
}

.summary table thead {
  background: #e9f8f2;
  font-weight: bold;
}


.age-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.age-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 30px 40px;
  text-align: center;
  max-width: 320px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

.age-modal-content h2 {
  margin-bottom: 10px;
  font-size: 1.3em;
  color: #333;
}

.age-modal-content p {
  margin-bottom: 20px;
  color: #555;
  line-height: 1.6;
}

.age-modal-buttons {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.age-modal-buttons button {
  flex: 1;
  padding: 10px 0;
  font-size: 1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

#ageYes {
  background: #2a4d8f;
  color: #fff;
}

#ageNo {
  background: #ccc;
  color: #333;
}

#ageYes:hover {
  background: #1f3870;
}

#ageNo:hover {
  background: #aaa;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


.footer-banner-fade {
  position: relative;
  width: 100%;
  min-height: 55px; /* バナー高さに合わせて調整 */
  overflow: hidden;
  margin-top: 10px;
}
.fade-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 1; /* ← 初期表示で見えるように */
  transition: none; /* ← 最初はアニメ無効 */
  display: flex;
  justify-content: center;
}

.fade-banner:not(.active) {
  opacity: 0;
}

.fade-banner.active {
  z-index: 1;
}


.footer-banner-fade script {
  display: inline-block;
}



/* -----------------------------------
   Games Section (リスト)
----------------------------------- */
#games ul {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 20px;
}

#games ul li {
  background: #f3fdf9;
  margin: 6px 0;
  padding: 8px 10px;
  border-left: 4px solid var(--primary);
  border-radius: 4px;
}

/* -----------------------------------
   Strong / Emphasis
----------------------------------- */
strong {
  font-weight: 600;
  color: var(--accent);
}

/* -----------------------------------
   Footer
----------------------------------- */
.site-footer {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 0.9em;
  border-top: 1px solid var(--border);
  background: #fff;
}

/* -----------------------------------
   Responsive
----------------------------------- */
@media (min-width: 768px) {
  .menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    border: none;
    box-shadow: none;
  }

  .menu-btn {
    display: none;
  }

  .menu a {
    padding: 0 15px;
  }
}

/* -----------------------------------
   Smartphone (～767px)
----------------------------------- */
@media (max-width: 767px) {
  body {
    font-size: 15px;
    line-height: 1.7;
    padding: 0;
  }

  .site-header {
    padding: 10px 14px;
  }

  .site-title {
    font-size: 1.1em;
  }

  .banner h1 {
    font-size: 1.4em;
  }

  .banner p {
    font-size: 0.95em;
  }

  .content {
    margin: 20px auto 60px;
    padding: 25px 15px;
  }

  .content h1 {
    font-size: 1.3em;
  }

  .content h2 {
    font-size: 1.15em;
    border-left-width: 4px;
  }

  .content h3 {
    font-size: 1.05em;
    margin-top: 30px;
  }

  section p {
    font-size: 0.95em;
    line-height: 1.8;
  }

  ul li {
    font-size: 0.95em;
  }

  .step-card,
  .rank-card,
  .game-card {
    padding: 22px 18px;
  }

  .step-number,
  .rank-number {
    font-size: 0.9em;
    top: -12px;
    left: 15px;
  }

  .site-footer {
    font-size: 0.8em;
    padding: 15px;
  }

  /* モーダルの文字も小さめに */
  .age-modal-content {
    max-width: 85%;
    padding: 25px 20px;
  }

  .age-modal-content h2 {
    font-size: 1.1em;
  }

  .age-modal-content p {
    font-size: 0.9em;

