/* リセット・本文・共通外枠・文字階層を担当する。
   tokens.css の後、セクション固有CSSより前に読み込む。 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--linen);
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  overflow-x: clip;
}

body {
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans-jp);
  font-size: 16px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

img {
  /* 内在サイズを持つ画像のはみ出し防止に必要。 */
  display: block;
  height: auto;
  max-width: 100%;
}

picture {
  display: block;
}

main {
  position: relative;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif-jp);
  font-weight: 500;
}

h1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  letter-spacing: 0.08em;
  line-height: 1.35;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.625rem);
  letter-spacing: 0.08em;
  line-height: 1.4;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.55;
}

.heading-knot {
  /* 全見出しで共用する糸の結び目装飾の固定寸法。 */
  border: 1px solid var(--hairline);
  display: inline-block;
  height: 7px;
  margin-right: 0.8rem;
  transform: rotate(45deg);
  vertical-align: 0.18em;
  width: 7px;
}

.heading-text {
  display: inline-block;
}

.heading-line {
  /* 見出し下の統一飾り罫として視認できる固定長。 */
  border-top: 1px solid var(--hairline);
  display: block;
  margin-top: 0.7rem;
  transform-origin: left center;
  width: 4.25rem;
}

.inner {
  /* ページ外枠を一箇所で管理するための唯一のコンテナ上限。削除禁止。 */
  margin-inline: auto;
  max-width: 1120px;
  padding-inline: var(--space-side);
}

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

.section-heading {
  margin-bottom: clamp(2.75rem, 6vw, 5rem);
}

.section-label {
  color: var(--gold);
  font-family: var(--serif-latin);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  line-height: 1.4;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.visually-hidden {
  clip-path: inset(50%);
  margin: -1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

::selection {
  background: var(--gold-light);
  color: var(--ink);
}
