/*素人なのでぐちゃぐちゃです。
無断でページやCSSを完全にコピーするのはおやめください。報告あったので既に3件確認されています。
その度に「同じ運営ですか？」と言われ困ってしまいます。勿論私もネットのコピペだらけで全然オリジナルではないです。
ただ流石にまるっきり一緒だと周りに言われて揉めるのでせめてわからないようにちょっと変えて下さい
ページ構造と文章も揉めるのでやめときましょう。もしくはdiscordで一声かけてくれればなんとでもしますのでお願いします*/
.uk-link-muted,.uk-link-muted a {
  color: #f8f8ff;
}
.uk-link-muted,.uk-link-muted a:hove {
  color: #ff7f50;
}

p {
    margin: 5px;
}

#wiki_menu p {
    font-size:13px;/*デフォ*/
}
#site_header h1 a{
  color: #ffffff;*/
  font-weight: bold !important;
}
section#comment-form form button.uk-button-large {
    background-color: #b22222;
}
/*ページ*/
div.uk-text-small.uk-text-right {
	visibility:hidden;
}
#wiki_menu h1{
  color: #ffffff;/*文字色*/
  font-weight: bold !important;
  margin: 0px -10px 0px -10px;
  padding: 0px 5px 0px 5px;
  border: 0px;
  border-left: solid 0px #E67C7E;
}

h1 {
  padding: 0.5em 0;
  background: #2a2a2a;
  color: #ffffff;
  font-weight: bold !important;
  padding-left: 10px;
}

h1:before {
    content: url("https://img.wiki3.jp/valheimjp/valheimicon.png");  /*画像のURL*/
    margin-right:5px;  /*画像右の余白*/
    position:relative;
    top:5px;      /*上からの位置*/
    left:0;       /*左からの位置*/

}
#wiki_menu h2{
  color: #ffffff;/*文字色*/
  background: #4d4d4d;/*背景色*/
  font-weight: bold !important;
  margin: 0px -10px 0px -10px;
  padding: 0px 5px 0px 5px;
  border: 0px;
  border-left: solid 0px #E67C7E;/*左線*/
}

#wiki_menu h3{
  padding: 0.0em 0.0em;/*文字の上下 左右の余白*/
  color: #4d4d4d;/*文字色*/
    background: #ffffff;
  font-size: 13px;
  font-weight: bold !important;
  border-bottom: solid 1px #4d4d4d;/*下線*/
  margin: 0px;
  padding: 0px;
}

h2{
  padding: 0.4em 0.5em;/*文字の上下 左右の余白*/
  color: #ffffff;/*文字色*/
  background: #4d4d4d;/*背景色*/
  font-weight: bold !important;
}

h3{
  padding: 0.4em 0.5em;/*文字の上下 左右の余白*/
  color: #4d4d4d;/*文字色*/
  background: #f5f5f5;/*背景色*/
  font-weight: bold !important;
  border-bottom: solid 2px #4d4d4d;/*下線*/
  font-weight: bold !important;
}

#wiki_menu td a:hover {
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.6);
    opacity: 0.7;
    transition: 0.2s;
}
a:hover img {
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.6);
    opacity: 0.7;
    transition: 0.2s;
}
body>div.uk-container.uk-container-center>div.uk-grid>div[class*=uk-width-].sidebar { width: 210px; }/*メニュー*/
body>div.uk-container.uk-container-center>div.uk-grid>div[class*=uk-width-].main_content { width: 790px; }/*メイン*/
body>div.uk-container.uk-container-center { width: 1010px; }
.uk-container { max-width: 1010px; }

/* PC用コンパクト表示 */
.vh-compact-toggle {
  position: fixed;
  left: 14px;
  bottom: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.35);
  border-radius: 50%;
  background: #2a2a2a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  font-size: 0;
  cursor: pointer;
  z-index: 9997;
}
.vh-compact-toggle::before {
  content: "↔";
  font-size: 19px;
  line-height: 1;
}
.vh-compact-open,
.vh-compact-backdrop { display: none; }

html.vh-compact-mode body > div.uk-container.uk-container-center {
    left: 0 !important;
    width: min(790px, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
  }
  html.vh-compact-mode body > div.uk-container.uk-container-center > div.uk-grid > div.main_content {
    width: 100% !important;
  }
  html.vh-compact-mode body > div.uk-container.uk-container-center > div.uk-grid > div.sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    float: none !important;
    display: block !important;
    width: min(84vw, 280px) !important;
    padding: 10px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 8px 0 24px rgba(0,0,0,.2);
    transform: translateX(-105%);
    transition: transform .2s ease;
    z-index: 10001;
  }
  html.vh-compact-mode.vh-left-open body > div.uk-container.uk-container-center > div.uk-grid > div.sidebar {
    transform: translateX(0);
  }
  html.vh-compact-mode .vh-compact-open {
    position: fixed;
    top: 42%;
    left: 0;
    display: block;
    width: 32px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: #2a2a2a;
    color: #fff;
    cursor: pointer;
    z-index: 9997;
  }
  html.vh-compact-mode .vh-compact-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgba(0,0,0,.28);
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 10000;
  }
