/* 要素の初期設定・コンテナ・共通見出し・背景・汎用ユーティリティ。 */

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--leading-body);
  letter-spacing: 0.04em;
}

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

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--leading-heading);
}

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

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

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

button {
  cursor: pointer;
}

a,
button {
  transition: opacity 0.2s;
}

a:hover,
button:hover {
  opacity: 0.8;
}

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

.container {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--container);
  margin-inline: auto;
}

.container--wide {
  max-width: var(--container-wide);
}

.container--small {
  max-width: var(--container-small);
}

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

/* 途中の全幅タイトル帯はセクション上端から。冒頭・内側の見出しは余白を保つ。 */
main
  > .section:not(:first-child, .section--white-film-details, .section--features):has(
    > .section-heading:first-child
  ) {
  padding-top: 0;
}

.section--marble {
  background:
    linear-gradient(
      rgb(255 255 255 / var(--clinic-white-overlay)),
      rgb(255 255 255 / var(--clinic-white-overlay))
    ),
    url(../images/marble-clinic.jpg) center / cover;
}

.section--waves {
  background:
    linear-gradient(
      rgb(255 255 255 / var(--waves-white-overlay)),
      rgb(255 255 255 / var(--waves-white-overlay))
    ),
    url(../images/marble-waves.jpg) center / cover;
}

.section--reason {
  background: #fff url(../images/marble-clinic.jpg) center / cover;
}

.section--price {
  background: #fff url(../images/price-background.jpg) center / cover;
}

.section--cta {
  background:
    linear-gradient(
      rgb(252 252 252 / var(--cta-white-overlay)),
      rgb(252 252 252 / var(--cta-white-overlay))
    ),
    url(../images/marble.jpg) center / cover;
}

.section--paper {
  background:
    linear-gradient(
      rgb(255 255 255 / var(--paper-white-overlay)),
      rgb(255 255 255 / var(--paper-white-overlay))
    ),
    url(../images/paper.jpg) center / cover;
}

.copy {
  line-height: var(--leading-body);
  overflow-wrap: anywhere;
}

.copy p + p {
  margin-top: var(--space-4);
}

.body-list {
  padding-left: 1.3em;
  margin: var(--space-4) 0 0;
}

.body-list li + li {
  margin-top: var(--space-1);
}

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

.sp-only {
  display: inline;
}

.section-heading {
  padding: var(--space-4) var(--gutter);
  margin-bottom: var(--content-gap);
  text-align: center;
  font-size: var(--text-lg);
  background: var(--section-gradient);
}

.display-heading {
  font-size: var(--text-9xl);
  line-height: 1;
  font-weight: 700;
  text-align: center;
  color: transparent;
  background: var(--gold-text-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  letter-spacing: normal;
  margin-bottom: var(--space-6);
}

.display-subtitle {
  text-align: center;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  margin-top: -1.5rem;
  margin-bottom: var(--content-gap);
}

.title-unit {
  display: inline-block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

main {
  min-height: 20rem;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 1rem;
  background: white;
  z-index: 1000;
}

.centered {
  text-align: center;
}

.copy .body-list {
  list-style: none;
  padding-left: 0;
  margin-top: var(--space-4);
}

.gold-text {
  color: transparent;
  background: var(--gold-text-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

@media (min-width: 768px) {
  .sp-only {
    display: none;
  }

  body {
    font-size: var(--text-base);
  }

  .section-heading {
    font-size: var(--text-4xl);
  }

  .display-heading {
    font-size: var(--text-11xl);
  }

  .display-heading {
    margin-bottom: 1.25rem;
  }

  .display-subtitle {
    font-size: var(--text-5xl);
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  button {
    transition: none;
  }
}
