@charset "UTF-8";

/* Modern CSS Variables and Reset */
:root {
  --primary-color: #3399DD;
  --secondary-color: #2c3b4b;
  --accent-color: #7fb7eb;
  --background-dark: #010101;
  /*--background-secondary: #1a2530;*/
  --text-primary: #ffffff;
  /*--text-secondary: #f0f0f0;*/
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --border-radius: 8px;
  --spacing-small: 0.1rem;
  --spacing-medium: 1rem;
  --spacing-large: 1.5rem;
}

* {
  box-sizing: border-box;
}

pre, dl, ol, p, blockquote {
  line-height:140%;
}
blockquote {
  margin-left:32px;
  border-left:4px solid var(--primary-color);
  padding-left: var(--spacing-medium);
  background: rgba(51, 153, 221, 0.05);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

html, body {
  background: var(--background-dark);
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
}

body, td {
  color: var(--text-primary);
  /* margin-left: 2%; */
  /* margin-right: 2%; */
  font-size: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
textarea {
  box-sizing:border-box;
  max-width:99.5%;
}

a:link {
  color:#7fb7eb;
  text-decoration:none;
  background-color:inherit;
}
a:active {
  color:#7fb7eb;
  background-color:#445566;
  text-decoration:none;
}
a:visited {
  color:#ba8dd1;
  text-decoration:none;
  background-color:inherit;
}
a:hover {
  color:#7fb7eb;
  background-color:#445566;
  text-decoration:underline;
}
a.external-link:not(.external-link-silent)::after {
  content:url("../../image/external-link.png");
  margin:3px;
}

/* Modern Header Styles */
.modern-header {
  background: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.modern-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
  pointer-events: none;
}

.header-content {
  display: flex;
  align-items: center;
  padding: var(--spacing-medium) var(--spacing-large);
  position: relative;
  z-index: 1;
  border-radius: var(--border-radius);
}

.logo-link {
  display: flex;
  align-items: center;
  transition: transform var(--transition-medium);
}

.logo-link:hover {
  transform: scale(1.05);
}

.modern-logo {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  border-radius: var(--border-radius);
}

.header-text {
  flex: 1;
}

.modern-title {
  margin: 0;
  font-size: clamp(1rem, 3vw, 2rem);
  font-weight: 600;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  border: none;
  background-color: transparent;
  padding: 0;
}

.wiki-description {
  margin: var(--spacing-small) 0 0 0;
  color: var(--text-primary);
  font-size: 1rem;
  opacity: 0.8;
}

h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-primary);
  font-size: clamp(1.5rem, 4vw, 2rem);
  border-bottom: 3px solid var(--primary-color);
  padding: var(--spacing-medium);
  background: linear-gradient(135deg, #353535 0%, #2a2a2a 100%);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: 0 0 var(--spacing-medium) 0;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

h1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

h2 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-primary);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  border-bottom: 3px solid var(--primary-color);
  padding: var(--spacing-medium);
  background: linear-gradient(135deg, #353535 0%, #2a2a2a 100%);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin: var(--spacing-large) 0 var(--spacing-medium) 0;
  font-weight: 600;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
h3 { /* **の見出し */
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  border-bottom: 2px solid var(--primary-color);
  color: var(--text-primary);
  background: linear-gradient(135deg, #353535 0%, #2f2f2f 100%);
  padding: var(--spacing-small) var(--spacing-medium);
  margin: var(--spacing-medium) 0 var(--spacing-small) 0;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  transition: all var(--transition-fast);
}

h4 {/* ***の見出し */
  font-weight: normal;
  font-family:verdana, arial, helvetica, Sans-Serif;
  border-left:2px solid #8899AA;
  color:rgb(255, 255, 255);
  background-color:#353535;
  padding:0.15em;
  margin:0 0 .5em 0;
  font-size: 15px;
}
h5, h6 {
  font-family:verdana, arial, helvetica, Sans-Serif;
  color:rgb(255, 255, 255);
  background-color:#353535;
  padding:0.15em;
  margin:0 0 .5em 0;
}
h1.title {
  font-size:30px;
  font-weight:bold;
  background-color:transparent;
  padding:12px 0 0 0;
  border:0;
  margin:12px 0 0 0;
}

#menubar h1, #rightbar h1, #menubar h2, #rightbar h2 {
  font-size: 20px;/*MenuBarの * のやつ*/
  /* background-color: #3399DD; */
  color:rgb(255, 255, 255);
  font-weight:bold;
  border:0;
  border-bottom:2px solid #3399DD;
}

#menubar h3, #rightbar h3 {
  font-size: 16px;
  border-bottom:2px solid #3399DD;
}

#menubar h4, #rightbar h4 {
  font-size: 12px;
  border-left:0;
  border-bottom:2px solid #3399DD;
}

