/* ============================================================
 * ドウジンナビ 18禁年齢確認モーダル スタイル
 * 配色: 白背景 × パープル (#6B46C1) アクセント / SWELL統一トーン
 * フォント: Noto Sans JP（systemフォントスタックでフォールバック）
 * ============================================================ */

/* スクロールロック（モーダル表示中） */
html.dn-age-gate-locked,
html.dn-age-gate-locked body {
  overflow: hidden !important;
}

/* オーバーレイ */
.dn-age-gate-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 12, 30, 0.78);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: dn-age-gate-fade-in 0.18s ease-out;
}

@keyframes dn-age-gate-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* モーダル本体 */
.dn-age-gate-modal {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 480px;
  padding: 36px 28px 28px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(107, 70, 193, 0.10);
  box-sizing: border-box;
  text-align: center;
  color: #1F2937;
  position: relative;
  outline: none;
  animation: dn-age-gate-pop-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes dn-age-gate-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* タイトル */
.dn-age-gate-title {
  font-size: 22px;
  font-weight: 700;
  color: #6B46C1;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}

/* 説明文 */
.dn-age-gate-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #1F2937;
  margin: 0 0 24px;
}

/* ボタン群 */
.dn-age-gate-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.dn-age-gate-btn {
  display: block;
  width: 100%;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.dn-age-gate-btn:focus-visible {
  outline: 2px solid #6B46C1;
  outline-offset: 2px;
}

.dn-age-gate-btn:active {
  transform: translateY(1px);
}

/* 「はい」ボタン（プライマリ） */
.dn-age-gate-btn-yes {
  background: #6B46C1;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.30);
}

.dn-age-gate-btn-yes:hover {
  background: #5B21B6;
  box-shadow: 0 6px 16px rgba(91, 33, 182, 0.38);
}

/* 「いいえ」ボタン（セカンダリ） */
.dn-age-gate-btn-no {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.dn-age-gate-btn-no:hover {
  background: #e5e7eb;
  color: #1F2937;
}

/* PR表記 */
.dn-age-gate-pr {
  font-size: 11px;
  line-height: 1.6;
  color: #6b7280;
  margin: 14px 0 0;
  letter-spacing: 0.02em;
}

/* レスポンシブ（モバイル） */
@media (max-width: 480px) {
  .dn-age-gate-modal {
    padding: 28px 20px 22px;
    border-radius: 12px;
  }
  .dn-age-gate-title {
    font-size: 19px;
  }
  .dn-age-gate-desc {
    font-size: 14px;
  }
  .dn-age-gate-btn {
    padding: 12px 14px;
    font-size: 14px;
  }
  .dn-age-gate-pr {
    font-size: 10.5px;
  }
}

/* 縦長画面でモーダルが画面内に収まるよう */
@media (max-height: 600px) {
  .dn-age-gate-overlay {
    align-items: flex-start;
    padding-top: 20px;
    overflow-y: auto;
  }
}
