/* Feedmoon Help Center
 * 色はトップページ（assets/css/main.css）の青 #28a6d7〜#0280b0 に合わせる。
 * 書体は製品と同じくヒラギノ優先。ダークは OS の設定に従う。 */

:root {
    --brand: #0280b0;
    --brand-light: #28a6d7;
    --brand-tint: #e8f5fb;
    --ink: #1d2a31;
    --ink-soft: #3c4c55;
    --muted: #6a7a83;
    --line: #dfe7ec;
    --surface: #f5f8fa;
    --bg: #fff;
    --card: #fff;
    --header-bg: rgba(255, 255, 255, .88);
    --shadow: 0 1px 2px rgba(16, 42, 56, .06), 0 4px 16px rgba(16, 42, 56, .06);
    --warn: #c62828;
    --pros: #2e7d32;
    --cons: #c62828;
    --radius: 12px;
    --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Helvetica Neue", "Noto Sans JP", Meiryo, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #4cb8e4;
        --brand-light: #7fd0f0;
        --brand-tint: #15303d;
        --ink: #e6edf1;
        --ink-soft: #c3cfd6;
        --muted: #8fa0a9;
        --line: #2b3a42;
        --surface: #141d22;
        --bg: #0f171b;
        --card: #18232a;
        --header-bg: rgba(15, 23, 27, .88);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
        --warn: #ff8a80;
        --pros: #81c784;
        --cons: #ff8a80;
        color-scheme: dark;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand);
}
a:hover {
    color: var(--brand-light);
}
a:focus-visible {
    outline: 2px solid var(--brand-light);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ヘッダ */
header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1120px;
    height: 56px;
    margin: 0 auto;
    padding: 0 20px;
}
header .page-title {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}
header .page-title a {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}
header .page-title a span {
    overflow: hidden;
    text-overflow: ellipsis;
}
header .page-title a::before {
    content: '';
    flex: 0 0 26px;
    height: 26px;
    border-radius: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M14.5 3a9 9 0 1 0 6.6 15.1A7.6 7.6 0 0 1 14.5 3z'/%3E%3C/svg%3E") center / 16px no-repeat, linear-gradient(135deg, var(--brand-light), var(--brand));
}
header .header-app {
    flex: none;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 13px;
    text-decoration: none;
}
header .header-app:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* パンくず */
nav.breadcrumbs {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 20px 0;
    color: var(--muted);
    font-size: 13px;
}
nav.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
nav.breadcrumbs li + li::before {
    content: '›';
    margin: 0 8px;
    color: var(--muted);
}
nav.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}
nav.breadcrumbs a:hover {
    color: var(--brand);
}

/* 本文 */
main {
    max-width: 1120px;
    margin: 0 auto 96px;
    padding: 0 20px;
}
main > article {
    max-width: 760px;
    margin: 0 auto;
}

main h1 {
    margin: 28px 0 0;
    padding: 0;
    line-height: 1.4;
    color: var(--ink);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: .01em;
    text-wrap: balance;
}

