* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #fff8dc;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 78% 8%, rgba(0, 78, 180, 0.34), transparent 30%),
    linear-gradient(180deg, #111 0%, #061b3e 54%, #070707 100%);
  background-size: 24px 24px, 24px 24px, auto, auto;
  padding-top: 18px;
  padding-right: 18px;
  padding-bottom: 80px;
  padding-left: 18px;
}
a { color: inherit; }
.wrap, .breadcrumb { max-width: 1120px; margin: 0 auto; }
.breadcrumb { color: #b8d8ff; font-size: 0.8rem; margin-bottom: 14px; }
.breadcrumb a { color: #ffd245; text-decoration: none; }
.breadcrumb span { color: #75a8e8; margin: 0 6px; }
.hero {
  position: relative;
  min-height: 292px;
  display: grid;
  align-items: end;
  padding: 34px 28px 26px;
  border: 4px solid #fff;
  border-radius: 8px;
  background: #050505;
  box-shadow: 0 0 0 3px #8a8a8a, 0 0 0 6px #050505, 0 18px 44px rgba(0,0,0,0.42);
  overflow: hidden;
  margin-bottom: 18px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.hero::after {
  content: "DQX";
  position: absolute;
  right: 22px;
  top: 24px;
  color: rgba(255, 255, 255, 0.12);
  font-size: 4.8rem;
  font-weight: 900;
  letter-spacing: 0;
}
.hero-kicker { color: #ffd245; font-size: 0.78rem; font-weight: 900; letter-spacing: 1.5px; margin-bottom: 8px; }
h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3.25rem); line-height: 1.08; letter-spacing: 0; text-shadow: 2px 2px 0 #777; max-width: 780px; }
.hero-lead { max-width: 760px; color: #f2f2f2; line-height: 1.8; margin-top: 13px; font-size: 0.94rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 20px; max-width: 820px; }
.stat { background: #111; border: 2px solid #fff; border-radius: 8px; padding: 10px 12px; box-shadow: inset 0 0 0 1px #777; }
.stat-value { color: #ffd245; font-size: 1.1rem; font-weight: 900; }
.stat-label { color: #ddd; font-size: 0.72rem; margin-top: 3px; line-height: 1.4; }
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.side { position: sticky; top: 16px; display: grid; gap: 12px; }
.panel, .quest-card, .summary-card, .route-card {
  background: #050505;
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #8a8a8a, 0 0 0 5px #050505, 0 12px 30px rgba(0,0,0,0.28);
}
.panel { padding: 16px; }
.panel-title { color: #ffd245; font-size: 0.82rem; font-weight: 900; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,248,220,0.28); }
.progress-text { color: #f2f2f2; font-size: 0.84rem; line-height: 1.6; }
.progress-meter { height: 11px; background: #111; border: 1px solid #aaa; border-radius: 99px; overflow: hidden; margin: 10px 0 8px; }
.progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #ffd245, #fff8dc); transition: width 0.2s; }
.quick-links { display: grid; gap: 6px; }
.quick-links a, .source-list a {
  display: block;
  text-decoration: none;
  color: #f2f2f2;
  background: #111;
  border: 1px solid #777;
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 0.82rem;
}
.quick-links a:hover, .source-list a:hover { color: #ffd245; border-color: #ffd245; }
.quick-links a.current {
  color: #041533;
  background: #ffd245;
  border-color: #fff8dc;
  font-weight: 900;
  cursor: default;
  pointer-events: none;
}
.source-list { display: grid; gap: 6px; }
.section { margin-bottom: 18px; }
.section-title {
  color: #fff;
  font-size: 1.08rem;
  margin: 4px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 2px 2px 0 #777;
}
.section-title::before { content: ""; width: 5px; height: 24px; background: #ffd245; border: 1px solid #fff8dc; border-radius: 2px; }
.section-lead { color: #f2f2f2; font-size: 0.86rem; line-height: 1.75; margin-bottom: 12px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.summary-card { padding: 15px; }
.summary-card h3 { color: #ffd245; font-size: 0.92rem; margin-bottom: 8px; }
.summary-card p, .summary-card li { color: #f2f2f2; font-size: 0.82rem; line-height: 1.65; }
.summary-card ul { list-style: none; display: grid; gap: 5px; }
.summary-card li { padding-left: 14px; position: relative; }
.summary-card li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; background: #ffd245; border-radius: 50%; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.check-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.check-filter-label {
  color: #ffd245;
  font-size: 0.72rem;
  font-weight: 900;
  margin-right: 2px;
}
.quest-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.7fr) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
  padding: 12px;
  background: #050505;
  border: 2px solid #fff8dc;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #777;
}
.tool-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.tool-field span {
  color: #ffd245;
  font-size: 0.7rem;
  font-weight: 900;
}
.tool-field input,
.tool-field select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  color: #fff8dc;
  background: #111;
  border: 1px solid #777;
  border-radius: 7px;
  padding: 9px 10px;
  font: inherit;
  font-size: 16px; /* iOS Safari ズーム防止のため 16px 必須 */
}
.tool-field input:focus,
.tool-field select:focus {
  outline: 2px solid #ffd245;
  outline-offset: 1px;
  border-color: #ffd245;
}
.tool-clear {
  min-height: 40px;
  color: #041533;
  background: #ffd245;
  border: 2px solid #fff8dc;
  border-radius: 7px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.quest-result-count {
  color: #b8d8ff;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: -2px 0 10px;
}
.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 38px;
  border: 2px solid #fff8dc;
  border-radius: 8px;
  background: #05245d;
  color: #fff8dc;
  padding: 8px 11px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
.chip.active { background: #ffd245; color: #041533; }
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.route-card { padding: 15px; }
.route-step { width: 30px; height: 30px; display: grid; place-items: center; color: #041533; background: #ffd245; border-radius: 6px; font-weight: 900; margin-bottom: 10px; }
.route-card h3 { color: #fff; font-size: 0.94rem; margin-bottom: 8px; }
.route-card p { color: #f2f2f2; font-size: 0.82rem; line-height: 1.65; }
.route-card span { display: block; color: #ffd245; font-size: 0.76rem; line-height: 1.5; margin-top: 8px; }
.quest-list { display: grid; gap: 12px; }
.quest-card { padding: 15px; }
.quest-card.done { opacity: 0.68; }
.quest-head { display: grid; grid-template-columns: 28px 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.quest-check {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 3px solid #fff8dc;
  border-radius: 5px;
  background: #031841;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.quest-check:checked { background: #ffd245; border-color: #ffd245; }
.quest-check:checked::after { content: "✓"; color: #041533; font-weight: 900; font-size: 1rem; }
.quest-fav {
  appearance: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #777;
  border-radius: 6px;
  background: #111;
  color: #555;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}
.quest-fav:hover { color: #ffd245; border-color: #ffd245; transform: scale(1.08); }
.quest-fav[aria-pressed="true"] {
  color: #041533;
  background: #ffd245;
  border-color: #fff8dc;
  text-shadow: 0 0 4px rgba(255, 248, 220, 0.6);
}
.quest-card.is-favorite {
  border-color: #ffd245;
  box-shadow: 0 0 0 2px #ffd24588, 0 0 0 5px #050505, 0 12px 30px rgba(255, 210, 69, 0.18);
}
.quest-card.is-favorite.done { opacity: 0.85; }
.quest-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.quest-title { color: #fff; font-size: 0.98rem; line-height: 1.45; font-weight: 900; }
.quest-title .no { color: #ffd245; margin-right: 4px; }
.quest-tag { flex-shrink: 0; color: #041533; background: #ffd245; border-radius: 999px; padding: 3px 9px; font-size: 0.68rem; font-weight: 900; }
.quest-reward { color: #f2f2f2; font-size: 0.82rem; line-height: 1.6; margin-top: 5px; }
.quest-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.meta-box { background: #111; border: 1px solid #777; border-radius: 7px; padding: 8px 10px; }
.meta-label { color: #ffd245; font-size: 0.7rem; font-weight: 900; display: block; margin-bottom: 3px; }
.meta-value { color: #f2f2f2; font-size: 0.8rem; line-height: 1.55; }
.quest-details {
  margin-top: 9px;
  background: #101010;
  border: 1px solid #777;
  border-radius: 7px;
  overflow: hidden;
}
.quest-details-summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffd245;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.45;
  padding: 9px 10px;
  user-select: none;
}
.quest-details-summary::-webkit-details-marker { display: none; }
.quest-details-summary::before {
  content: ">";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #041533;
  background: #ffd245;
  border-radius: 4px;
  font-size: 0.78rem;
  transition: transform 0.16s ease;
}
.quest-details[open] .quest-details-summary::before { transform: rotate(90deg); }
.quest-details-body {
  display: grid;
  gap: 6px;
  list-style: none;
  border-top: 1px solid #555;
  padding: 9px 10px 10px 36px;
}
.quest-details-body li {
  position: relative;
  color: #f2f2f2;
  font-size: 0.8rem;
  line-height: 1.65;
}
.quest-details-body li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: #ffd245;
  border-radius: 50%;
}
.route-details { border-color: #75a8e8; }
.route-details .quest-details-summary { color: #b8d8ff; }
.route-steps {
  display: grid;
  gap: 7px;
  counter-reset: route-step;
  list-style: none;
  border-top: 1px solid #555;
  padding: 10px;
}
.route-steps li {
  position: relative;
  color: #f2f2f2;
  background: #171717;
  border: 1px solid #555;
  border-radius: 7px;
  font-size: 0.8rem;
  line-height: 1.65;
  padding: 8px 9px 8px 34px;
}
.route-steps li::before {
  counter-increment: route-step;
  content: counter(route-step);
  position: absolute;
  left: 9px;
  top: 9px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #041533;
  background: #75a8e8;
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 900;
}
/* クエスト攻略トグル（職業クエスト専用・ゴールドアクセント） */
.walkthrough-details { border-color: #ffd245; }
.walkthrough-details .quest-details-summary { color: #ffd245; }
.walkthrough-details .quest-details-summary::before { content: "★"; }
.walkthrough-body {
  display: block;
  padding: 10px;
}
.walkthrough-overview {
  color: #fff8dc;
  font-size: 0.8rem;
  line-height: 1.7;
  background: #1d1d1d;
  border-left: 3px solid #ffd245;
  border-radius: 5px;
  padding: 8px 10px;
}
.walkthrough-section-label {
  color: #ffd245;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin: 12px 0 6px;
}
.walkthrough-body .route-steps {
  border-top: none;
  padding: 0;
}
.walkthrough-body .route-steps li::before { background: #ffd245; }
.walkthrough-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}
.walkthrough-meta span {
  color: #f2f2f2;
  font-size: 0.78rem;
  line-height: 1.55;
  background: #111;
  border: 1px solid #777;
  border-radius: 7px;
  padding: 8px 10px;
}
.walkthrough-meta strong {
  display: block;
  color: #ffd245;
  font-size: 0.7rem;
  font-weight: 900;
  margin-bottom: 3px;
}
.walkthrough-caution {
  color: #fff8dc;
  font-size: 0.78rem;
  line-height: 1.65;
  background: #2a1a0a;
  border: 1px solid #c98a2a;
  border-radius: 7px;
  padding: 8px 10px;
  margin-top: 10px;
}
.empty-state {
  color: #f2f2f2;
  background: #050505;
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #8a8a8a, 0 0 0 5px #050505, 0 12px 30px rgba(0,0,0,0.28);
  font-size: 0.86rem;
  line-height: 1.7;
  padding: 16px;
}
.quest-note { margin-top: 9px; color: #fff8dc; font-size: 0.78rem; line-height: 1.6; background: #222; border-left: 3px solid #ffd245; border-radius: 5px; padding: 7px 9px; }
.quest-source { margin-top: 8px; font-size: 0.75rem; }
.quest-source a { color: #ffd245; text-decoration: none; }
.quest-source a:hover { text-decoration: underline; }
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s; }
.nav-overlay.active { opacity: 1; visibility: visible; }
.hamburger-btn { position: fixed; top: 16px; right: 24px; z-index: 1001; width: 44px; height: 44px; background: #05245d; border: 2px solid #fff8dc; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger-btn span { display: block; width: 22px; height: 2px; background: #ffd245; border-radius: 2px; transition: all 0.3s; }
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-panel { position: fixed; top: 0; right: -300px; width: 300px; height: 100%; background: #050505; z-index: 1000; padding: 80px 24px 24px; transition: right 0.3s ease; box-shadow: -4px 0 20px rgba(0,0,0,0.5); overflow-y: auto; }
.nav-panel.active { right: 0; }
.nav-panel-title { color: #ffd245; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #256fd0; font-weight: 900; }
.nav-section-label { color: #75a8e8; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 20px; margin-bottom: 8px; padding-top: 12px; border-top: 1px solid #256fd0; }
.nav-link { display: block; padding: 10px 14px; margin-bottom: 2px; color: #f2f2f2; text-decoration: none; border-radius: 8px; font-size: 0.9rem; transition: all 0.2s; }
.nav-link:hover { background: #111; color: #ffd245; }
.nav-link.current { background: rgba(255,210,69,0.16); color: #ffd245; font-weight: 900; border-left: 3px solid #ffd245; }
.nav-link-desc { font-size: 0.72rem; color: #75a8e8; margin-top: 2px; }
.nav-accordion { margin: 4px 0; border-radius: 8px; overflow: hidden; }
.nav-accordion-header { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 14px; background: #111; border: 1px solid #777; border-radius: 8px; color: #f2f2f2; font-size: 0.92rem; font-weight: 900; text-align: left; cursor: pointer; font-family: inherit; }
.nav-accordion[data-open="true"] > .nav-accordion-header .nav-accordion-chevron { transform: rotate(180deg); }
.nav-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.nav-accordion[data-open="true"] > .nav-accordion-body { max-height: 1000px; }
.nav-accordion-body-inner { padding: 6px 0 4px 12px; display: flex; flex-direction: column; gap: 2px; }

/* ファンタジーライフiテーマ（黄/紺） */
.nav-accordion[data-game="fl"] > .nav-accordion-header {
  color: #ffd700;
  background: #16213e;
  border-color: #1e2a4a;
}
.nav-accordion[data-game="fl"] > .nav-accordion-header:hover {
  background: #1e2a4a;
  border-color: #ffd700;
  color: #ffd700;
}
.nav-accordion[data-game="fl"] .nav-link:hover {
  background: #1e2a4a;
  color: #ffd700;
}
.nav-accordion[data-game="fl"] .nav-link.current {
  background: #ffd70022;
  color: #ffd700;
  border-left-color: #ffd700;
}

/* ペルソナ5Rテーマ（赤/暗赤） */
.nav-accordion[data-game="p5r"] > .nav-accordion-header {
  color: #ff6b6b;
  background: #2D0808;
  border-color: #5a1414;
}
.nav-accordion[data-game="p5r"] > .nav-accordion-header:hover {
  background: #3a0a0a;
  border-color: #E60012;
  color: #ff6b6b;
}
.nav-accordion[data-game="p5r"] .nav-link:hover {
  background: #5a1414;
  color: #ff6b6b;
}
.nav-accordion[data-game="p5r"] .nav-link.current {
  background: #E6001222;
  color: #ff6b6b;
  border-left-color: #E60012;
}

/* ホグワーツ・レガシーテーマ（金/暗茶） */
.nav-accordion[data-game="hogwartslegacy"] > .nav-accordion-header {
  color: #f1d890;
  background: #17130f;
  border-color: #5f4928;
}
.nav-accordion[data-game="hogwartslegacy"] > .nav-accordion-header:hover {
  background: #241c14;
  border-color: #d8b56a;
  color: #f1d890;
}
.nav-accordion[data-game="hogwartslegacy"] .nav-link:hover {
  background: #241c14;
  color: #f1d890;
}
.nav-accordion[data-game="hogwartslegacy"] .nav-link.current {
  background: #d8b56a22;
  color: #f1d890;
  border-left-color: #d8b56a;
}

/* ドラクエ10テーマ（ゴールド/濃紺） */
.nav-accordion[data-game="dq10"] > .nav-accordion-header {
  color: #ffd245;
  background: #031841;
  border-color: #fff8dc;
}
.nav-accordion[data-game="dq10"] > .nav-accordion-header:hover {
  background: #05245d;
  border-color: #ffd245;
  color: #ffd245;
}
.nav-accordion[data-game="dq10"] .nav-link:hover {
  background: #05245d;
  color: #ffd245;
}
.nav-accordion[data-game="dq10"] .nav-link.current {
  background: #ffd24522;
  color: #ffd245;
  border-left-color: #ffd245;
}

/* ============================================================
   自ゲーム / 他ゲーム の視覚区別（PC・SP共通）
   - 自ゲーム = data-current-game="true": 強調（左border + 背景）
   - 他ゲーム = それ以外: 弱める（透明度低・hoverで戻す）
   DQ10ページでは DQ10 が自ゲーム
   ============================================================ */
.nav-accordion[data-current-game="true"] {
  border-left: 4px solid #ffd245;
  background: rgba(255, 210, 69, 0.07);
  border-radius: 0 8px 8px 0;
  padding: 4px 4px 6px 8px;
  margin-left: 0;
}
.nav-accordion[data-current-game="true"] > .nav-accordion-header {
  background: #05245d;
  border-color: #ffd245;
}
.nav-accordion:not([data-current-game="true"]) {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.nav-accordion:not([data-current-game="true"]):hover,
.nav-accordion:not([data-current-game="true"])[data-open="true"] {
  opacity: 1;
}

@media (min-width: 768px) {
  .hamburger-btn, .nav-overlay { display: none !important; }
  body { padding-left: 296px; }
  .nav-panel {
    left: 0; right: auto; top: 0; width: 280px; height: 100vh;
    padding: 24px 16px; border-right: 3px solid #fff8dc;
  }

  /* PC: nav-panel直下のlink/accordionは縦並び（フル幅） */
  .nav-panel > .nav-link,
  .nav-panel > .nav-accordion {
    display: block;
    width: 100%;
  }

  /* PC: アコーディオン内リンクは縦並びでフル幅 */
  .nav-accordion-body-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 8px 0 4px;
  }
  .nav-accordion-body-inner .nav-link {
    display: block;
    width: 100%;
    white-space: normal;
    padding: 8px 14px;
  }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .hero-stats, .summary-grid, .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quest-tools { grid-template-columns: 1fr; }
  .tool-clear { width: 100%; }
}
@media (max-width: 560px) {
  body { padding-top: 14px; padding-right: 14px; padding-bottom: 80px; padding-left: 14px; }
  .hero { padding: 28px 18px 20px; min-height: 260px; }
  .hero::after { font-size: 3rem; right: 14px; }
  .hero-stats, .summary-grid, .route-grid, .quest-meta, .walkthrough-meta { grid-template-columns: 1fr; }
  .quest-title-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   金策・経験値稼ぎセクション
   ============================================================ */
.farming-subtitle {
  color: #ffd245;
  font-size: 1.05rem;
  font-weight: 900;
  margin-top: 24px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #fff8dc44;
  letter-spacing: 0.5px;
}
.farming-subtitle:first-of-type { margin-top: 8px; }
.farming-lead-small { color: #ddd; font-size: 0.84rem; line-height: 1.65; margin-bottom: 10px; }
.farming-filter-bar { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.farming-list { display: grid; gap: 12px; margin-bottom: 14px; }
.farming-card {
  background: #0a0a0a;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #8a8a8a, 0 0 0 3px #050505, 0 8px 20px rgba(0,0,0,0.25);
  padding: 14px;
}
.farming-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.farming-stage-tag {
  flex-shrink: 0;
  color: #041533;
  background: #ffd245;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}
.farming-stage-early { background: #95e69b; color: #042a0a; }
.farming-stage-mid { background: #ffd245; color: #041533; }
.farming-stage-late { background: #ff9966; color: #1c0a05; }
.farming-stage-craft { background: #b8a3ff; color: #100a30; }
.farming-stage-system { background: #75a8e8; color: #041533; }
.farming-card-title { color: #fff; font-size: 0.95rem; font-weight: 900; line-height: 1.45; }
.farming-card-body { display: grid; gap: 6px; margin-bottom: 10px; }
.farming-meta-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  background: #111;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 0.8rem;
  line-height: 1.55;
}
.farming-meta-label { color: #ffd245; font-weight: 900; font-size: 0.72rem; }
.farming-meta-value { color: #f2f2f2; }
.farming-efficiency { color: #ffd245; font-weight: 700; }
.farming-card-note {
  background: #0d1428;
  border: 1px solid #1e2a4a;
  border-radius: 6px;
  color: #d0e0ff;
  font-size: 0.8rem;
  line-height: 1.65;
  padding: 8px 10px;
  margin-bottom: 9px;
}
.farming-card-source { text-align: right; }
.farming-card-source a {
  color: #ffd245;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #ffd24566;
  border-radius: 6px;
  padding: 5px 11px;
  display: inline-block;
}
.farming-card-source a:hover { background: #ffd245; color: #041533; }
.farming-items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.farming-item-card {
  background: #0a0a0a;
  border: 2px solid #fff8dc;
  border-radius: 7px;
  padding: 11px 12px;
}
.farming-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.farming-item-name { color: #ffd245; font-size: 0.88rem; font-weight: 900; }
.farming-item-priority { color: #ff6b6b; font-size: 0.78rem; font-weight: 900; white-space: nowrap; }
.farming-item-effect, .farming-item-obtain {
  color: #f2f2f2;
  font-size: 0.78rem;
  line-height: 1.6;
  margin-top: 4px;
}
.farming-item-effect strong, .farming-item-obtain strong { color: #ffd245; }
.farming-tip {
  background: linear-gradient(180deg, #1a2444 0%, #050505 100%);
  border: 2px solid #ffd245;
  border-radius: 7px;
  color: #f2f2f2;
  font-size: 0.84rem;
  line-height: 1.65;
  padding: 12px 14px;
  margin-top: 16px;
}
.farming-tip strong { color: #ffd245; }
@media (max-width: 560px) {
  .farming-items-grid { grid-template-columns: 1fr; }
  .farming-meta-row { grid-template-columns: 1fr; gap: 2px; }
  .farming-meta-label { font-size: 0.68rem; }
}

/* ============================================================
   進捗ステージバナー（金策）
   ============================================================ */
.farming-stage-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: linear-gradient(90deg, #1a2444 0%, #050505 100%);
  border: 2px solid #ffd24566;
  border-radius: 7px;
  padding: 11px 13px;
  margin-bottom: 12px;
}
.farming-stage-banner-label { color: #b8d8ff; font-size: 0.78rem; font-weight: 700; }
.farming-stage-banner-value { color: #ffd245; font-size: 0.94rem; font-weight: 900; }
.farming-stage-banner-hint { color: #ddd; font-size: 0.76rem; }
.farming-toggle-all {
  margin-left: auto;
  appearance: none;
  border: 2px solid #ffd245;
  background: transparent;
  color: #ffd245;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s;
}
.farming-toggle-all:hover { background: #ffd245; color: #041533; }
.farming-toggle-all[aria-pressed="true"] { background: #ffd245; color: #041533; }

/* ============================================================
   商売系 - 職人セレクト
   ============================================================ */
.farming-craft-control {
  background: #0a0a0a;
  border: 2px solid #fff8dc44;
  border-radius: 7px;
  padding: 12px 13px;
  margin-bottom: 12px;
}
.craft-select-label { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.craft-select-label > span { color: #ffd245; font-size: 0.84rem; font-weight: 900; }
.craft-select-label select {
  flex: 1;
  min-width: 200px;
  background: #111;
  color: #fff8dc;
  border: 2px solid #fff8dc;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 16px; /* iOS Safari ズーム防止のため 16px 必須 */
  font-family: inherit;
  cursor: pointer;
}
.craft-hint {
  display: block;
  color: #999;
  font-size: 0.74rem;
  line-height: 1.55;
  margin-top: 8px;
}
.farming-craft-empty {
  background: #0a0a0a;
  border: 2px dashed #fff8dc44;
  border-radius: 7px;
  padding: 18px;
  color: #ddd;
  font-size: 0.86rem;
  line-height: 1.65;
  text-align: center;
  margin-bottom: 12px;
}
.farming-craft-empty-sub { color: #999; font-size: 0.78rem; margin-top: 6px; }

/* ============================================================
   職人カード（特殊バッジ・難易度色）
   ============================================================ */
.farming-profession-card .farming-card-head,
.farming-craft-other-card .farming-card-head {
  flex-wrap: wrap;
}
.farming-profession-icon {
  font-size: 1.4rem;
  line-height: 1;
  display: inline-block;
  margin-right: 2px;
}
.farming-difficulty-tag {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
  margin-left: auto;
}
.farming-difficulty-easy { background: #95e69b; color: #042a0a; }
.farming-difficulty-mid { background: #ffd245; color: #041533; }
.farming-difficulty-hard { background: #ff6b6b; color: #1c0205; }
.farming-craft-always-tag {
  flex-shrink: 0;
  background: #75a8e8;
  color: #041533;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 900;
  margin-left: auto;
}
.farming-profession-steps {
  background: #0d1428;
  border: 1px solid #1e2a4a;
  border-radius: 6px;
  padding: 0;
  margin-bottom: 9px;
}
.farming-profession-steps summary {
  cursor: pointer;
  color: #ffd245;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 9px 11px;
  list-style: none;
}
.farming-profession-steps summary::-webkit-details-marker { display: none; }
.farming-profession-steps summary::before {
  content: ">";
  display: inline-block;
  margin-right: 8px;
  color: #041533;
  background: #ffd245;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 0.74rem;
  transition: transform 0.16s;
}
.farming-profession-steps[open] summary::before { transform: rotate(90deg); }
.farming-profession-steps ol {
  margin: 0;
  padding: 0 14px 12px 32px;
  display: grid;
  gap: 6px;
  list-style: decimal;
  border-top: 1px solid #1e2a4a;
  padding-top: 10px;
}
.farming-profession-steps ol li {
  color: #f2f2f2;
  font-size: 0.8rem;
  line-height: 1.65;
}

/* ============================================================
   メタルーキー軍団 大行進カード
   ============================================================ */
.metal-rookie-card {
  background: linear-gradient(180deg, #1a2444 0%, #050505 100%);
  border: 3px solid #ffd245;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #fff8dc, 0 8px 24px rgba(255, 210, 69, 0.18);
  padding: 16px;
  margin-bottom: 14px;
}
.metal-rookie-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.metal-rookie-icon { font-size: 2rem; line-height: 1; flex-shrink: 0; }
.metal-rookie-title { color: #ffd245; font-size: 1.05rem; font-weight: 900; margin-bottom: 4px; }
.metal-rookie-sub { color: #ddd; font-size: 0.76rem; line-height: 1.55; }
.metal-rookie-ongoing {
  background: #2D0808;
  border: 2px solid #ff6b6b;
  border-radius: 7px;
  color: #ffe0e0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
  padding: 11px 13px;
  margin-bottom: 12px;
  animation: metal-rookie-pulse 1.8s ease-in-out infinite;
}
.metal-rookie-ongoing strong { color: #ffd245; }
@keyframes metal-rookie-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 107, 0); }
}
.metal-rookie-section-label {
  color: #fff8dc;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.metal-rookie-list {
  list-style: none;
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 0;
}
.metal-rookie-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  background: #050505;
  border: 1px solid #ffd24566;
  border-radius: 7px;
  padding: 10px 13px;
}
.metal-rookie-time {
  color: #ffd245;
  font-size: 1rem;
  font-weight: 900;
  font-feature-settings: "tnum";
}
.metal-rookie-time-end {
  color: #aaa;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: 4px;
}
.metal-rookie-remain {
  color: #f2f2f2;
  font-size: 0.85rem;
  font-weight: 700;
  background: #1e2a4a;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.metal-rookie-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #0a0a0a;
  border: 1px solid #fff8dc44;
  border-radius: 7px;
  margin-bottom: 9px;
}
.metal-rookie-input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffd245;
  font-size: 0.78rem;
  font-weight: 700;
}
.metal-rookie-input-label input[type="time"] {
  background: #111;
  color: #fff8dc;
  border: 2px solid #fff8dc;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 16px; /* iOS Safari ズーム防止のため 16px 必須 */
  font-family: inherit;
  font-feature-settings: "tnum";
}
.metal-rookie-link {
  margin-left: auto;
  color: #75a8e8;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid #75a8e8;
  border-radius: 6px;
  padding: 5px 11px;
  transition: all 0.15s;
}
.metal-rookie-link:hover { background: #75a8e8; color: #041533; }
.metal-rookie-note {
  color: #999;
  font-size: 0.72rem;
  line-height: 1.6;
}
@media (max-width: 560px) {
  .metal-rookie-controls { flex-direction: column; align-items: stretch; }
  .metal-rookie-link { margin-left: 0; text-align: center; }
  .metal-rookie-item { grid-template-columns: 1fr; gap: 4px; }
  .metal-rookie-remain { justify-self: start; }
}

/* ============================================================
   場所一覧ページ (locations.html)
   ============================================================ */
.loc-legend { display: grid; gap: 8px; }
.loc-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f2f2f2;
  font-size: 0.78rem;
  line-height: 1.5;
}
.loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}
.loc-tag-mega {
  background: linear-gradient(90deg, #ffd245 0%, #fff8dc 100%);
  color: #041533;
  box-shadow: 0 0 6px rgba(255, 210, 69, 0.5);
}
.loc-tag-bashikko { background: #95e69b; color: #042a0a; }
.loc-tag-station { background: #75a8e8; color: #041533; }
.loc-tag-no-station { background: #555; color: #ddd; }

.loc-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

.loc-group {
  margin-bottom: 22px;
  scroll-margin-top: 80px;
}
.loc-group-title {
  color: #ffd245;
  font-size: 1.04rem;
  font-weight: 900;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #ffd24544;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.loc-group-count {
  color: #aaa;
  font-size: 0.72rem;
  font-weight: 700;
}

.loc-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px) {
  .loc-card-list { grid-template-columns: 1fr; }
}

.loc-card {
  background: #050505;
  border: 2px solid #555;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #333, 0 6px 18px rgba(0,0,0,0.25);
  padding: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.loc-card.loc-mega {
  border-color: #ffd245;
  background: linear-gradient(180deg, #1a1408 0%, #050505 100%);
  box-shadow: 0 0 0 1px #fff8dc, 0 0 0 3px #050505, 0 6px 22px rgba(255, 210, 69, 0.2);
}
.loc-card.loc-mega::before {
  content: "⭐";
  position: absolute;
}
.loc-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.loc-type-icon { font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.loc-card-title {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 900;
  flex: 1;
  line-height: 1.35;
}
.loc-version-tag {
  flex-shrink: 0;
  background: #1e2a4a;
  color: #75a8e8;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.loc-card.loc-mega .loc-version-tag { background: #2D2208; color: #ffd245; }

.loc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 9px;
}

.loc-from-station {
  background: #111;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.loc-meta-label {
  color: #ffd245;
  font-size: 0.7rem;
  font-weight: 900;
  display: block;
  margin-bottom: 2px;
}
.loc-meta-value {
  color: #f2f2f2;
  font-size: 0.8rem;
  line-height: 1.6;
}
.loc-note {
  color: #ddd;
  font-size: 0.78rem;
  line-height: 1.6;
  background: #0d1428;
  border: 1px solid #1e2a4a;
  border-radius: 6px;
  padding: 7px 10px;
}
.loc-card.loc-mega .loc-note {
  background: #1a1408;
  border-color: #ffd24544;
}

/* === 詳細道順 UI（GameWith風）=== */
.loc-meta-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 9px;
}
.loc-meta-row {
  display: flex;
  background: #111;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 5px 8px;
  gap: 6px;
  font-size: 0.76rem;
}
.loc-meta-key { color: #ffd245; font-weight: 900; flex-shrink: 0; min-width: 52px; }
.loc-meta-val { color: #f2f2f2; line-height: 1.5; }

.loc-section-title {
  color: #ffd245;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 6px;
}

.loc-route-block, .loc-shortcuts-block, .loc-adjacent-block {
  background: #0d1428;
  border: 1px solid #1e2a4a;
  border-radius: 6px;
  padding: 9px 11px;
  margin-bottom: 8px;
}
.loc-card.loc-mega .loc-route-block,
.loc-card.loc-mega .loc-shortcuts-block,
.loc-card.loc-mega .loc-adjacent-block {
  background: #1a1408;
  border-color: #ffd24544;
}

.loc-route-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  counter-reset: rstep;
}
.loc-route-steps li {
  position: relative;
  color: #f2f2f2;
  background: #1e2a4a;
  border: 1px solid #2d3a5f;
  border-radius: 5px;
  padding: 4px 9px 4px 22px;
  font-size: 0.78rem;
  line-height: 1.45;
  counter-increment: rstep;
}
.loc-route-steps li::before {
  content: counter(rstep);
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #ffd245;
  color: #041533;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 900;
}
.loc-route-steps li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffd245;
  font-weight: 900;
  font-size: 0.78rem;
}

.loc-route-text {
  color: #f2f2f2;
  font-size: 0.8rem;
  line-height: 1.65;
  margin: 0;
}

.loc-shortcuts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.loc-shortcuts li {
  color: #f2f2f2;
  font-size: 0.76rem;
  line-height: 1.55;
  padding-left: 14px;
  position: relative;
}
.loc-shortcuts li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #95e69b;
}

.loc-adjacent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.loc-adjacent-tag {
  color: #b8d8ff;
  background: #1e2a4a;
  border: 1px solid #2d3a5f;
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 0.72rem;
}

/* === クエスト一覧（quests.html）=== */
#questsContainer { display: grid; gap: 12px; }
.quest-c-card {
  background: #050505;
  border: 2px solid #555;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #333, 0 6px 18px rgba(0,0,0,0.25);
  padding: 14px;
}
.quest-c-card.quest-cat-job-quest { border-color: #75a8e8; }
.quest-c-card.quest-cat-super-convenience { border-color: #ffd245; background: linear-gradient(180deg, #1a1408 0%, #050505 100%); }
.quest-c-card.quest-cat-convenience { border-color: #95e69b; }
.quest-c-card.quest-cat-lv-cap { border-color: #f9a8d4; }
.quest-c-card.quest-cat-story { border-color: #06b6d4; }

.quest-c-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.quest-c-head-left { display: flex; align-items: baseline; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.quest-c-no {
  color: #ffd245;
  font-size: 0.78rem;
  font-weight: 900;
  font-feature-settings: "tnum";
  flex-shrink: 0;
}
.quest-c-title { color: #fff; font-size: 1.0rem; font-weight: 900; line-height: 1.35; }
.quest-c-jobtag {
  color: #041533;
  background: #75a8e8;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 900;
}
.quest-c-cattag {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
  flex-shrink: 0;
}
.tag-job-quest { background: #75a8e8; color: #041533; }
.tag-super-convenience { background: linear-gradient(90deg, #ffd245 0%, #fff8dc 100%); color: #041533; }
.tag-convenience { background: #95e69b; color: #042a0a; }
.tag-lv-cap { background: #f9a8d4; color: #1f0a14; }

.quest-c-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
@media (max-width: 720px) { .quest-c-meta-grid { grid-template-columns: 1fr; } }
.quest-c-meta {
  background: #111;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 7px 9px;
  font-size: 0.76rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quest-c-meta-key { color: #ffd245; font-weight: 900; font-size: 0.68rem; }
.quest-c-meta-val { color: #f2f2f2; line-height: 1.5; }

.quest-c-content, .quest-c-targets, .quest-c-locs {
  background: #0d1428;
  border: 1px solid #1e2a4a;
  border-radius: 6px;
  padding: 9px 11px;
  margin-bottom: 8px;
  color: #f2f2f2;
  font-size: 0.8rem;
  line-height: 1.65;
}
.quest-c-section-label {
  color: #ffd245;
  font-size: 0.74rem;
  font-weight: 900;
  display: block;
  margin-bottom: 5px;
}
.quest-c-target-link, .quest-c-loc-link {
  display: inline-block;
  color: #fff;
  background: #1e2a4a;
  border: 1px solid #2d3a5f;
  border-radius: 5px;
  padding: 4px 10px;
  margin-right: 5px;
  margin-bottom: 5px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.15s;
}
.quest-c-target-link:hover { background: #ff9966; color: #1c0a05; border-color: #ff9966; }
.quest-c-loc-link:hover { background: #ffd245; color: #041533; border-color: #ffd245; }

.quest-c-note {
  background: #1a1408;
  border: 1px solid #ffd24533;
  border-radius: 6px;
  color: #ffe8b8;
  font-size: 0.78rem;
  line-height: 1.55;
  padding: 7px 10px;
  margin-bottom: 8px;
}
.quest-c-source { text-align: right; }
.quest-c-source a {
  color: #75a8e8;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid #75a8e833;
  border-radius: 5px;
  padding: 3px 9px;
}
.quest-c-source a:hover { background: #75a8e8; color: #041533; }

/* ============================================================
   モンスター一覧ページ (monsters.html)
   ============================================================ */
.active-filter-banner {
  background: #2D2208;
  border: 2px solid #ffd245;
  border-radius: 7px;
  padding: 10px 13px;
  color: #fff8dc;
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.banner-clear {
  appearance: none;
  background: #ffd245;
  color: #041533;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}
.banner-link {
  color: #75a8e8;
  text-decoration: underline;
  font-size: 0.78rem;
}

#monstersContainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px) {
  #monstersContainer { grid-template-columns: 1fr; }
}

.monster-card {
  background: #050505;
  border: 2px solid #555;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #333, 0 6px 18px rgba(0,0,0,0.25);
  padding: 13px;
}
.monster-card.monster-cat-metal {
  border-color: #ffd245;
  background: linear-gradient(180deg, #1a1408 0%, #050505 100%);
  box-shadow: 0 0 0 1px #fff8dc, 0 0 0 3px #050505, 0 6px 22px rgba(255, 210, 69, 0.22);
}
.monster-card.monster-cat-boss {
  border-color: #ff6b6b;
  background: linear-gradient(180deg, #1a0808 0%, #050505 100%);
}
.monster-card.monster-cat-job-quest { border-color: #75a8e8; }
.monster-card.monster-cat-lv-quest { border-color: #95e69b; }

.monster-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.monster-head-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.monster-card-title { color: #fff; font-size: 0.96rem; font-weight: 900; line-height: 1.35; }
.monster-family { color: #aaa; font-size: 0.72rem; }

.monster-tag {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}
.tag-metal { background: linear-gradient(90deg, #ffd245 0%, #fff8dc 100%); color: #041533; box-shadow: 0 0 5px rgba(255,210,69,0.5); }
.tag-boss { background: #ff6b6b; color: #1a0205; }
.tag-job-quest { background: #75a8e8; color: #041533; }
.tag-job { background: #75a8e8; color: #041533; }
.tag-lv-quest { background: #95e69b; color: #042a0a; }
.tag-lv { background: #95e69b; color: #042a0a; }
.tag-field { background: #555; color: #ddd; }
.tag-strong { background: #b8a3ff; color: #100a30; }
.tag-nakama { background: #f9a8d4; color: #1f0a14; }
.tag-material { background: #fbbf24; color: #2a1a05; }
.tag-story { background: #06b6d4; color: #041a1f; }
.monster-tags-wrap { display: flex; flex-wrap: wrap; gap: 4px; flex-shrink: 0; max-width: 50%; }

.monster-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 9px;
}
.monster-stat {
  background: #111;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 6px 8px;
  text-align: center;
}
.monster-stat-label { color: #ffd245; font-size: 0.66rem; font-weight: 900; display: block; margin-bottom: 2px; }
.monster-stat-value { color: #f2f2f2; font-size: 0.76rem; font-weight: 700; }

.monster-drops, .monster-locations {
  background: #111;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.monster-meta-label { color: #ffd245; font-size: 0.7rem; font-weight: 900; display: block; margin-bottom: 4px; }
.monster-meta-value { color: #f2f2f2; font-size: 0.78rem; line-height: 1.55; }

.monster-location-list { list-style: none; display: grid; gap: 6px; padding: 0; }
.monster-location-list li {
  background: #0d1428;
  border: 1px solid #1e2a4a;
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 0.78rem;
  line-height: 1.55;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.monster-loc-map { color: #fff; font-weight: 700; }
.monster-loc-area { color: #aaa; font-size: 0.72rem; }
.monster-loc-coord {
  background: #1e2a4a;
  color: #ffd245;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  font-feature-settings: "tnum";
}
.monster-loc-link {
  margin-left: auto;
  color: #75a8e8;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid #75a8e833;
  border-radius: 4px;
  padding: 2px 8px;
  transition: all 0.15s;
}
.monster-loc-link:hover { background: #75a8e8; color: #041533; }

.monster-note {
  color: #ddd;
  font-size: 0.78rem;
  line-height: 1.6;
  background: #0d1428;
  border: 1px solid #1e2a4a;
  border-radius: 6px;
  padding: 7px 10px;
}

/* 場所カード内の「ここに出るモンスター」リンク */
.loc-monster-link {
  display: inline-block;
  margin-top: 6px;
  color: #ff9966;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid #ff996644;
  border-radius: 5px;
  padding: 4px 10px;
  transition: all 0.15s;
}
.loc-monster-link:hover { background: #ff9966; color: #1c0a05; }
