/* ====================================
   INITIAL D.NET STYLE Ver.4
   左メニュー整理版
   見出しをゴールド化
   ==================================== */

/* 左メニュー全体 */
#menubar {
  background: #253947 !important;
  padding: 7px !important;
  box-sizing: border-box;
}

/* 通常リンク（北海道など）を少し控えめに */
#menubar a:link,
#menubar a:visited {
  display: block;
  color: #233b50 !important;
  background: linear-gradient(
    to bottom,
    #f7f9fa 0%,
    #d8e0e5 45%,
    #b6c2ca 55%,
    #edf2f5 100%
  ) !important;
  border: 1px solid #7f929d;
  border-radius: 2px;
  padding: 5px 5px;
  margin: 2px 0;
  font-weight: bold;
  text-decoration: none !important;
  text-shadow: 0 1px 0 #ffffff;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 #ffffff;
  font-size: 12px;
}

/* 通常リンクにマウスを乗せた時 */
#menubar a:hover {
  color: #8a5b00 !important;
  background: linear-gradient(
    to bottom,
    #fff9df 0%,
    #f0d77f 45%,
    #d3ab36 55%,
    #fff3c2 100%
  ) !important;
}

/* 左メニュー見出し（Wikiの見方、設置店舗一覧など） */
#menubar h2,
#menubar h3 {
  color: #7b5200 !important;
  background: linear-gradient(
    to bottom,
    #fff9df 0%,
    #f2dc8c 38%,
    #c99b28 52%,
    #f8e7aa 100%
  ) !important;
  border: 1px solid #9a7722 !important;
  border-bottom: 3px solid #7a5a12 !important;
  padding: 6px 8px !important;
  margin-top: 10px !important;
  text-shadow: 0 1px 0 #fff6cf;
  box-shadow: inset 0 1px 0 #fff8dd;
}

/* 見出し内リンク */
#menubar h2 a,
#menubar h3 a {
  display: inline !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #7b5200 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}


/* ==================================
   INITIAL D.NET STYLE Ver.5
   外側の背景を白色に変更
   ================================== */

html,
body {
  background-color: #ffffff !important;
  background-image: none !important;
}

/* 左メニュー見出しの折り返し調整 */

#menubar h2,
#menubar h3 {
  white-space: normal !important;
  overflow-wrap: anywhere;
  height: auto !important;
  line-height: 1.4 !important;
}

/* ====================================
   INITIAL D.NET STYLE
   マンダリン（2カラム）ver2
   試作版 Ver.2
   ==================================== 

/* 本文の見出しを金属調に変更 */
#wikibody h2,
#wikibody h3,
.atwiki-contents h2,
.atwiki-contents h3 {
  color: #c45b20 !important;

  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #e6e9ec 35%,
    #a8b5be 52%,
    #e8edf0 100%
  ) !important;

  border-top: 1px solid #9eabb4 !important;
  border-bottom: 3px solid #506574 !important;
  border-left: none !important;

  padding: 7px 12px !important;
  margin-top: 18px;

  text-shadow: 1px 1px 0 #ffffff;
}

/* 見出し内部にリンクがある場合 */
#wikibody h2 a,
#wikibody h3 a,
.atwiki-contents h2 a,
.atwiki-contents h3 a {
  color: #c45b20 !important;
}

/* ====================================
   INITIAL D.NET STYLE Ver.6
   ボタン選択時の色を変更
   ゴールド → ダークシルバー
   ==================================== */

/* 通常リンクのタップ・選択時 */
#menubar a:hover,
#menubar a:focus,
#menubar a:active {
  color: #1f3443 !important;

  background: linear-gradient(
    to bottom,
    #dce6eb 0%,
    #a8bac5 45%,
    #8096a4 55%,
    #cad6dd 100%
  ) !important;

  border-color: #536a79 !important;
  text-shadow: 0 1px 0 #f5f8fa !important;
}

/* ゴールドのカテゴリー見出しは維持 */
#menubar h2 a:hover,
#menubar h2 a:focus,
#menubar h2 a:active,
#menubar h3 a:hover,
#menubar h3 a:focus,
#menubar h3 a:active {
  background: none !important;
  color: #7b5200 !important;
  border: none !important;
  box-shadow: none !important;
}

/* ====================================
   INITIAL D.NET STYLE Ver.7B
   左メニュー背景を金属風の暗いグレーに変更
   ==================================== */

#menubar {
  background-color: #2d2d2d !important;
  background-image:
    repeating-linear-gradient(
      to bottom,
      #3a3a3a 0px,
      #3a3a3a 1px,
      #2f2f2f 2px,
      #2b2b2b 4px
    ) !important;
}

/* ====================================
   INITIAL D.NET STYLE Ver.8
   地方別残存台数テーブル
   ==================================== */