.lead {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.textructure {
    margin: 28px 0 0;
    line-height: 1.9;
    color: var(--ink-soft);
    font-size: 16px;
}

.textructure a {
    font-weight: normal;
    text-underline-offset: 3px;
}

.textructure b {
    color: var(--ink);
    font-weight: bold;
}

.textructure h2, .textructure h3, .textructure h4 {
    padding: 0;
    margin: 2.2em 0 0;
    line-height: 1.5;
    color: var(--ink);
    font-weight: 700;
    text-wrap: balance;
    scroll-margin-top: 72px;
}
.textructure h2 {
    padding-top: 1.2em;
    border-top: 1px solid var(--line);
    font-size: 22px;
}
.textructure h3 {
    font-size: 18px;
}
.textructure h4 {
    font-size: inherit;
}

.textructure code {
    border: 1px solid var(--line);
    border-radius: 4px;
    background-color: var(--surface);
    padding: 0.1em 0.35em;
    word-break: break-all;
    font-family: var(--mono);
    font-size: 0.9em;
    color: var(--ink);
    font-weight: normal;
}

.textructure p {
    margin: 1.2em 0 0;
}

.textructure p.topic-title {
    color: var(--ink);
    font-weight: bold;
}

.textructure ul, .textructure ol {
    margin-top: 1.2em;
    margin-bottom: 0;
    padding-left: 1.5em;
}
.textructure li {
    margin-top: 0.3em;
    margin-bottom: 0;
}
.textructure li.discrete {
    margin-top: 1.2em;
}

.textructure dl {
    margin-top: 1.2em;
    margin-bottom: 0;
}
.textructure dt {
    color: var(--ink);
    font-weight: bold;
    margin: 0;
}
.textructure dt.discrete {
    margin-top: 1.2em;
}
.textructure dd {
    margin: 0;
}
.textructure dd.indented {
    margin: 0 0 0.8em 1.2em;
}
.textructure dd.indented:last-child {
    margin-bottom: 0;
}
.textructure dd.indented p {
    margin-top: 0.2em;
}

.textructure table.compact-dl {
    margin-top: 1.2em;
    margin-bottom: 0;
    border-collapse: collapse;
    border: none;
}
.textructure table.compact-dl td {
    border: none;
    padding: 0;
    vertical-align: top;
}
.textructure table.compact-dl td:first-child {
    padding-right: 1em;
    white-space: nowrap;
    color: var(--ink);
    font-weight: bold;
}
.textructure table.compact-dl td.discrete {
    padding-top: 1.2em;
}

.textructure pre.code-block {
    margin-top: 1.2em;
    margin-bottom: 0;
    padding: 1em 1.2em;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: auto;
    line-height: 1.5;
    font-size: 14px;
}
.textructure pre.code-block code {
    display: inline;
    border: none;
    background-color: transparent;
    padding: 0;
    word-break: inherit;
    line-height: inherit;
    font-size: inherit;
    color: inherit;
}

.textructure .note {
    position: relative;
    color: var(--muted);
    font-size: 85%;
    margin-left: 1.2em;
}
.textructure .warn {
    position: relative;
    color: var(--warn);
    font-size: 85%;
    margin-left: 1.2em;
}
.textructure .note:before, .textructure .warn:before {
    display: block;
    position: absolute;
    top: 0;
    left: -1.2em;
    content: '※';
}

.textructure .index {
    margin-top: 1.2em;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    line-height: 1.6;
}
.textructure .index-title {
    margin: 0.8em 1.2em 0.4em;
    color: var(--ink);
    font-weight: bold;
}
.textructure .index-content {
    margin: 0.4em 1.2em 1em;
}
.textructure .index-content:first-child {
    margin: 1em 1.2em;
}

.textructure .info {
    margin-top: 1.2em;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.textructure .info-title {
    background-color: var(--brand-tint);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: bold;
    padding: 0.5em 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.textructure .info-content {
    padding: 0.8em 1em;
}

.textructure img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.textructure iframe.youtube {
    border: 1px solid var(--line);
    border-radius: 10px;
}
.textructure img.noborder, .textructure iframe.youtube.noborder {
    border: none;
    box-shadow: none;
}
.textructure img.emoji {
    vertical-align: -2px;
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
@media (prefers-color-scheme: dark) {
    .textructure img.emoji {
        filter: invert(.85);
    }
}

.textructure .media {
    margin-top: 1.6em;
    padding: 20px;
    background: var(--surface);
    border-radius: var(--radius);
}
.textructure .media-content {
    text-align: center;
}
.textructure .media-content img, .textructure .media-content iframe, .media-content a {
    display: inline-block;
    vertical-align: bottom;
}
.textructure .media-description {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: 0.8em 0 0 0;
}

.textructure .break-all {
    word-break: break-all;
}

.textructure p:first-child, .textructure p.sticky,
.textructure .media:first-child, .textructure .media.sticky,
.textructure ul:first-child, .textructure ul.sticky,
.textructure ol:first-child, .textructure ol.sticky,
.textructure dl:first-child, .textructure dl.sticky,
.textructure table.compact-dl:first-child, .textructure table.compact-dl.sticky,
.textructure pre.code-block:first-child, .textructure pre.code-block.sticky,
.textructure .info:first-child, .textructure .info.sticky,
.textructure .index:first-child, .textructure .index.sticky {
    margin-top: 0;
}

.textructure .description-table {
    margin: 1.2em 0 0;
    overflow: auto;
}
.textructure .description-table.sticky {
    margin: 0;
}
.textructure .description-table table {
    border: none;
    border-collapse: collapse;
}
.textructure .description-table th {
    padding: 0.3em 1em 0.3em 0.5em;
    border: none;
    border-bottom: 2px solid var(--line);
    white-space: nowrap;
    text-align: left;
    color: var(--ink);
    font-weight: bold;
}
.textructure .description-table td {
    padding: 0.3em 1em 0.3em 0.5em;
    border: none;
    border-bottom: 1px solid var(--line);
}
.textructure .description-table td:first-child, .textructure .description-table td:nth-child(3) {
    white-space: nowrap;
}
.textructure .description-table td:nth-child(2) {
    min-width: 20em;
}

.textructure .pros-cons {
    margin: 1.2em 0 0;
    overflow: auto;
}
.textructure .pros-cons table {
    border-collapse: collapse;
    border: 1px solid var(--line);
}
.textructure .pros-cons caption {
    text-align: left;
    color: inherit;
    padding: 0 0 0.3em 0.5em;
}
.textructure .pros-cons th {
    padding: 0.3em 1em;
    background-color: var(--surface);
    border: 1px solid var(--line);
    text-align: center;
    color: var(--ink);
    font-weight: bold;
    white-space: nowrap;
}
.textructure .pros-cons td {
    padding: 0.3em 1em;
    border: 1px solid var(--line);
    text-align: center;
    white-space: nowrap;
}
.textructure .pros-cons td:first-child {
    padding: 0.3em 2em 0.3em 0.5em;
    text-align: left;
}
.textructure .pros-cons .pros {
    color: var(--pros);
}
.textructure .pros-cons .cons {
    color: var(--cons);
}

/* ガイド: 端末の選択 */
.textructure .guide-devices, .textructure .guide-steps {
    padding-left: 0;
}
.textructure .guide-steps li, .textructure .guide-devices li {
    margin: 0;
}
.guide-devices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}
.guide-device {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 24px 22px 22px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.guide-device:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
    color: var(--ink);
    transform: translateY(-2px);
}
.guide-device-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
    display: grid;
    place-items: center;
}
.guide-device-icon svg {
    width: 24px;
    height: 24px;
}
.guide-device-name {
    font-size: 18px;
    font-weight: 700;
}
.guide-device-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}
.guide-device-meta {
    margin-top: auto;
    padding-top: 12px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
}
.guide-device.is-current {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-tint);
}
.guide-device-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--bg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}
.guide-device:not(.is-current) .guide-device-badge {
    display: none;
}

