@charset "UTF-8";

@font-face {
  font-family: "Jost";
  src: url("./jost-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  /* Layout */
  --container-width: 82rem;
  --container-wide-width: 100rem;
  --container-padding: 2rem;
  --section-padding: 6rem;

  /* Colors */
  --color-bg: #fff1f0;
  --color-surface: #fff;
  --color-text: #111;
  --color-accent: #f4564c;

  /* Radius */
  --radius-panel: 2.4rem;
  --radius-card: 1.8rem;

  font-size: 14.5px;
}

@media (min-width: 1024px) {
  :root {
    font-size: min(1.08vw, 20.736px);
  }
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Jost","Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p {
  margin-block: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .5rem 1rem;
  background: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Containers */

.container,
.container-wide {
  width: calc(100% - var(--container-padding) * 2);
  margin-inline: auto;
}

.container {
  max-width: var(--container-width);
}

.container-wide {
  max-width: var(--container-wide-width);
}

/* Stack */

.stack {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.stack__item {
  position: sticky;
  top: min(var(--header-height), calc(100dvh - var(--stack-height)));
  z-index: 0;
}

.stack__item:last-child {
  position: relative;
  top: auto;
}

.content-stack {
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--color-bg);
}

/* Panels */

.section-panel {
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: var(--color-surface);
}

/* Responsive */

@media (max-width: 1023px) {
  :root {
    --section-padding: 3rem;
  }
}

@media (max-width: 639px) {
  :root {
    --container-padding: 1.5rem;
    --section-padding: 3rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
