/* はつめいロボバトルDX — あそびかたガイド（#modal-help・js/help.js）。2026-12-03 仕上げで作り直し
   1ページ＝青焼きの方眼に描いた絵＋見出し＋短い文。スマホ縦は絵が上・文が下、PC（760px〜）は絵が左・文が右。
   決めごと：押せる所は 44px 以上・本文 15px 以上。左だけ太い色線は使わない。押下に合わせて光らせない */

#modal-help .modal-box { max-width: 520px; }
#modal-help .help-tabs { margin-bottom: 12px; }

.hg { display: flex; flex-direction: column; gap: 12px; }
.hg-stage { display: flex; flex-direction: column; gap: 12px; }
.hg-art {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.hg-art svg { display: block; width: 100%; height: 100%; }
.hg-svg-txt { font-family: 'M PLUS Rounded 1c', sans-serif; letter-spacing: .02em; }
/* 方眼の上の白い字は墨で縁取って読みやすく */
.hg-art text[fill="#fff"] { stroke: var(--ink); stroke-width: 3.5px; stroke-linejoin: round; paint-order: stroke; }
.hg-body { min-width: 0; }
.hg-step { margin: 0; display: flex; align-items: center; gap: 2px; font-weight: 900; font-size: 14px; color: var(--ink-soft); }
.hg-step-n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--accent-yellow);
  color: var(--ink);
  font-size: 15px;
}
.hg-title {
  margin: 6px 0 6px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hg-text {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hg-list { margin: 0; display: grid; gap: 8px; }
.hg-li { display: grid; grid-template-columns: 4.9em 1fr; gap: 10px; align-items: start; }
.hg-li dt {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  padding: 2px 4px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff3bf;
  white-space: nowrap;
}
.hg-li dd {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hg-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.hg-btn {
  min-height: 48px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--ink);
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
.hg-btn--main { background: var(--accent-yellow); }
.hg-btn:disabled { opacity: .35; box-shadow: none; cursor: default; }
.hg-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.hg-dots { display: flex; gap: 7px; justify-content: center; }
.hg-dots i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.hg-dots i.on { background: var(--ink); }

/* PC・タブレット横：絵を左に大きく、文を右に */
@media (min-width: 760px) {
  #modal-help .modal-box { max-width: 860px; padding: 18px 22px 20px; }
  #modal-help .help-tabs { grid-template-columns: repeat(4, 1fr); }
  .hg-stage { flex-direction: row; align-items: center; gap: 22px; }
  .hg-art { flex: 0 0 55%; }
  .hg-title { font-size: 24px; }
  .hg-text { font-size: 17px; }
  .hg-li dd { font-size: 16px; }
  .hg-nav { grid-template-columns: 160px 1fr 160px; }
}

/* スマホの低い画面：絵を少し低くして、ボタンまで1画面に入れる */
@media (max-width: 759px) and (max-height: 760px) {
  .hg-art { aspect-ratio: 16 / 8.2; }
  .hg-title { font-size: 19px; margin: 4px 0; }
  .hg-text { font-size: 15px; line-height: 1.7; }
  .hg-li dd { font-size: 14px; line-height: 1.55; }
  .hg-li dt { font-size: 14px; }
  .hg-li { gap: 8px; }
  .hg-list { gap: 6px; }
  .hg-stage { gap: 8px; }
  .hg { gap: 10px; }
}
