/* ==========================================
   説明ページ用のスタイル

   ツール本体（style.css）は画面いっぱいに固定して拡大縮小する作りだが、
   説明ページは普通に縦へスクロールする文書なので、こちらは別にしている。
   ========================================== */

:root {
    --text:        #2f3640;
    --text-weak:   #6b7280;
    --line:        #e5e7eb;
    --bg:          #f4f6f8;
    --card:        #ffffff;
    --accent:      #0984e3;
    --accent-weak: #eaf4fd;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
                 "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.9;
    -webkit-text-size-adjust: 100%;
}

/* ── ヘッダー ────────────────────────────── */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 14px 20px;
    background: #2f3640;
    color: #fff;
}

.site-logo {
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-decoration: none;
}

.site-nav a:hover { color: #fff; text-decoration: underline; }

/* ── 本文 ────────────────────────────────── */
.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.breadcrumb {
    font-size: 12px;
    color: var(--text-weak);
    margin-bottom: 18px;
}

.breadcrumb a { color: var(--text-weak); }
.breadcrumb span { margin: 0 4px; }

h1 {
    font-size: 26px;
    line-height: 1.5;
    margin: 0 0 16px;
}

h2 {
    font-size: 20px;
    line-height: 1.6;
    margin: 44px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--line);
}

h3 {
    font-size: 16px;
    margin: 28px 0 10px;
}

p { margin: 0 0 16px; }

.lead {
    font-size: 15px;
    color: var(--text-weak);
    margin-bottom: 32px;
}

a { color: var(--accent); }

ul, ol { margin: 0 0 16px; padding-left: 1.5em; }
li { margin-bottom: 8px; }

strong { font-weight: bold; }

code {
    background: #eef1f4;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
    font-family: Consolas, Menlo, monospace;
}

/* ── 手順 ────────────────────────────────── */
.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0 0 24px;
}

.steps > li {
    counter-increment: step;
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px 18px 60px;
    margin-bottom: 14px;
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    top: 18px;
    left: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps h3 { margin: 0 0 6px; }
.steps p:last-child { margin-bottom: 0; }

/* ── 補足の囲み ──────────────────────────── */
.note {
    background: var(--accent-weak);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 0 0 24px;
    font-size: 14px;
}

.note p:last-child { margin-bottom: 0; }

/* ── 表 ──────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    margin: 0 0 24px;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 420px;
    background: var(--card);
    font-size: 14px;
}

th, td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eef1f4;
    white-space: nowrap;
}

/* ── ツールへの誘導 ──────────────────────── */
.cta {
    display: block;
    background: var(--accent);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    padding: 16px;
    border-radius: 30px;
    margin: 36px 0;
    box-shadow: 0 4px 12px rgba(9, 132, 227, 0.3);
}

.cta:hover { background: #0a6ebd; }

/* ── フッター ────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 28px 20px 36px;
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin-bottom: 16px;
}

.footer-nav a {
    font-size: 13px;
    color: var(--text-weak);
    text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; }

.footer-copy {
    font-size: 12px;
    color: var(--text-weak);
    margin: 0;
}

/* ── 画面が狭いとき ──────────────────────── */
@media (max-width: 600px) {
    body { font-size: 15px; }
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    .page { padding: 20px 16px 48px; }
    .steps > li { padding: 16px 16px 16px 54px; }
}
