/* ── ページ固有オーバーライド ── */
.section { margin-bottom: 48px; }

/* ── アンカーナビ ── */
.page-anchors {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.page-anchors li {
  border-bottom: 1px solid var(--line);
}
.page-anchors li:first-child {
  border-top: 1px solid var(--line);
}
.page-anchors a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  font-size: 13px;
  color: var(--t1);
  text-decoration: none;
  transition: color .15s;
}
.page-anchors a::after {
  content: '›';
  color: var(--t2);
  font-size: 16px;
}
.page-anchors a:hover {
  color: var(--t0);
}

/* ════════════════════════════
   強化パターン 4カード
════════════════════════════ */
.pattern-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.pcard {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: var(--r2);
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.pcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}

.pcard-head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pcard-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--t2);
  letter-spacing: .05em;
}
.pcard-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--t0);
  flex: 1;
}
.pcard-body {
  padding: 16px 18px 12px;
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* アイテムフロー（横並び） */
.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-thumb.req  { border: 1px solid rgba(246,196,74,.4);  background: var(--amber-dim); }
.item-thumb.opt  { border: 1px dashed rgba(79,209,197,.4);  background: var(--cyan-dim); }
.item-thumb.safe { border: 1px dashed rgba(244,114,138,.4); background: var(--rose-dim); }
.item-thumb .ph  { font-size: 8px; color: var(--t2); text-align: center; line-height: 1.3; }
.flow-label {
  font-size: 10px;
  color: var(--t1);
  text-align: center;
  max-width: 64px;
  line-height: 1.3;
  word-break: keep-all;
}
.flow-label em {
  font-style: normal;
  display: block;
  font-size: 9px;
  color: var(--t2);
  margin-top: 1px;
}
.flow-sep {
  font-size: 14px;
  color: var(--t2);
  flex-shrink: 0;
  padding-bottom: 20px;
}

/* 後方互換（item-info は不使用に） */
.item-info { display: none; }
.item-name { display: none; }
.item-desc { display: none; }

/* 結果ストライプ */
.pcard-result {
  margin: 12px 18px 16px;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}
.res-normal { background: rgba(246,196,74,.08); border: 1px solid rgba(246,196,74,.2); color: var(--amber); }
.res-safe   { background: rgba(244,114,138,.08); border: 1px solid rgba(244,114,138,.2); color: var(--rose); }
.res-bless  { background: rgba(79,209,197,.08); border: 1px solid rgba(79,209,197,.2); color: var(--cyan); }
.res-both   { background: rgba(167,139,250,.08); border: 1px solid rgba(167,139,250,.2); color: var(--violet); }
.res-icon { font-size: 14px; flex-shrink: 0; line-height: 1.6; }

/* ガイドコールアウト */
.callout {
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: var(--r2);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--t1);
  margin-top: 16px;
}
.callout-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.callout strong { color: var(--t0); }

/* ── 紋様強化フロー ── */
.mouyo-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  border-radius: var(--r2);
  flex-wrap: wrap;
  margin-top: 12px;
}
.mouyo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.mouyo-thumb {
  width: 52px; height: 52px;
  border-radius: 10px;
  border: 1px solid rgba(246,196,74,.4);
  background: var(--amber-dim);
  display: flex; align-items: center; justify-content: center;
}
.mouyo-thumb .ph { font-size: 8px; color: var(--t2); text-align: center; line-height: 1.3; }
.mouyo-label { font-size: 11px; font-weight: 600; color: var(--t0); text-align: center; max-width: 72px; line-height: 1.3; }
.mouyo-sub   { font-size: 10px; color: var(--t2); text-align: center; }
.mouyo-arrow { font-size: 20px; color: var(--t2); flex-shrink: 0; }
.mouyo-result {
  flex: 1; min-width: 140px;
  background: rgba(90,240,137,.06);
  border: 1px solid rgba(90,240,137,.2);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.mouyo-result-title { font-size: 13px; font-weight: 700; color: var(--green); }
.mouyo-result-desc  { font-size: 12px; color: var(--t1); }

/* ── 入手先ブロック ── */
.source-block {
  background: var(--bg1);
  border: 1px solid var(--line2);
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 16px;
}
.source-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}
.source-thumb {
  width: 44px; height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.source-thumb .ph { font-size: 8px; color: var(--t2); text-align: center; line-height: 1.3; }
.s-req  { border: 1px solid rgba(246,196,74,.4);  background: var(--amber-dim); }
.s-opt  { border: 1px dashed rgba(79,209,197,.35); background: var(--cyan-dim); }
.s-both { border: 1px solid rgba(167,139,250,.4);  background: rgba(167,139,250,.1); }

.source-head-text { flex: 1; }
.source-item-name { font-size: 14px; font-weight: 700; color: var(--t0); }
.source-item-role { font-size: 11px; color: var(--t2); margin-top: 3px; }

.source-rows { padding: 8px 0; }
.src-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.src-row:last-child { border-bottom: none; }
.src-row:hover { background: rgba(255,255,255,.02); }
.src-tag {
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  min-width: 96px;
  text-align: center;
  letter-spacing: .02em;
}
.tag-dg   { background: rgba(96,165,250,.1);  color: var(--blue);   border: 1px solid rgba(96,165,250,.25); }
.tag-wb   { background: rgba(244,114,138,.1); color: var(--rose);   border: 1px solid rgba(244,114,138,.25); }
.tag-wr   { background: rgba(246,196,74,.1);  color: var(--amber);  border: 1px solid rgba(246,196,74,.25); }
.tag-wd   { background: rgba(79,209,197,.1);  color: var(--cyan);   border: 1px solid rgba(79,209,197,.25); }
.tag-shop { background: rgba(167,139,250,.1); color: var(--violet); border: 1px solid rgba(167,139,250,.25); }
.tag-pack { background: rgba(90,240,137,.1);  color: var(--green);  border: 1px solid rgba(90,240,137,.25); }
.src-detail { font-size: 12px; color: var(--t1); line-height: 1.6; }
.src-detail em { font-style: normal; color: var(--t2); font-size: 11px; }

/* ── Legend ── */
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.lg { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--t2); }
.lg-dot { width: 8px; height: 8px; border-radius: 50%; }
.lg-dot.amber { background: var(--amber); border: 1px solid rgba(246,196,74,.5); }
.lg-dot.cyan  { background: var(--cyan);  border: 1px dashed rgba(79,209,197,.5); }
.lg-dot.rose  { background: var(--rose);  border: 1px dashed rgba(244,114,138,.5); }
.enhance-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--t2);
  line-height: 1.7;
}

/* ── Table overrides ── */
.tbl-wrap { margin-top: 12px; overflow-x: auto; overflow-y: clip; -webkit-overflow-scrolling: touch; }
table { table-layout: fixed; min-width: 720px; }
thead th { padding: 12px 16px; }
.tbl-mould { table-layout: auto; }
.tbl-enhance th,
.tbl-enhance td { text-align: center; }
.tbl-enhance thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
td { padding: 11px 16px; }
td.hl { font-family: 'DM Mono', monospace; letter-spacing: .04em; }
.hl .lv-from::after {
  content: ' → ';
  color: var(--t2);
}
.tbl-mould td.hl { white-space: nowrap; }
td.sm { font-size: 12px; }
.td-pending { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--t2); }
.td-pending::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--t2); opacity: .5; }

/* ── Image sizes ── */
.item-thumb img   { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.mouyo-thumb img  { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.source-thumb img { width: 36px; height: 36px; object-fit: cover; border-radius: 5px; }

@media (max-width: 640px) {
  .th-mobile-hide { display: none; }
}
