/* ============================================================
   Base Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-jp);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  color: var(--color-text);
  background-color: var(--color-bg-washi);
  background-image: url('../images/textures/bg-washi.webp');
  background-size: 100vw auto;      /* 横幅100vwでタイリング継ぎ目を解消 */
  background-position: top center;
  background-repeat: repeat-y;      /* 横リピート不要、縦のみ */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 { margin:0; font-family:var(--font-jp); font-weight:700; line-height:var(--lh-tight); color:var(--color-text); }
p,dl,ul,ol,figure,blockquote { margin:0; }
ul,ol { padding:0; list-style:none; }
dl,dt,dd { margin:0; }
a { color:inherit; text-decoration:none; transition:opacity var(--duration-fast) var(--easing); }
a:hover { opacity:0.7; }
img,svg,video { max-width:100%; height:auto; display:block; }
img { border:0; }
button { background:none; border:0; padding:0; cursor:pointer; color:inherit; font:inherit; }
hr { border:0; height:1px; background:var(--color-divider); margin:0; padding:0; }

/* Screen reader only */
.screen-reader-text {
  position:absolute!important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ============================================================
   Layout: Site Wrapper / Main
   ============================================================ */
.site-wrapper { position:relative; min-height:100vh; }
.site-main {
  position:relative; z-index:var(--z-content);
  /* margin-right 廃止 — サイドバー含むビューポート中央揃えに統一 */
}
.page-top {
  background-color: var(--color-bg-washi);
  background-image: url('../images/textures/bg-washi.webp');
  background-size: 100vw auto;      /* bodyと統一 — 継ぎ目解消 */
  background-position: top center;
  background-repeat: repeat-y;
  /* margin-right / padding-right 廃止 — site-mainがフル幅のため不要 */
}

