/* ===========================
   オーバーレイ
=========================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 25, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===========================
   モーダル
=========================== */
.modal {
  background: #ffffff;
  border-radius: 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  padding: 2.5rem 2.5rem 2rem;
  max-width: 720px;
  width: 100%;
  position: relative;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   閉じるボタン
=========================== */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border: 0.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.15s;
  line-height: 1;
}

.close-btn:hover {
  background: #f5f1eb;
}

/* ===========================
   ラベル
=========================== */
.label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #B47C3A;
  text-align: center;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

/* ===========================
   日付バッジ
=========================== */
.date-badge {
  display: inline-block;
  background: #FBF0E0;
  color: #8B5A1A;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 8px;
}

/* ===========================
   装飾ライン（オーナメント）
=========================== */
.ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.ornament-line {
  flex: 1;
  height: 0.5px;
  background: rgba(0, 0, 0, 0.18);
}

.ornament-diamond {
  width: 6px;
  height: 6px;
  background: #B47C3A;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ===========================
   タイトル
=========================== */
.title {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  font-weight: 400;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

/* ===========================
   本文
=========================== */
.body-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 13.5px;
  font-weight: 300;
  color: #555;
  line-height: 2.1;
  text-align: center;
  letter-spacing: 0.02em;
}

.body-text p {
  margin-bottom: 1.2em;
}

.body-text p:last-child {
  margin-bottom: 0;
}

.body-text a {
  color: #B47C3A;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.body-text a:hover {
  color: #8B5A1A;
}

/* ===========================
   区切り線
=========================== */
.divider {
  height: 0.5px;
  background: rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
}

/* ===========================
   フッター
=========================== */
.footer {
  text-align: center;
}

.footer-btn {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #555;
  background: transparent;
  border: 0.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 0.55rem 2rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.footer-btn:hover {
  background: #f5f1eb;
  color: #1a1a1a;
}

/* ===========================
   ダークモード対応
=========================== */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a1814;
  }

  .modal {
    background: #232018;
    border-color: rgba(255, 255, 255, 0.12);
  }

  .close-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: #aaa;
  }

  .close-btn:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .date-badge {
    background: #3B2A10;
    color: #D4A050;
  }

  .ornament-line {
    background: rgba(255, 255, 255, 0.15);
  }

  .title {
    color: #f0ece4;
  }

  .body-text {
    color: #aaa;
  }

  .divider {
    background: rgba(255, 255, 255, 0.1);
  }

  .footer-btn {
    color: #aaa;
    border-color: rgba(255, 255, 255, 0.2);
  }

  .footer-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f0ece4;
  }
}
