@use 'utils/base' as *;
@use 'font' as *;
@use 'reset' as *;
@use 'libraries' as *;
@use 'helpers' as *;
@use 'common' as *;

/* font */
.ff-title {
  font-family: $font-family-title;
}
.ff-point {
  font-family: $font-family-point;
}
.ff-default {
  font-family: $font-family-default;
}

.lh-sm {
  line-height: $line-height-sm;
}
.lh-base {
  line-height: $line-height-base;
}
.lh-lg {
  line-height: $line-height-lg;
}
.lh-xl {
  line-height: $line-height-xl;
}

.fs-3xl {
  font-size: rem(70);
}
.fs-2xl {
  font-size: rem(60);
}
.fs-xl {
  font-size: rem(50);
}
.fs-lg {
  font-size: rem(40);
}
.fs-md {
  font-size: rem(30);
}
.fs-sm {
  font-size: rem(20);
}
.fs-xs {
  font-size: rem(18);
}
.fs-2xs {
  font-size: rem(14);
}
.fs-3xs {
  font-size: rem(12);
}

.fs-ex-xl {
  font-size: rem(55);
}
.fs-ex-lg {
  font-size: rem(45);
}
.fs-ex-md {
  font-size: rem(35);
}
.fs-ex-sm {
  font-size: rem(25);
}
.fs-ex-xs {
  font-size: rem(16);
}

/* layout */
body {
  font-family: $font-family-default;
  color: $almost-black;
  letter-spacing: -0.05em;
  line-height: $line-height-base;
}
section {
  position: relative;
  overflow: hidden;
}
#wrap {
  position: relative;
}
.inner {
  max-width: vw(670);
  margin: 0 auto;
  box-sizing: content-box;
}

/* header */
:root {
  --header-height: #{vw(100)};
}
.header-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: $zindex-fixed + 1;
}
.header {
  height: var(--header-height);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: vw(20);
}
.header-side {
  display: flex;
  align-items: center;
}
.header-center {
  display: flex;
  align-items: center;
}

.header-bi {
  width: vw(120);
  height: vw(50);
  margin-left: vw(30);
  background-image: url('/assets/img/common/header-bi.png');
  font-size: 0;
  white-space: nowrap;
  a {
    display: block;
    width: 100%;
    height: 100%;
  }
}
.header-stm-btn {
  @include flex-center;
  flex-direction: column;
  gap: vw(18);
  font-size: 0;
  background-color: $black;
  width: vw(100);
  height: vw(100);
  span {
    width: vw(60);
    height: vw(4);
    background-color: $white;
  }
}

/* sitemap */
.sitemap-container {
  display: none;
  position: fixed;
  inset: 0;
  z-index: $zindex-fixed;
  padding-top: var(--header-height);
  background-color: rgba($white, 0.8);
}
.sitemap-inner {
  height: 100%;
}
.sitemap {
  height: 100%;
  overflow-y: auto;
}
.sitemap-items {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 100%;
  padding: vw(50) 0;
  text-align: center;
}
.sitemap-item {
  width: 100%;
}
.sitemap-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: vw(100);
  font-size: vw(40);
  .active & {
    font-weight: 700;
  }
}

/* footer */
.footer {
  padding: vw(40) vw(20);
  background-color: #eee;
}
.policy-items {
  gap: vw(20);
  margin-bottom: vw(20);
}
