@charset "utf-8";
/* ********************************************************************
 * name : Common Base CSS
 * filename : base.css
 * author : JBieN 제이비엔
 * update : 2026-05-20
********************************************************************* */

@font-face {
  font-family: "Pretendard Variable";
  src:
    url("../css/fonts/pretendard/PretendardVariable.woff2") format("woff2");

  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src:
    url("../css/fonts/outfit/Outfit-VariableFont_wght.woff2") format("woff2");
	url("../css/fonts/outfit/Outfit-VariableFont_wght.ttf") format("truetype");

  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Formation";
  src: 
	url("../css/fonts/formation/Formation-Sans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   01. Root Variables
   ========================================================================== */

:root {
  /* Brand */
  --main-color: #ff5841;
  --sub-color: #0a2960;
  --point-color: #b85dff;

  /* Color */
  --black-color: #000;
  --white-color: #fff;
  --text-color: #222;
  --text-muted-color: #666;
  --border-color: #ddd;
  --bg-color: #fff;

  /* Layout */
  --full-width: 100%;
  --full-height: 100%;
  --area-max-width1: 1800px;
  --area-max-width2: 1320px;
  --header-height: 88px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s ease;

  /* Z-index */
  --z-header: 1000;
  --z-modal: 5000;
  --z-skip: 9999;
}

/* ==========================================================================
   02. Reset
   ========================================================================== */

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

html {
  min-width: 320px;
  font-size: 15px;
  line-height: 1.5;
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
div,
span,
applet,
object,
iframe,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
main,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
textarea,
select {
  margin: 0;
  padding: 0;
}

body {
  min-width: 320px;
  background: var(--bg-color);
  color: var(--text-color);
  font-family:
    "Outfit",
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    sans-serif;
  font-weight: 400;
  word-break: keep-all;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
  display: block;
}

ol,
ul,
li {
  list-style: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

caption {
  overflow: hidden;
  width: 1px;
  height: 1px;
  font-size: 0;
  line-height: 0;
  white-space: nowrap;
}

fieldset,
img,
button {
  border: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  vertical-align: top;
}

address,
em {
  font-style: normal;
}

strong,
b {
  font-weight: 700;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: default;
}

textarea {
  overflow: auto;
  resize: vertical;
}

select {
  border-radius: 0;
}

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

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--main-color);
  outline-offset: 3px;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  background: var(--border-color);
}

/* ==========================================================================
   03. Typography
   ========================================================================== */

/*
 * heading의 실제 크기는 각 프로젝트 layout/main/content에서 정의합니다.
 * base에서는 브라우저 기본 margin만 제거하고 상속 안정성만 확보합니다.
 */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

p {
  line-height: inherit;
}

sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* ==========================================================================
   04. Accessibility
   ========================================================================== */

/*
 * 화면에는 숨기되 스크린리더에는 읽히는 텍스트입니다.
 * SEO/AI SEO용 숨김 텍스트에도 사용 가능합니다.
 */
.blind,
.srOnly,
.hidden {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/*
 * skip navigation
 * HTML 예시:
 * <div id="skipNavi"><a href="#content">본문 바로가기</a></div>
 */
#skipNavi {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  z-index: var(--z-skip);
}

#skipNavi a {
  position: absolute;
  left: 0;
  top: -50px;
  width: 100%;
  height: 45px;
  line-height: 45px;
  background: var(--main-color);
  color: var(--white-color);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

#skipNavi a:focus,
#skipNavi a:active {
  top: 0;
}

/* ==========================================================================
   05. Common Layout Utilities
   ========================================================================== */

.clearfix::after,
.cf::after {
  content: "";
  display: block;
  clear: both;
}

.inner {
  width: min(calc(100% - 40px), var(--area-max-width2));
  margin: 0 auto;
}

.innerWide {
  width: min(calc(100% - 40px), var(--area-max-width1));
  margin: 0 auto;
}

.noScroll {
  overflow: hidden !important;
}

.pcOnly {
  display: block;
}

.moOnly {
  display: none;
}

/* ==========================================================================
   06. Common Button
   ========================================================================== */

/*
 * XEIcon 사용 시 xeicon.min.css가 먼저 로드되어 있어야 합니다.
 */
a.arrBtn,
button.arrBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 54px 0 28px;
  border-radius: 999px;
  background: var(--main-color);
  color: var(--white-color);
  font-size: 1.125rem;
  font-weight: 600;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast),
    background var(--transition-fast);
}

a.arrBtn::before,
button.arrBtn::before {
  content: "\e907";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translate(0, -50%);
  font-family: "xeicon";
  font-size: 15px;
  line-height: 1;
  opacity: 0;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

a.arrBtn:hover,
button.arrBtn:hover,
a.arrBtn:focus-visible,
button.arrBtn:focus-visible {
  transform: translateY(-2px);
}

a.arrBtn:hover::before,
button.arrBtn:hover::before,
a.arrBtn:focus-visible::before,
button.arrBtn:focus-visible::before {
  opacity: 1;
  transform: translate(8px, -50%);
}

/* ==========================================================================
   07. Form Defaults
   ========================================================================== */

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--border-color);
  background: var(--white-color);
  color: var(--text-color);
}

input::placeholder,
textarea::placeholder {
  color: #aaa;
}

/* ==========================================================================
   08. Motion Preference
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   09. Scrollbar
   ========================================================================== */

*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 999px;
}

*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   10. Responsive Base
   ========================================================================== */

@media all and (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .inner,
  .innerWide {
    width: min(calc(100% - 32px), var(--area-max-width2));
  }

  .pcOnly {
    display: none !important;
  }

  .moOnly {
    display: block !important;
  }
}