html.vh-compact-mode.vh-left-open .vh-compact-backdrop {
    visibility: visible;
    opacity: 1;
}
@media (max-width: 750px) {
  html:not(.vh-compact-mode) .vh-compact-toggle,
  html:not(.vh-compact-mode) .vh-compact-open,
  html:not(.vh-compact-mode) .vh-compact-backdrop { display: none !important; }
}
/*ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
#main_content table.uk-table th,
#main_content table.uk-table td {
  padding: 3px;
}

/* スタイル変更 */

/*ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

/*ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* 本文(#main_content)内だけを対象に、強制上書き */
#main_content .uk-block {
  display: inline-block;
  width: auto;
  max-width: 100%;
  padding: .6em .9em;
  margin: .4em 0;
  background: #f7f7f7;        /* ←ここを好きな色に変更可能 */
  color: #000;                /* 黒文字 */
  border:1px solid #ddd;  /* ほんのり枠 */
  border-radius: .5em;
  vertical-align: baseline;
}
#main_content .uk-block > p{
  margin: 0;
}



/*ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
/* 右下固定ボタンの位置・見た目 */
#page-top{
  position: fixed;
  bottom: 40px;   /* 好きに調整 */
  right: 40px;    /* 好きに調整 */
  z-index: 9999;
}
#page-top .uk-icon-button{
  width: 48px; height: 48px; line-height: 48px; /* 少し大きめで押しやすく */
  border-radius: 20px;
  opacity: .9; transition: transform .6s ease, opacity .6s ease;
}
#page-top .uk-icon-button:hover{ transform: translateY(10px); opacity: 1; }

/* CKEditor内へ複製された閲覧用TOPボタンは編集領域に表示しない */
.cke_editable #page-top {
  display: none !important;
}

/* スムーススクロール（UIkitのsmooth-scrollが効かない時の保険） */
html{ scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }







/* ===== fix: global box sizing & overflow guard ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { max-width: 100%; }



/* ≤750px はPC枠(728x90)を殺す。モバイル枠(320x50)は生かす */
@media only screen and (max-width: 750px) {
  .fluct-unit-1000221468, /* ヘッダーPC 728x90 */
  .fluct-unit-1000221469  /* フッターPC 728x90 */
  { display: none !important; }
}

/* =========================
   インラインスタイル再設計
   ========================= */


/* BLUE：情報・補足 */
#main_content .uk-text-primary {
    display: inline-block;
    color: #245f88 !important;
    font-weight: bold;

    padding: 2px 7px;
    margin: 0 2px;

    background: #eef6fb;
    border: 1px solid #c7ddeb;
    border-radius: 4px;
}

/* GREEN：推奨・有利・安全 */
#main_content .uk-text-success {
    display: inline-block;
    color: #3f6845 !important;
    font-weight: bold;

    padding: 2px 7px;
    margin: 0 2px;

    background: #eef6ef;
    border: 1px solid #c8ddca;
    border-radius: 4px;
}

/* ORANGE：注意 */
#main_content .uk-text-warning {
    display: inline-block;
    color: #875d17 !important;
    font-weight: bold;

    padding: 2px 7px;
    margin: 0 2px;

    background: #fff5df;
    border: 1px solid #e7d19b;
    border-radius: 4px;
}

/* RED：危険・非推奨 */
#main_content .uk-text-danger {
    display: inline-block;
    color: #963838 !important;
    font-weight: bold;

    padding: 2px 7px;
    margin: 0 2px;

    background: #fff0f0;
    border: 1px solid #e4bcbc;
    border-radius: 4px;
}

/* BADGE：本文中の小カテゴリラベル */
#main_content .uk-badge {
    display: inline-block;

    height: auto;
    min-width: 0;

    padding: 2px 7px;
    margin: 0 3px;

    background: #fff !important;
    color: #444 !important;

    font-size: 11px;
    font-weight: bold;
    line-height: 1.4;

    border: 1px solid #777;
    border-radius: 2px;

    box-shadow: none;
    vertical-align: 1px;
}


/*-------------アラートボックス----------*/
/* -------------------------------------------
   ALERT
   1行だけ  → コンパクトなグレーラベル
   複数段落 → グレータイトル＋白本文
------------------------------------------- */

