/* DXCC代行ワッチ 構築手順ページ（ホームページに合わせた黒背景・金色の見出し） */
:root {
  --bg: #000000;
  --panel: #161616;
  --ink: #EDEAE2;
  --sub: #A9A59B;
  --gold: #D9B44A;
  --olive: #8C9A3C;
  --coral: #E9806E;
  --aqua: #7FCFE3;
  --rule: #3A3732;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  color: var(--ink);
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem 4rem; }
a { color: var(--aqua); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

/* 進み具合の表示 */
.top { padding: 1.4rem 0 1.6rem; border-bottom: 1px solid var(--rule); margin-bottom: 2.2rem; }
.site { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
        font-size: .9rem; color: var(--sub); }
.site a { color: var(--sub); text-decoration: none; }
.site a:hover { color: var(--ink); }
.meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: .9rem; list-style: none; padding: 0; }
.meter li a { display: block; text-decoration: none; color: var(--sub); font-size: .78rem; line-height: 1.3; }
.meter li a::before { content: ""; display: block; height: 10px; border-radius: 2px; background: #2A2824;
                      margin-bottom: .35rem; }
.meter li.done a::before { background: #6B5A26; }
.meter li.now a::before { background: var(--gold); box-shadow: 0 0 10px rgba(217,180,74,.55); }
.meter li.now a { color: var(--gold); font-weight: 700; }
@media (max-width: 560px) { .meter li a span { display: none; } }

h1, h2, h3 { color: var(--gold); font-weight: 700; line-height: 1.4; }
h1 { font-size: 1.85rem; margin: 0 0 .4rem; }
.step { color: var(--sub); font-size: 1rem; margin: 0; }
.lead { font-size: 1.08rem; margin: 1.2rem 0 2rem; }
h2 { font-size: 1.3rem; margin: 2.6rem 0 .6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.08rem; margin: 1.8rem 0 .4rem; }
p { margin: .7rem 0; }
ol, ul { padding-left: 1.4rem; }
li { margin: .35rem 0; }
strong { color: #FFF6DA; }

/* コマンド（コピーボタン付き） */
.cmd { position: relative; margin: .9rem 0; }
.cmd pre { margin: 0; padding: .9rem 1rem; background: var(--panel); border: 1px solid var(--rule);
           border-radius: 4px; overflow-x: auto; font-family: "BIZ UDGothic", Consolas, "MS Gothic", monospace;
           font-size: .92rem; line-height: 1.6; color: #F3EFE4; white-space: pre; }
.cmd:not(.tree):not(.out) pre { padding-right: 4.8rem; }
.cmd button { position: absolute; top: .5rem; right: .5rem; font: inherit; font-size: .8rem; padding: .2rem .7rem;
              background: transparent; color: var(--aqua); border: 1px solid var(--aqua); border-radius: 3px; cursor: pointer; }
.cmd button.ok { color: var(--olive); border-color: var(--olive); }
code { font-family: "BIZ UDGothic", Consolas, monospace; font-size: .92em; background: var(--panel);
       padding: .05rem .35rem; border-radius: 3px; }
.out pre { color: var(--sub); }

/* 表 */
.tbl { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .5rem .7rem; border-bottom: 1px solid var(--rule); }
th { color: var(--gold); font-weight: 700; white-space: nowrap; }

/* 囲み */
.note, .warn, .check { margin: 1.4rem 0; padding: .9rem 1.1rem; border-left: 4px solid; background: var(--panel); }
.note { border-color: var(--aqua); }
.warn { border-color: var(--coral); }
.warn strong:first-child { color: var(--coral); }
.check { border-color: var(--olive); margin-top: 3rem; }
.check h2 { border: 0; margin: 0 0 .3rem; padding: 0; font-size: 1.15rem; color: #C4D06A; }
.check ul { margin: .4rem 0; }

/* 図 */
figure { margin: 1.6rem 0; }
figcaption { color: var(--sub); font-size: .88rem; margin-top: .4rem; }
.ph { border: 1px dashed #5A554B; padding: 2.2rem 1rem; text-align: center; color: var(--sub); font-size: .9rem; }
svg { max-width: 100%; height: auto; display: block; }
.tree pre { color: #F3EFE4; }

/* 前後の画面へ */
.nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: .7rem 1.4rem; border-radius: 4px; font-weight: 700; text-decoration: none; }
.btn.next { background: var(--olive); color: #0A0A00; margin-left: auto; }
.btn.back { border: 1px solid var(--aqua); color: var(--aqua); }
.btn:hover { filter: brightness(1.12); }
footer { margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--sub); font-size: .85rem; }
footer a { color: var(--sub); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* 通知メールの画面（スマートフォンの縦長の図） */
.shot img { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 6px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; margin: 1.6rem 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 6px; }
