/* ゲート本体 */
#age-gate{
  position: fixed;
  inset:0;

  background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  z-index:9999;
  display:flex;
  justify-content:center;
  align-items:center;

  animation: fadeIn .35s ease;
}

/* 表示中は裏ページを固定 */
body.age-lock{
  overflow: hidden;
  height:100vh;
  touch-action:none;
}

/* ボックス */
.age-box{
  background:rgba(255,255,255,.96);
  padding:40px;
  max-width:420px;
  width:90%;
  text-align:center;
  border-radius:14px;
  box-shadow:0 25px 70px rgba(0,0,0,.45);
  animation: pop .35s ease;
}

.age-box h2{
  margin-top:0;
}

/* ボタン共通 */
.age-box button{
  margin:12px;
  padding:14px 20px;
  border:none;
  border-radius:12px;
  cursor:pointer;
  font-size:16px;
  font-weight:600;
  letter-spacing:.02em;

  transition:
    transform .08s ease,
    box-shadow .08s ease,
    background .2s ease,
    color .2s ease;

  /* iOSのタップハイライト除去 */
  -webkit-tap-highlight-color: transparent;
}

/* ===================== */
/* YES（メインボタン） */
/* ===================== */
#age-yes{
  color:#fff;
  background: linear-gradient(#2b2b2b,#111);

  box-shadow:
    0 6px 0 #000,
    0 12px 24px rgba(0,0,0,.35);
}

/* ホバー → 浮く */
#age-yes:hover{
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 #000,
    0 18px 28px rgba(0,0,0,.45);
}

/* 押した瞬間 → 沈む */
#age-yes:active{
  transform: translateY(4px);
  box-shadow:
    0 2px 0 #000,
    0 6px 12px rgba(0,0,0,.35);
}

/* ===================== */
/* NO（サブボタン） */
/* ===================== */
#age-no{
  color:#333;
  background:linear-gradient(#fafafa,#e9e9e9);

  border:2px solid #cfcfcf;

  box-shadow:
    0 6px 0 #999,
    0 10px 18px rgba(0,0,0,.18);
}

/* ホバー：少し強調 */
#age-no:hover{
  background:linear-gradient(#ffffff,#ececec);
  transform: translateY(-2px);
  box-shadow:
    0 8px 0 #888,
    0 16px 24px rgba(0,0,0,.22);
}

/* 押下 */
#age-no:active{
  transform: translateY(4px);
  box-shadow:
    0 2px 0 #888,
    0 6px 12px rgba(0,0,0,.25);
}

/* アニメーション */
@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes pop{
  from{transform:scale(.92);opacity:.5}
  to{transform:scale(1);opacity:1}
}