/* =========================================
   注意：
   このファイルは「documents.js が描画される領域」
   （#content-title / #content-body）にだけ効く
   ========================================= */

/* 記事タイトル（上部タイトル行） */
#content-title {
  letter-spacing: 0.08em;
}

/* 記事本文エリア */
#content-body {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  line-height: 1.9;
  font-size: 14px;

  /* 01側の指定に依存しないよう最低限だけ補正 */
  color: inherit;
}

/* 段落 */
#content-body p {
  margin: 0 0 12px;
}

/* 見出し（onegai など） */
#content-body h1 {
  font-size: 18px;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 6px;
}

/* 本文内リンク（data-dockey の内部遷移リンクも含む） */
#content-body a {
  color: #761304;
  cursor: pointer;
  text-decoration: underline;
}

#content-body a:hover {
  color: #140101;
}

/* ちょい演出（任意） */
#content-body p:hover {
  text-shadow: 0 0 6px rgba(255,255,255,0.15);
}


/* =========================================
   Twitter風 一言カード（documents本文だけ）
   ========================================= */

#content-body .tweet-card {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgb(92, 92, 92);
  background: rgb(92, 92, 92);
  border-radius: 12px;
}

/* ヘッダー行（名前・ID・時刻） */
#content-body .tweet-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

#content-body .tweet-name {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
}

#content-body .tweet-handle,
#content-body .tweet-time,
#content-body .tweet-dot {
  color: rgba(255,255,255,0.55);
}

/* 本文 */
#content-body .tweet-body {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255,255,255,0.92);
  white-space: pre-wrap;
}
/*カードを横並び*/
#content-body .tweet-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
/*名前と本文*/
#content-body .tweet-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
/*本文をすこし詰める*/
#content-body .tweet-body {
  line-height: 1.55;
}

/* “引用”や“添付”っぽいブロック（任意） */
#content-body .tweet-quote {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  line-height: 1.7;
}
/*アイコン（まる・くろいろ）*/
#content-body .tweet-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;

  border-radius: 50%;
  background: rgb(40, 40, 40);
  border: 1px solid rgba(255,255,255,0.2);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 16px;
  font-weight: bold;
  color: rgba(255,255,255,0.85);
}
#content-body .tweet-icon img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
/*右側本文ブロック*/
#content-body .tweet-main {
  flex: 1;
  min-width: 0;
}
/*本文ツイート*/
#content-body .tweet-body {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}



/* =========================================
   平成初期の個人サイト風（1記事だけ）
   対象：.heisei90 配下のみ
   ========================================= */

#content-body .heisei90{
  width: min(720px, 100%);
  margin: 10px auto;
  padding: 14px 16px;

  background: #000000;
  border: 2px solid #000;

  color: #ffffff;
  font-family: "MS PGothic","MS Gothic","Osaka",sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

/* タイトル：デカい・太い */
#content-body .heisei90-title{
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 8px;
}

/* サブ：ちょい小さめ */
#content-body .heisei90-sub{
  font-size: 13px;
  margin-bottom: 8px;
}

/* 伏せ字や強調：赤 */
#content-body .heisei90-red{
  color: #c00;
  font-weight: bold;
}

/* 当時の区切り線 */
#content-body .heisei90-hr{
  border: 0;
  border-top: 2px solid #ffffff;
  margin: 10px 0 12px;
}

/* 注意書き：蛍光マーカーっぽい */
#content-body .heisei90-note{
  padding: 8px;
  border: 1px solid #000;
  color:#000;
  background: #000;
}

/* 点々行 */
#content-body .heisei90-small{
  font-family: "MS Gothic", monospace;
  font-size: 12px;
  margin: 10px 0;
}

/* カウンター */
#content-body .heisei90-counter{
  margin-top: 10px;
  font-size: 12px;
  border: 1px solid #000;
  padding: 4px 6px;
  display: inline-block;
}
#content-body .heisei90-counter span{
  font-family: "MS Gothic", monospace;
}

/* 当時のリンク色（青＋visited紫＋hover赤） */
#content-body .heisei90 a{
  color: #00f;
  text-decoration: underline;
}
#content-body .heisei90 a:visited{
  color: #800080;
}
#content-body .heisei90 a:hover{
  color: #f00;
}

/* フッターリンク行 */
#content-body .heisei90-footer{
  margin-top: 12px;
  font-size: 12px;
}

/* =========================================
   平成初期GIF風・虹色タイトル
   ========================================= */

#content-body .heisei90-title{
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 8px;

  /* 虹色アニメ */
  animation: heisei-rainbow 1.2s steps(1) infinite;

  /* ちょいチカチカ感 */
  text-shadow:
    1px 1px 0 #000,
    -1px -1px 0 #000;
}

/* カクカク変わる虹色 */
@keyframes heisei-rainbow{
  0%   { color: #ff0000; } /* 赤 */
  14%  { color: #ff7f00; } /* 橙 */
  28%  { color: #ffff00; } /* 黄 */
  42%  { color: #00ff00; } /* 緑 */
  57%  { color: #00ffff; } /* 水 */
  71%  { color: #0000ff; } /* 青 */
  85%  { color: #8b00ff; } /* 紫 */
  100% { color: #ff0000; }
}


/* documents.js 全体の img にも効く汎用 */
#content-body img{
  display:block;
  max-width:100%;
  height:auto;
  margin:16px auto;
}

/* =========================================
   Wikipedia風ブロック（documents本文だけ）
   ========================================= */

#content-body .wiki{
  background: #f8f9fa;
  color: #202122;
  border: 1px solid #a2a9b1;
  border-radius: 4px;
  padding: 16px 18px;
  line-height: 1.65;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* 背景模様があるなら上書きして“紙面”に寄せる */
#content-body .wiki *{
  background: transparent;
}

/* 見出し */
#content-body .wiki h1{
  margin: 0 0 10px;
  padding: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  border-bottom: 1px solid #a2a9b1;
  font-family: "Linux Libertine", "Georgia", "Times New Roman", serif; /* Wikipediaっぽい見出し */
}

/* 見出しレベルがある場合 */
#content-body .wiki h2{
  margin: 18px 0 8px;
  padding-bottom: 6px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #c8ccd1;
}

/* 本文 */
#content-body .wiki p{
  margin: 0 0 12px;
  font-size: 14px;
}

/* 強調 */
#content-body .wiki strong{
  font-weight: 700;
}

/* リンク（Wikipedia風の青） */
#content-body .wiki a{
  color: #0645ad;
  font-weight:bold;
  text-decoration: none;
}
#content-body .wiki a:hover{
  text-decoration: underline;
}
#content-body .wiki a:visited{
  color: #0b0080;
}

/* 箇条書きがある場合（Wikipediaっぽい） */
#content-body .wiki ul{
  margin: 0 0 12px 1.6em;
  padding: 0;
}
#content-body .wiki li{
  margin: 0.25em 0;
}

/* ちょいWiki感：脚注番号 */
#content-body .wiki sup{
  font-size: 11px;
  vertical-align: super;
}

/* ArchiveXX：ありがとうございます 専用 */
.doc-link.is-thanks {
  color: #c00;           /* 赤 */
  font-weight: bold;
}

/* ホバー時 */
.doc-link.is-thanks:hover {
  color: #ff3333;
}
