/*
 * 「タイトルと本文」のページの本文（2026-11-18 要望26）。
 * お客様のページ（site/article）と、管理画面の入力欄（admin/partials/article-editor）の両方で読み込む。
 * 同じ見た目にして、打っているそばで仕上がりが分かるようにする。
 * 画像は画面の幅に合わせて大きさが変わる（はみ出さない・形を変えない）。
 */
.article-body { font-size: 16px; line-height: 1.9; color: inherit; overflow-wrap: anywhere; word-break: normal; }
.article-body > * { margin: 0; }
.article-body > * + * { margin-top: 1em; }
.article-body h2 { font-size: 1.3em; line-height: 1.5; font-weight: 700; padding-bottom: .35em; border-bottom: 2px solid var(--accent, #c05a7c); margin-top: 1.8em; }
.article-body > h2:first-child { margin-top: 0; }
.article-body strong, .article-body b { font-weight: 700; }
.article-body figure { margin-inline: 0; }
/* 幅は画像ごとに style で「元の幅」を書き、ここで画面の幅までに縮める（width:auto だと、読み込む前の高さが0になり、
   見えていない下の帯まで最初に全部読み込まれていた。【実測】2026-11-18 事務所PC の Edge） */
.article-body figure img { display: block; width: auto; max-width: 100%; height: auto; margin-inline: auto; border-radius: 8px; }
/* 縦に長い画像は帯に分けてある。すき間・角の丸み・線が出ないよう、1枚の画像に見せる（上の帯の上だけ・下の帯の下だけ丸く） */
.article-body figure.is-long img { border-radius: 0; vertical-align: top; }
.article-body figure.is-long img:first-of-type { border-radius: 8px 8px 0 0; }
.article-body figure.is-long img:last-of-type { border-radius: 0 0 8px 8px; }
.article-body .tx-red { color: #c62828; } .article-body .tx-pink { color: #c2185b; } .article-body .tx-orange { color: #b45309; }
.article-body .tx-green { color: #2e7d32; } .article-body .tx-blue { color: #1565c0; } .article-body .tx-purple { color: #6a1b9a; }
.article-body .sz-sm { font-size: .85em; } .article-body .sz-lg { font-size: 1.25em; } .article-body .sz-xl { font-size: 1.6em; line-height: 1.4; }

/* お客様のページ */
/* 文字は内側（ほかのページと同じ24px）。スマホでは画像だけ、画面のふちから5pxまで広げる（site.css「スマホの左右の端をそろえる」と同じ決まり） */
.article-page { padding: 24px 24px 8px; }
@media (max-width: 599px) { .article-page .article-body figure { margin-inline: -19px; } }
.article-head { text-align: center; margin-bottom: 28px; }
.article-head h1 { font-size: 1.5rem; line-height: 1.5; margin: .3em 0 0; overflow-wrap: anywhere; }
.article-kind { margin: .4em 0 0; font-size: .9rem; opacity: .8; }
.article-closing { display: grid; justify-items: center; gap: 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 18%, transparent); text-align: center; }
.article-closing p { margin: 0; line-height: 1.8; }
.article-closing-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.article-closing-link svg { width: 16px; height: 16px; }

/* ページの中の区切り（2026-11-21 MSK）。文字の色はページのまま（暗い地のデザインでも読める）。線と地だけお店の色を薄く使う */
.article-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -8px 0 28px; }
.article-jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 2px solid color-mix(in srgb, var(--accent, #c05a7c) 55%, transparent); border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none; color: inherit; overflow-wrap: anywhere; }
.article-jump a svg { flex: none; width: 14px; height: 14px; transform: rotate(90deg); }
.article-jump a:focus-visible { outline: 3px solid var(--accent, #c05a7c); outline-offset: 2px; }
.article-part { margin-top: 36px; padding: 20px 18px; border: 2px solid color-mix(in srgb, var(--accent, #c05a7c) 40%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--accent, #c05a7c) 6%, transparent); scroll-margin-top: 80px; overflow-wrap: anywhere; }
.article-part:target { border-color: var(--accent, #c05a7c); }
.article-part-title { margin: 0 0 12px; font-size: 1.3rem; line-height: 1.5; font-weight: 700; }
.article-part-body { font-size: 16px; line-height: 1.9; }
.article-part-body p { margin: 0; }
.article-part-body p + p { margin-top: 1em; }
.article-part-facts { display: grid; gap: 10px; margin: 16px 0 0; }
.article-part-facts > div { display: grid; grid-template-columns: minmax(7.5em, auto) 1fr; gap: 4px 12px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.article-part-facts dt { font-weight: 700; font-size: 15px; }
.article-part-facts dd { margin: 0; font-size: 16px; line-height: 1.7; }
@media (max-width: 380px) { .article-part-facts > div { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .article-page .article-part { margin-inline: -19px; } }

/* 管理画面の入力欄 */
.article-editor { display: grid; gap: 10px; }
.article-tools { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border: 2px solid var(--line, #ddd); border-radius: 12px; background: #fff; }
.article-tools[hidden], .article-editor [hidden] { display: none !important; }
.article-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 2px solid var(--line, #ddd); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 700; color: #222; cursor: pointer; }
.article-tool svg { width: 20px; height: 20px; }
.article-tool[aria-pressed="true"] { border-color: var(--accent, #c05a7c); background: color-mix(in srgb, var(--accent, #c05a7c) 12%, #fff); }
.article-tool:focus-visible { outline: 3px solid var(--accent, #c05a7c); outline-offset: 2px; }
.article-tool-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #f1f1f1; font-size: 13px; }
.article-tool-mark.is-bold { font-weight: 900; }
.article-rich { min-height: 320px; padding: 16px; border: 2px solid var(--line, #ddd); border-radius: 12px; background: #fff; color: #222; outline: none; }
.article-rich:focus { border-color: var(--accent, #c05a7c); }
.article-rich:empty::before { content: "ここに本文を書きます。"; color: #888; }
.article-rich figure { position: relative; user-select: none; }
.article-rich figure.is-loading { display: grid; place-items: center; min-height: 120px; border: 2px dashed var(--line, #ddd); border-radius: 8px; color: #666; font-size: 14px; }
.article-remove { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.72); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.article-remove:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.article-status { margin: 0; font-size: 14px; color: #555; }
.article-status.is-error { color: #b42318; font-weight: 700; }

.article-save { flex-wrap: wrap; }
.article-publish { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; font-size: 15px; font-weight: 700; color: #222; }
.article-publish input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.article-publish-switch { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: #bbb; transition: background .15s; }
.article-publish-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.article-publish input:checked + .article-publish-switch { background: #1f7a3a; }
.article-publish input:checked + .article-publish-switch::after { transform: translateX(22px); }
.article-publish input:focus-visible + .article-publish-switch { outline: 3px solid var(--accent, #c05a7c); outline-offset: 2px; }
.article-dirty { font-size: 14px; font-weight: 700; color: #b45309; }
@media (max-width: 480px) {
    .article-save .button-primary { flex: 1 1 100%; }
    .article-tool { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { .article-publish-switch, .article-publish-switch::after { transition: none; } }

/* 長い文を読みやすく（N4。2026-11-22）: 行の間を広く。本文はお店が入れたとおり（14回目に「 」の囲み・並びの組み替え・段落の間の泡の印はやめた） */
.article-body > p, .article-part-body > p { line-height: 2.05; letter-spacing: .02em; }
.article-body > p + p { margin-top: 1.4em; }

/* 見出しの形（N4 案2。お店が［見出し］で書いた見出しと区切りの題だけ。お客様のページだけ。管理画面の入力欄には付けない）。
   文字の色はページの地のまま（暗い地のデザインでも読める）。ピンクは線だけ */
.article-page .article-body > h2 { text-align: center; font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "MS PMincho", serif; letter-spacing: .04em; padding-bottom: 0; border-bottom: 0; }
.article-page .article-body > h2::after, .article-page .article-part-title::after { content: ""; display: block; width: 44px; height: 2px; margin: 12px auto 0; border-radius: 2px; background: #d9508f; }
.article-page .article-part-title { text-align: center; font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "MS PMincho", serif; letter-spacing: .04em; }
