/* L0ティザーダイアログ（03-tier-structure.md §2 / 05-design-system.md 準拠）
   既存サイトのCSS変数と衝突しないよう nt- プレフィックスで独立させる。 */
:root {
  --nt-ivory: #F7F4EE;
  --nt-ivory-deep: #F1ECE1;
  --nt-ink: #1C1B19;
  --nt-ink-soft: #4A4640;
  --nt-gold: #A9803F;
  --nt-gold-soft: #C9A25C;
  --nt-gold-line: #C6A15E;
  --nt-hair: #D8CDB6;
}

.nt-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 10, 8, 0.55);
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nt-overlay.is-visible { opacity: 1; }
.nt-overlay[hidden] { display: none; }

.nt-card {
  position: relative;
  width: 85%;
  max-width: 440px;
  max-height: 86vh;
  overflow: auto;
  background: var(--nt-ivory);
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nt-overlay.is-visible .nt-card {
  opacity: 1;
  transform: translateY(0);
}

.nt-frame {
  position: absolute;
  inset: 10px;
  border: 1px solid var(--nt-gold-line);
  pointer-events: none;
}
.nt-frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--nt-gold-line);
  opacity: 0.55;
}

.nt-inner {
  position: relative;
  padding: 40px 28px 28px;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  color: var(--nt-ink-soft);
}

.nt-eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--nt-ink-soft);
  margin: 0 0 14px;
}

.nt-ornament {
  width: 40px;
  height: 10px;
  margin: 0 auto 14px;
  position: relative;
}
.nt-ornament::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--nt-gold-line);
  transform: translate(-50%, -50%);
}
.nt-ornament::after {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -58%);
  font-size: 7px;
  color: var(--nt-gold);
  background: var(--nt-ivory);
  padding: 0 6px;
}

.nt-title {
  font-weight: 600;
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: 1px;
  color: var(--nt-ink);
  margin: 0 0 22px;
}

.nt-text-mask {
  max-height: 7.4em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(black 72%, transparent 98%);
  mask-image: linear-gradient(black 72%, transparent 98%);
  margin: 0 0 26px;
}
.nt-line {
  font-size: 15.5px;
  line-height: 1.9;
  letter-spacing: 0.3px;
  margin: 0 0 0.6em;
}

.nt-actions { margin-bottom: 18px; }
.nt-cta {
  display: inline-block;
  padding: 10px 34px;
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--nt-ink);
  text-decoration: none;
  border-top: 1px solid var(--nt-gold-line);
  border-bottom: 1px solid var(--nt-gold-line);
  transition: color 300ms ease, border-color 300ms ease;
}
.nt-cta:hover,
.nt-cta:focus-visible {
  color: var(--nt-gold);
  border-color: var(--nt-gold);
}

.nt-close {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  padding: 4px 8px;
  font-family: "Noto Serif JP", serif;
  font-size: 12.5px;
  letter-spacing: 1px;
  color: var(--nt-ink-soft);
  opacity: 0.7;
  cursor: pointer;
}
.nt-close:hover,
.nt-close:focus-visible { opacity: 1; }

/* ヘッダー脇の再表示タブ（JSが挿入。既存HTMLは変更しない） */
.nt-reopen-tab {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 9998;
  background: var(--nt-ivory);
  border: 1px solid var(--nt-gold-line);
  color: var(--nt-ink-soft);
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 7px 14px;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 300ms ease;
}
.nt-reopen-tab:hover,
.nt-reopen-tab:focus-visible { opacity: 1; }
.nt-reopen-tab[hidden] { display: none; }

@media (max-width: 480px) {
  .nt-inner { padding: 32px 20px 22px; }
  .nt-title { font-size: 19px; }
  .nt-reopen-tab { top: 10px; right: 10px; font-size: 11px; padding: 6px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .nt-overlay,
  .nt-card {
    transition: opacity 300ms ease !important;
    transform: none !important;
  }
}