#main_content .uk-alert {
    display: inline-block;
    width: auto;
    max-width: 100%;

    margin: .7em 0;
    padding: 6px 11px;

    background: #3a3a3a;
    color: #fff;

    font-weight: bold;
    line-height: 1.5;

    border: 1px solid #555;
    border-radius: 4px;

    box-shadow: 2px 2px 4px rgba(0,0,0,.12);

    vertical-align: top;
    overflow: hidden;
}


/* -------------------------------------------
   <p>があるAlert＝タイトル＋本文タイプ
------------------------------------------- */

#main_content .uk-alert:has(> p) {
    padding: 0;

    background: #fff;
    color: #333;

    font-weight: normal;
}


/* 1段落目＝タイトル */
#main_content .uk-alert > p:first-child {
    margin: 0;
    padding: 7px 12px;

    background: #3a3a3a;
    color: #fff;

    font-size: 1em;
    font-weight: bold;
    line-height: 1.5;
}


/* 2段落目以降＝本文 */
#main_content .uk-alert > p:not(:first-child) {
    margin: 0;
    padding: 10px 12px;

    background: #fff;
    color: #333;
}


/* 本文が複数段落ある場合 */
#main_content .uk-alert > p:not(:first-child) + p {
    padding-top: 0;
}


/* 本文内リンク */
#main_content .uk-alert > p:not(:first-child) a {
    color: #333;
    text-decoration: underline;
}


/* 一行Alert内リンク */
#main_content .uk-alert:not(:has(> p)) a {
    color: #fff;
    text-decoration: underline;
}


/* =========================================================
   Page Navigator
   ========================================================= */

.vh-page-nav,
.vh-page-nav * {
  box-sizing: border-box;
}

.vh-page-nav {
  position: fixed;
  top: 47px;
  bottom: 58px;
  left: calc(50% + 403px);
  width: 225px;

  display: flex;
  flex-direction: column;

  background: rgba(250,250,250,.98);
  color: #111;

  border-left: 1px solid rgba(0,0,0,.20);
  border-right: 1px solid rgba(0,0,0,.10);
  box-shadow: -3px 0 10px rgba(0,0,0,.035);

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Wiki3上部の管理・ログインメニューより背面に置く */
  z-index: 900;
}

.vh-page-nav[hidden],
.vh-page-nav__open[hidden] {
  display: none !important;
}

.vh-page-nav__header {
  flex: 0 0 auto;
  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: .5em 10px;

  background: #2a2a2a;
  border-bottom: 1px solid rgba(0,0,0,.22);
}

.vh-page-nav.no-title .vh-page-nav__header {
  display: none;
}

.vh-page-nav__title {
  min-width: 0;

  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;

  overflow-wrap: anywhere;
}

.vh-page-nav__close {
  display: none;
}

.vh-page-nav__list {
  flex: 1 1 auto;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;

  padding: 10px 0 28px;

  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
}

.vh-page-nav__list::-webkit-scrollbar {
  width: 5px;
}

.vh-page-nav__list::-webkit-scrollbar-track {
  background: transparent;
}

.vh-page-nav__list::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 8px;
}

.vh-page-nav__item {
  margin: 0;
  padding: 0;
}

.vh-page-nav__link {
  width: calc(100% - 16px);
  display: block;

  margin: 1px 8px;
  padding: 7px 10px;

  appearance: none;
  border: 0;
  border-radius: 2px;

  background: transparent;
  color: #111;

  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;

  cursor: pointer;

  transition:
    background-color .12s ease,
    color .12s ease;
}

.vh-page-nav__item--h1 .vh-page-nav__link {
  font-weight: 600;
}

.vh-page-nav__item--h2 .vh-page-nav__link {
  padding-left: 22px;
}

.vh-page-nav__item--h3 .vh-page-nav__link {
  padding-left: 34px;
}

.vh-page-nav__link:hover {
  background: #ededed;
  color: #111;
}

.vh-page-nav__link.is-current {
  background: #202020;
  color: #fff;
  font-weight: 700;
}

.vh-page-nav__open,
.vh-page-nav__backdrop {
  display: none;
}


