/* ==========================================================================
   Base: reset / typography / layout / utilities
   ========================================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dt, dd,
figure, blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* ---------- Typography ---------- */
body {
  min-width: 320px;
  background-color: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--fs-16);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-menu-open {
  overflow: hidden;
}

/* ---------- Layout ---------- */
.l-container {
  box-sizing: content-box; /* max-width = コンテンツ幅 1280px、パディングは外側 */
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

.l-main {
  position: relative;
  display: block;
  isolation: isolate;
}

/* ---------- Utilities ---------- */
.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Fade in（fade.js） ---------- */
html.js .js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-fade) var(--ease-out),
    transform var(--duration-fade) var(--ease-out);
  transition-delay: var(--fade-delay, 0s);
}

html.js .js-fade.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .js-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 2px;
}
