@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css");
:root {
  --gap-1: 0.5rem;
  --gap-2: 0.75rem;
  --gap-3: 1rem;
  --gap-4: 1.5rem;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

body {
  color: #222;
  background-color: #fff;
  min-width: 320px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  border: none;
  background: transparent;
  background-color: #fff;
  padding: 0;
  cursor: pointer;
}

.page-wrapper {
  min-height: 100vh; /* 뷰포트 전체 높이 채우기 */
  display: flex;
  flex-direction: column; /* 위에서 아래로 쌓기 */
}

main {
  display: block;
  flex: 1;
}

.site-footer {
  width: 100%;
  padding: 30px 0;
  text-align: center;
  font-size: 12px;
  color: #777;
}

.site-footer p {
  margin: 0;
}

.foot-gap {
  height: 100px;
}

.page-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
}

@media (max-width: 768px) {
  .page-inner {
    padding: 24px;
  }
}
.section-gap {
  margin-top: 40px;
}

@media (max-width: 768px) {
  .section-gap {
    margin-top: 28px;
  }
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.site-header__inner img {
  width: 216px;
}

.site-logo {
  font-size: 24px;
  letter-spacing: 0.3em;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  font-size: 16px;
  margin-top: 4px;
}

.site-nav__item {
  color: #999;
  font-weight: 400;
}

.site-nav__item.is-active {
  color: #000;
  font-weight: 600;
}

@media (max-width: 768px) {
  .site-header__inner {
    padding: 24px;
    align-items: flex-start;
  }
  .site-header__inner img {
    width: 180px;
  }
  .site-nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }
}
.page-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 14px;
  color: #555;
}

.body-text {
  font-size: 14px;
  line-height: 1.7;
}

.meta-text {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

.home-layout {
  display: flex;
  justify-content: center;
}

.home-layout__inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* cover 폭 제한 */
.home-layout__cover {
  width: 100%;
  max-width: 420px;
}

.home-layout__cover img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e0e0e0; /* 옅은 그레이 테두리 */
  box-shadow: 6px 8px 18px rgba(0, 0, 0, 0.18); /* 오른쪽-아래 방향의 부드러운 그림자 */
}

/* info 폭도 동일하게 */
.home-layout__info {
  width: 100%;
  max-width: 420px;
  text-align: left;
}

.home-layout__title-ko {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.home-layout__title-en {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 12px;
}

.home-layout__authors {
  padding-top: 20px;
  font-size: 13px;
  color: #555;
}

@media (max-width: 768px) {
  .home-layout__inner {
    align-items: flex-start;
    max-width: 100%;
  }
  .home-layout__cover {
    max-width: 100%;
  }
}
.publication {
  padding: var(--gap-4) 0;
}

.publication-layout {
  max-width: 1200px;
  margin-inline: auto;
  width: 100%;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* 그리드: 기본 2열 (모바일/태블릿), 데스크탑 4열 */
.publication-layout__grid {
  display: grid;
  width: 100%;
  gap: clamp(16px, 2vw, 32px);
  /* 모바일~태블릿: 2열, 카드 폭은 자유롭게 줄어들 수 있게 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 아주 작은 화면은 1열 */
@media (max-width: 360px) {
  .publication-layout__grid {
    grid-template-columns: 1fr;
  }
}
/* 데스크탑: 4열 + 여기서만 최소 220px 보장 */
@media (min-width: 1024px) {
  .publication-layout__grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }
}
/* 한 권(컬럼) */
.publication-layout__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: var(--gap-2);
}

.publication-layout__cover {
  width: 100%;
}

.publication-layout__cover .card,
.publication-layout__cover .card--ghost {
  width: 100%;
}

/* 설명 블록 */
.publication-layout__info {
  width: 100%;
}

.publication-layout__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.7rem 0 0.25rem;
}

.publication-layout__meta {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  color: #555;
}