#menubar h5, #rightbar h5 {
  font-size: 12px;
  border-bottom:0;
  border-left:2px solid #3399DD;
}

dt {
  font-weight:bold;
  margin-top:1em;
  margin-left:1em;
}

pre {
  padding:.5em;
  margin-left:1em;
  margin-right:2em;
  white-space:pre-wrap;
  word-wrap:break-word;
  color:white;
  border-top:#6A6A6A 1px solid;
  border-bottom:#6A6A6A 1px solid;
  border-left:#6A6A6A 1px solid;
  border-right:#6A6A6A 1px solid;
  background-color:#464646;
}

img {
  border:none;
  vertical-align:middle;
}

ul {
  margin-top:.5em;
  margin-bottom:.5em;
  line-height:130%;
}

em {
  font-style:italic;
}

strong {
  font-weight:bold;
}

thead td.style_td,
tfoot td.style_td {
  color:white;
  background-color:#686875;
}
thead th.style_th,
tfoot th.style_th {
  font-weight:normal;
  color:white;
  background-color:#484848;
}
.style_table {
  padding:0;
  border:0;
  text-align:left;
  color:white;
  background-color:#CDCDCD;
}
.style_th {
  font-weight:normal;
  padding:5px;
  margin:1px;
  text-align:center;
  color:white;
  background-color:#686868;
}
.style_td {/*表の偶数行目*/
  padding:5px;
  margin:1px;
  color:white;
  background-color:#232f3b;
}
tr:nth-child(odd) .style_td {/*表の奇数行目*/
  padding:5px;
  margin:1px;
  color:white;
  background-color:#2e3741;
}

ul.list1 {
  list-style-type:disc;
}
ul.list2 {
  list-style-type:circle;
}
ul.list3 {
  list-style-type:square;
}
ol.list1 {
  list-style-type:decimal;
}
ol.list2 {
  list-style-type:lower-roman;
}
ol.list3 {
  list-style-type:lower-alpha;
}

.list-indent1 {
  padding-left:16px;
  margin-left:16px;
}
/* list-indent2,3,4 are used for leaping list level indentation */
.list-indent2 {
  padding-left:32px;
  margin-left:32px;
}
.list-indent3 {
  padding-left:48px;
  margin-left:48px;
}
.list-indent4 {
  padding-left:64px;
  margin-left:64px;
}

div.ie5 {
  text-align:center;
}
span.noexists {
  color:#0000ff;
  background-color:#FFFACC;
}

.small {
  font-size:80%;
}

.super_index {
  color:#DD3333;
  background-color:inherit;
  font-weight:bold;
  font-size:60%;
  vertical-align:super;
}

a.note_super {
  color:#DD3333;
  background-color:inherit;
  font-weight:bold;
  font-size:60%;
  vertical-align:super;
}

div.jumpmenu {
  font-size:60%;
  text-align:right;
  user-select:none;
}

hr.full_hr {
  border-style:ridge;
  border-color:#333333;
  border-width:1px 0;
}
hr.note_hr {
  width:90%;
  border-style:ridge;
  border-color:#333333;
  border-width:1px 0;
  text-align:center;
  margin:1em auto 0em auto;
}

span.size1 {
  font-size:xx-small;
  line-height:130%;
  text-indent:0;
  display:inline;
}
span.size2 {
  font-size:x-small;
  line-height:130%;
  text-indent:0;
  display:inline;
}
span.size3 {
  font-size:small;
  line-height:130%;
  text-indent:0;
  display:inline;
}
span.size4 {
  font-size:medium;
  line-height:130%;
  text-indent:0;
  display:inline;
}
span.size5 {
  font-size:large;
  line-height:130%;
  text-indent:0;
  display:inline;
}
span.size6 {
  font-size:x-large;
  line-height:130%;
  text-indent:0;
  display:inline;
}
span.size7 {
  font-size:xx-large;
  line-height:130%;
  text-indent:0;
  display:inline;
}

