/* 使い方ページだけの見た目。style.css は長くキャッシュされるので、足す分はここに書く */

:root {
    --pin-want: #FABF0D;
    --pin-visited: #CC4D1A;
    --pin-friend: #40A666;
    --pin-follow: #994DBF;
    --pin-shared: #D96B7A;
}

.guide-hero { padding: 32px 0 8px; }
.guide-hero .hero-title { font-size: clamp(34px, 6vw, 52px); }

/* 目次: まとまりごとに、章の名前 + 何ができるかの 1 行 */
.toc-group { margin-top: 26px; }
.toc-title {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}
.toc-group.first .toc-title { color: var(--accent); }
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; border-bottom: 1px solid var(--hairline); }
.toc a {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 2px;
    color: var(--text-primary);
    text-decoration: none;
}
.toc a::after { content: "›"; margin-left: auto; color: var(--text-tertiary); font-size: 20px; }
.toc .n {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg-warm);
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toc-group.first .toc .n { background: var(--accent); color: #fff; }
.toc .t { display: flex; flex-direction: column; }
.toc .t b { font-size: 15.5px; font-weight: 600; }
.toc .t small { font-size: 13px; color: var(--text-secondary); }

/* 章 */
.chapter { scroll-margin-top: 16px; }
.chapter > .eyebrow { margin-top: 8px; }
.chapter > h2 { margin-top: 6px; font-size: clamp(24px, 4vw, 30px); }
.lead { color: var(--text-secondary); font-size: 15px; margin: 0 0 8px; }

/* 手順: 「番号 + 1 行 + その画面」を 1 枚ずつ横に並べる (横スクロール) */
.flow {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 14px -22px 0;
    padding: 0 22px 12px;
    scroll-padding: 0 22px;
}
.flow.single { overflow: visible; }
.step-card { margin: 0; flex: 0 0 230px; scroll-snap-align: start; }
@media (max-width: 560px) { .step-card { flex-basis: 66%; } }
.step-card > img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 24px;
    border: 1px solid var(--hairline);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    background: var(--bg-warm);
}
.card-step {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.55;
    min-height: 3.1em;
}
.card-step .num {
    flex: 0 0 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.card-caption { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
.step-card.no-shot .card-step { min-height: 0; }

.chapter h3 {
    font-family: "Iowan Old Style", "Palatino", Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 19px;
    margin: 28px 0 0;
}
.plain-steps li, .plain-bullets li { font-size: 15px; margin-bottom: 8px; }

/* 「くわしく」: 最初は閉じておく補足 */
details.more { margin: 12px 0 0; }
details.more summary {
    cursor: pointer;
    color: var(--accent);
    font-size: 13.5px;
    font-weight: 600;
    list-style: none;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " ▾"; }
details.more[open] summary::after { content: " ▴"; }
details.more ul { margin: 8px 0 0; }
details.more li { font-size: 14px; color: var(--text-secondary); }

/* ボタンの説明の一覧 */
.keys { list-style: none; padding: 0; margin: 12px 0 0; }
.keys li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--hairline);
    margin: 0;
}
.keys li:last-child { border-bottom: none; }
.keys li { align-items: center; }
/* 画面と同じボタンの絵 (アプリの画面から切り出したもの) */
.key-icon { flex: 0 0 112px; display: flex; justify-content: center; }
.key-icon img { height: 36px; width: auto; display: block; }
.keys .where {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}
/* 文中のボタン名の前に付ける小さな絵 */
.ui .ico { height: 1.5em; width: auto; vertical-align: -0.42em; margin: 0 4px 0 -6px; }
.keys b { font-weight: 600; }

/* 文中のボタン名 */
.ui {
    display: inline-block;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--bg-warm);
    border: 1px solid var(--hairline);
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
}

/* ピンの色 */
.pins { list-style: none; padding: 0; margin: 10px 0 0; }
.pins li { margin: 0 0 6px; font-size: 14.5px; }
.pin-dot {
    display: inline-block;
    width: 11px; height: 11px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    box-shadow: 0 0 0 0.5px rgba(0,0,0,0.2);
    margin-right: 8px;
    vertical-align: -1px;
}
.pin-dot.want { background: var(--pin-want); }
.pin-dot.visited { background: var(--pin-visited); }
.pin-dot.friend { background: var(--pin-friend); }
.pin-dot.follow { background: var(--pin-follow); }

/* ひとこと補足 */
.tip {
    margin: 14px 0 0;
    padding: 2px 0 2px 14px;
    border-left: 2px solid var(--accent);
    color: var(--text-secondary);
    font-size: 14px;
}

.back-top { font-size: 12.5px; color: var(--text-tertiary); display: inline-block; margin-top: 4px; }
.ico-pill { height: 1.9em; width: auto; vertical-align: -0.6em; }
