
/* 必要なら user.css 側へ移してOK */
body{
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif;
  line-height:1.7;
  margin:0;
  color:#000;
  background:#fff;
}
.paper-wrap{
  max-width:760px;
  margin:0 auto;
  padding:28px 18px 56px;
}
.paper-title{
  font-size:22px;
  margin:0 0 6px 0;
  letter-spacing:0.02em;
}
.paper-author{
  margin:0 0 20px 0;
  font-size:14px;
  text-indent:0 !important; /* 著者行は字下げしない */
}
.paper-meta{
  font-size:13px;
  margin:0 0 22px 0;
  text-indent:0 !important; /* メタ行は字下げしない */
}
h2{
  font-size:18px;
  margin:26px 0 10px;
}
h3{
  font-size:16px;
  margin:20px 0 8px;
}
.paper-wrap section p{
  margin:0 0 12px 0;
  text-indent:1em !important; /* ←段落冒頭1字下げ（強制） */
}
.paper-pager{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:26px;
  padding-top:14px;
  border-top:1px solid #ddd;
  font-size:14px;
}
.paper-pager a{ text-decoration:none; }

/* ===== 共通ヘッダー（論文ページにも表示） ===== */
.site-header{
  max-width:760px;
  margin:0 auto;
  padding:18px 18px 10px;
}
.header-divider{
  width:60%;
  max-width:420px;
  margin:6px auto 18px;
  border:0;
  border-top:1px solid #000;
}

/* 章タイトル：太字＋本文よりわずかに大きく */
h2{
  font-size:19px;
  font-weight:700;
}

/* 段落冒頭の字下げ（強制） */
.paper-wrap section p{
  text-indent:1em !important;
}

/* ===== ヘッダー整形：1行目タイトル中央／2行目ナビ横並び中央 ===== */
.site-header{
  text-align: center;
}

.site-name{
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 600;
}

.global-nav ul{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.global-nav li{
  margin: 0;
  padding: 0;
}

.global-nav a{
  text-decoration: none;
  font-size: 14px;
}

/* ===== リンク色を黒に統一 ===== */
a {
  color: #000;
  text-decoration: none;
}

a:visited {
  color: #000;
}

a:hover {
  text-decoration: underline;
}

/* ===== ページ上部ナビ（前・次） ===== */
.paper-top-pager{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 18px 0;
  font-size: 14px;
}

.paper-top-pager a{
  text-decoration: none;
}

/* ===== PDF目次（共通） ===== */
.toc{
  list-style: none;
  padding-left: 0;
  margin: 18px 0 0;
}
.toc li{
  margin: 10px 0;
  line-height: 1.8;
}

.toc li a:first-child{
  display: inline;
  margin-right: 6px;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 16px;  /* 他と揃えるなら */
}

.toc li a:first-child:hover{
  text-decoration: underline;
}

.toc-meta{
  margin-left: 8px;
  font-size: 12px;
  opacity: 0.85; /* うっすら */
}

/* 目次：タイトルと出典を縦に並べる */
.toc li > a {
  display: block;
}

.toc-meta {
  display: block;
  margin-left: 1.5em;   /* 少し下げる（不要なら消してOK） */
  font-size: 0.9em;     /* 少し小さく（好みで調整） */
}



/* ===== 詩（引用）ブロック：行間を詰める（追加） ===== */
.poem-quote p{
  margin: 0;
  text-indent: 0 !important;
  line-height: 1.15;
}

.poem-quote p + p{
  margin-top: 0;
}

.poem-title{
  text-indent: 2em !important;
}




/* =========================================================
   引用（論文組版仕様）
   ========================================================= */

.ronbun-quote{
  padding-left:5em;     /* 本文より5字下げ */
  margin:1.2em 0;
}

.ronbun-quote p{
  margin:0;
  text-indent:0;
  line-height:1.55;
  font-size:0.97em;
}

/* 本文→出典距離 */
.ronbun-source{
  text-align:right;
  font-size:0.92em;
  margin-top:0;
  line-height:1.12;
}

/* 引用が連続する時だけ余白 */
.ronbun-quote + .ronbun-quote{
  margin-top:2em;
}


/* ===== 特殊行（任意） ===== */
.ronbun-title{ text-indent:2em; }


/* =========================================================
   脚注（ぶら下げ）
   ========================================================= */

.footnotes p{
  margin:0 0 12px;
  text-indent:-1em;
  padding-left:1.5em;
}


/* =========================================================
   スマホ
   ========================================================= */

@media (max-width:520px){

  .paper-wrap{padding:22px 14px 44px;}

  .ronbun-quote{padding-left:3.8em;}

  .global-nav ul{gap:12px;}

  .paper-title{font-size:20px;}
}


/* ===== フッター ===== */
.site-footer, footer{
  text-align: right;
  padding: 40px 20px;
  font-size: 12px;
  color: #000;
}