/* html.php/catbody() */
strong.word0 {
  background-color:#FFFF66;
  color:black;
}
strong.word1 {
  background-color:#A0FFFF;
  color:black;
}
strong.word2 {
  background-color:#99FF99;
  color:black;
}
strong.word3 {
  background-color:#FF9999;
  color:black;
}
strong.word4 {
  background-color:#FF66FF;
  color:black;
}
strong.word5 {
  background-color:#880000;
  color:white;
}
strong.word6 {
  background-color:#00AA00;
  color:white;
}
strong.word7 {
  background-color:#886800;
  color:white;
}
strong.word8 {
  background-color:#004699;
  color:white;
}
strong.word9 {
  background-color:#990099;
  color:white;
}

/* html.php/edit_form() */
.edit_form {
  clear:both;
}
.edit_form textarea,.edit_form select {
  width:95%;
}

/* pukiwiki.skin.php */
div#header {
  padding:0;
  margin:0;
  word-break:break-all;
}

div#navigator {
  clear:both;
  padding:4px 0 0 0;
  margin:0;
}

div#path {
  margin-top: -8px;
  padding:2px 0 2px 0.25em;
  font-size:16px;
}

div.contents {
  border-top:#787878 1px solid;
  border-bottom:#787878 1px solid;
  border-left:#787878 1px solid;
  border-right:#787878 1px solid;
  background-color:#4F4F4F;
  padding-right:10px;
  /*display: inline-block;*/

  display: table;                     /* 表示をテーブル（TABLE要素）同様にする */
  table-layout: fixed;                /* テーブル列幅固定 */
  border-spacing: 8px 0;              /* 隣接セル間隔：左右8ピクセル */
  width: 100%;                        /* 幅100％ */
}

div#contents {
  display:flex;
  flex-flow:row nowrap;
  word-break:break-all;
  overflow-wrap:break-word;
  word-wrap:break-word;
}

div#menubar {
  box-shadow: 0 0 15px rgba(142, 220, 254, 0.4), 0 0 30px rgba(142, 220, 254, 0.1);
  background: #2c3b4b;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  min-width: 20em;
  max-width: 20em;
  padding: 0;
  font-size: 100%;
  overflow: hidden;
  order: 1;
  flex-grow: 0;
  position: relative;
  
  display: table-cell;
  vertical-align: top;
  width: 280px;
}

div#menubar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 50%, rgba(255,255,255,0.01) 100%);
  pointer-events: none;
}
div#menubar ul {
  margin:0 0 0 1em;
  padding:0 0 0 .5em;
}
div#menubar ul li {
  line-height:110%;
}
div#menubar h4 {
  font-size:110%;
}

div#rightbar {
  box-shadow: 0 0 15px rgba(142, 220, 254, 0.4), 0 0 30px rgba(142, 220, 254, 0.1);
  background: linear-gradient(135deg, #353535 0%, #2a2a2a 100%);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  min-width: 15em;
  max-width: 15em;
  padding: 0;
  margin: var(--spacing-small);
  font-size: 90%;
  overflow: hidden;
  order: 3;
  flex-grow: 0;
  position: relative;
}

div#rightbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 50%, rgba(255,255,255,0.01) 100%);
  pointer-events: none;
}
#rightbar .body, #menubar .body {
  padding:0.5em 1em 0 1em;
}

#rightbar ul {
  margin:0 0 0 1em;
  padding:0 0 0 .5em;
}
#rightbar ul li {
  line-height:110%;
}
#rightbar h4 {
  font-size:110%;
}

/* ページ本体 */
div#body {
  box-shadow: 0 0 15px rgba(142, 220, 254, 0.4), 0 0 30px rgba(142, 220, 254, 0.1);
  background: linear-gradient(135deg, #2c3b4b 0%, #243244 100%);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: var(--spacing-large) var(--spacing-large);
  margin: 0 var(--spacing-medium) 0 var(--spacing-medium);
  max-width: 100%;
  order: 2;
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  
  display: table-cell;

  margin-left: 1%;
  margin-right: 1%;
}

div#body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, transparent 50%, rgba(255,255,255,0.01) 100%);
  pointer-events: none;
}

/* ページ本体の画像のレスポンシブ設定 */
div#body img {
  max-width: 95%;                    /* 幅の最大値を100％指定 */
  height: auto;                       /* 縦は幅により自動設定 */
}

