@charset "utf-8";
/* =========================================================
   auriga.css — ROギルド偽りの神様 共通スタイル（2026 改修）
   旧 069.css の配色・見出しの雰囲気を引き継いだ近代版。
   旧クラス・ID（#update #menu #table2 .c .r .l .mb15 など）は互換で残す。
   ========================================================= */

:root {
  --ink: #3a2020;          /* 本文 */
  --ink-soft: #733333;     /* 旧 body 色 */
  --brown: #330000;        /* 旧ヘッダー・フッターの線 */
  --link: #804040;
  --link-hover: #d02020;
  --pink: #ff8080;         /* 旧 back.gif の帯 */
  --pink-pale: #fff0f0;
  --tan: #d2b48c;          /* 旧ヘッダーグラデ */
  --navy: #364e96;         /* 旧 h2 枠 */
  --thistle: #d8bfd8;      /* 旧 h3 マーカー */
  --table-head: #225588;
  --line: #e6d8cf;
  --paper: #ffffff;
  --bg: #f6f0ea;
  --radius: 8px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* ---------- 紙面（body をそのまま中央の1カラムにする） ---------- */
body {
  max-width: 1000px;
  margin: 24px auto 40px;
  padding: 28px 40px 0 48px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  position: relative;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(80, 30, 30, 0.08);
  overflow-wrap: anywhere;
}
/* 左端のピンクの帯（旧 back.gif の名残）。紙面と同じ角丸で上下を収める */
body::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 8px;
  background: var(--pink);
  border-radius: var(--radius) 0 0 var(--radius);
  pointer-events: none;
}
html { background: var(--bg); }

/* 連続 <br> の余白がつぶれすぎないよう、行の高さだけ確保 */
br { line-height: 1.85; }

/* ---------- リンク ---------- */
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover {
  color: var(--link-hover);
  text-decoration-style: dashed;
  text-decoration-color: var(--link-hover);
}

