#modal-ageCheck {
  position: fixed;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  background: #000;
  display: none;
  top: 50%;
  left: 50%;
  z-index: 9999;
  transform: translateX(-50%) translateY(-50%);
  justify-content: center;
  align-items: center;
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
 }

 #modal-ageCheck.show {
  opacity: 1;
  visibility: visible;
  display: flex;
 }

 .t-ageCheckModal {
  display: flex;
  align-items: center;
  border-radius: 10px;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  box-sizing: border-box;
  width: min(100vw, 520px);
  max-height: 100dvh;
  border: solid 4px #ff0000;
  background: #ffffff;
  text-align: center;
  padding: 1rem;
 }

 .t-ageCheckModal__head {
  color: #e40d0d;
  letter-spacing: .1rem;
  font-weight: bold;
  font-size: 2rem;
  margin: 0;
 }

 .t-ageCheckModal__text {
  margin: 1rem 0;
  letter-spacing: .1rem;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.6;
 }

 .t-ageCheckModal__choice-wrapper {
  display: flex;
  gap: .5rem;
  justify-content: center;
  width: 100%;
 }

 .t-ageCheckModal__choice,
 .t-ageCheckModal__choice-no {
  display: inline-block;
  box-sizing: border-box;
  padding: 2% 0;
  width: 40%;
  height: auto;
  border-radius: 4px;
  background-color: #18bd67;
  color: white;
  text-align: center;
  text-decoration: none;
  text-indent: 0;
  font-size: 1rem;
  cursor: pointer;
  transition: .3s;
 }

 :is(.t-ageCheckModal__choice,
  .t-ageCheckModal__choice-no):hover {
  opacity: .7;
 }

 .t-ageCheckModal__choice-no {
  border: 1px solid #b3b3b3;
  background-color: #f9f9f9;
  color: #333333;
 }

 @media screen and (max-width:600px) {
  .t-ageCheckModal-wrapper {
   width: 90%;
  }
 }


 .t-ageCheckModal {
  transform: scale(0.9);
  transition: transform 0.3s ease;
 }

 #modal-ageCheck.show .t-ageCheckModal {
  transform: scale(1);
 }

 /* スクロールバー対策 */
 body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0);
 }