/* ==============================
   自作18歳認証 CSS
   ファイル名：age.css
   ============================== */

/* ==============================
   全体背景：黒透明＋ぼかし
   ============================== */
#age-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
}

/* ==============================
   認証ボックス
   ============================== */
#age-overlay .age-box {
  width: 90%;
  max-width: 540px;
  padding: 26px 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.45);
  text-align: center;
  box-sizing: border-box;
}

/* ==============================
   タイトル：画像＋文字
   ============================== */
#age-overlay .age-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
}

/* タイトル前画像：50%縮小 */
#age-overlay .age-title-icon {
  width: 80px;
  height: auto;
  display: block;
}

#age-overlay .age-title {
  margin: 0;
  color: #8c0777;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.2;
}

/* ==============================
   本文文字
   ============================== */
#age-overlay .age-text,
#age-overlay .age-question,
#age-overlay .age-remember {
  color: #8c0777;
}

#age-overlay .age-text {
  margin: 10px 0;
  font-size: 14px;
  text-align: center;
}

#age-overlay .age-main-text {
  font-size: 16px;
  font-weight: bold;
}

#age-overlay .age-question {
  margin: 12px 0 8px;
  font-size: 18px;
  text-align: center;
}

/* ==============================
   ボタン
   ============================== */
#age-overlay .age-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 12px;
}

#age-overlay .age-button {
  min-width: 145px;
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  background: #8c0777;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: 0.25s;
}

/* 18歳以上です：ホバー */
#age-overlay .age-yes:hover {
  background: #f94fff;
}

/* いいえ：通常は黒 */
#age-overlay .age-no {
  color: #ffffff;
  background: #000000;
}

/* いいえ：ホバーは濃いグレー */
#age-overlay .age-no:hover {
  background: #333333;
}

/* ==============================
   次回より表示しない
   ============================== */
#age-overlay .age-remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 8px 0 18px;
  font-size: 14px;
  cursor: pointer;
}

#age-overlay .age-remember input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* ==============================
   下部注意書き：黒色
   ============================== */
#age-overlay .age-note {
  margin: 4px 0;
  color: #000000;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

/* ==============================
   スマホ調整
   ============================== */
@media screen and (max-width: 480px) {
  #age-overlay .age-box {
    padding: 24px 20px;
  }

  #age-overlay .age-title-wrap {
    gap: 8px;
  }

  #age-overlay .age-title-icon {
    width: 60px;
  }

  #age-overlay .age-title {
    font-size: 22px;
  }

  #age-overlay .age-question {
    font-size: 17px;
  }

  #age-overlay .age-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  #age-overlay .age-button {
    width: 100%;
    max-width: 240px;
  }
}
