/* 鉱山町の工房 — 鉱山町の夕暮れ（暗い茶・紫の地に金色）
   参照: MineTownWorks/docs/setup/site-handoff.md（ゲーム内の色） */
:root {
  --bg:            #1b1118;
  --primary:       #ffd45a;
  --primary-light: #ffe48f;
  --glow:          rgba(255, 212, 90, 0.22);
  --glass-bg:      rgba(46, 34, 56, 0.65);
  --glass-border:  rgba(241, 226, 184, 0.16);
  --text-main:     #f1e2b8;
  --text-sub:      #b9a9a0;
  --mtw-card:      #42304d;
  --mtw-brown:     #9a5b2c;
  --mtw-green:     #3f9b3f;
  --mtw-blue:      #3f6fb5;
}

body { color: var(--text-main); }
.btn-primary { color: #2a1c00; }

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px var(--glow);
  image-rendering: pixelated;
}
.hero-en { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; letter-spacing: 0.18em; color: var(--text-sub); margin-bottom: 0.75rem; }
.hero-origin { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 1.5rem; max-width: 560px; }
.hero-art { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto 2rem; border-radius: 16px; border: 1px solid var(--glass-border); }

/* ドット絵は、整数倍で、ぼかさずに拡大する（width / height 属性で整数倍を指定） */
.sprite-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 0.5rem 0.9rem; margin: 0 auto 1.75rem; max-width: 640px; }
.sprite-row img { image-rendering: pixelated; height: auto; }

.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--primary-light); }
.feature-card p { color: var(--text-sub); line-height: 1.7; font-size: 0.92rem; }
.feature-sprite { display: flex; align-items: flex-end; gap: 0.4rem; height: 48px; margin-bottom: 1rem; }
.feature-sprite img { image-rendering: pixelated; height: auto; }

/* あそびかた（3 ステップ） */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step-card { position: relative; padding: 1.5rem; text-align: center; }
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0.9rem; left: 0.9rem;
  width: 1.8rem; height: 1.8rem; border-radius: 6px;
  background: var(--mtw-brown); color: #f1e2b8;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.step-card h3 { color: var(--primary-light); font-size: 1.1rem; margin: 0.25rem 0 0.5rem; }
.step-card p { color: var(--text-sub); font-size: 0.9rem; line-height: 1.7; }
.step-card .step-shot { display: block; width: 100%; max-width: 200px; height: auto; margin: 1rem auto 0; border-radius: 12px; border: 1px solid var(--glass-border); }
.step-flow { display: flex; justify-content: center; align-items: flex-end; gap: 0.5rem; height: 44px; margin-bottom: 0.75rem; }
.step-flow img { image-rendering: pixelated; height: auto; }

.mini-faq-item {
  border-bottom: 1px solid var(--glass-border);
  padding: 1.1rem 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}
.mini-faq-item:last-child { border-bottom: none; }
.mini-faq-q { color: var(--text-main); font-weight: 600; font-size: 0.93rem; }
.mini-faq-a { color: var(--text-sub); font-size: 0.93rem; line-height: 1.6; }
.mini-faq-a a { color: var(--primary); }
@media (max-width: 768px) { .mini-faq-item { grid-template-columns: 1fr; } }

.contact-text { color: var(--text-sub); line-height: 1.7; margin: 1rem 0 2rem; }

.screenshot-strip img { height: 520px; max-height: 520px; }
.story-text { color: var(--text-sub); line-height: 1.9; font-size: 0.95rem; margin-bottom: 1rem; }
.story-list { list-style: none; padding: 0; margin: 0; }
.story-list li { color: var(--text-sub); font-size: 0.95rem; padding: 0.35rem 0 0.35rem 1.25rem; position: relative; }
.story-list li::before { content: '·'; position: absolute; left: 0.3rem; color: var(--primary); font-size: 1.2rem; line-height: 1.4; }
@media (max-width: 768px) { .screenshot-strip img { height: 420px; max-height: 420px; } }

/* 準備中のストアボタン（リンクなし） */
.btn-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ドキュメントページ */
.doc-section h3 { font-size: 1rem; color: var(--text-main); margin: 1.25rem 0 0.4rem; }
.doc-section strong { color: var(--text-main); }
.doc-section a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.article-chip {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--primary);
  background: rgba(255, 212, 90, 0.1);
  border: 1px solid var(--glow);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.4rem;
  vertical-align: middle;
  margin-right: 0.4rem;
}
.doc-table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; line-height: 1.6; }
.doc-table th, .doc-table td { border: 1px solid var(--glass-border); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.doc-table th { background: rgba(255, 212, 90, 0.12); color: var(--text-main); white-space: nowrap; }
.doc-table td { color: var(--text-sub); }
.doc-table td strong { color: var(--text-main); }
.doc-section ol { list-style: decimal; color: var(--text-sub); font-size: 0.95rem; line-height: 1.8; padding-left: 1.5rem; margin: 0.5rem 0 0.75rem; }
.doc-section ol li { padding: 0.15rem 0; }
.doc-note { color: var(--text-sub); font-size: 0.85rem; line-height: 1.7; }

/* ナビ: メニューを常に中央に置く（ホームには言語切替がなく、space-between だと右に寄るため） */
@media (min-width: 769px) {
  nav .nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  nav .nav-inner > .nav-logo { justify-self: start; }
  nav .nav-inner > .lang-toggle { justify-self: end; }
}
