@charset "UTF-8";
/* =========================================================
   本文（修理事例の記事・プライバシーポリシー）の文字組み
   管理画面の本文エディタでも同じ見た目で編集できるよう、公開ページと共用する。
   ページ全体の初期化（style.css の Base）に頼らず、書体・文字サイズ・余白の初期化まで .prose の中で完結させる。
   色・書体の変数は style.css の :root（管理画面では admin.css のエディタ欄）で定義する。
   ========================================================= */

.prose {
  max-width: 760px;
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  line-break: strict;
}

@media (max-width: 767px) {
  .prose {
    font-size: 15px;
    line-height: 1.85;
  }
}

/* ブラウザ既定の余白を消す。詳細度を0にして、下の余白の指定を優先させる */
.prose :where(h1, h2, h3, h4, p, ul, ol, li, figure, blockquote) {
  margin: 0;
}

/* 日本語見出しを文節で折り返し、1文字だけの行を避ける（未対応ブラウザは通常の折り返し） */
.prose :where(h1, h2, h3, h4) {
  word-break: auto-phrase;
  text-wrap: balance;
}

.prose :where(p) {
  text-wrap: pretty;
}

.prose > * + * {
  margin-top: 1.3em;
}

.prose h2 {
  margin-top: 2.6em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .06em;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2em;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: .06em;
}

.prose h4 {
  margin-top: 1.6em;
  font-size: 15.5px;
  font-weight: 500;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose strong {
  font-weight: 700;
  color: var(--ink);
}

.prose ul {
  display: grid;
  gap: .5em;
  padding-left: 1.3em;
  list-style: disc;
}

.prose ol {
  display: grid;
  gap: .5em;
  padding-left: 1.5em;
  list-style: decimal;
}

.prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.prose .updated {
  margin-top: 3em;
  font-size: 14px;
  color: var(--ink-3);
}