/* ガイド: ステップの一覧 */
.guide-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}
.guide-steps a {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.guide-steps a:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
    color: var(--ink);
}
.guide-step-no {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-tint);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.guide-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0 0;
    padding: 18px 20px;
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
}
.guide-support a {
    flex: none;
    font-weight: 600;
}

/* ガイド: ステップのページ */
.guide-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 760px);
    justify-content: center;
    gap: 56px;
}
.guide-layout > article {
    margin: 0;
}
.guide-side {
    position: sticky;
    top: 80px;
    align-self: start;
    margin-top: 28px;
    font-size: 13px;
}
.guide-side-title {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}
.guide-side ol {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 2px solid var(--line);
}
.guide-side a {
    display: flex;
    gap: 10px;
    margin-left: -2px;
    padding: 6px 0 6px 14px;
    border-left: 2px solid transparent;
    color: var(--muted);
    line-height: 1.5;
    text-decoration: none;
}
.guide-side a:hover {
    color: var(--ink);
}
.guide-side a span {
    flex: 0 0 1.4em;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.guide-side a[aria-current="page"] {
    border-left-color: var(--brand);
    color: var(--brand);
    font-weight: 700;
}

.step-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 0;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
}
.step-progress-bar {
    flex: 0 0 120px;
    height: 4px;
    border-radius: 2px;
    background: var(--line);
    overflow: hidden;
}
.step-progress-bar span {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-light), var(--brand));
}
.step-progress + h1 {
    margin-top: 8px;
}