/* narrow viewport / mobile */
@media (max-width: 1270px), (max-height: 700px) {

  .vh-page-nav {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;

    width: min(84vw, 330px);
    height: 100vh;

    border-left: 1px solid rgba(0,0,0,.22);
    border-right: 0;
    box-shadow: -10px 0 28px rgba(0,0,0,.12);

    transform: translateX(105%);
    transition: transform .2s ease;

    z-index: 9999;
  }

  .vh-page-nav.is-open {
    transform: translateX(0);
  }

  .vh-page-nav__header {
    min-height: 56px;
    padding: 10px 14px;
    background: #f7f7f7;
  }

  .vh-page-nav__title {
    color: #171717;
  }

  .vh-page-nav.no-title .vh-page-nav__header {
    display: flex;
    justify-content: flex-end;
  }

  .vh-page-nav__title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .vh-page-nav__close {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;

    appearance: none;
    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #444;

    font-size: 22px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
  }

  .vh-page-nav__close:hover {
    background: #eaeaea;
    color: #111;
  }

  .vh-page-nav__list {
    padding: 9px 0 24px;
    -webkit-overflow-scrolling: touch;
  }

  .vh-page-nav__link {
    padding-top: 9px;
    padding-bottom: 9px;

    font-size: 13px;
  }

  .vh-page-nav__item--h2 .vh-page-nav__link {
    padding-left: 24px;
  }

  .vh-page-nav__item--h3 .vh-page-nav__link {
    padding-left: 38px;
  }

  .vh-page-nav__open {
    position: fixed;
    right: 14px;
    bottom: 92px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    appearance: none;
    border: 1px solid rgba(0,0,0,.35);
    border-radius: 50%;

    background: #222;
    color: #fff;

    box-shadow: 0 4px 14px rgba(0,0,0,.16);

    font-size: 17px;
    line-height: 1;

    cursor: pointer;
    z-index: 9997;
  }

  .vh-page-nav__backdrop {
    position: fixed;
    inset: 0;

    display: block;

    background: rgba(0,0,0,.28);

    opacity: 0;
    visibility: hidden;

    transition:
      opacity .2s ease,
      visibility .2s ease;

    z-index: 9998;
  }

  .vh-page-nav__backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  html.vh-nav-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-page-nav,
  .vh-page-nav__backdrop {
    transition: none !important;
  }
}


/* PC：右ナビを含めた全体の視覚中心を合わせる */
@media (min-width: 1271px) and (min-height: 701px) {
  body > div.uk-container.uk-container-center {
    position: relative;
    left: -112px;
  }
}


/* ページタイトル帯：ページトップへのショートカット */
.vh-page-nav__title {
  cursor: pointer;
  user-select: none;
}

.vh-page-nav__title:hover {
  opacity: .84;
}

.vh-page-nav__title:focus-visible {
  outline: 1px solid rgba(255,255,255,.85);
  outline-offset: 3px;
}


@media (max-width: 1270px), (max-height: 700px) {
  .vh-page-nav__title {
    cursor: default;
    user-select: text;
  }

  .vh-page-nav__title:hover {
    opacity: 1;
  }

  .vh-page-nav__title:focus-visible {
    outline: none;
  }
}



/* =========================================================
   Left Menu Flyout / Mega Menu
   ========================================================= */

#wiki_menu.vh-left-menu-ready {
  position: relative;
  overflow: visible;
}

#wiki_menu.vh-left-menu-ready > .vh-left-menu__source {
  display: none !important;
}

#wiki_menu .vh-left-menu__trigger {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 31px;
  cursor: default;
  user-select: none;
  padding: 4px 24px 4px 5px !important;
  background: #fff !important;
  color: #111 !important;
  border-bottom: 1px solid #e2e2e2;
  transition: background-color .12s ease, color .12s ease;
}

#wiki_menu .vh-left-menu__trigger::after {
  content: '›';
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-52%);
  color: #666;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

#wiki_menu .vh-left-menu__trigger:hover,
#wiki_menu .vh-left-menu__trigger.is-open,
#wiki_menu .vh-left-menu__trigger:focus-visible {
  background: #f1f1f1 !important;
  color: #111 !important;
}

#wiki_menu .vh-left-menu__trigger:focus-visible {
  outline: 1px solid rgba(0,0,0,.45);
  outline-offset: -2px;
}

.vh-left-flyout,
.vh-left-flyout * {
  box-sizing: border-box;
}

.vh-left-flyout {
  position: absolute;
  top: var(--vh-flyout-top, 0px);
  left: calc(100% + 8px);
  z-index: 10020;

  display: none;

  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,.20);
  border-radius: 3px;
  box-shadow: 0 8px 26px rgba(0,0,0,.12);

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vh-left-flyout.is-open {
  display: block;
}

/* hover時、左メニューとパネルの8pxの隙間を透明な橋でつなぐ */
.vh-left-flyout::before {
  content: '';
  position: absolute;
  top: 0;
  right: 100%;
  width: 9px;
  height: 100%;
}

/* ----- text flyout ----- */
.vh-left-flyout--text {
  width: 330px;
  max-width: min(330px, calc(100vw - 24px));
  padding: 10px;
}

.vh-left-flyout__group + .vh-left-flyout__group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #dedede;
}

.vh-left-flyout__group-title {
  margin: 0 0 5px;
  padding: 0 5px;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.vh-left-flyout__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
}

