/* ============================================
   来場ガイド（guide.html。2026-11-06 代表の指示）
   ・このページだけが読む。style.css は変えない（全ページの ?v= を変えないため）
   ・手順は「番号つきの見出し → 文 → 画面」。画面の中の番号の印は、そばの手順の番号と同じ
   ============================================ */
.gd {
  max-width: 920px;
}

/* ---- このページの流れ（上の目次） ---- */
.gd-toc {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.gd-toc__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid rgba(255, 62, 122, 0.35);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-on-light);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.gd-toc__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 62, 122, 0.15);
}

.gd-toc__no {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: #ff3e7a;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 30px;
  text-align: center;
}

.gd-toc__item--sub .gd-toc__no {
  background: var(--color-turquoise);
}

.gd-toc__name {
  min-width: 0;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  word-break: auto-phrase;
}

.gd-lead-note {
  margin: 0 0 28px;
  font-size: 0.88rem;
  color: var(--text-on-light-sub);
}

/* ---- 章（用意するもの・STEP 1〜4 など） ---- */
.gd-sec {
  margin: 0 0 28px;
  padding: 28px 30px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(110, 60, 130, 0.1);
  color: var(--text-on-light);
  font-size: 1rem;
  line-height: 1.85;
}

.gd-sec p {
  margin: 0 0 0.9em;
}

.gd-sec a:not(.btn) {
  color: #ff3e7a;
  font-weight: 700;
  border-bottom: 1px dotted #ff3e7a;
}

.gd-sec__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 16px;
  font-family: var(--font-jp);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--text-on-light);
}

.gd-sec__badge {
  padding: 3px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-pink));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.gd-sub {
  margin: 24px 0 10px;
  padding-left: 12px;
  border-left: 4px solid #ff3e7a;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.5;
}

.gd-need {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.gd-need li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 1.6em;
}

.gd-need li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff3e7a;
  font-weight: 900;
}

.gd-need strong {
  color: var(--text-on-light);
}

/* ---- 手順（番号は〈1〉の印と同じ） ---- */
.gd-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: gd;
}

.gd-steps > li {
  position: relative;
  margin: 0 0 18px;
  padding-left: 46px;
  counter-increment: gd;
}

.gd-steps > li::before {
  content: counter(gd);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ff6a2c;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ff6a2c;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.gd-steps__title {
  margin: 2px 0 4px !important;
  font-weight: 900;
  font-size: 1.05rem;
}

/* ---- 画面 ---- */
.gd-fig {
  margin: 10px 0 6px;
}

.gd-fig img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  border: 1px solid #e3d6ea;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(110, 60, 130, 0.12);
}

.gd-fig--narrow img {
  max-width: 420px;
}

.gd-fig figcaption {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-on-light-sub);
}

/* ---- 操作の表 ---- */
.gd-table-wrap {
  overflow-x: auto;
  margin: 0 0 6px;
}

.gd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.6;
}

.gd-table th,
.gd-table td {
  padding: 8px 12px;
  border: 1px solid #ead9ef;
  text-align: left;
  vertical-align: top;
}

.gd-table thead th {
  background: #fde7f0;
  color: #c2185b;
  font-weight: 800;
}

.gd-table tbody th {
  background: #fbf6fd;
  font-weight: 700;
}

/* ---- 会場のワールドの名前 ---- */
.gd-worlds {
  margin: 0 0 1em;
  padding: 12px 16px 12px 2em;
  border-radius: 12px;
  background: #f4f8ff;
  line-height: 1.8;
}

.gd-worlds b {
  overflow-wrap: anywhere;
}

.gd-small {
  font-size: 0.85rem;
  color: var(--text-on-light-sub);
}

/* ---- 図の番号の説明（〈1〉ワールド など） ---- */
.gd-marks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px 18px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.6;
}

.gd-marks li {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.gd-mark {
  flex: 0 0 auto;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: 12px;
  background: #ff6a2c;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

/* ---- 困ったとき ---- */
.gd-qa {
  margin: 0;
}

.gd-qa dt {
  margin: 16px 0 4px;
  padding-left: 1.7em;
  text-indent: -1.7em;
  font-weight: 900;
}

.gd-qa dt::before {
  content: "Q.";
  display: inline-block;
  width: 1.7em;
  text-indent: 0;
  color: #ff3e7a;
  font-family: var(--font-display);
}

.gd-qa dd {
  margin: 0;
  padding-left: 1.7em;
}

/* 見本の段階だけ使う「中身の予定」の枠 */
.gd-ph {
  margin: 8px 0;
  padding: 16px 18px;
  border: 2px dashed #c9b4d8;
  border-radius: 12px;
  background: #faf6fd;
  font-size: 0.92rem;
  color: #5d4b7a;
}

.gd-foot {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--text-on-light-sub);
}

@media (max-width: 600px) {
  .gd-sec {
    padding: 20px 16px;
  }
  .gd-sec__title {
    font-size: 1.2rem;
  }
  .gd-steps > li {
    padding-left: 40px;
  }
  /* スマホでは画面を文の幅いっぱいに出す（番号の列の下まで広げる） */
  .gd-steps > li > .gd-fig {
    margin-left: -40px;
  }
  .gd-table {
    font-size: 0.85rem;
  }
  .gd-table th,
  .gd-table td {
    padding: 6px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gd-toc__item { transition: none; }
}

/* 画像のクレジット（2026-11-07 佐々宮智志さんの画像） */
.gd-credit {
  margin-top: 8px;
  font-size: 0.8125rem;
  opacity: 0.8;
}
