@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  caret-color: transparent;
}

input, textarea, [contenteditable="true"] {
  caret-color: auto;
}

html,
body {
  margin: 0px;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}

a {
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline-offset: 2px;
}

/* ========================================
   데스크탑 고정 헤더 공통
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #eb5f14;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.fixed-header.scrolled {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fixed-header-inner {
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 99px;
  position: relative;
}

.fixed-header .header-logo {
  position: absolute;
  left: calc(50% - 550px);
  width: 160px;
  height: 24px;
  transition: filter 0.4s ease;
  cursor: pointer;
}


.fixed-header .header-line {
  width: 100%;
  height: 1px;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}

.fixed-header.scrolled .header-line {
  opacity: 0.15;
}

.fixed-header .navbar {
  position: absolute;
  left: calc(50% - 270px);
  width: 548px;
  height: 22px;
  display: flex;
  gap: 20px;
}

.fixed-header .navbar a {
  width: 120px;
  height: 22px;
  font-family: "Pretendard-SemiBold", Helvetica;
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
  white-space: nowrap;
  text-decoration: none;
  display: block;
  transition: color 0.4s ease;
}

/* 메인 페이지 헤더 */
.main .fixed-header .navbar a.nav-link {
  color: #ffffff;
}

.main .fixed-header .navbar a.nav-active {
  color: #ffffff;
}

.main .fixed-header.scrolled .navbar a.nav-link {
  color: #333333;
}

.main .fixed-header.scrolled .navbar a.nav-active {
  color: #eb5f14;
}

/* 서브 페이지 헤더 (처음부터 흰색 배경) */
.sub .fixed-header {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sub .fixed-header .header-line {
  opacity: 0.15;
}

.sub .fixed-header .navbar a.nav-link {
  color: #333333;
}

.sub .fixed-header .navbar a.nav-active {
  color: #eb5f14;
  font-weight: 800;
}

.sub .fixed-header.scrolled .navbar a.nav-link {
  color: #333333;
}

.sub .fixed-header.scrolled .navbar a.nav-active {
  color: #eb5f14;
}

.fixed-header .navbar a:hover {
  opacity: 0.8;
}

.fixed-header .navbar a:focus {
  outline: none;
}

.fixed-header .navbar a:active {
  outline: none;
}

/* 헤더 스토어 아이콘 */
.fixed-header .header-store-icons {
  position: absolute;
  right: calc(50% - 550px);
  display: flex;
  gap: 10px;
  align-items: center;
}

.fixed-header .header-store-icons a {
  display: flex;
  align-items: center;
}

.fixed-header .header-store-icons img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: opacity 0.3s ease, filter 0.4s ease;
}

.fixed-header.scrolled .header-store-icons .apple-icon {
  filter: brightness(0);
}

/* 서브 페이지: 스토어 아이콘 처음부터 검은색 */
.sub .fixed-header .header-store-icons .apple-icon {
  filter: brightness(0);
}

.fixed-header .header-store-icons img:hover {
  opacity: 0.7;
}

/* ========================================
   데스크탑 푸터 공통
   ======================================== */

.site-footer {
  position: relative;
  width: 100%;
  height: 310px;
}

.site-footer .footer-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  object-fit: cover;
}

.site-footer .footer-logo {
  width: 150px;
  height: 22px;
  position: absolute;
  top: 81px;
  left: calc(50% - 550px);
}

.site-footer .footer-address {
  position: absolute;
  top: 126px;
  left: calc(50% - 549px);
  font-family: "Pretendard-Regular", Helvetica;
  font-weight: 400;
  color: transparent;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 23px;
  font-style: normal;
}

.site-footer .footer-text {
  color: #777777;
}

.site-footer .footer-phone {
  color: #222222;
}

.site-footer .footer-copyright {
  position: absolute;
  top: 205px;
  left: calc(50% - 549px);
  font-family: "Pretendard-Regular", Helvetica;
  font-weight: 400;
  color: #999999;
  font-size: 14px;
  letter-spacing: 0;
  line-height: normal;
}

.site-footer .footer-disclaimer {
  position: absolute;
  top: 110px;
  left: calc(50% + 251px);
  width: 302px;
  height: 100px;
}

.site-footer .footer-disclaimer-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 300px;
  height: 100px;
  background-color: #f9f9f9;
  border-radius: 10px;
}