.vh-left-flyout__link {
  display: block;
  padding: 7px 8px;
  border-radius: 2px;
  color: #171717 !important;
  font-size: 12.5px;
  line-height: 1.35;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

.vh-left-flyout__link:hover,
.vh-left-flyout__link:focus-visible {
  background: #e9e9e9;
  color: #111 !important;
  outline: none;
}

/* ----- mega menu ----- */
.vh-left-flyout--mega {
  width: 500px;
  max-width: min(500px, calc(100vw - 24px));
  padding: 12px;
}

.vh-left-mega__note {
  margin: 0 0 8px;
  color: #555;
  font-size: 15px;
  line-height: 1.5;
}

.vh-left-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.vh-left-mega__item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 8px;
  border: 1px solid transparent;
  border-radius: 3px;

  color: #171717 !important;
  text-decoration: none !important;
  background: transparent;

  transition: background-color .12s ease, border-color .12s ease;
}

.vh-left-mega__item:hover,
.vh-left-mega__item:focus-visible {
  background: #ededed;
  border-color: #d8d8d8;
  outline: none;
}

/* 既存の global a:hover img の影・opacity をこのUIでは打ち消す */
.vh-left-mega__item:hover .vh-left-mega__icon,
.vh-left-mega__item:focus-visible .vh-left-mega__icon {
  box-shadow: none !important;
  opacity: 1 !important;
}

.vh-left-mega__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: 0;
  box-shadow: none;
}

.vh-left-mega__label {
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .vh-left-flyout {
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }
}

/* touch / narrow: h2直下にtap展開 */
@media (hover: none), (pointer: coarse), (max-width: 750px) {
  #wiki_menu .vh-left-menu__trigger {
    cursor: pointer;
  }

  #wiki_menu .vh-left-menu__trigger::after {
    content: '+';
    font-size: 15px;
    font-weight: 700;
  }

  #wiki_menu .vh-left-menu__trigger.is-open::after {
    content: '−';
  }

  .vh-left-flyout {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    max-width: none;

    margin: 0 -10px 5px;
    border-width: 0 1px 1px;
    border-radius: 0;
    box-shadow: none;
  }

  .vh-left-flyout::before {
    display: none;
  }

  .vh-left-flyout--text {
    padding: 8px 10px 10px;
  }

  .vh-left-flyout--mega {
    padding: 9px 10px 11px;
  }

  .vh-left-mega__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
  }

  .vh-left-mega__item {
    padding: 7px;
  }

  .vh-left-mega__icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #wiki_menu .vh-left-menu__trigger,
  .vh-left-mega__item {
    transition: none !important;
  }
}

html:not(.vh-left-menu-ready) #wiki_menu {
  visibility: hidden;
  animation: vh-menu-fallback 0s 1.2s forwards;
}

@keyframes vh-menu-fallback {
  to { visibility: visible; }
}

/* ===== ナビ文字の視認性調整 ===== */

/* 右：ページ内目次 */
.vh-page-nav__title {
  font-size: 16px;
}

.vh-page-nav__link {
  font-size: 15px;
  font-weight: 600;
}

/* 左：テキストフライアウト */
.vh-left-flyout__link {
  font-weight: 600;
}

.vh-recipe-detail {
  display: block;
  margin: 0.2em 0 0.45em;
  color: #666;
  font-size: 0.88em;
  line-height: 1.55;
}

.vh-recipe-detail > span {
  display: block;
}

.vh-recipe-material--current {
  color: #c62828;
  font-weight: 700;
}

.vh-recipe-materials a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.vh-item-search {
  position: relative;
  margin: 8px 0 0.8em;
  line-height: normal;
}

.vh-item-search__input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0.55em 0.65em;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font: inherit;
}

.vh-item-search__input:focus {
  border-color: #4b78a8;
  outline: 2px solid rgba(75, 120, 168, 0.22);
  outline-offset: 1px;
}