div#note {
  clear:both;
  padding:0;
  margin:0;
  word-break:break-all;
}
div#attach {
  clear:both;
  padding:0;
  margin:0;
}
div#toolbar {
  clear:both;
  margin:0;
}
div#lastmodified {
  font-size:70%;
  padding:0;
  margin:0;
}
div#related {
  font-size:80%;
  padding:0;
  margin:16px 0 0 0;
}
div#related .page_passage {
  font-size:70%;
}
div#footer {
  font-size:70%;
  padding:0;
  margin:16px 0 0 0;
}
div#banner {
  float:right;
  margin-top:24px;
}
div#preview {
  color:inherit;
  background-color:#4f4f4f;
}
img#logo {
  float:left;
  margin-right:20px;
}

/* aname.inc.php */
.anchor_super {
  font-size:xx-small;
  vertical-align:super;
  margin-left:.5em;
}

/* list.inc.php */
.page_passage {
  font-size:small;
}

/* calendar*.inc.php */
.style_calendar {
  padding:0;
  border:0;
  margin:3px;
  color:inherit;
  background-color:#CCD5DD;
  text-align:center;
}
.style_td_caltop {
  padding:5px;
  margin:1px;
  color:inherit;
  background-color:#EEF5FF;
  font-size:80%;
  text-align:center;
}
.style_td_today {
  padding:5px;
  margin:1px;
  color:inherit;
  background-color:#FFFFDD;
  text-align:center;
}
.style_td_sat {
  padding:5px;
  margin:1px;
  color:inherit;
  background-color:#DDE5FF;
  text-align:center;
}
.style_td_sun {
  padding:5px;
  margin:1px;
  color:inherit;
  background-color:#FFEEEE;
  text-align:center;
}
.style_td_blank {
  padding:5px;
  margin:1px;
  color:inherit;
  background-color:#EEF5FF;
  text-align:center;
}
.style_td_day {
  padding:5px;
  margin:1px;
  color:inherit;
  background-color:#EEF5FF;
  text-align:center;
}
.style_td_week {
  padding:5px;
  margin:1px;
  color:inherit;
  background-color:#DDE5EE;
  font-size:80%;
  font-weight:bold;
  text-align:center;
}

/* Modern Toolbar Styles */
.toolbar-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-small);
  position: relative;
  margin: 4px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  border-radius: var(--border-radius);
  transition: all var(--transition-medium);
  padding: var(--spacing-small);
  overflow: hidden;
}

.modern-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(4px);
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left var(--transition-medium);
}

.modern-btn:hover::before {
  left: 100%;
}

.modern-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border-color: var(--primary-color);
}

.toolbar-icon-wrapper {
  position: relative;
  display: inline-block;
}

.toolbar-icon-wrapper img {
  display: block;
  transition: filter var(--transition-fast);
}

.toolbar-icon {
  filter: brightness(1.2) contrast(1.1);
}

.modern-btn:hover .toolbar-icon {
  filter: brightness(1.4) contrast(1.2) saturate(1.2);
}

.toolbar-label {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  color: white;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.0);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  padding-top: 18px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.modern-label {
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  font-size: 10px;
  font-weight: 600;
}

/* PC用 menubar スクロールバー 黒基調 */
@media (min-width: 801px) {
  #menubar {
    scrollbar-width: thin;               /* Firefox: 細め */
    scrollbar-color: #555 #111;          /* Firefox: スクロールバー色(つまみ / 背景) */
  }

  /* Chrome / Edge / Safari */
  #menubar::-webkit-scrollbar {
    width: 8px;                          /* スクロールバーの太さ */
  }
  #menubar::-webkit-scrollbar-track {
    background: #111;                    /* 背景 */
  }
  #menubar::-webkit-scrollbar-thumb {
    background-color: #555;              /* つまみ */
    border-radius: 4px;                  /* 丸み */
  }
  #menubar::-webkit-scrollbar-thumb:hover {
    background-color: #777;              /* ホバー時 */
  }
}
#menubar.menu-style-gradient {
  --menu-accent: #3399DD;                /* リンク等のアクセント色 */
  background: linear-gradient(180deg, #2c3b4b 0%, #15171a 100%);
  border-right: 1px solid rgba(255,255,255,0.03);
  box-shadow: inset -8px 0 24px rgba(0,0,0,0.6), 0 0 14px rgba(0,0,0,0.35);
  position: relative;
  padding: 0.6rem 0.9rem;
  color: inherit;
}

/* 薄い光沢オーバーレイ（テクスチャ兼） */
#menubar.menu-style-gradient::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.04));
}

