/* Base */

:root {
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --shadow-none: none;
  --shadow-soft: 0 8px 24px rgb(15 23 42 / 8%);
  --transition-base: 0.25s ease;
  --header-height: 72px;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: var(--wp--preset--font-family--system-ja);
  font-size: var(--wp--preset--font-size--md);
  font-weight: 400;
  line-height: 1.8;
  color: var(--wp--preset--color--text);
  background: var(--wp--preset--color--base);
  word-break: normal;
  overflow-wrap: anywhere;
}

body.has-open-navigation {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  text-underline-offset: 0.18em;
}

:where(
  a,
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex="-1"])
):focus-visible {
  outline: 2px solid var(--wp--preset--color--primary);
  outline-offset: 3px;
}

:where(h1, h2, h3, h4, h5, h6) {
  margin-top: 0;
  line-height: 1.4;
}

:where(p) {
  margin-top: 0;
}


:where(ul, ol) {
  padding-left: 1.5em;
}

:where(li + li) {
  margin-top: 0.35em;
}

:where(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  input[type="time"],
  textarea,
  select
) {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--wp--preset--color--text);
  background: var(--wp--preset--color--base);
}

:where(textarea) {
  min-height: 160px;
}

:where(
  input:not([type]),
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="month"],
  input[type="week"],
  input[type="time"],
  textarea,
  select
):focus-visible {
  border-color: var(--wp--preset--color--primary);
}


a:hover {
  text-decoration-thickness: 2px;
  text-decoration-line: underline;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