.vh-item-search__results {
  position: absolute;
  z-index: 10020;
  top: calc(100% + 3px);
  right: 0;
  left: 0;
  max-height: 18em;
  overflow-y: auto;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

.vh-item-search__option {
  display: block;
  padding: 0.5em 0.65em;
  color: #222;
  line-height: 1.35;
  text-decoration: none;
}

.vh-item-search__option:hover,
.vh-item-search__option:focus,
.vh-item-search__option.is-active {
  background: #e8f0f8;
  color: #173b62;
}

/* =========================================================
   Link Grid / Editor Table Helper
   ========================================================= */

.uk-overflow-container:has(> table.vh-compact-table),
.uk-overflow-container:has(> table.vh-link-grid) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 短い2～3列表などを、内容に必要な幅まで縮める */
table.vh-compact-table {
  width: auto !important;
  max-width: 100% !important;
  table-layout: auto !important;
}

table.vh-link-grid {
  width: auto !important;
  max-width: none !important;
  table-layout: auto !important;
  border-collapse: collapse;
}

table.vh-link-grid td {
  position: relative;
  box-sizing: border-box;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  padding: 7px 5px !important;
  text-align: center;
  vertical-align: top;
  transition: background-color .12s ease, box-shadow .12s ease;
}

table.vh-link-grid td:has(a[href]) {
  cursor: pointer;
}

table.vh-link-grid td:has(a[href]):hover {
  background: #f2f2f2;
  box-shadow: inset 0 0 0 1px #999;
}

table.vh-link-grid td a {
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
  line-height: 1.35;
}

table.vh-link-grid td img {
  display: block;
  width: 48px !important;
  height: 48px !important;
  margin: 0 auto 3px;
  object-fit: contain;
}

table.vh-link-grid.vh-link-grid--small td {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  padding: 4px 2px !important;
}

table.vh-link-grid.vh-link-grid--small td img {
  width: 40px !important;
  height: 40px !important;
}

/* 武器カテゴリなど、多項目をPCで横一列に収めるメニュー */
table.vh-link-grid.vh-link-grid--dense {
  width: 100% !important;
  min-width: 768px !important;
  table-layout: fixed !important;
}

table.vh-link-grid.vh-link-grid--dense td {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 4px 2px !important;
}

table.vh-link-grid.vh-link-grid--dense td img {
  width: 40px !important;
  height: 40px !important;
}

/* ============================================================
   Card Grid / Accordion / Balloon / Unified Editor Helper
   ============================================================ */
/* Wiki3 editor content helper */
#vh-editor-content-helper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 12px;
  padding: 9px;
  background: #f4f4f4;
  border: 1px solid #bbb;
}

#vh-editor-content-helper .vh-editor-helper__title {
  margin-right: 4px;
}

#vh-editor-content-helper .vh-editor-helper__groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex-basis: 100%;
  gap: 6px;
}

#vh-editor-content-helper details {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 3px;
}

#vh-editor-content-helper details[open] {
  grid-column: 1 / -1;
}

#vh-editor-content-helper summary {
  padding: 7px 10px;
  background: #e9e9e9;
  color: #222;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

#vh-editor-content-helper details[open] summary {
  border-bottom: 1px solid #bbb;
}

#vh-editor-content-helper details > span {
  border: 0 !important;
}

@media (max-width: 700px) {
  #vh-editor-content-helper .vh-editor-helper__groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#vh-editor-content-helper .vh-editor-helper__table-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex-basis: 100%;
  padding: 7px;
  background: #fff;
  border: 1px solid #ccc;
}

#vh-editor-content-helper input[data-role="column-width"] {
  box-sizing: border-box;
  width: 64px;
  min-height: 32px;
  padding: 5px 6px;
  border: 1px solid #999;
  text-align: right;
}

#vh-editor-content-helper button {
  min-height: 32px;
  padding: 5px 10px;
  background: #fff;
  color: #222;
  border: 1px solid #777;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

#vh-editor-content-helper button:hover {
  background: #e9e9e9;
}

#vh-editor-content-helper .vh-editor-helper__card-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex-basis: 100%;
  padding: 7px;
  background: #fff;
  border: 1px solid #ccc;
}

#vh-editor-content-helper .vh-editor-helper__toggle-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex-basis: 100%;
  padding: 7px;
  background: #fff;
  border: 1px solid #ccc;
}

#vh-editor-content-helper .vh-editor-helper__balloon-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex-basis: 100%;
  padding: 7px;
  background: #fff;
  border: 1px solid #ccc;
}

#vh-editor-content-helper input[data-role="toggle-title"] {
  box-sizing: border-box;
  width: 260px;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #999;
}

#vh-editor-content-helper input[data-role="card-name"] {
  box-sizing: border-box;
  width: 220px;
  max-width: 100%;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #999;
}

#vh-editor-content-helper textarea[data-role="card-bulk"] {
  box-sizing: border-box;
  width: 250px;
  max-width: 100%;
  height: 68px;
  padding: 5px 8px;
  resize: vertical;
  border: 1px solid #999;
  font: inherit;
}

/* 名前付き開閉ブロック */
.region_area.vh-toggle {
  margin: 8px 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.region_area.vh-toggle > .region_switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: #333;
  border: 1px solid #333;
  border-radius: 3px 3px 0 0;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
  -webkit-user-select: none;
  user-select: none;
}

