*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--c-bg, #F4EEE2);
  position: relative;
}

/* 和紙テクスチャは削除 */

/* Ensure page content layers above the washi texture */
body > * { position: relative; z-index: 1; }

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p {
  overflow-wrap: break-word;
  word-break: keep-all;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: keep-all;
  line-break: strict;
}

/* ══════════════════════════════════════════════════
   スマホ限定: 日本語の文節（意味の切れ目）で自然に改行
   ──────────────────────────────────────────────────
   PC版は上記の word-break: keep-all のまま（変更なし）。
   スマホ幅のみ auto-phrase に切り替え、ブラウザの日本語
   解析で「〜が / 〜を / 〜する」等の文節境界で改行させる。
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  body {
    word-break: auto-phrase;
    line-break: strict;
    overflow-wrap: break-word;
  }
  p, h1, h2, h3, h4, h5, h6,
  li, dt, dd, th, td,
  figcaption, blockquote, caption {
    word-break: auto-phrase;
  }
  /* 見出しは行を均等配分し「1文字だけ次行に孤立」を防ぐ */
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  }
  /* 本文は最終行が極端に短くなる（孤立行）のを防ぐ */
  p, li, dd {
    text-wrap: pretty;
  }
}

/* ══════════════════════════════════════════════════
   改行ユーティリティ（スマホ限定の改行位置を手動指定）
   ══════════════════════════════════════════════════ */
/* <br class="br-sp"> … スマホのみ改行する */
.br-sp { display: none; }
/* <br class="br-pc"> … PCのみ改行（スマホでは改行しない） */
.br-pc { display: inline; }
@media (max-width: 768px) {
  .br-sp { display: inline; }
  .br-pc { display: none; }
}
/* <span class="nobr"> … この語句は途中で折り返さない（文節保護） */
.nobr { display: inline-block; }


ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}