.site-footer .footer-disclaimer-text {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-family: "Pretendard-Regular", Helvetica;
  font-weight: 400;
  color: #777777;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 21px;
}

/* ========================================
   모바일 헤더 공통
   ======================================== */

.mobile-header {
  position: relative;
  height: 120px;
  width: 100%;
  max-width: 402px;
  margin: 0 auto;
  background-color: #eb5f14;
}

.mobile-header .header-logo {
  position: absolute;
  top: 22px;
  left: 20px;
  width: 120px;
  height: 18px;
  cursor: pointer;
}

.mobile-header .header-store-icons {
  position: absolute;
  top: 18px;
  right: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.mobile-header .header-store-icons a {
  display: flex;
  align-items: center;
}

.mobile-header .header-store-icons img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.mobile-header .header-line-1 {
  position: absolute;
  top: 69px;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.3);
}

.mobile-header .mobile-nav {
  position: absolute;
  top: 82px;
  left: 0;
  width: 100%;
  height: 24px;
  display: flex;
  justify-content: stretch;
}

.mobile-header .mobile-nav a {
  flex: 1;
  font-family: "Pretendard-Regular", Helvetica;
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0;
  line-height: 24px;
  white-space: nowrap;
  text-decoration: none;
}

.mobile-header .mobile-nav a.nav-link {
  color: #ffffff;
}

.mobile-header .mobile-nav a.nav-active {
  color: #ffffff;
  font-family: "Pretendard-Bold", Helvetica;
  font-weight: 700;
}

.mobile-header .header-line-2 {
  position: absolute;
  top: 119px;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.3);
}

/* 서브 페이지 모바일 헤더: 흰색 배경 */
.mobile-sub .mobile-header {
  background-color: #ffffff;
}

.mobile-sub .mobile-header .header-store-icons .apple-icon {
  filter: brightness(0);
}

.mobile-sub .mobile-header .header-line-1,
.mobile-sub .mobile-header .header-line-2 {
  background-color: rgba(0, 0, 0, 0.15);
}

.mobile-sub .mobile-header .mobile-nav a {
  color: #333333;
}

.mobile-sub .mobile-header .mobile-nav a.nav-active {
  color: #000000;
  font-family: "Pretendard-Bold", Helvetica;
  font-weight: 700;
}

/* ========================================
   모바일 푸터 공통
   ======================================== */

.mobile-footer {
  position: relative;
  width: 402px;
  margin: 0 auto;
  padding-bottom: 28px;
}

.mobile-footer .footer-line {
  margin-bottom: 60px;
  height: 1px;
  width: 402px;
}

.mobile-footer .footer-logo {
  margin-left: 21px;
  width: 150px;
  height: 22px;
  margin-bottom: 26px;
}

.mobile-footer .footer-address {
  margin-left: 21px;
  display: block;
  width: 264px;
  margin-bottom: 18px;
  font-family: "Pretendard-Regular", Helvetica;
  font-weight: 400;
  color: transparent;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 23px;
  font-style: normal;
}

.mobile-footer .footer-text {
  color: #777777;
}

.mobile-footer .footer-phone {
  color: #222222;
}

.mobile-footer .footer-copyright {
  margin-left: 23px;
  width: 312px;
  margin-bottom: 30px;
  font-family: "Pretendard-Regular", Helvetica;
  font-weight: 400;
  color: #999999;
  font-size: 15px;
  letter-spacing: -0.45px;
  line-height: 25px;
}

.mobile-footer .footer-disclaimer {
  margin-left: 21px;
  width: 362px;
  height: 96px;
  position: relative;
}

.mobile-footer .footer-disclaimer-bg {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 360px;
  height: 96px;
  background-color: #f9f9f9;
  border-radius: 12px;
}

.mobile-footer .footer-disclaimer-text {
  position: absolute;
  left: calc(50% - 142px);
  bottom: 16px;
  font-family: "Pretendard-Regular", Helvetica;
  font-weight: 400;
  color: #777777;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 21px;
}

/* 스크롤 헤더 JS용 공통 */
.header-scroll-script {
  display: none;
}

/* 앱 다운로드 버튼 공통 스타일 */
.download-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.download-buttons a {
  display: inline-flex;
  flex-shrink: 0;
  height: 100%;
}

.download-buttons a img {
  height: 100%;
  width: auto;
  object-fit: contain;
}