.region_area.vh-toggle > .region_switch > .vh-toggle-title {
  min-width: 0;
  padding: 9px 12px;
  color: #333;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.region_area.vh-toggle > .region_switch > .region_open,
.region_area.vh-toggle > .region_switch > .region_close {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  box-sizing: border-box;
  width: 42px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  color: transparent;
  background: #fff;
  border: 0;
  border-left: 1px solid #333;
  border-radius: 0;
  font-size: 0;
}

.region_area.vh-toggle > .region_switch > .region_open:not(.uk-hidden),
.region_area.vh-toggle > .region_switch > .region_close:not(.uk-hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.region_area.vh-toggle > .region_switch > .region_open::before,
.region_area.vh-toggle > .region_switch > .region_close::before {
  content: '▼';
  color: #333;
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

.region_area.vh-toggle > .region_switch > .region_close::before {
  content: '▲';
}

.region_area.vh-toggle > .region_switch:hover {
  background: #fafafa;
  border-color: #222;
}

.region_area.vh-toggle > .region_switch:hover > .region_open,
.region_area.vh-toggle > .region_switch:hover > .region_close {
  background: #eee;
}

.region_area.vh-toggle > .region_content {
  box-sizing: border-box;
  margin-top: 0;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid #aaa;
  border-top: 0;
}

/* 編集画面では閉じた本文も常時見せ、入力場所を明確にする。 */
.cke_editable .region_area.vh-toggle > .region_content.uk-hidden {
  display: block !important;
  min-height: 72px;
  outline: 0;
}

/* 対話形式用の左右吹き出し */
.vh-dialogue {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  margin: 14px 0;
}

.vh-dialogue--right {
  flex-direction: row-reverse;
}

.vh-dialogue__avatar {
  position: relative;
  flex: 0 0 72px;
  box-sizing: border-box;
  width: 72px;
  min-height: 72px;
  text-align: center;
}

.vh-dialogue__avatar p {
  margin: 0;
  padding: 0;
}

.vh-dialogue__avatar img {
  display: block;
  width: auto;
  max-width: 72px;
  height: auto;
  max-height: 72px;
  margin: 0 auto;
  object-fit: contain;
}

.cke_editable .vh-dialogue__avatar {
  border: 1px dashed #999;
  background: #f7f7f7;
}

.cke_editable .vh-dialogue__avatar:not(:has(img))::before {
  content: '画像欄';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 11px;
  pointer-events: none;
}

.vh-balloon {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: fit-content;
  min-width: 120px;
  max-width: calc(100% - 24px);
  padding: 9px 12px;
  color: #333;
  background: #fff;
  border: 2px solid #555;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.vh-dialogue > .vh-balloon {
  flex: 0 1 auto;
  min-width: 120px;
  max-width: calc(100% - 84px);
  margin: 0;
}

.vh-balloon--left {
  margin: 12px auto 12px 18px;
}

.vh-balloon--right {
  margin: 12px 18px 12px auto;
}

.vh-balloon::before,
.vh-balloon::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.vh-balloon--left::before {
  top: 16px;
  left: -21px;
  border-width: 10px;
  border-color: transparent #555 transparent transparent;
}

.vh-balloon--left::after {
  top: 18px;
  left: -16px;
  border-width: 8px;
  border-color: transparent #fff transparent transparent;
}

.vh-balloon--right::before {
  top: 16px;
  right: -21px;
  border-width: 10px;
  border-color: transparent transparent transparent #555;
}

.vh-balloon--right::after {
  top: 18px;
  right: -16px;
  border-width: 8px;
  border-color: transparent transparent transparent #fff;
}

.vh-balloon > :first-child {
  margin-top: 0;
}

.vh-balloon > :last-child {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .vh-dialogue {
    gap: 9px;
  }

  .vh-dialogue__avatar {
    flex-basis: 56px;
    width: 56px;
    min-height: 56px;
  }

  .vh-dialogue__avatar img {
    max-width: 56px;
    max-height: 56px;
  }

  .vh-dialogue > .vh-balloon {
    max-width: calc(100% - 65px);
  }
}

#vh-editor-content-helper .vh-editor-helper__status {
  flex-basis: 100%;
  min-height: 1.4em;
  color: #28643a;
  font-size: 12px;
}

#vh-editor-content-helper .vh-editor-helper__status.is-error {
  color: #a12626;
}

table.uk-table th.vh-cell-content-width,
table.uk-table td.vh-cell-content-width {
  width: 1% !important;
  white-space: nowrap;
}

/* 名前だけで作るレスポンシブ・カードグリッド */
ul.vh-card-grid {
  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  gap: 0;
  margin: 8px 0;
  padding: 0;
  list-style: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}

ul.vh-card-grid > li {
  position: relative;
  min-width: 0;
  flex: 0 0 92px;
  box-sizing: border-box;
  min-height: 90px;
  margin: 0 -1px -1px 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #553522 0%, #43291b 58%, #342016 100%);
  border: 1px solid #8c6244;
  border-radius: 1px;
  color: #f1e4c8;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 1px #15110d;
  box-shadow:
    inset 1px 1px 0 rgba(255, 239, 202, .12),
    inset -1px -1px 0 rgba(0, 0, 0, .48),
    1px 1px 0 #8c6244;
}

ul.vh-card-grid > li > a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 6px 3px;
  flex-direction: column;
  color: #f1e4c8;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 1px #15110d;
  transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}

