/* =========================================================
   Base
   サイト全体の基礎（タイポ / 変数 / フォーム / アクセシビリティ）
   ========================================================= */

/* ---------------------------------------------------------
   Variables
--------------------------------------------------------- */
:root {
  /* widths */
  --container: 110rem; /* 1100px */
  --content: 80rem;    /* 800px */
  --gutter: 1.6rem;    /* 16px */

  /* colors */
  --text: #2f2f2f;
  --muted: rgba(0, 0, 0, 0.65);
  --border: rgba(0, 0, 0, 0.15);
  --bg: #fff;
}

/* ---------------------------------------------------------
   Base typography
--------------------------------------------------------- */
body {
  margin: 0;
  min-height: 100vh;

  font-family: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  font-size: 1.6rem; /* 16px */
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.05em;

  color: var(--text);
  background: var(--bg);
}

/* default headings (装飾は component に任せる) */
h1 { font-size: 3.2rem; font-weight: 700; }
h2 { font-size: 2.4rem; font-weight: 700; }
h3 { font-size: 1.8rem; font-weight: 500; }
p  { font-size: 1.6rem; }

/* long words/urls safety */
p, li, a, td, th {
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   Links
--------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.2rem;
  opacity: 0.5;
}

/* ---------------------------------------------------------
   Media safety
--------------------------------------------------------- */
img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

/* selection */
::selection {
  background: rgba(0, 0, 0, 0.12);
}

/* ---------------------------------------------------------
   Forms base
--------------------------------------------------------- */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

input,
select,
textarea {
  border: 0.1rem solid var(--border);
  border-radius: 1rem;
  /*padding: 0.65em 0.85em; */
  background: #fff;
}

textarea {
  width: 100%;
  min-height: 8em;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  border: 0.1rem solid var(--border);
  border-radius: 1rem;
  padding: 0.7em 1.1em;
  background: #fff;
  cursor: pointer;
}

/* focus (general) */
:focus-visible {
  outline: 0.2rem solid currentColor;
  outline-offset: 0.2rem;
}

/* ---------------------------------------------------------
   Accessibility
--------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(0.1rem, 0.1rem, 0.1rem, 0.1rem);
  clip-path: inset(50%);
  height: 0.1rem;
  margin: -0.1rem;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 0.1rem;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  padding: 0.5em 0.75em;
  position: static !important;
}

/* ---------------------------------------------------------
   Tables / hr
--------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
}

hr {
  border: 0;
  border-top: 0.1rem solid var(--border);
  margin: 2em 0;
}

/* ---------------------------------------------------------
   Reduced motion
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
