/*
 * トップページの入荷遅延ポップアップ（template-parts/notice-popup.php）。
 *
 * サイトのトンマナに合わせる：カラースキーム4（#121212 / 白）、角丸0、
 * 1px の薄い白枠、白ベタの四角いボタン。年齢確認ゲート（z-index:1000）より
 * 下に置く——ゲートが出ている間は JS 側が出さないが、万一重なってもゲートが勝つように。
 * 文字は年齢確認ゲートと同じ書体。
 */

.notice-popup {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.6rem;
  background-color: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: 'Source Code Pro', 'Noto Sans JP', sans-serif;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}

/* hidden 属性だけでは display:flex に負けるので明示する。 */
.notice-popup[hidden] {
  display: none;
}

.notice-popup.is-open {
  opacity: 1;
}

.notice-popup__box {
  position: relative;
  width: 100%;
  max-width: 52rem;
  margin: auto;
  padding: 4.8rem 4rem 4rem;
  text-align: center;
  background-color: rgb(var(--color-background, 18 18 18));
  color: rgb(var(--color-foreground, 255 255 255));
  border: 1px solid rgba(var(--color-foreground, 255 255 255), 0.1);
  border-radius: 0;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.05), 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(12px);
  transition: transform 0.35s ease;
}

.notice-popup.is-open .notice-popup__box {
  transform: none;
}

.notice-popup__label {
  margin: 0 0 1.6rem;
  font-size: 1.2rem;
  letter-spacing: 0.3rem;
  color: rgba(var(--color-foreground, 255 255 255), 0.6);
}

.notice-popup__label::before,
.notice-popup__label::after {
  content: '';
  display: inline-block;
  width: 2.4rem;
  height: 1px;
  margin: 0 1.2rem;
  vertical-align: middle;
  background-color: rgba(var(--color-foreground, 255 255 255), 0.3);
}

.notice-popup__title {
  margin: 0 0 2rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  line-height: 1.5;
  color: inherit;
}

.notice-popup__text {
  margin: 0;
  font-size: 1.5rem;
  line-height: 2;
  text-align: left;
  color: rgba(var(--color-foreground, 255 255 255), 0.85);
}

.notice-popup__note {
  margin: 2rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--color-foreground, 255 255 255), 0.1);
  font-size: 1.4rem;
  line-height: 1.8;
  text-align: left;
  color: rgba(var(--color-foreground, 255 255 255), 0.85);
}

.notice-popup__button {
  min-width: 18rem;
  margin-top: 3.2rem;
  padding: 1.3rem 3.2rem;
  font: inherit;
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
  cursor: pointer;
  background-color: rgb(var(--color-foreground, 255 255 255));
  color: rgb(var(--color-background, 18 18 18));
  border: 1px solid rgb(var(--color-foreground, 255 255 255));
  border-radius: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.notice-popup__button:hover {
  background-color: transparent;
  color: rgb(var(--color-foreground, 255 255 255));
}

.notice-popup__x {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 4rem;
  height: 4rem;
  padding: 0;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: 0;
  color: rgb(var(--color-foreground, 255 255 255));
  opacity: 0.7;
}

.notice-popup__x:hover {
  opacity: 1;
}

.notice-popup__button:focus-visible,
.notice-popup__x:focus-visible {
  outline: 2px solid rgb(var(--color-foreground, 255 255 255));
  outline-offset: 2px;
}

@media screen and (max-width: 749px) {
  .notice-popup__box {
    padding: 4rem 2.4rem 3.2rem;
  }

  .notice-popup__title {
    font-size: 1.8rem;
  }

  .notice-popup__text,
  .notice-popup__note {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notice-popup,
  .notice-popup__box {
    transition: none;
  }
}
