/* 大会の申込のしかた（どの大会でも使える手引き）
   文字は少なく・1手順1カード・画面写真は押すと大きくなる（画像そのものへのリンク）。 */
:root {
  --bg: #f6f7f9;
  --paper: #ffffff;
  --ink: #1b2436;
  --sub: #5a6478;
  --line: #dfe4ee;
  --navy: #1f3561;
  --navy-soft: #e8edf6;
  --gold: #a8801f;
  --gold-soft: #fdf7e7;
  --warn: #9b2c2c;
  --warn-soft: #fdeaea;
  --font: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161e; --paper: #1a202b; --ink: #e6e9ef; --sub: #a3acbb; --line: #2e3646;
    --navy: #8fb0e8; --navy-soft: #1f2a40; --gold: #e0b955; --gold-soft: #2d2715;
    --warn: #f08a74; --warn-soft: #3a1f1c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12161e; --paper: #1a202b; --ink: #e6e9ef; --sub: #a3acbb; --line: #2e3646;
  --navy: #8fb0e8; --navy-soft: #1f2a40; --gold: #e0b955; --gold-soft: #2d2715;
  --warn: #f08a74; --warn-soft: #3a1f1c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 18px; line-height: 1.75;
}
main {
  max-width: 980px; margin: 0 auto;
  padding: 28px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 44px;
}
h1, h2, h3 { margin: 0; line-height: 1.4; text-wrap: balance; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: var(--navy); }
section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 16px; }
.eyebrow { font-size: .85rem; color: var(--sub); letter-spacing: .06em; }
.lead { color: var(--sub); }
header { display: flex; flex-direction: column; gap: 8px; }

/* 入口の3枚 */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.door {
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.door .who { font-size: .8rem; color: var(--sub); }
.door .what { font-weight: 700; font-size: 1.1rem; }
.door .go { color: var(--navy); font-weight: 700; font-size: .95rem; }
.door.first { background: var(--gold-soft); border-color: var(--gold); }

/* 手順のカード */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.step .head { display: flex; gap: 10px; align-items: flex-start; }
.num {
  flex: none; width: 1.8em; height: 1.8em; border-radius: 50%;
  display: inline-grid; place-items: center; font-weight: 700; font-size: .95rem;
  background: var(--navy); color: var(--paper); /* 暗い表示では --navy が明るくなるので、字は地の色に合わせる */
}
.step .t { font-weight: 700; }
.step .t b { color: var(--gold); }
.role {
  align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 1px 10px; border-radius: 999px;
  background: var(--navy-soft); color: var(--navy);
}
.role.pair { background: var(--gold-soft); color: var(--gold); }
.shot { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.shot img { width: 100%; height: auto; display: block; }

/* 区切りの帯（ダブルスはここから など） */
.band {
  display: flex; align-items: center; gap: 10px;
  background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 12px; padding: 10px 14px;
  font-weight: 700;
}
.band small { font-weight: 400; color: var(--sub); }

/* 気をつけること */
.notes {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px; font-size: .95rem;
}
.notes p { display: flex; gap: 8px; }
.notes p::before { content: "・"; color: var(--sub); }
.notes .warn { color: var(--warn); }

/* よくある質問 */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.qa {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.qa .q { font-weight: 700; }
.qa .a { color: var(--sub); font-size: .95rem; }

.video {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none;
  background: var(--navy-soft); color: var(--navy); border-radius: 12px; padding: 12px 16px; font-weight: 700;
}
.video span:last-child { font-size: 1.3rem; }

footer {
  border-top: 1px solid var(--line); padding-top: 14px; font-size: .8rem; color: var(--sub);
  display: flex; flex-direction: column; gap: 4px;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  h1 { font-size: 1.55rem; }
  .doors, .faq { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .shot { max-width: 300px; margin: 0 auto; width: 100%; }
}

/* 上の帯（どのガイドも同じ）：「共有」「ホームへ」と、その下の現在地（使い方動画 › このページ） */
/* 下の余白: このページは main の段の間（44px）があるので、帯と表題の間だけ詰める（ほかのページの帯は 16px） */
.guide-top { margin: 0 0 -28px; }
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; padding: 0 0 10px; border-bottom: 2px dashed rgba(127, 127, 127, .35); }
.appbar-brand { font-weight: 800; letter-spacing: .02em; }
.appbar-actions { display: flex; flex: none; gap: 8px; }
.appbar-home, .appbar-share { flex: none; padding: 4px 14px; border: 2px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: .85rem; font-weight: 700; line-height: 1.5; text-decoration: none; cursor: pointer; }
.appbar-home:hover, .appbar-share:hover { background: rgba(226, 169, 59, .2); }
.appbar-share[hidden] { display: none; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .85rem; opacity: .8; }
.crumbs a { color: inherit; }
.crumbs .sep { opacity: .6; }