/* 見出し・リンクの調整 */
#menubar.menu-style-gradient h1,
#menubar.menu-style-gradient h2,
#menubar.menu-style-gradient h3 {
  color: rgba(255,255,255,0.95);
  margin: 0 0 0.5rem 0;
}
#menubar.menu-style-gradient a {
  color: var(--menu-accent);
  text-decoration: none;
}
#menubar.menu-style-gradient a:hover {
  text-decoration: underline;
}

/* 高さが長いときに独立スクロール（先に入れたスクロール設定と併用可） */
@media (min-width: 801px) {
  #menubar.menu-style-gradient {
    max-height: 100vh;
    overflow-y: auto;
  }
}

/* Checkbox隠し */
#menubtn_check {
  display: none;
}

/* calendar_viewer.inc.php */
div.calendar_viewer {
  color:inherit;
  background-color:inherit;
  margin-top:20px;
  margin-bottom:10px;
  padding-bottom:10px;
}
span.calendar_viewer_left {
  color:inherit;
  background-color:inherit;
  float:left;
}
span.calendar_viewer_right {
  color:inherit;
  background-color:inherit;
  float:right;
}

/* clear.inc.php */
.clear {
  margin:0;
  clear:both;
}

/* counter.inc.php */
div.counter {
  font-size:70%;
}

/* diff.inc.php */
span.diff_added {
  color:blue;
  background-color:inherit;
}
span.diff_removed {
  color:red;
  background-color:inherit;
}

/* hr.inc.php */
hr.short_line {
  text-align:center;
  width:80%;
  border-style:solid;
  border-color:#333333;
  border-width:1px 0;
}

/* include.inc.php */
h5.side_label {
  text-align:center;
}

/* navi.inc.php */
ul.navi {
  margin:0;
  padding:0;
  text-align:center;
}
li.navi_none {
  display:block;
  float:none;
}
li.navi_left {
  display:block;
  float:left;
  text-align:left;
}
li.navi_right {
  display:block;
  float:right;
  text-align:right;
}

/* new.inc.php */
span.comment_date {
  /*font-size:x-small;*/
  font-size:10px !important;
}
span.new1 {
  color:red;
  background-color:transparent;
  /*font-size:x-small;*/
  font-size:0.75rem !important;/*本文の75%*/
}
span.new5 {
  color:green;
  background-color:transparent;
  /*font-size:x-small;*/
  font-size:0.75rem !important;/*本文の75%*/
}

/* comment.inc.php */
._p_comment_form input[name="msg"] {
  max-width:90%;
}

/* pcomment.inc.php */
._p_pcomment_form input[name="msg"] {
  max-width:90%;
}

/* article.inc.php */
._p_article_form input[name="subject"] {
  max-width:82%;
}

/* popular.inc.php */
span.counter {
  font-size:70%;
}

/* ref.inc.php */
div.img_margin {
  margin-left:32px;
  margin-right:32px;
}

/* vote.inc.php */
td.vote_label {
  color:inherit;
  background-color:#686868;
}
td.vote_td1 {
  color:inherit;
  //background-color:#DDE5FF;
  background-color:#2E3741;
}
td.vote_td2 {
  color:inherit;
  //background-color:#2e3741;
  background-color:#232F3B;
}

/* topicpath.inc.php */
span.topicpath-slash {
  margin:0 0.2em;
}
span.topicpath-top {
  user-select:none;
}

/* bugtrack.inc.php */
tr.bugtrack_list_header th {
  background-color:#ffffcc;
}
tr.bugtrack_list_header th:nth-child(1) {
  min-width: 7em;
}
tr.bugtrack_list_header th:nth-child(2) {
  min-width: 2em;
}
tr.bugtrack_list_header th:nth-child(3) {
  min-width: 4em;
}
tr.bugtrack_list_header th:nth-child(4) {
  min-width: 4em;
}
tr.bugtrack_list_header th:nth-child(5) {
  min-width: 3em;
}
tr.bugtrack_state_proposal td {
  background-color:#ccccff;
}
tr.bugtrack_state_accept td {
  background-color:#ffcc99;
}
tr.bugrack_state_resolved td {
  background-color:#ccffcc;
}
tr.bugtrack_state_pending td {
  background-color:#ffccff;
}
tr.bugtrack_state_cancel td {
  background-color:#cccccc;
}
tr.bugtrack_state_undef td {
  background-color:#ff3333;
}
._p_bugtrack_form input[name="summary"],
._p_bugtrack_form textarea {
  box-sizing:border-box;
  width:35em;
  max-width:99.5%;
}

/* tracker.inc.php */
._p_tracker_form th {
  min-width:5em;
}

