/* ===============================
   年齢確認モーダル（修正版）
   不可視文字を除去し、確実に背景が表示されるように調整
================================ */

/* === モーダル外側（全画面オーバーレイ） === */
.age-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;                 /* 完全不透明の黒背景 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* === 表示状態にするクラス === */
.age-modal.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* === モーダル内コンテンツ === */
.age-modal__content {
  width: 100vw;
  height: 100vh;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: #1e1e1e;        /* 濃いグレー背景（不透明） */
  color: #fff;
  font-family: "Yu Gothic", "游ゴシック体", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* === ボタンエリア === */
.age-modal__buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* === ボタン共通スタイル === */
.age-modal__buttons button {
  padding: 15px 30px;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* 18歳以上ボタン */
#agreeBtn {
  background: #dd739c;
  color: #fff;
}

/* 18歳未満ボタン */
#exitBtn {
  background: #444;
  color: #fff;
}

/* === 非表示ユーティリティクラス === */
.hidden {
  display: none !important;
}

/* === テキスト・ロゴ === */
.age-modal__text {
  font-size: 1.1em;
  max-width: 600px;
  margin-bottom: 20px;
}

.age-modal__title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.age-modal__logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 24px;
}

/* ========================================
   ▼ モバイル（画面幅 480px 以下）
======================================== */
@media screen and (max-width: 480px) {
  .age-modal__title {
    font-size: 1.6em;
  }

  .age-modal__line1,
  .age-modal__line2 {
    display: block;
    font-size: 1.4em;
    line-height: 1.4;
  }

  .age-modal__buttons {
    flex-direction: column;   /* 縦並び */
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .age-modal__buttons button {
    font-size: 1.1em;
    padding: 14px 32px;
    width: 100%;
    max-width: 280px;
    white-space: nowrap;      /* 改行防止 */
  }
}