/* 전체 페이지 기본 설정 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  overflow-x: hidden;
}

:root {
  --active-menu-color: #333;
  --menu-line-opacity: 0;
}

/* 상단 메뉴 — 화면 맨 위 고정 */
.top-menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.top-menu-container {
  max-width: 1200px;
  width: 80%;
  margin: 0 auto;
}

.top-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.top-menu-line {
  width: 100%;
  height: 1px;
  background-color: currentColor;
  opacity: var(--menu-line-opacity);
}

.top-menu-logo,
.top-menu-list a {
  /* color: #333; */
  color: inherit;
  /* text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); */
}

.top-menu-bar.is-scrolled .top-menu-logo,
.top-menu-bar.is-scrolled .top-menu-list a {
  /* color: white; */
  color: inherit;
  text-shadow: none;
}

.top-menu-logo {
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
}

.top-menu-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.top-menu-list a {
  text-decoration: none;
  font-size: 0.9rem;
}

.top-menu-list a:hover {
  text-decoration: underline;
}

.top-menu-list li {
  position: relative;
}

.top-menu-list li.active::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  width: calc(100% + 10px);
  transform: translateX(-50%);
  height: 2.5px;
  /* background: #9c1706; */
  background: var(--active-menu-color);
}

/* 상단 영역 */
header {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem;
}

header h1 {
  font-size: 2rem;
}

/* 본문 영역 */
main {
  /*max-width: 600px;*/
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
}

section {
  margin-bottom: 1.5rem;
}

h2 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

ul {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.25rem;
}

/* 슬라이드 — 화면 전체 (크기는 stylesheet %/vh 기준) */
.slider {
  display: flex;
  flex-direction: column;
  width: 100%;
  /* height: 100vh; */
  /* height: 100dvh; */
}

.slider-box {
  flex: 1;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.slider-viewport {
  position: relative;
  /* flex: 1; */
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  /* height: 100%; */
  overflow: hidden;
}

.slider-box:active {
  cursor: grabbing;
}

.slider-track {
  display: flex;
  align-items: flex-start;
  /* height: 100%; */
  width: 100%;
  min-width: 0;
  max-width: 100%;
  will-change: transform;
}

.slider-track.is-animating {
  transition: transform 0.3s ease;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  /* height: 100%; */
  min-height: 0;
  overflow: hidden;
}

.slide img {
  display: block;
  width: 100%;
  max-width: 100%;
  /* height: auto; */
  max-height: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: top center;
}

.slide-timeout-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  z-index: 1000;
  pointer-events: none;
}

.slide-timeout-progress-bar {
  width: 0;
  height: 100%;
}

.slider-buttons {
  position: absolute;
  right: 1rem;
  bottom: calc(10px + 0.75rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
  pointer-events: none;
}

.slider-buttons #next {
  pointer-events: auto;
  cursor: pointer;
}

.slider-buttons #prev {
  pointer-events: auto;
  cursor: pointer;
}

/*
.slider-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  background-color: rgba(44, 62, 80, 0.85);
  color: white;
  cursor: pointer;
  pointer-events: auto;
}

.slider-buttons button:hover {
  background-color: rgba(52, 73, 94, 0.95);
}
  */

/* 02 */

.slide-number {
  margin: 0;
  padding: 0.5rem 0.75rem;
  /* border-radius: 4px; */
  /* background-color: rgba(255, 255, 255, 0.9); */
  /* color: #333; */
  font-size: 1.2rem;
  color: #9c1706;
  white-space: nowrap;
  pointer-events: none;

  font-family: "Pretendard Variable";
  font-style: normal;
  font-weight: 800;
  font-size: 24px;
  line-height: 50px;
}

.slide-number #total {
  color: #ffffff;
}

#slider-number-divider {
  display: inline-block;
  width: 2px;
  height: 23px;
  margin: 0 1.1rem;
}

/* 하단 영역 */
footer {
  /* text-align: center; */
  padding: 1rem;
  /* color: #666; */
  font-size: 0.9rem;
}

.footer {
  padding-top: 40px;
  display: flex;
}

.footer > .container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  height: 100%;
}

.footer-right {
  display: flex;
  justify-content: space-between;
  gap: 100px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
}

.footer-column h3 {
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 0px;
}

.footer-column p {
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
  color: #333;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sns-row {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: flex-end; */
  gap: 14px;
  align-items: center;
}

.sns-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.footer-logo > svg {
  width: 160px;
}

/* NOTE: gap: clamp(XXX, , ) */
#books-marquee {
  display: flex;
  justify-content: center;
  align-items: center;
  width: max-content;
  margin: 0 auto;
  padding: 0 20px;
  /*
  gap: 10.25rem;
  */
  gap: clamp(70px, 1.8vw, 120px);
  will-change: transform;
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

/* NOTE: flex: 0 0 clamp(, , XXX) */
#books-marquee .book-item {
  flex: 0 0 clamp(180px, 24vw, 120px);
  width: clamp(180px, 24vw, 540px);
  /*
  flex: 0 0 auto;
  width: 230px;
  */
  text-align: left;
}

