/* === P1: 閲覧許可通知 === */

/* === 古い紙テクスチャ背景 === */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #f5f0e1;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(180, 160, 120, 0.07) 28px,
      rgba(180, 160, 120, 0.07) 29px
    ),
    radial-gradient(
      ellipse at 20% 50%,
      rgba(200, 180, 140, 0.15) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(190, 170, 130, 0.1) 0%,
      transparent 60%
    );
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  color: #1a1a1a;
}

/* === 文書コンテナ === */
.document-wrapper {
  max-width: 720px;
  margin: 3rem auto;
  padding: 2.5rem 3rem;
  background: #faf6ec;
  border: 3px double #8b7355;
  box-shadow:
    inset 0 0 40px rgba(160, 140, 100, 0.08),
    0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.document-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      ellipse at 15% 85%,
      rgba(180, 160, 120, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 90% 10%,
      rgba(170, 150, 110, 0.08) 0%,
      transparent 40%
    );
  pointer-events: none;
}

/* === 文書番号・日付（右寄せ） === */
.doc-header {
  text-align: right;
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #3a3a3a;
}

/* === 文書タイトル === */
.doc-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.6em;
  margin-bottom: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #8b7355;
}

/* === 本文 === */
.doc-body {
  font-size: 0.95rem;
  line-height: 2;
  text-align: justify;
}

.doc-body p {
  margin: 0 0 1.5em 0;
  text-indent: 1em;
}

.doc-body p.no-indent {
  text-indent: 0;
}

/* === 注意事項リスト === */
.notice-list {
  margin: 1em 0 1.5em 1.5em;
  padding: 0;
  list-style: none;
}

.notice-list li {
  margin-bottom: 0.5em;
  text-indent: -1em;
  padding-left: 1em;
}

/* === 黒塗り === */
.redacted {
  background: #000;
  color: #000;
  padding: 0 0.2em;
  border-radius: 1px;
  user-select: none;
  cursor: default;
}

/* === 署名欄 === */
.doc-signature {
  text-align: right;
  margin-top: 3rem;
  font-size: 0.9rem;
  position: relative;
  padding-right: 1em;
}

/* === 朱印 === */
.stamp {
  display: inline-block;
  width: 52px;
  height: 52px;
  border: 3px solid rgba(180, 40, 30, 0.45);
  border-radius: 50%;
  position: relative;
  margin-top: 0.5rem;
  transform: rotate(-8deg);
}

.stamp::before {
  content: "印";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.3rem;
  font-weight: 700;
  color: rgba(180, 40, 30, 0.4);
  font-family: "Noto Serif JP", serif;
}

.stamp::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 10%;
  width: 60%;
  height: 30%;
  background: rgba(250, 246, 236, 0.6);
  transform: rotate(15deg);
  border-radius: 50%;
}

/* === 調査対象者情報 === */
.subject-info {
  margin: 2em 0;
  padding: 1em 1.5em;
  border: 1px solid #8b7355;
  background: rgba(139, 115, 85, 0.04);
  font-size: 0.9rem;
  line-height: 2;
}

.subject-info dt {
  font-weight: 700;
  display: inline;
}

.subject-info dd {
  display: inline;
  margin: 0;
}

.subject-info .pair {
  margin-bottom: 0.3em;
}

/* === 了承ボタン === */
.acknowledge-section {
  max-width: 720px;
  margin: 2rem auto 4rem;
  text-align: center;
}

.acknowledge-btn {
  display: inline-block;
  height: 48px;
  padding: 0 2.5rem;
  font-family: "Noto Serif JP", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: #3a3a3a;
  color: #fff;
  border: 1px solid #3a3a3a;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}

.acknowledge-btn:hover {
  background: #555;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.acknowledge-btn:active {
  background: #222;
}

/* === フッター === */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: #888;
  border-top: 1px solid #ddd;
  background: #f5f0e1;
}

/* === レスポンシブ === */
@media (max-width: 768px) {
  .document-wrapper {
    margin: 1.5rem 1rem;
    padding: 1.5rem 1.2rem;
  }

  .doc-title {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
  }
}