/* 集計表の大きさ */
.storecount table {
  width: 100% !important;
  max-width: 900px;
  border-collapse: collapse;
  table-layout: auto;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* セルの高さ・余白を調整 */
.storecount table th,
.storecount table td {
  padding: 10px 12px !important;
  border: 1px solid #a9b5bd !important;
  vertical-align: middle !important;
  line-height: 1.5 !important;
  white-space: normal;
  overflow-wrap: break-word;
}

/* ヘッダーの文字 */
.storecount table th {
  font-weight: bold !important;
  text-align: center;
}

/* 数値の表示 */
.storecount table td {
  text-align: center;
}
/* ====================================
   INITIAL D.NET STYLE Ver.9
   本文見出しをD.NET風ストライプ背景に変更
   ==================================== */

/* 本文の * 見出し */
#wikibody h2,
#body h2,
#main h2 {
  color: #d86a1c !important;
  font-weight: bold !important;
  padding: 10px 14px 12px !important;
  margin: 28px 0 14px !important;
  border: none !important;
  border-bottom: 4px solid #465d6d !important;
  box-shadow: none !important;

  background-color: #d9dde0 !important;
  background-image:
    linear-gradient(to bottom,
      #f6f7f8 0%,
      #eceff1 12%,
      #dfe4e7 24%,
      #cfd6db 36%,
      #b8c2c8 48%,
      #c8d0d5 56%,
      #dae0e4 64%,
      #edf0f2 72%,
      #d7dcdf 100%
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.45) 0px,
      rgba(255,255,255,0.45) 2px,
      rgba(120,130,138,0.18) 2px,
      rgba(120,130,138,0.18) 4px
    ) !important;

  text-shadow:
    1px 1px 0 #ffffff,
    2px 2px 3px rgba(0,0,0,0.18) !important;
}

/* 本文の ** 見出しも少し小さめで同系統に */
#wikibody h3,
#body h3,
#main h3 {
  color: #d86a1c !important;
  font-weight: bold !important;
  padding: 8px 12px 10px !important;
  margin: 20px 0 10px !important;
  border: none !important;
  border-bottom: 3px solid #465d6d !important;
  box-shadow: none !important;

  background-color: #d9dde0 !important;
  background-image:
    linear-gradient(to bottom,
      #f6f7f8 0%,
      #e8ecef 18%,
      #cfd6db 42%,
      #e4e8eb 70%,
      #d7dcdf 100%
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.35) 0px,
      rgba(255,255,255,0.35) 2px,
      rgba(120,130,138,0.15) 2px,
      rgba(120,130,138,0.15) 4px
    ) !important;

  text-shadow:
    1px 1px 0 #ffffff,
    2px 2px 3px rgba(0,0,0,0.15) !important;
}

#wikibody h2,
#body h2,
#main h2 {
  border-bottom: 5px solid #111 !important;
}

/* ====================================
   本文の * 見出しを、画像のような横ストライプにする
   ==================================== */

#wikibody h2,
#body h2,
#main h2,
.atwiki-contents h2 {
  color: #df6c18 !important;
  font-weight: bold !important;
  padding: 10px 14px 12px !important;
  margin: 28px 0 14px !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow:
    1px 1px 0 #ffffff,
    2px 2px 2px rgba(0,0,0,0.18) !important;

  background: linear-gradient(to bottom,
    #fafafa 0%,
    #f2f2f2 6%,
    #d7d7d7 12%,
    #f0f0f0 18%,
    #c4c4c4 26%,
    #ededed 34%,
    #9e9e9e 46%,
    #4e4e4e 58%,
    #111111 67%,
    #000000 73%,
    #f5f5f5 76%,
    #cfcfcf 80%,
    #111111 86%,
    #000000 100%
  ) !important;

  background-repeat: no-repeat !important;
}


/* ====================================
   INITIAL D.NET STYLE Ver.11
   強化ストライプ見出し
   ==================================== */

/* 本文の * 見出しのみ */
#wikibody h2,
#body h2,
#main h2,
.atwiki-contents h2 {

  /* オレンジ色の文字 */
  color: #e66c16 !important;
  font-weight: bold !important;

  /* 見出しの大きさ */
  padding: 10px 14px 12px !important;
  margin: 28px 0 14px !important;
  line-height: 1.4 !important;

  /* 横方向の金属ストライプ */
  background-color: #bcbcbc !important;

  background-image:

    /* 細かい横ストライプ */
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 3px,
      rgba(25,25,25,0.25) 3px,
      rgba(25,25,25,0.25) 5px
    ),

    /* 上から下への銀色グラデーション */
    linear-gradient(
      to bottom,
      #fafafa 0%,
      #efefef 20%,
      #d5d5d5 44%,
      #969696 70%,
      #454545 100%
    ) !important;

  background-repeat: repeat-x !important;

  /* 下端の太い黒ライン */
  border: none !important;
  border-bottom: 6px solid #080808 !important;

  /* 内側の細い白ライン */
  box-shadow:
    inset 0 -2px 0 #eeeeee !important;

  /* 文字の立体感 */
  text-shadow:
    1px 1px 0 #ffffff,
    2px 2px 2px rgba(0,0,0,0.3)
    !important;
}