ul.vh-card-grid > li > a:hover,
ul.vh-card-grid > li > a:focus-visible {
  background: linear-gradient(145deg, #67432b, #4b2e1e);
  box-shadow:
    inset 0 0 0 2px #d2a348,
    inset 1px 1px 0 rgba(255, 244, 209, .18),
    0 0 5px rgba(216, 164, 67, .35);
  color: #fff4d8;
}

ul.vh-card-grid > li:hover,
ul.vh-card-grid > li:focus-within {
  z-index: 1;
}

ul.vh-card-grid .vh-card-grid__image {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 3px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .38));
}

ul.vh-card-grid .vh-card-grid__label {
  overflow-wrap: anywhere;
  font-weight: 600;
}

ul.vh-card-grid .vh-card-grid__label--long {
  font-size: 12px;
  line-height: 1.18;
}

ul.vh-card-grid .vh-card-grid__label--very-long {
  font-size: 11px;
  line-height: 1.15;
}

ul.vh-card-grid > li.is-image-missing::before {
  content: '画像なし';
  display: block;
  padding-top: 8px;
  color: #777;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 520px) {
  ul.vh-card-grid {
    width: 100%;
    gap: 0;
  }

  ul.vh-card-grid > li {
    flex-basis: calc((100% - 12px) / 5);
    min-height: 84px;
  }

  ul.vh-card-grid .vh-card-grid__image {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 340px) {
  ul.vh-card-grid .vh-card-grid__image {
    width: 48px;
    height: 48px;
  }
}

/* ============================================================
   Console command copy grid
   ============================================================ */
.vh-console-search {
  box-sizing: border-box;
  width: min(420px, 100%);
  min-height: 38px;
  margin: 0 0 6px;
  padding: 7px 10px;
  border: 1px solid #999;
  border-radius: 3px;
  background: #fff;
  color: #222;
  font: inherit;
}

.vh-console-search:focus {
  border-color: #444;
  outline: 2px solid rgba(0,0,0,.12);
  outline-offset: 1px;
}

.vh-console-search-status {
  margin: 0 0 8px;
  color: #555;
  font-size: 12px;
  font-weight: 700;
}

ul.vh-console-results {
  margin: 0 0 18px !important;
}

ul.vh-console-grid[hidden],
ul.vh-console-grid > li[data-command][hidden] {
  display: none !important;
}

ul.vh-console-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

ul.vh-console-grid > li[data-command] {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 66px;
  padding: 10px 38px 10px 12px;
  overflow: hidden;
  color: #222;
  font-weight: bold;
  line-height: 1.35;
  background: #f7f7f7;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease;
}

ul.vh-console-grid > li[data-command]::before {
  content: attr(data-command);
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #666;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  order: 2;
}

ul.vh-console-grid .vh-console-title {
  display: block;
  margin: 0;
  padding: 0;
  color: #222;
  font-weight: bold;
  line-height: 1.35;
  background: transparent;
  order: 0;
}

ul.vh-console-grid .vh-console-note {
  display: block;
  margin-top: 4px;
  color: #555;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.4;
  order: 1;
}

ul.vh-console-grid > li[data-command]::after {
  content: "⧉";
  position: absolute;
  top: auto;
  right: 12px;
  bottom: 10px;
  color: #777;
  font-size: 20px;
  line-height: 1;
  transform: none;
}

ul.vh-console-grid > li[data-command]:hover {
  background: #fff;
  border-color: #777;
  transform: translateY(-1px);
}

ul.vh-console-grid > li[data-command]:focus-visible {
  outline: 3px solid rgba(193, 46, 69, .3);
  outline-offset: 2px;
}

ul.vh-console-grid > li[data-command].is-copy-success {
  color: #fff;
  background: #343434;
  border-color: #343434;
}

ul.vh-console-grid > li[data-command].is-copy-success::before {
  content: attr(data-copy-status);
  color: #fff;
}

ul.vh-console-grid > li[data-command].is-copy-success .vh-console-note {
  color: #ddd;
}

ul.vh-console-grid > li[data-command].is-copy-success .vh-console-title {
  color: #fff;
}

ul.vh-console-grid > li[data-command].is-copy-success::after {
  content: "✓";
  color: #fff;
}

ul.vh-console-grid > li[data-command].is-copy-error {
  background: #fff1f1;
  border-color: #b33;
}

ul.vh-console-grid > li[data-command].is-copy-error::before {
  content: attr(data-copy-status);
  color: #a00;
}

@media (max-width: 520px) {
  ul.vh-console-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  ul.vh-console-grid > li[data-command] {
    min-height: 58px;
  }

}