/* ---------- 見出し ---------- */
h1, h2, h3, h4, h5 { color: #1a0a0a; line-height: 1.4; font-weight: 700; letter-spacing: 0.06em; }

/* h1：旧ヘッダーの「上に濃茶の線＋タン色グラデ」を見出し帯に */
h1 {
  font-size: 1.7rem;
  margin: 0.4em 0 1em;
  padding: 18px 22px 16px;
  border: 1px solid #e3cfb6;
  border-top: 4px solid var(--brown);
  background: linear-gradient(#dcc19c, #f6ecdf 70%, #fbf7f1);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(80, 30, 30, 0.06);
}

/* h2：旧デザインの紺の角丸枠 */
h2 {
  font-size: 1.15rem;
  margin: 2.2em 0 1em;
  padding: 0.55em 0.9em;
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  background: #f5f5f8;
}

/* h3：旧デザインの薄紫マーカー */
h3 {
  display: block;
  width: fit-content;   /* 文字幅のマーカーは保ちつつ、後ろの文章は必ず次の行へ */
  max-width: 100%;
  font-size: 1.05rem;
  margin: 1.6em 0 0.6em;
  padding: 0 2px 1px;
  background: linear-gradient(transparent 62%, var(--thistle) 62%);
}

/* h4：旧デザインの黒枠 → 茶色の細枠 */
h4 {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: 1rem;
  margin: 1.4em 0 0.6em;
  padding: 0.2em 0.9em;
  border: 2px solid var(--ink-soft);
  border-radius: 4px;
}

h5 { font-size: 0.95rem; margin: 1.2em 0 0.4em; color: var(--ink-soft); }

/* ---------- 本文 ---------- */
p { margin: 1em 0; }
ul, ol { padding-left: 1.4em; }
li { margin: 0.2em 0; }
hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
strong, b { color: #1a0a0a; }
blockquote { margin: 1.2em 0; padding: 0.8em 1.2em; background: var(--pink-pale); border-left: 4px solid var(--pink); }
code { font-family: Consolas, Menlo, monospace; background: #f4eeee; padding: 0.1em 0.35em; border-radius: 3px; font-size: 0.92em; }

img { max-width: 100%; height: auto; vertical-align: middle; }
figure { margin: 1.2em 0; }
iframe { max-width: 100%; }

/* 箇条書きアイコン（n0.gif）の位置合わせ */
img[src$="n0.gif"] { width: 13px; height: 15px; margin-right: 4px; vertical-align: -2px; }

/* ---------- ページ冒頭のラベル（旧 #update） ---------- */
#update {
  display: block;
  width: fit-content;
  margin: 0 0 0.4em;
  padding: 2px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  border-radius: 999px;
  line-height: 1.8;
}

/* ---------- トップのメニュー（旧 #menu） ---------- */
#menu { list-style: none; margin: 0; padding: 0; }
#menu > li {
  list-style: none;
  padding-left: 20px;
  background: url(n0.gif) no-repeat 0 0.42em;   /* 旧サイト以来の箇条書きアイコン（css/n0.gif） */
}
#menu p { margin: 0.4em 0 1.2em; }

/* ---------- 表 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.2em 0; }
.table-scroll > table { margin: 0; }

table { border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; line-height: 1.6; }
th, td { padding: 8px 10px; border: 1px solid var(--line); vertical-align: top; }
th { background: #f5ece3; text-align: left; }

/* 旧 #table2：紺のグラデーション見出し */
#table2 {
  width: 100%;
  max-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #a8b7c5;
  border-radius: 6px;
  overflow: hidden;
}
#table2 th {
  color: #fff;
  text-align: center;
  background: linear-gradient(#829ebc, var(--table-head));
  border: 0;
  border-right: 1px solid #3c6690;
  padding: 10px 8px;
}
#table2 th:last-child { border-right: 0; }
#table2 td {
  border: 0;
  border-top: 1px solid #d3dce5;
  border-right: 1px solid #e3e9ef;
  padding: 9px 10px;
}
#table2 td:last-child { border-right: 0; }
#table2 tr:nth-child(even) td { background: #f8fafc; }

/* ---------- SNS ボタン（snsbutton.js） ---------- */
.sns-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2em 0 1em; }
.sns-buttons .sns-fb {
  display: inline-block; font-size: 12px; line-height: 20px; padding: 0 10px;
  color: #fff; background: #1877f2; border-radius: 4px; text-decoration: none;
}

/* ---------- 記事下の差し込み枠 ---------- */
.page-extra { margin: 2.5em 0 1.5em; }