/* ----Card (실제 표지)--- */
.card {
  width: 100%;
  aspect-ratio: 3/4.5;
  overflow: hidden;
  display: block;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* --Ghost Card (Coming soon)----- */
.card--ghost {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #e5e5e5;
  color: #555;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  text-align: center;
  line-height: 1.4;
}

.card--ghost span {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  opacity: 0.8;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* -----------------------------
   모바일에서 고스트 2개 숨기기
   (article 순서: 1=실책, 2=첫 고스트, 3,4=나머지 고스트)
----------------------------- */
@media (max-width: 768px) {
  .publication-layout__item:nth-child(3),
  .publication-layout__item:nth-child(4) {
    display: none;
  }
}
.book-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.book-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  width: 100%;
  max-width: 460px;
}

.book-header img {
  width: 216px;
}

.book-header .close-img {
  width: 26px;
}

.book-close {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.book-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
  gap: 36px;
  align-items: flex-start;
}

.book-main__cover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.book-main__section-title {
  font-size: 14px;
  font-weight: 600;
}

.book-main__block p.author-desc {
  margin-block-start: 0px !important;
  padding-bottom: 20px;
}

.book-main__meta p,
.book-main__toc p {
  margin: 2px 0;
  font-size: 13px;
  line-height: 1.6;
}

.book-main__toc-list {
  margin-top: 8px;
}

.book-main__toc-item {
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .book-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .book-main__cover {
    max-width: 100%;
  }
  .book-header {
    margin-bottom: 12px;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .book-header .logo-img {
    width: 180px;
  }
}
/* Index 페이지 공통 패딩 */
.index-page {
  padding-top: var(--gap-4);
  padding-left: 20px;
  padding-right: 30px;
}

/* ===== INDEX PAGE LAYOUT WIDTH ===== */
.index-page .container {
  width: 100%;
  max-width: 1400px; /* 데스크탑 최대 폭 */
  margin-left: auto; /* 가운데 정렬 */
  margin-right: auto; /* 가운데 정렬 */
  padding-left: clamp(16px, 5vw, 40px); /* 좌우 여백(모바일 대비) */
  padding-right: clamp(16px, 5vw, 10px);
}

/* 데스크탑용 테이블 박스 */
.index-table-wrapper--desktop {
  margin-top: var(--gap-4);
}

/* Index 테이블 스타일 (데스크탑 디자인용) */
.index-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.index-table thead th {
  text-align: left;
  font-weight: 500;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #999;
}

.index-table tbody td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

.index-table tbody tr:last-child td {
  border-bottom: none;
}

/* 첫 번째 열(번호)은 좁게 */
.index-table td:first-child,
.index-table th:first-child {
  width: 56px;
}

/* 모바일용: 세로 상세 레이아웃 */
.index-detail--mobile {
  margin-top: var(--gap-4);
}

/* 한 권의 정보 블록 */
.index-detail__block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* 각 행: 라벨 / 값 2열 */
.index-detail__row {
  display: grid;
  grid-template-columns: auto 1fr;
  -moz-column-gap: 1rem;
       column-gap: 1rem;
  align-items: flex-start;
}

/* 라벨 열 + 세로 라인 */
.index-detail__label {
  font-size: 0.9rem;
  color: #444;
  padding: 0.45rem 0.75rem 0.45rem 0;
  border-right: 1px solid var(--line);
}

/* 값 열 */
.index-detail__value {
  font-size: 0.9rem;
  color: #222;
  padding: 0.45rem 0 0.45rem 1rem;
}

/* 맨 위에 살짝 여백 */
.index-detail__row:first-child .index-detail__label,
.index-detail__row:first-child .index-detail__value {
  padding-top: 0.2rem;
}

/* 데스크탑/모바일 전환
   - 900px 이상: 테이블만 보이게, 상세 레이아웃 숨김
   - 899px 이하: 상세 레이아웃만 보이게, 테이블 숨김
*/
.index-table-wrapper--desktop {
  display: none;
}

.index-detail--mobile {
  display: block;
}

@media (min-width: 900px) {
  .index-table-wrapper--desktop {
    display: block;
  }
  .index-detail--mobile {
    display: none;
  }
}
@media (max-width: 900px) {
  .index-detail__block {
    position: relative;
    background-image: linear-gradient(#bbb, #bbb);
    background-size: 1px 100%;
    background-repeat: no-repeat;
    background-position: 90px 0;
  }
  .index-detail__row {
    display: flex;
    align-items: flex-start;
  }
  .index-detail__label {
    width: 90px;
    flex-shrink: 0;
    padding-right: 12px;
    text-align: left;
    color: #444;
    font-size: 0.9rem;
    border-right: none !important;
  }
  .index-detail__value {
    flex: 1;
    padding-left: 5px;
    color: #222;
    font-size: 0.9rem;
  }
  .index-detail__row:first-child {
    padding-top: 0.25rem;
  }
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 48px;
}

.about-layout__section-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}

.about-layout__ko {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-layout__en {
  font-size: 14px;
  line-height: 1.7;
}

.about-layout__list-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.about-layout__item {
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
.notice-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notice-title-row {
  align-items: center;
  gap: 16px;
}

.notice-title-row__title {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: 10px;
}

.notice-title-row__line {
  height: 1px;
  background-color: #bbb;
}

.notice-layout__body {
  font-size: 14px;
  line-height: 1.7;
}

.text-small {
  font-size: 12px;
}

.mt-16 {
  margin-top: 16px;
}/*# sourceMappingURL=style.css.map */