/* search2.inc.php  */
.search-result-page-summary {
  font-size:70%;
  color:gray;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#menubtn_check {
  display:none;
}

body label#menubtn {
  display:none;
  position: fixed;
  border: 0;
  border-radius: 0 35% 35% 0;
  background: rgba(70,150,250,0.5);
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
  left: 0;
  touch-action: manipulation;
}

/* Mobile-friendly Responsive layout */
/* 低解像度（スマホ等）メディアクエリ */
@media (max-width: 800px) {             /* 横幅800ピクセル以下のデバイス */

  body {
    position: absolute;
  }
  body label#menubtn {
    display: flex;
  }
  div#contents {
    
    flex-flow:column wrap;
    display: table;                 /* 表示をテーブル（TABLE要素）同様にする */
    table-layout: fixed;            /* テーブル列幅固定 */
    border-spacing: 8px 0;          /* 隣接セル間隔：左右8ピクセル */
    width: 100%;                    /* 幅100％ */
  }
  div#menubar {
    /*display:none;
    width:auto;*/
    max-width:none;
    font-size:100%;
    order:1;

    display: table-footer-group;    /* 表示をテーブルフッタ（TFOOT要素）同様にする */
    width: 100%;                    /* 幅100％ */
  }
  div#rightbar {
    display:none;
    width:auto;
    max-width:none;
    font-size:100%;
    order:3;
  }

  #menubtn_check:checked ~ div#menubar {
    display:block;
  }
  #menubtn_check:checked ~ div#rightbar {
    display:block;
  }
  div#body {
    margin:0 0.25em 0 0.25em;
    order:2;

    display: table-row-group;       /* 表示をテーブルボディ（TBODY要素）同様にする */
    width: 100%;                    /* 幅100％ */
  }
  div#body img {
    max-width:95%;
    height:auto;
  }

  ._p_tracker_form th,._p_tracker_form td {
    display:block;
    text-align:left !important;
    width:auto !important;
    margin:0;
  }
  ._p_tracker_form td input[type=text],
  ._p_tracker_form td textarea {
    box-sizing:border-box;
    width:99.5%;
    font-size: 16px;  /* フォントサイズを16pxに変更 */
  }

  tr.bugtrack_list_header th:nth-child(1) {
    min-width: 4em;
  }
  tr.bugtrack_list_header th:nth-child(2) {
    min-width: 1em;
  }
  tr.bugtrack_list_header th:nth-child(3) {
    min-width: 1em;
  }
  tr.bugtrack_list_header th:nth-child(4) {
    min-width: 3em;
  }
  tr.bugtrack_list_header th:nth-child(5) {
    min-width: 3em;
  }
  ._p_bugtrack_form th,._p_bugtrack_form td {
    display:block;
    text-align:left !important;
    margin:0;
  }
  ._p_bugtrack_form input[name="summary"],
  ._p_bugtrack_form textarea {
    box-sizing:border-box;
    width:99.5%;
  }
}

/*tab.inc.php*/
.plugin-tab {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 15px 5px;
}

.tab-label {
  font-weight: bold;
  min-width: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(98, 98, 98, 0.3);
  border-bottom-color: rgba(98, 98, 98, 1);
  border-radius: 4px 4px 0 0;
  padding: 10px 5px;
  margin-bottom: 10px;
  order: -1;
  flex: 1;
  text-align: center;
}
.tab-content {
  width: 100%;
  display: none;
}
.tab-switch {
  display: none;
}
.tab-switch:checked + .tab-label {
  background: transparent;
  border: 1px solid rgba(98, 98, 98, 1);
  border-bottom: none;
}
.tab-switch:checked + .tab-label + .tab-content {
  display: block;
}



/*tippy.php and tooltip.inc.php*/
/* ツールチップの対象に下線を引く*/
.plugin-tooltip {
    border-bottom: 1px dashed gray;
}
/* ツールチップ内のリンクに下線を引く (noteプラグインと共通) */
[data-tippy-root] a {
    text-decoration: underline whitesmoke solid 1px;
}
/* ツールチップ内のリンク色を通常の文章と同じにする (noteプラグインと共通) */
[data-tippy-root] a:link, [data-tippy-root] a:visited {
    color: unset;
}


@media print {
  a:link,
  a:visited {
    text-decoration:underline;
  }
  img#logo,
  div#navigator,
  div#menubar,
  div#rightbar,
  div#related,
  div#attach,
  div#toolbar
}