*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--ff-zen);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--color-text);
  background-color: #F5F5F5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: var(--fw-bold);
  line-height: 1.4;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl, dt, dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

/* ページ内アンカー遷移時、main.js がスクロール先へ tabindex="-1" + focus() を付与する（a11y）。
   tabindex="-1" はキーボードのTab移動では到達しないため、この要素のフォーカス枠線は消してよい。
   これがないと Safari/Chrome で遷移先セクション上部に青い線（アウトライン）が表示される。 */
[tabindex="-1"]:focus {
  outline: none;
}

a:hover {
  opacity: 0.6;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

/* ---------- Layout helpers ---------- */
.l-container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .l-inner {
    width: 100%;
    max-width: var(--pc-content-width);
    margin-inline: auto;
    padding-inline: var(--pc-content-gutter);
  }
}

.l-section {
  position: relative;
  padding-block: var(--space-section);
}

/* ---------- Utility ---------- */
.u-sp-only {
  display: block;
}

.u-pc-only {
  display: none;
}

.u-pc-br {
  display: none;
}

.u-sp-br {
  display: inline;
}

.u-lnav-br {
  display: none;
}

.u-inline-block {
  display: inline-block;
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {
  .u-sp-only {
    display: none;
  }
  .u-pc-only {
    display: block;
  }
  .u-pc-br {
    display: inline;
  }
  .u-sp-br {
    display: none;
  }
}

@media (max-width: 1000px) {
  .u-lnav-br {
    display: inline;
  }
}

/* ---------- reCAPTCHA ---------- */
.grecaptcha-badge {
  display: none !important;
}
