/* ===== 共通スタイル ===== */
p {
  color: #fff;
}

.age-gate {
  position: fixed;
  inset: 0;
  background-color: #1C1987;
  background-repeat: repeat;
  background-size: 500px 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9000;
  overflow: auto; /* 縦スクロール用 */
}

.age-gate-inner {
  max-width: 90%;
  max-height: 80%;
  box-sizing: border-box;
  text-align: center;
  padding: 160px 160px;
  background-color: #1C1987;
  width: 100%;
}

.age-gate-inner p {
  margin-top: 1.6rem;
  line-height: 1.6;
}

.age-gate-inner h2 span {
  font-size: 6rem;
}

.gate-title {
  color: #fff;
}

.gate-title span {
  font-family: "Luckiest Guy", cursive;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  letter-spacing: 0.05em;
}

#yes-btn,
#no-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-family: var(--font-head);
  font-size: 3rem;
  line-height: 1;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 60px 10px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 40px;
}

#yes-btn {
  background-color: #fff;
  margin-right: 20px;
  border-radius: 20px;
}

#no-btn {
  background-color: #fff;
  border-radius: 20px;
}

#yes-btn:hover,
#no-btn:hover {
  color: white;
  background-color: #1C1987;
  border: 1px solid #fff;
  transform: scale(1.05);
}

.age-gate-logo {
  position: absolute;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9100;
}

.age-gate-logo img {
  height: 100px;
  width: auto;
}

.since {
  font-size: 1.3rem;
  color: #fff;
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 768px) {
  .age-gate-inner {
    padding: 40px 20px;
    max-width: 95%;
    max-height: 90%;
  }

  .age-gate-inner h2 span {
    font-size: 2.5rem;
  }

  .age-gate-inner p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  #yes-btn,
  #no-btn {
    font-size: 1.8rem;
    padding: 12px 0;
    width: 100%;
    margin: 10px 0;
    display: block;
  }

  .age-gate-logo img {
    height: 60px;
  }

  .since {
    font-size: 0.9rem;
  }
}

/* ===== Fire HD 10対応 ===== */
@media screen and (min-width: 769px) and (max-width: 1200px) {
  .age-gate-inner {
    padding: 80px 40px; /* PCより少し小さめ */
    max-width: 90%;
    max-height: 85%;
  }

  .age-gate-inner h2 span {
    font-size: 4rem; /* タイトル少し縮小 */
  }

  .age-gate-inner p {
    font-size: 1.1rem; /* 説明文少し縮小 */
    line-height: 1.5;
  }

  #yes-btn,
  #no-btn {
    font-size: 2.2rem;   /* ボタン文字サイズ調整 */
    padding: 12px 50px;  /* ボタンサイズ調整 */
    margin-top: 30px;
    display: inline-flex; /* 横並び維持 */
  }

  .age-gate-logo img {
    height: 80px; /* ロゴサイズ調整 */
  }

  .since {
    font-size: 1.1rem; /* 年表記も少し縮小 */
  }
}


/* ===== 超小型画面対応（300px以下） ===== */
@media screen and (max-width: 320px) and (max-height: 520px) {
  .age-gate-inner {
    padding: 20px 10px;
    max-width: 95%;
    max-height: 90%;
  }

  .age-gate-inner h2 span {
    font-size: 1.8rem; /* タイトルをさらに小さく */
  }

  .age-gate-inner p {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  #yes-btn,
  #no-btn {
    font-size: 1.2rem;
    padding: 8px 0;
    width: 100%;
    margin: 8px 0;
    display: block; /* 縦並び */
  }

  .age-gate-logo img {
    height: 40px; /* ロゴ縮小 */
  }

  .since {
    font-size: 0.7rem;
  }
}

