

/* ページタイトルの上余白を詰める */
#wikibody > h2:first-of-type {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  border-left: none !important;
  color: #000000 !important;
  font-size: 20px !important;
  font-weight: bold !important;
  padding: 0 !important;
  margin-top: 3px !important; /* 余白を詰める */
  margin-bottom: 10px !important;
}

/* 大見出し（*）に黒の下線を追加 */
h2 {
  background-image: none !important;
  background-color: #a8916e !important;
  color: #000000 !important;
  padding: 8px 15px 8px 10px !important;
  border: none !important;
  border-left: 5px solid #000000 !important;
  border-bottom: 2px solid #000000 !important;
  font-size: 19px !important;
  font-weight: bold !important;
  margin-top: 20px !important;
  margin-bottom: 10px !important;
}

h4 {
  background: none !important;
  border: none !important;
  border-left: 4px solid #000000 !important;
  color: #000000 !important;
  font-size: 14px !important;
  font-weight: bold !important;
  padding: 3px 0 3px 10px !important;
  margin-top: 10px !important;
  margin-bottom: 8px !important;
  width: fit-content !important;
  border-bottom: 2px solid #000000 !important;
}

/* 大見出し内のリンク色 */
h2 a, h2 a:link, h2 a:visited, h2 a:hover {
  color: #3366cc  !important;
  text-decoration: none !important;
}

/* 左メニューの見出し（h2）のみ画像を使用 */
#leftwrapper h2,
#leftwrapper .menu h2,
div#leftwrapper h2 {
  background-image: url('https://img.atwiki.jp/projectgorgon/attach/64/148/Bar.jpg') !important;
  background-color: #bca787 !important;
  background-repeat: repeat-x !important;
  background-size: auto 100% !important;
  color: #ffffff !important;
  padding: 6px 10px !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: bold !important;
  margin-top: 10px !important;
  margin-bottom: 5px !important;
}

/* 左メニューの背景を黒・角丸に */
#leftwrapper #menubar {
  background-color: #1e1615 !important;
  border-radius: 6px !important;
  border: 1px solid #423930 !important;
  padding: 5px !important;
  margin-bottom: 10px !important;
}

/* 左メニューのリンク色 */
#leftwrapper #menubar a,
#leftwrapper #menubar a:link,
#leftwrapper #menubar a:visited {
  color: #ffdd88 !important;
}

#leftwrapper #menubar a:hover {
  color: #ffffff !important;
}

/* 左メニューの通常文字色を白に */
#leftwrapper #menubar,
#leftwrapper #menubar li,
#leftwrapper #menubar ul {
  color: #ffffff !important;
}

/* 格納ボタンの文字色を白に */
#leftwrapper .atwiki_plugin_region,
#leftwrapper .atwiki_plugin_region td,
#leftwrapper .atwiki_plugin_region a,
#leftwrapper .atwiki_plugin_region a:link,
#leftwrapper .atwiki_plugin_region a:visited {
  color: #ffffff !important;
}

/* 左メニュー内の見出し文字色を白に */
#leftwrapper h3,
#leftwrapper h4,
#leftwrapper h5,
#leftwrapper h6 {
  color: #ffffff !important;
}

/* wikiTOPリンクの文字を非表示・画像のみ表示 */
#atwiki-jp-bg1 a {
  font-size: 0 !important;
  color: transparent !important;
}

/* ページエリアの角を丸く */
#contents {
  border-radius: 8px !important;
  overflow: hidden !important;
}

/* blockquote（>）のスタイル */
blockquote {
  display: inline-block !important;
  background-color: #f5efe4 !important;
  border-left: 4px solid #bca787 !important;
  padding: 5px 10px !important;
  margin: 5px 0 !important;
  border-radius: 4px !important;

  font-style: italic !important;        /* 斜体 */
  color: #444444 !important;            /* 少し薄い文字色 */
}
#wikibody h2 {
  font-weight: 900 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-shadow: 
    1px 0 0 #ffffff,
    -1px 0 0 #ffffff,
    0 1px 0 #ffffff,
    0 -1px 0 #ffffff,
    1px 1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px -1px 0 #ffffff,
    0.5px 1px 0 #ffffff,
    -0.5px 1px 0 #ffffff,
    0.5px -1px 0 #ffffff,
    -0.5px -1px 0 #ffffff,
    1px 0.5px 0 #ffffff,
    -1px 0.5px 0 #ffffff,
    1px -0.5px 0 #ffffff,
    -1px -0.5px 0 #ffffff,
    3px 3px 4px rgba(0,0,0,0.3) !important;
}

/* 編集ボタンを目立たなくする */
.atwiki-hedit {
  opacity: 0.2 !important;
}

/* ホバー時だけ見えるように */
.atwiki-hedit:hover {
  opacity: 0.8 !important;
}

/* 中見出し（**）縦ラインを黒に */
h3 {
  background: none !important;
  border: none !important;
  border-left: 4px solid #bca787 !important;
  border-bottom: 2px solid #bca787 !important;
  color: #000000  !important;
  font-size: 16px !important;
  font-weight: bold !important;
  padding: 5px 0 5px 10px !important;
  margin-top: 15px !important;
  margin-bottom: 10px !important;
}

pre {
    border: 1px solid #4d3626;  /* ← dashed → solid に変更 */
    background-color: #ffeccc;
    font-size: 11px;
    display: inline-block;
    padding: 5px 6px;
    white-space: pre-wrap;
    line-height: 1.1em;
    color: #332418;  /* ← 文字色を追加 */
}