/* =========================================================
   Reset & element defaults
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

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

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}

/* KV の見出しなど、画面幅からはみ出す要素を横だけ切る（横スクロールを出さない）。
   角丸のある要素に overflow-x: clip を付けると iOS Safari で縦まで切れるので、角丸のない main で切る */
main {
  display: block;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dt, dd, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-size: inherit;
  font-weight: inherit;
}

em, small {
  font-style: normal;
  font-size: inherit;
}

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

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

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

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

/* --- 媒体別の出し分け（改行位置・文言が PC / SP で異なる箇所） --- */
@media (min-width: 768px) {
  .u-sp {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .u-pc {
    display: none !important;
  }
}

/* --- アニメーション --- */
@keyframes custom-fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* JS 不要の FV 用フェードイン（LCP ブロック回避） */
.anim-fadeIn {
  animation: custom-fadeIn 1s ease 200ms both;
}

/* スクロール連動（data-aos）。AOS が画面内に入った要素に .aos-animate を付ける。
   時間・イージング・遅延は AOS（aos.css と main.js の設定）が持つ */
.js [data-aos="custom-fadeIn"] {
  transition-property: opacity, transform;
  opacity: 0;
}

.js [data-aos="custom-fadeInUp"] {
  transition-property: opacity, transform;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

.js [data-aos="custom-fadeInLeft"] {
  transition-property: opacity, transform;
  opacity: 0;
  transform: translateX(-20px);
}

.js [data-aos="custom-fadeInRight"] {
  transition-property: opacity, transform;
  opacity: 0;
  transform: translateX(20px);
}

.js [data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .anim-fadeIn {
    animation: none;
  }

  .js [data-aos] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.u-bg-tint {
  background: var(--grad-tint);
}
