:root {
  --color-yellow: #e49b0f;
  --color-text: #1a1a1a;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-text);
}

/* モーダル表示中、背景ページのスクロールを止める */
body.age-gate-lock {
  overflow: hidden;
}

/* ---- ページ本体(実際は既存ページの中身に置き換わる) ---- */
.page-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #f2f2f0;
}
.page-content p {
  color: #999999;
  font-size: 16px;
}

/* ---- オーバーレイ(背景を薄暗くして最前面に表示) ---- */
.age-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  backdrop-filter:blur(16px);
}

/* ---- モーダル本体(白背景のカード) ---- */
.age-gate {
  width: 100%;
  max-width: 480px;
  padding: 48px 32px;
  background: #ffffff;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.age-gate__logo {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 32px;
  border: 2px solid var(--color-text);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 18px;
}

.age-gate__warning {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 32px;
}

.age-gate__question {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 32px;
}

.age-gate__buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.age-gate__denied-text {
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  margin: 0 0 40px;
}

.age-gate__btn {
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.age-gate__btn--yes {
  background: var(--color-yellow);
  color: #ffffff;
  border: 2px solid var(--color-yellow);
}
.age-gate__btn--yes:hover {
  filter: brightness(1.3);
}

.age-gate__btn--no {
  background: #ffffff;
  color: var(--color-yellow);
  border: 2px solid var(--color-yellow);
}
.age-gate__btn--no:hover {
  filter: brightness(1.3);
}

/* ---- スマホ対応 ---- */
@media (max-width: 480px) {
  .age-gate {
    padding: 36px 24px;
  }
  .age-gate__warning,
  .age-gate__question {
    font-size: 16px;
  }
}