/* ---------- フッター ---------- */
footer {
  clear: both;
  margin: 3em -40px 0 -48px;
  padding: 20px 16px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b5555;
  border-top: 4px solid var(--brown);
  background: linear-gradient(#f8f8ff, #f3e9df);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ---------- 旧 rotemp.css の2カラム（saba.html / emumake.html） ---------- */
div.left, div.right { position: static; width: auto; }
div.left .head, div.right .head {
  padding: 6px 12px; background: linear-gradient(var(--tan), #f8f8ff); border-top: 3px solid var(--brown);
  border-radius: 4px 4px 0 0; font-weight: 700;
}
div.left .body, div.right .body { padding: 10px 12px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 4px 4px; }
div.left .foot, div.right .foot { margin-bottom: 1.2em; }
div.left .body { font-size: 0.9rem; line-height: 1.9; }
@media (min-width: 901px) {
  body:has(> div.left) { display: grid; grid-template-columns: 230px 1fr; column-gap: 28px; align-items: start; }
  body:has(> div.left) > * { grid-column: 1 / -1; }
  body:has(> div.left) > div.left { grid-column: 1; }
  body:has(> div.left) > div.right { grid-column: 2; }
  body:has(> div.left) > div.left { position: sticky; top: 16px; }
}

/* ---------- 旧ユーティリティ（069.css 互換） ---------- */
.c { text-align: center !important; }
.r { text-align: right !important; }
.l { text-align: left !important; }
.mb15, .mb1em { margin-bottom: 15px; }
.clear { clear: both; }
.look { background: #e5e5e5; padding: 5px 10px; border-radius: 4px; }
.blueline { background: linear-gradient(transparent 70%, #9ec4dd 0%); }
.resizeimage img { width: 100%; }
.youtube iframe, iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.sh { display: none; }
.pr { font-size: 10px; }
.big1 { font-size: 24px; letter-spacing: 0.2em; }
.mini1 { font-size: 11px; display: inline-block; line-height: 1.5; }

/* ---------- スマホ ---------- */
@media (max-width: 700px) {
  body { margin: 0; padding: 16px 16px 0 18px; border-radius: 0; box-shadow: none; font-size: 15px; }
  body::before { width: 5px; border-radius: 0; }
  h1 { font-size: 1.35rem; padding: 14px 14px 10px; }
  h2 { font-size: 1.05rem; padding: 0.5em 0.7em; border-width: 2px; }
  footer { margin: 3em -16px 0 -18px; border-radius: 0; }
  table { font-size: 0.85rem; }
  th, td { padding: 6px 7px; }
}

/* ---------- 組織図（oldguildmember/jobs.html） ---------- */
.org-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-weight: 700; margin: 0 0 12px; }
.org-chart { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 2em; }
.org-card {
  --c: #ccc;
  min-height: 120px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-top: 8px solid var(--c);
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 14%, #fff);
}
.org-card.wide { grid-column: 1 / -1; min-height: 90px; }
.org-card.col2 { grid-column: 2; }
.org-card h3 { display: block; margin: 0 0 6px; font-size: 1.15rem; background: none; padding: 0; }
.org-card p { margin: 0; }
@media (max-width: 700px) {
  .org-chart { grid-template-columns: 1fr; }
  .org-card.col2 { grid-column: auto; }
}

/* ---------- データベース（pre-rd） ---------- */
.db-logo { text-align: center; margin: 0 0 1em; }
.db-logo img { border-radius: 6px; }
.link-grid {
  list-style: none; padding: 0; margin: 0.6em 0 1.6em;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
}
.link-grid li { margin: 0; }
.link-grid a {
  display: block; height: 100%; padding: 9px 12px; text-align: center; text-decoration: none;
  color: var(--ink); background: #fbf7f3; border: 1px solid var(--line); border-radius: 6px;
  font-size: 0.95rem; line-height: 1.5;
}
.link-grid a:hover { color: var(--link-hover); border-color: var(--pink); background: var(--pink-pale); }
.toc { background: #fbf7f3; border: 1px solid var(--line); border-radius: 6px; padding: 10px 16px 10px 2em; }
.db-table { width: 100%; min-width: 680px; }
.db-table td:nth-child(2) { min-width: 240px; }
.db-table th { background: linear-gradient(#829ebc, var(--table-head)); color: #fff; text-align: center; white-space: nowrap; }
.db-table td:first-child { font-weight: 700; white-space: nowrap; }
.db-table ol, .db-table ul { margin: 0; padding-left: 1.3em; }
.db-table tr:nth-child(even) td { background: #faf6f2; }


/* =========================================================
   テンプレート系ページ（idola / wagaTENGA / kenshi / youtube / miku など）
   旧テンプレートの骨格をそのまま受ける：
   header #logo → nav#menubar（PC）/ nav#menubar-s（スマホ）＋ #menubar_hdr
   → .contents .inner section → #pagetop → footer #footermenu #copyright
   ========================================================= */

/* ヘッダーのロゴ（h1 / div どちらでも） */
header .inner { padding: 0 0 12px; }
#logo { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; font-size: 1rem; letter-spacing: 0; }
#logo img { display: block; max-height: 90px; width: auto; border-radius: 4px; }
#logo a { text-decoration: none; }
.logo-text { display: inline-block; font-size: 1.5rem; font-weight: 700; color: #1a0a0a; padding: 6px 0; }

/* PC用メニュー：タン色のタブ */
#menubar { margin: 0 0 1.6em; border: 1px solid #e3cfb6; border-top: 4px solid var(--brown); background: linear-gradient(#dcc19c, #f6ecdf); border-radius: var(--radius); }
#menubar ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0 6px; }
#menubar li { margin: 0; }
#menubar a {
  display: block; padding: 10px 16px; text-decoration: none; color: #3a2020; font-weight: 700; font-size: 0.95rem;
  border-bottom: 3px solid transparent;
}
#menubar a:hover { color: var(--link-hover); }
#menubar li.current a { border-bottom-color: var(--pink); color: #1a0a0a; }

/* スマホ用メニュー（三本線で開閉） */
#menubar-s { display: none; }
#menubar_hdr { display: none; }
@media (max-width: 800px) {
  #menubar { display: none; }
  #menubar_hdr {
    display: block; position: fixed; top: 10px; right: 10px; z-index: 100;
    width: 44px; height: 44px; padding: 11px 10px; border-radius: 8px; cursor: pointer;
    background: var(--brown); box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  #menubar_hdr span { display: block; height: 3px; margin: 0 0 6px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  #menubar_hdr span:last-child { margin: 0; }
  #menubar_hdr.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  #menubar_hdr.open span:nth-child(2) { opacity: 0; }
  #menubar_hdr.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  #menubar-s.open { display: block; margin: 0 0 1.4em; border-top: 4px solid var(--brown); }
  #menubar-s ul { list-style: none; margin: 0; padding: 0; }
  #menubar-s li { margin: 0; border-bottom: 1px solid var(--line); }
  #menubar-s a { display: block; padding: 12px 14px; text-decoration: none; color: #3a2020; font-weight: 700; background: #fbf7f3; }
  #menubar-s li.current a { background: var(--pink-pale); }
}

/* 本文 */
.contents section { margin-bottom: 1.5em; }
.contents section > h2:first-child { margin-top: 0.4em; }

/* 旧テンプレートの表 .ta1 */
.ta1 { width: 100%; }
.ta1 th { width: 140px; background: #f5ece3; text-align: center; font-weight: 700; }
.ta1 th.tamidashi { width: auto; text-align: left; font-size: 1.05rem; }
.ta1 th img { width: 100%; }

/* ページ先頭へ */
#pagetop { position: fixed; right: 16px; bottom: 16px; margin: 0; z-index: 90; }
#pagetop a {
  display: block; width: 44px; height: 44px; line-height: 44px; text-align: center; text-decoration: none;
  color: #fff; background: var(--brown); border-radius: 50%; opacity: 0.75; font-weight: 700;
}
#pagetop a:hover { opacity: 1; color: #fff; }

/* フッターのリンク列 */
#footermenu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; margin: 0 0 10px; text-align: left; }
#footermenu ul { list-style: none; margin: 0; padding: 0; }
#footermenu li { margin: 2px 0; font-size: 0.85rem; }
#footermenu:empty { display: none; }
#copyright small { font-size: 0.85rem; }

/* ---------- 計算ツール（body.tool：pre-rd の pre-rr-keisan / pre-rr-pvp2 / pre-rr-skill） ----------
   表でレイアウトを組んだ旧ツール用。auriga の表装飾を外し、当時の詰まった配置を保つ */
.tool table { margin: 0; font-size: 0.86rem; line-height: 1.45; border-collapse: collapse; }
.tool th, .tool td { padding: 2px 4px; border: 0; background: none; vertical-align: top; }
.tool table[border] td, .tool table[border] th { border: 1px solid var(--line); }
.tool select, .tool input { font-size: 0.85rem; max-width: 100%; }
/* URL出力欄（size="150"）などの長い入力欄が計算機全体を押し広げないように */
.tool input[type="text"] { max-width: 34em; }
.tool .table-scroll { margin: 0.6em 0; }
.tool form { margin: 0.6em 0; }
