@charset "UTF-8";

/************************************
** 年齢認証ゲート
** - チラつき防止: <html>に age-gate-pending が付いている間は
**   #age-gate 以外の body 直下要素を非表示にし、#age-gate を表示する。
** - 判定・クラス付与は age-gate.js（クライアント側）で行う。
************************************/

html.age-gate-pending {
  overflow: hidden;
}

html.age-gate-pending body > *:not(#age-gate) {
  visibility: hidden;
}

#age-gate {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: #ffffff;
  color: #111111;
}

html.age-gate-pending #age-gate {
  display: flex;
}

#age-gate-box {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  padding: 32px 24px;
  border: 1px solid #cccccc;
  background: #ffffff;
  color: #111111;
  text-align: center;
}

#age-gate-title {
  margin: 0 0 16px;
  font-size: 1.25em;
  font-weight: bold;
  color: #111111;
}

#age-gate-desc {
  margin: 0 0 24px;
  font-size: 0.95em;
  line-height: 1.7;
  color: #111111;
}

#age-gate-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

#age-gate-buttons button {
  flex: 1 1 auto;
  min-width: 160px;
  padding: 12px 16px;
  font-size: 1em;
  border: 1px solid #333333;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
}

#age-gate-buttons button:hover,
#age-gate-buttons button:focus {
  background: #f0f0f0;
}

#age-gate-buttons #age-gate-yes {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

#age-gate-buttons #age-gate-yes:hover,
#age-gate-buttons #age-gate-yes:focus {
  background: #333333;
}

/*480px以下*/
@media screen and (max-width: 480px) {
  #age-gate-buttons {
    flex-direction: column;
  }
  #age-gate-buttons button {
    min-width: 0;
    width: 100%;
  }
}
