/* リセット、本文タイポ、共通アクセシビリティを担当する。
   サイズ制御は内在サイズを持つ画像・SVGだけに限定する。 */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 92px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  background-image: url("paper-fibers.svg");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .025em;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease-standard);
}

body.menu-open {
  overflow: hidden;
}

body[data-atlas-theme="verdant"] { background-color: var(--green-deep); }
body[data-atlas-theme="ink"] { background-color: var(--ink); }
body[data-atlas-theme="paper"] { background-color: var(--paper); }

h1, h2, h3, p, figure, dl, dd {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

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

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

button {
  margin: 0;
  font: inherit;
  color: inherit;
}

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

/* viewBoxを持つロゴ・図版の比率維持に必要な例外。 */
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 4px;
}

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

.section > .wrap {
  position: relative;
  z-index: 2;
}

/* ページ外枠を一貫させるサイト唯一のmax-width。削除禁止。 */
.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-kicker,
.hero-kicker,
.section-index,
.hero-coordinate,
.route-meta,
.photo-note,
.belief-label,
.service-item > p:first-child,
.value-number,
.contact-route > span,
.culture-shot figcaption {
  font-family: var(--font-code);
  text-transform: uppercase;
}

.section-kicker,
.hero-kicker {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .16em;
}

.section-kicker--light {
  color: var(--green-bright);
}

.section-index {
  padding-top: 6px;
  border-top: 1px solid var(--ink);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .1em;
}

.section-index span {
  margin-right: 18px;
  color: var(--green-deep);
  font-weight: 700;
}

.section-index--light {
  border-color: var(--line-light);
  color: rgba(255, 254, 248, .65);
}

.section-index--light span {
  color: var(--green-bright);
}

.section-heading h2,
.value-heading h2,
.company-heading h2,
.contact-heading h2 {
  margin-top: 20px;
  font-size: clamp(31px, 4vw, 42px);
  line-height: 1.36;
  letter-spacing: -.04em;
}

.mask-line {
  display: block;
  overflow: hidden;
}

.mask-line > span {
  display: block;
}

.keep-together {
  white-space: nowrap;
}

.section-lead,
.value-heading > div > p:last-child,
.company-heading > p:last-child,
.contact-heading > p:last-child {
  margin-top: 28px;
  color: var(--ink-soft);
  line-height: 2;
}
