@charset "UTF-8";

/* ========================================
   Base
======================================== */

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  font-family: var(--font-noto-serif-kr);
  color: var(--color-text-primary);
  background-color: var(--color-page-background);
  word-break: keep-all;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


body.is-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

img {
  width: 100%;
}

/* ========================================
   Layout
======================================== */

.container {
  width: calc(100% - (var(--container-margin) * 2));
  max-width: var(--container-max-width);
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  gap: var(--grid-gap);
}

.page {
  min-height: 100vh;
  padding-top: var(--header-height);
}

.page-no-header-space {
  padding-top: 0;
}

.page-main .header:not(.is-scrolled) {
  background-color: transparent;
  box-shadow: none;
}

.page-main .header.is-scrolled {
  background-color: var(--color-header-scroll-background);
}

/* ========================================
   Typography
======================================== */

.typography-title01 {
  font-family: var(--font-yuji-syuku);
  font-size: var(--font-size-title-01);
  font-weight: var(--font-weight-regular);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.typography-title02 {
  font-family: var(--font-shilla);
  font-size: var(--font-size-title-02);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.typography-subtitle01 {
  font-family: var(--font-chosun-centennial);
  font-size: var(--font-size-subtitle-01);
  font-weight: var(--font-weight-regular);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.typography-subtitle02 {
  font-family: var(--font-shilla);
  font-size: var(--font-size-subtitle-02);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.typography-body01 {
  font-family: var(--font-noto-serif-kr);
  font-size: var(--font-size-body-01);
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.typography-body02 {
  font-family: var(--font-noto-serif-kr);
  font-size: var(--font-size-body-02);
  font-weight: var(--font-weight-regular);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.typography-body03 {
  font-family: var(--font-noto-serif-kr);
  font-size: var(--font-size-body-03);
  font-weight: var(--font-weight-semibold);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ========================================
   Accessibility
======================================== */

.sr-only {
  position: absolute;

  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;
  border: 0;
}

.skip-navigation {
  position: fixed;
  z-index: 9999;
  top: -6.25rem;
  left: 1rem;

  padding: 0.75rem 1rem;

  color: var(--color-white);
  background-color: var(--color-black);

  transition: top var(--transition-fast);
}

.skip-navigation:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 0.125rem solid var(--color-gray-500);
  outline-offset: 0.25rem;
}

/* ========================================
  animation
======================================== */

.fade-in-down {
  opacity: 0;
  animation: fade-in-down .6s ease forwards;
}

.fade-delay-01{
  animation-delay:.2s;
}

.fade-delay-02{
  animation-delay:.4s;
}

.fade-delay-03{
  animation-delay:.6s;
}

.fade-delay-04{
  animation-delay:.8s;
}

.fade-delay-05{
  animation-delay:1s;
}

/* ========================================
   Reduced Motion
======================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}