.step-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 56px 0 0;
}
.step-pager a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.step-pager a:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
    color: var(--ink);
}
.step-pager small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.step-pager .next {
    grid-column: 2;
    text-align: right;
    background: var(--brand-tint);
    border-color: transparent;
}
.step-pager .next small {
    color: var(--brand);
}

/* フッタ */
footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 2;
}
footer .related-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 20px 0;
}
footer .related-links h4 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}
footer .related-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
footer .related-links li {
    margin: 0;
    padding: 0;
}
footer .related-links a {
    color: inherit;
    text-decoration: none;
}
footer .related-links a:hover {
    color: var(--brand);
}
footer .official-accounts {
    display: none;
}
footer .copyright {
    max-width: 1120px;
    margin: 32px auto 0;
    padding: 16px 20px 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    .guide-device, .guide-steps a, .step-pager a {
        transition: none;
    }
    .guide-device:hover {
        transform: none;
    }
}

@media screen and (max-width: 1023px) {
    .guide-layout {
        display: block;
    }
    .guide-layout > article {
        margin: 0 auto;
    }
    .guide-side {
        display: none;
    }
}

@media screen and (max-width: 720px) {
    .guide-devices, .guide-steps {
        grid-template-columns: 1fr;
    }
    .guide-device {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 14px;
        padding: 16px;
    }
    .guide-device-icon {
        margin: 0;
    }
    .guide-device-desc {
        flex-basis: 100%;
    }
    .guide-device-meta {
        padding-top: 0;
    }
}

@media screen and (max-width: 500px) {
    header .header-inner {
        padding: 0 16px;
    }
    header .header-app {
        display: none;
    }
    nav.breadcrumbs, main {
        padding-left: 16px;
        padding-right: 16px;
    }
    main h1 {
        font-size: 26px;
    }
    .textructure {
        font-size: 15px;
    }
    .textructure h2 {
        font-size: 20px;
    }
    .textructure h3 {
        font-size: 17px;
    }
    .textructure ul {
        padding-left: 1.4em;
    }
    .textructure dd.indented {
        margin-left: 0;
    }
    .textructure .media {
        margin-left: -16px;
        margin-right: -16px;
        padding: 16px;
        border-radius: 0;
    }
    .textructure table.compact-dl {
        display: block;
    }
    .textructure table.compact-dl tr {
        display: block;
        margin-top: 0.5em;
    }
    .textructure table.compact-dl tr:first-child {
        margin-top: 0;
    }
    .textructure table.compact-dl td {
        display: block;
    }
    .textructure table.compact-dl td:first-child {
        padding-right: 0;
        white-space: inherit;
    }
    .textructure table.compact-dl td.discrete {
        padding-top: 0;
    }
    .textructure table.compact-dl td.discrete:first-child {
        padding-top: 1em;
    }
    .step-pager {
        grid-template-columns: 1fr;
    }
    .step-pager .next {
        grid-column: 1;
        grid-row: 1;
    }
    footer .related-links {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 32px;
    }
    footer .related-links ul {
        display: flex;
        flex-wrap: wrap;
        gap: 2px 18px;
    }
    footer .related-links li {
        white-space: nowrap;
    }
    footer .copyright {
        margin-top: 28px;
        padding-bottom: 32px;
    }
}
