/* ==========================================================================
   Base / Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-serif-jp);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  font-feature-settings: "palt" 1;     /* 和文プロポーショナル */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
a:hover { opacity: 0.7; }

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::selection {
  background: var(--color-maple);
  color: var(--color-white);
}

/* フォーカスリング：アクセシビリティ確保 */
:focus-visible {
  outline: 2px solid var(--color-maple);
  outline-offset: 3px;
}

/* スクリーンリーダー専用 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* レイアウトユーティリティ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-px);
}

.container--narrow {
  max-width: 880px;
}

.section {
  padding-block: var(--section-py);
}

/* セクション見出しの英字キャプション */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono-en);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-widest);
  color: var(--color-maple);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

/* 縦書きで使う細い罫線（飾り） */
.rule {
  display: block;
  width: 1px;
  height: 64px;
  margin: 0 auto;
  background: var(--color-ink);
  opacity: 0.4;
}
