/**
 * 年齢確認ゲート (18歳未満お断り)
 *
 * 旧サイトの age.css を元にした。変更点は以下の 3 つだけで、値はそのまま踏襲している。
 *   1. font-family: 旧サイトの "Source Sans Pro" はテーマに無いため、テーマ共通の Noto Sans JP に置換
 *   2. z-index: 既存の最前面 (.fixed-menu-overlay 100001) より上の 100010 を指定
 *   3. 初期状態は display:block (JS 無効でもゲートが本文を覆う = 安全側)。Cookie 済みの人には
 *      wp_head のインラインスクリプトが html.has-age-verified を付け、最初の描画前に消す (ちらつき防止)
 *
 * .page-wrapper (transform: scale) の外側 = wp_footer で出力されるため、
 * position: fixed がビューポート基準で効く (CLAUDE.md 2.1 の fixed 要素の例外規定)。
 * 402px スケーリングの対象外なので、文字サイズは旧サイトの絶対値をそのまま使う。
 *
 * 既存クラス・既存プロパティの値は一切変更していない (新規クラスの追加のみ)。
 */

#age-verification {
  display: block; /* 既定は表示。Cookie 済みは html.has-age-verified で消える (下記) */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100010;
  background-color: rgba(10, 10, 10, 0.82);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.05em;
  overflow-y: scroll;
  overscroll-behavior: contain;
}

/* Cookie 済み: 描画前に消してちらつきを防ぐ (wp_head のインラインスクリプトが付与) */
html.has-age-verified #age-verification { display: none !important; }

.age-verification-main {
  width: auto;
  height: auto;
  background-color: #000;
  font-family: 'Noto Sans JP', sans-serif;
  color: #fff;
  font-size: 14pt;
  text-align: center;
  padding: 50px 10%;
  position: relative;
  top: 10px;
  margin: 0 auto;
  box-shadow: 1px 2px 9px 0px rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 7px rgba(0, 0, 0, 0.3);
}

@media only screen and (min-height: 450px) {
  .age-verification-main { top: 0; }
}

.age-title,
.age-main-text {
  display: block;
  margin-bottom: 1em;
  font-size: 17px;
}

.age-title {
  font-size: 24pt;
  margin-bottom: 0.5em;
}

.age-button {
  cursor: pointer;
  box-shadow: 1px 2px 9px 0px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #fff;
  border: none;
  font-size: 16pt;
  color: #000;
  display: inline-block;
  width: 150px;
  padding: 10px;
  margin: 5px 10px;
}

#age-verification .description { font-size: 16px; }
#age-verification .caution { font-size: 10px; }

#age-verification .age-noscript {
  color: #fff;
  font-size: 14px;
  margin-top: 1em;
}

/* バナー・相互リンク (旧サイトと同じものを掲載する = PR #5 決定 Q1) */
#age-verification .age-banners { margin-top: 10px; }
#age-verification .age-banner-row {
  text-align: center;
  margin: 10px auto;
  max-width: 468px;
}
#age-verification .age-banner-row img {
  max-width: 100%;
  height: auto;
  border: 0;
}

@media only screen and (max-width: 768px) {
  .age-verification-main { padding: 30px 20px; }
  .age-title { font-size: 36px; }
  .age-main-text { font-size: 18px; }
  #age-verification .description { font-size: 18px; }
  #age-verification .caution { font-size: 14px; }
}
