/* マックローの転職ギルド: レトロRPGのギルド室内。
   役割ごとに見た目を分ける:
   - 紺地＋白枠のウィンドウ … マックローのセリフ専用（ゲームの会話ウィンドウ）
   - 白い吹き出し … 相談者のセリフ
   - 木と金 … ボタン・受付・窓口（カウンター）
   - 紙とピン … 記事の一覧（クエスト掲示板の依頼書）
   長い本文は明るい紙の上に普通のフォント。DotGothic16 は見出し・名前・飾りだけ。スマホ優先。 */
:root {
  --g-navy: #1d2340;
  --g-navy2: #2b3358;
  --g-white: #f2f2f2;
  --g-gold: #f1c40f;
  --g-gold-d: #b9860b;
  --g-red: #c0392b;
  --g-wood: #5a3d2b;
  --g-wood-d: #3e2a1e;
  --g-wood-l: #8a5a36;
  --g-wood-ll: #a8744a;
  --g-cork: #b08a5a;
  --g-paper: #fffdf7;
  --g-note: #f8eed4;
  --g-ink: #2a2730;
  --g-sub: #6b6577;
  --g-line: #e4dccb;
  --g-dot: "DotGothic16", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --g-text: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
}

/* ---------- 全体: ギルドの外は夜空（室内の絵と本文の紙が浮き上がるように） ---------- */
body {
  background-color: var(--g-navy);
  background-image:
    radial-gradient(1px 1px at 12px 18px, #8a93c9 50%, transparent 51%),
    radial-gradient(1px 1px at 58px 44px, #5c6699 50%, transparent 51%),
    radial-gradient(1px 1px at 33px 70px, #8a93c9 50%, transparent 51%);
  background-size: 80px 80px;
  color: var(--g-ink);
  font-family: var(--g-text);
}
.pixel, .guild-sprite, .guild-hall img, .guild-say img { image-rendering: pixelated; image-rendering: crisp-edges; }

/* サイドバーは使わず1列（スマホと同じ並び） */
.sidebar, .mobile-footer-menu-buttons, .author-info, .footer-meta, .sns-share, .sns-follow,
.article-header .date-tags, .breadcrumb, .eye-catch-wrap { display: none !important; }
.content-in { display: block; }
.main { width: auto !important; max-width: 820px; margin: 0 auto !important; float: none !important; }

/* ---------- ヘッダー: 木の看板と、木札のメニュー ---------- */
.header-container, .header { background: transparent !important; }
.header-in { padding: 16px 12px 8px; text-align: center; }
.tagline { display: none; }
.logo-header { margin: 0; padding: 0; }
.logo-header a { text-decoration: none; }
.logo-header .site-name-text {
  display: inline-block; font-family: var(--g-dot); font-weight: 400; color: var(--g-gold);
  font-size: clamp(20px, 6vw, 30px); letter-spacing: .06em; line-height: 1.3;
  background: var(--g-wood-d); padding: 7px 18px 7px 52px; position: relative;
  border: 3px solid #1a110b; box-shadow: inset 0 0 0 2px var(--g-gold-d), 0 4px 0 #1a110b;
}
.logo-header .site-name-text::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 34px; height: 27px; margin-top: -13px;
  background: var(--g-makkuro-face, none) no-repeat 0 0 / 34px 27px; image-rendering: pixelated;
}
.navi { background: transparent !important; }
.navi-in { max-width: 820px; margin: 0 auto; }
.navi-in > ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px 8px 12px; height: auto !important; }
.navi-in > ul > li { width: auto !important; height: auto !important; }
.navi-in > ul > li > a {
  font-family: var(--g-dot); color: #fff3c4 !important; font-size: 14px; padding: 5px 12px !important; line-height: 1.4; height: auto !important;
  background: var(--g-wood-l); border: 2px solid #1a110b; box-shadow: inset 0 2px 0 var(--g-wood-ll), 0 2px 0 #1a110b;
}
.navi-in > ul > li > a:hover, .navi-in > ul > li.current-menu-item > a { background: var(--g-wood-ll); color: #fff !important; }
.navi-in .item-label { font-size: inherit; }

/* ---------- 本文の紙 ---------- */
.content { margin-top: 4px; }
.main {
  background: var(--g-paper) !important; border: 4px solid #1a110b !important; border-radius: 2px;
  box-shadow: inset 0 0 0 3px var(--g-wood-l), 0 0 0 3px var(--g-wood), 0 10px 24px rgba(0, 0, 0, .55); padding: 20px 18px 28px !important;
}
.entry-title, .article h1 {
  font-family: var(--g-dot); font-weight: 400; color: var(--g-wood-d); font-size: clamp(21px, 5.2vw, 28px); line-height: 1.5;
  margin: 4px 0 12px; padding: 0;
}
.entry-content { font-size: 16.5px; line-height: 1.95; color: var(--g-ink); }
.entry-content p { margin: 0 0 1.3em; }
.entry-content a { color: #1f5fae; }

/* 見出し: 軽く。小さな宝石のアイコンと、ドットの下線だけ（2行になっても重くならない） */
.article h2, .entry-content h2 {
  font-family: var(--g-dot); font-weight: 400; font-size: 21px; line-height: 1.55; color: var(--g-wood-d);
  background: none; border: none; box-shadow: none; border-radius: 0;
  padding: 0 0 8px 26px; margin: 2.4em 0 1em; position: relative;
  background-image: repeating-linear-gradient(90deg, var(--g-wood-l) 0 6px, transparent 6px 10px);
  background-size: 100% 3px; background-repeat: no-repeat; background-position: 0 100%;
}
.article h2::before, .entry-content h2::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 14px;
  background:
    linear-gradient(var(--g-red), var(--g-red)) 4px 0 / 6px 2px no-repeat,
    linear-gradient(var(--g-red), var(--g-red)) 2px 2px / 10px 2px no-repeat,
    linear-gradient(var(--g-red), var(--g-red)) 0 4px / 14px 4px no-repeat,
    linear-gradient(var(--g-red), var(--g-red)) 2px 8px / 10px 2px no-repeat,
    linear-gradient(var(--g-red), var(--g-red)) 4px 10px / 6px 2px no-repeat,
    linear-gradient(var(--g-red), var(--g-red)) 6px 12px / 2px 2px no-repeat;
}
.article h2::after, .entry-content h2::after { display: none; }
.article h3, .entry-content h3 {
  font-family: var(--g-dot); font-weight: 400; font-size: 18px; line-height: 1.55; color: var(--g-wood-d);
  background: none; border: none; padding: 0 0 0 16px; margin: 1.9em 0 .7em; position: relative;
}
.article h3::before, .entry-content h3::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--g-gold-d); }
.article h3::after, .entry-content h3::after { display: none; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.entry-content li { margin: .25em 0; }
.entry-content blockquote {
  background: #f4f1e8; border: none; border-left: 4px solid var(--g-wood-l); padding: 12px 14px; margin: 0 0 1.3em; font-size: 15px;
}
.entry-content blockquote::before, .entry-content blockquote::after { display: none; }
.toc { border: 2px solid var(--g-line) !important; background: #faf6ec !important; border-radius: 2px; font-size: 15px; }
.toc-title { font-family: var(--g-dot); color: var(--g-wood-d); }

/* ---------- パンくずリスト ---------- */
.guild-crumbs { font-size: 13px; color: var(--g-sub); margin: 0 0 8px; line-height: 1.6; }
.guild-crumbs ol { list-style: none; padding: 0 !important; margin: 0 !important; display: flex; flex-wrap: wrap; gap: 2px 0; }
.guild-crumbs li { margin: 0 !important; }
.guild-crumbs li + li::before { content: "▶"; font-size: 9px; margin: 0 7px; color: #a59d8c; vertical-align: 1px; }
.guild-crumbs a { color: var(--g-sub); text-decoration: none; border-bottom: 1px dotted #b6ad9b; }

/* ---------- マックローのセリフ: ゲームの会話ウィンドウ（紺地＋白枠はここだけ） ---------- */
.guild-say { margin: 1.5em 0; }
.guild-say.makkuro .guild-win {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  background: var(--g-navy); color: var(--g-white); border: 3px solid var(--g-white); box-shadow: 0 0 0 3px var(--g-navy);
  border-radius: 6px; padding: 18px 14px 14px; margin: 14px 3px 0;
}
.guild-say.makkuro .guild-name {
  position: absolute; left: 12px; top: -15px; font-family: var(--g-dot); font-size: 14px; line-height: 1;
  color: var(--g-gold); background: var(--g-navy); border: 3px solid var(--g-white); border-radius: 4px; padding: 5px 10px 4px;
}
.guild-say.makkuro .guild-name small { color: var(--g-white); font-size: 11px; margin-left: 6px; }
.guild-say.makkuro img { flex: none; width: 56px; height: auto; background: var(--g-navy2); border: 2px solid var(--g-white); margin-top: 2px; }
.guild-say.makkuro .guild-text { flex: 1; min-width: 0; font-size: 16px; line-height: 1.85; }
.guild-say.makkuro .guild-text p { margin: 0 !important; }
.guild-say.makkuro .guild-text p + p { margin-top: .5em !important; }
.guild-say.makkuro strong { color: var(--g-gold); }
.guild-say.makkuro .guild-win::after { /* 続きを促す ▼ */
  content: "▼"; position: absolute; right: 10px; bottom: 4px; font-size: 10px; color: var(--g-white); animation: guild-blink 1s steps(2) infinite;
}
@keyframes guild-blink { 50% { opacity: 0; } }

/* ---------- 相談者のセリフ: 白い吹き出し（右側に顔） ---------- */
.guild-say.customer { display: flex; flex-direction: row-reverse; gap: 12px; align-items: flex-start; }
.guild-say.customer .guild-face { flex: none; width: 58px; text-align: center; }
.guild-say.customer .guild-face img { width: 54px; height: auto; display: block; margin: 0 auto 3px; background: #e9ecf8; border-radius: 50%; border: 2px solid #c9c2b2; }
.guild-say.customer .guild-face span { display: block; font-size: 11px; color: var(--g-sub); line-height: 1.3; }
.guild-say.customer .guild-bubble {
  position: relative; flex: 1; min-width: 0; background: #fff; color: var(--g-ink); border: 2px solid #c9c2b2; border-radius: 18px;
  padding: 10px 16px; font-size: 16px; line-height: 1.8;
}
.guild-say.customer .guild-bubble::after { /* しっぽ */
  content: ""; position: absolute; right: -9px; top: 20px; width: 14px; height: 14px; background: #fff;
  border-right: 2px solid #c9c2b2; border-top: 2px solid #c9c2b2; transform: rotate(45deg);
}
.guild-say.customer .guild-bubble p { margin: 0 !important; }
.guild-say.customer strong { color: var(--g-red); }

/* ---------- ボタン: 金の札（木の影） ---------- */
.guild-btn, a.guild-btn {
  display: inline-block; font-family: var(--g-dot); font-size: 16px; text-decoration: none !important; line-height: 1.4;
  color: var(--g-wood-d) !important; background: var(--g-gold); border: 3px solid #1a110b; border-radius: 3px; padding: 9px 22px;
  box-shadow: inset 0 -4px 0 var(--g-gold-d), 0 3px 0 #1a110b;
}
.guild-btn:hover { transform: translateY(2px); box-shadow: inset 0 -4px 0 var(--g-gold-d), 0 1px 0 #1a110b; }
.guild-btn.sub { background: var(--g-note); box-shadow: inset 0 -4px 0 #d9c99f, 0 3px 0 #1a110b; }
.guild-center { text-align: center; margin: 1.4em 0; }

/* ---------- トップ: ギルドの室内 ---------- */
.guild-hall { margin: 0 -18px; border-top: 4px solid #1a110b; border-bottom: 4px solid #1a110b; background: var(--g-wood); line-height: 0; }
.guild-hall img { width: 100%; height: auto; display: block; }
.guild-lead { text-align: center; font-family: var(--g-dot); font-size: 19px; line-height: 1.6; color: var(--g-wood-d); margin: 18px 0 4px !important; }
.guild-lead + p { text-align: center; font-size: 15px; color: var(--g-sub); }

/* 3つの窓口: 受付カウンター */
.guild-counter { margin: 1em 0 2em; }
.guild-counter .desk {
  display: grid; grid-template-columns: 1fr; gap: 12px; padding: 14px 10px 0;
  background: var(--g-wood); border: 3px solid #1a110b; border-bottom: none; border-radius: 4px 4px 0 0;
}
.guild-counter .top { height: 16px; background: var(--g-wood-l); border: 3px solid #1a110b; box-shadow: inset 0 3px 0 var(--g-wood-ll); }
.guild-window-card {
  position: relative; display: flex; gap: 12px; align-items: flex-end; text-decoration: none !important; color: var(--g-ink) !important;
  background: #e8d9b8; border: 3px solid #1a110b; border-bottom: none; padding: 30px 12px 0; margin-top: 6px;
}
.guild-window-card .plate { /* 窓口の名札 */
  position: absolute; left: 50%; top: -12px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--g-dot); font-size: 15px; color: #fff3c4; background: var(--g-red); border: 3px solid var(--g-gold); padding: 1px 12px;
}
.guild-window-card img { width: 72px; height: 72px; flex: none; display: block; }
.guild-window-card .who { flex: 1; font-size: 14px; line-height: 1.6; padding-bottom: 10px; }
.guild-window-card .who b { display: block; font-family: var(--g-dot); font-weight: 400; color: var(--g-red); font-size: 13px; margin-top: 4px; }
.guild-window-card:hover { background: #f2e6c9; }
@media (min-width: 720px) {
  .guild-counter .desk { grid-template-columns: 1fr 1fr 1fr; }
  .guild-window-card { flex-direction: column; align-items: center; text-align: center; }
}

/* 記事の一覧: クエスト掲示板の依頼書 */
.guild-board { background: var(--g-cork); border: 6px solid var(--g-wood); box-shadow: 0 0 0 3px #1a110b; border-radius: 2px; padding: 18px 12px 8px; margin: 1em 3px 1.8em;
  background-image: radial-gradient(#9a7748 1px, transparent 1.4px); background-size: 9px 9px; }
.guild-posts { list-style: none; padding: 0 !important; margin: 0 0 10px !important; display: grid; grid-template-columns: 1fr; gap: 16px; }
.guild-posts li { margin: 0 !important; }
.guild-posts a {
  position: relative; display: block; text-decoration: none; background: var(--g-note); color: var(--g-ink) !important;
  padding: 16px 14px 12px; line-height: 1.6; box-shadow: 2px 3px 0 rgba(0, 0, 0, .25); transform: rotate(-.6deg);
}
.guild-posts li:nth-child(even) a { transform: rotate(.7deg); background: #fbf4e2; }
.guild-posts a::before { /* 赤いピン */
  content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a7a, var(--g-red) 55%, #7a1d14); box-shadow: 1px 2px 0 rgba(0, 0, 0, .3);
}
.guild-posts a:hover { transform: rotate(0) translateY(-2px); }
.guild-posts .w { display: inline-block; font-family: var(--g-dot); font-size: 12px; color: var(--g-red); border: 1px solid var(--g-red); padding: 0 6px; margin-bottom: 4px; }
.guild-posts .t { font-weight: bold; display: block; font-size: 15.5px; }
.guild-board .guild-empty { background: var(--g-note); padding: 12px; text-align: center; margin: 0 0 10px; }
@media (min-width: 720px) { .guild-posts { grid-template-columns: 1fr 1fr; } }
.guild-empty { color: var(--g-sub); font-size: 14px; }

/* 受付への案内（受付ページが公開されているときだけ）: 木の受付台 */
.guild-reception { background: var(--g-wood-l); border: 3px solid #1a110b; box-shadow: inset 0 0 0 3px var(--g-wood-ll); border-radius: 4px;
  padding: 16px; margin: 2em 3px; text-align: center; color: #fff3c4; }
.guild-reception .label { font-family: var(--g-dot); color: var(--g-gold); font-size: 18px; margin-bottom: 6px; }
.guild-reception p { font-size: 14.5px; margin: 0 0 12px !important; }

/* 出典・注意書き */
.guild-sources { background: #f4f1e8; border: 2px solid var(--g-line); border-radius: 2px; padding: 12px 14px; margin: 2.2em 0 1em; font-size: 14px; line-height: 1.7; }
.guild-sources .h { font-family: var(--g-dot); color: var(--g-wood); font-size: 15px; margin-bottom: 4px; }
.guild-sources ul { margin: 0 !important; padding-left: 1.2em !important; }
.guild-note { font-size: 13px; color: var(--g-sub); line-height: 1.7; }

/* 動画の枠（動画が公開されたら入る） */
.guild-video { position: relative; max-width: 360px; margin: 1.4em auto; aspect-ratio: 9 / 16; border: 3px solid var(--g-wood-d); }
.guild-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* YouTube の枠: ギルドの「お知らせ札」（木の枠と紙）。
   公式ロゴは色・形を変えず、明るい無地の紙の上に置き、周りに余白をとる */
.guild-yt { position: relative; background: var(--g-note); border: 6px solid var(--g-wood); box-shadow: 0 0 0 3px #1a110b, 3px 5px 0 3px rgba(0, 0, 0, .2);
  padding: 22px 16px 16px; text-align: center; margin: 1.4em 3px .5em; }
.guild-yt::before { /* 札を吊るす金具 */
  content: ""; position: absolute; left: 50%; top: -14px; width: 40px; height: 8px; margin-left: -20px; background: var(--g-gold-d); border: 2px solid #1a110b;
}
.guild-yt .yt-head { font-family: var(--g-dot); color: var(--g-wood-d); font-size: 16px; margin: 0 0 6px !important; }
.guild-yt .yt-logo { display: inline-block; background: #fffdf7; padding: 12px 20px; margin: 4px 0 12px; border-radius: 2px; }
.guild-yt img { height: 30px; width: auto; display: block; }
.guild-yt .yt-link { margin: 0 !important; }

/* ---------- フッター ---------- */
.footer { background: transparent !important; color: #e8d9b8 !important; }
.footer a, .navi-footer a { color: #e8d9b8 !important; }
.footer-bottom { display: block !important; text-align: center; }
.footer-bottom-logo, .footer-bottom-content { float: none !important; width: auto !important; margin: 0 auto 6px !important; text-align: center !important; }
.navi-footer-in > ul { display: flex; flex-wrap: wrap; justify-content: center !important; gap: 4px 14px; }
.navi-footer-in > ul > li > a { font-size: 13px; padding: 4px 2px !important; }
.footer .logo-footer .site-name-text { font-family: var(--g-dot); color: var(--g-gold); font-size: 18px; }
.copyright { color: #c9b48a !important; font-size: 12px; }
.go-to-top-button { background: var(--g-wood-l) !important; border: 2px solid #1a110b !important; color: #fff3c4 !important; }

/* トップページでは、題名（h1）は看板と同じなので見た目だけ隠す（検索エンジンには残す） */
.home .article-header .entry-title, .front-page .article-header .entry-title {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* スマホ */
@media (max-width: 1023px) {
  .navi { display: block !important; }
  .navi-in > .menu-header, .navi-in > .menu-pc { display: flex !important; }
  .navi-in > .menu-mobile { display: none !important; }
  .navi-in > ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 10px 10px; }
  .navi-in > ul::-webkit-scrollbar { display: none; }
  .navi-in > ul > li { flex: none; }
  .navi-in > ul > li > a { font-size: 13px; padding: 4px 10px !important; }
}
@media (max-width: 480px) {
  .main { padding: 16px 14px 22px !important; }
  .guild-hall, .guild-scene { margin-left: -14px; margin-right: -14px; }
  .content-in { padding: 0 6px; }
  .entry-content { font-size: 16px; }
  .article h2, .entry-content h2 { font-size: 19px; }
  .guild-say.makkuro img { width: 48px; }
  .guild-say.customer .guild-face { width: 50px; }
  .guild-say.customer .guild-face img { width: 46px; }
}
/* トップ: 題名（見た目は隠す）の分の余白をなくす */
.home .article-header { margin: 0 !important; padding: 0 !important; height: 0; }
.home .entry-content { margin-top: 0 !important; padding-top: 0 !important; }
.footer-bottom { display: flex !important; flex-direction: column-reverse; align-items: center; }
.footer-bottom-logo { position: static !important; }

/* ---------- PR 表記: 掲示板の貼り紙（トップと記事の一番上だけ） ---------- */
.guild-pr { text-align: center; margin: 0 0 14px; }
.guild-pr span {
  position: relative; display: inline-block; background: var(--g-note); color: var(--g-wood-d); font-size: 13px; line-height: 1.5;
  padding: 7px 18px 6px; transform: rotate(-1deg); box-shadow: 2px 3px 0 rgba(0, 0, 0, .18); border: 1px solid #e3d3ad;
}
.guild-pr span::before {
  content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8a7a, var(--g-red) 55%, #7a1d14);
}

/* ---------- 記事の上: 相談の場面のドット絵 ---------- */
.guild-scene { margin: 0 -18px 16px; border-top: 4px solid #1a110b; border-bottom: 4px solid #1a110b; background: var(--g-wood); line-height: 0; }
.guild-scene img { width: 100%; height: auto; display: block; image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------- この記事の答え: 金の縁の答え札 ---------- */
.guild-answer { position: relative; background: #fff6d6; border: 3px solid var(--g-gold-d); border-radius: 4px; padding: 26px 16px 10px; margin: 2em 3px 1.6em; }
.guild-answer .h {
  position: absolute; left: 12px; top: -15px; font-family: var(--g-dot); font-size: 15px; color: #fff3c4; background: var(--g-red);
  border: 3px solid var(--g-gold); padding: 2px 14px; line-height: 1.4;
}
.guild-answer .h::before { content: "★ "; color: var(--g-gold); }
.guild-answer ol { list-style: none; counter-reset: ans; padding: 0 !important; margin: 0 !important; }
.guild-answer li { counter-increment: ans; position: relative; padding: 0 0 0 34px !important; margin: 0 0 10px !important; font-size: 15.5px; line-height: 1.75; }
.guild-answer li::before {
  content: counter(ans); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; line-height: 24px; text-align: center;
  font-family: var(--g-dot); font-size: 14px; color: var(--g-wood-d); background: var(--g-gold); border: 2px solid var(--g-gold-d); border-radius: 50%;
}
.guild-answer b { color: var(--g-red); }

/* ---------- 目次: 冒険の書（赤い革の表紙と紙のページ） ---------- */
.guild-toc { background: #7a2e22; border: 3px solid #1a110b; border-radius: 4px; padding: 8px; margin: 0 3px 2em; box-shadow: inset 0 0 0 2px var(--g-gold-d); }
.guild-toc .h { font-family: var(--g-dot); color: var(--g-gold); font-size: 17px; text-align: center; padding: 2px 0 8px; letter-spacing: .2em; }
.guild-toc .h::before, .guild-toc .h::after { content: "◆"; font-size: 10px; margin: 0 10px; vertical-align: 2px; }
.guild-toc ol { list-style: none; background: var(--g-paper); padding: 8px 12px !important; margin: 0 !important; border-radius: 2px; }
.guild-toc li { margin: 0 !important; border-bottom: 1px dashed var(--g-line); }
.guild-toc li:last-child { border-bottom: none; }
.guild-toc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 2px; text-decoration: none; color: var(--g-ink) !important; font-size: 15px; line-height: 1.6; }
.guild-toc a:hover { color: var(--g-red) !important; }
.guild-toc .no { flex: none; font-family: var(--g-dot); font-size: 12px; color: #7a2e22; }

/* ---------- 案件のクエスト札（受付の木の台とは別の、羊皮紙の依頼書） ---------- */
.guild-offer {
  position: relative; background: #f3e2b8; border: 3px solid #6e4529; border-radius: 2px; padding: 30px 16px 16px; margin: 2em 3px 1.6em;
  box-shadow: inset 0 0 0 4px #f3e2b8, inset 0 0 0 5px #b08a5a, 3px 4px 0 rgba(0, 0, 0, .2);
}
.guild-offer .g-ribbon {
  position: absolute; left: 50%; top: -14px; transform: translateX(-50%); white-space: nowrap; font-family: var(--g-dot); font-size: 14px; letter-spacing: .3em;
  color: #fff3c4; background: var(--g-red); padding: 3px 18px 3px 22px; border: 3px solid #6e1d14;
}
.guild-offer::after { /* 封蝋 */
  content: ""; position: absolute; right: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #e0604f, #9a2a1e 70%); box-shadow: 0 0 0 2px #7a1d14;
}
.guild-offer .name { font-family: var(--g-dot); font-size: 19px; color: var(--g-wood-d); text-align: center; margin: 0 26px 10px; line-height: 1.5; }
.guild-offer .row { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 6px 0; border-top: 1px dashed #c9b48a; font-size: 14.5px; line-height: 1.7; }
.guild-offer .row b { font-family: var(--g-dot); font-weight: 400; color: #7a2e22; }
.guild-offer .go { text-align: center; margin-top: 12px; }
@media (max-width: 480px) { .guild-offer .row { grid-template-columns: 1fr; gap: 0; } }

/* お問い合わせフォーム（Contact Form 7） */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea, .wpcf7 .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%; background: #fff; border: 2px solid var(--g-wood-l) !important; border-radius: 3px; padding: 8px 10px; font-size: 16px;
}
.wpcf7 label { font-family: var(--g-dot); color: var(--g-wood-d); }
.wpcf7 .wpcf7-submit, .wpcf7 input[type="submit"] {
  display: block; margin: 8px auto 0; width: auto !important; min-width: 200px; font-family: var(--g-dot); font-size: 16px; cursor: pointer;
  color: var(--g-wood-d) !important; background: var(--g-gold) !important; border: 3px solid #1a110b !important; border-radius: 3px; padding: 9px 26px;
  box-shadow: inset 0 -4px 0 var(--g-gold-d), 0 3px 0 #1a110b;
}

/* 窓口ページ: 場面の絵はタイトルの上（子テーマが出す）。本文の先頭に入っている絵は隠す */
.page .entry-content > .guild-scene { display: none; }

/* PR 表記のないページ（窓口ページ）では、場面の絵を紙の上端までつける */
.main > .guild-scene:first-child { margin-top: -20px; }
@media (max-width: 480px) { .main > .guild-scene:first-child { margin-top: -16px; } }

/* ---------- クエスト札のボタン（1記事に1つ）: RPG の選択カーソル ▶ ＋ドット風の立体の影。押すと沈む ---------- */
.guild-offer { scroll-margin-top: 20px; }
.guild-offer .go { margin-top: 16px; }
a.guild-quest-btn {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  max-width: 440px; min-height: 62px; margin: 0 auto 6px; padding: 10px 40px 9px; box-sizing: border-box;
  font-family: var(--g-dot); font-size: 18px; line-height: 1.35; text-align: center; text-decoration: none !important;
  color: var(--g-wood-d) !important; background: var(--g-gold); border: 3px solid #1a110b; border-radius: 0;
  box-shadow: inset -3px -4px 0 var(--g-gold-d), inset 3px 3px 0 #fbe27a, 0 5px 0 #1a110b; transition: none;
}
a.guild-quest-btn .cur { position: absolute; left: 14px; top: 50%; margin-top: -11px; font-size: 16px; line-height: 22px; color: #7a2e22; animation: guild-blink 1.6s steps(2) infinite; }
a.guild-quest-btn small { display: block; font-family: var(--g-text); font-size: 11px; color: #6e4529; margin-top: 1px; letter-spacing: .05em; }
a.guild-quest-btn small::after { content: " ↗"; }
a.guild-quest-btn:hover { background: #f6d23a; }
a.guild-quest-btn:active { transform: translateY(5px); box-shadow: inset -3px -4px 0 var(--g-gold-d), inset 3px 3px 0 #fbe27a, 0 0 0 #1a110b; }
a.guild-quest-btn:focus-visible { outline: 3px solid var(--g-navy); outline-offset: 3px; }
a.guild-quest-btn::after { /* 画面に入ったときに1回だけ走る光（guild.js が .shine を付ける） */
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -40%; width: 26%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: skewX(-18deg); opacity: 0;
}
a.guild-quest-btn.shine::after { animation: guild-shine 1s steps(10) 1 both; }
@keyframes guild-shine { 0% { left: -40%; opacity: 1; } 100% { left: 120%; opacity: 1; } }
@media (max-width: 600px) { a.guild-quest-btn { max-width: none; width: 100%; min-height: 64px; font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {
  a.guild-quest-btn .cur { animation: none; }
  a.guild-quest-btn.shine::after { animation: none; opacity: 0; }
  a.guild-quest-btn:active { transform: none; }
}
.guild-offer-text { color: #7a2e22 !important; font-weight: bold; }
.guild-offer .name { word-break: keep-all; overflow-wrap: anywhere; }
.guild-px { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }

/* ---------- 最後まで読まない人への案内（ページ内のクエスト札へ） ---------- */
a.guild-guide {
  display: block; margin: 10px 0 4px; padding: 10px 12px; border-top: 2px dashed var(--g-gold-d); font-size: 15px; line-height: 1.6;
  color: var(--g-ink) !important; text-decoration: none !important;
}
a.guild-guide b { display: inline-block; font-family: var(--g-dot); font-weight: 400; color: #7a2e22; white-space: nowrap; }
a.guild-guide:hover b { text-decoration: underline; }
.guild-say.makkuro a.guild-guide-in { color: var(--g-gold) !important; text-decoration: underline; text-underline-offset: 3px; }
.guild-say.makkuro a.guild-guide-in::before { content: "▶"; font-size: .8em; margin-right: 2px; }
