:root {
  font-family: Helvetica, Arial, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: #171717;
  background: #f7f7f7;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #e4002b; outline-offset: 3px; }
[hidden] { display: none !important; }

.layout { max-width: 1440px; margin: auto; padding: 28px 32px 80px; }
.book-heading, .detail-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
}
.book-heading { margin-bottom: 18px; }
.section-label {
  margin: 0 0 5px; color: #e4002b; font-size: 11px;
  font-weight: 800; letter-spacing: .17em; text-transform: uppercase;
}
.book-heading h2 {
  margin: 0; font-size: clamp(28px, 3.5vw, 50px);
  line-height: 1.15; letter-spacing: -.055em;
}
.book { border-top: 1px solid #171717; border-bottom: 1px solid #171717; padding: 24px 0; }
.book-stage { width: 100%; perspective: 1800px; }
.page-surface { background: #fff; backface-visibility: hidden; overflow: hidden; }
.page-surface img {
  display: block; width: 100%; aspect-ratio: 3508 / 2480;
  object-fit: contain; user-select: none;
}
.page-surface.turn-next { animation: turn-next .65s ease-in-out; transform-origin: left center; }
.page-surface.turn-prev { animation: turn-prev .65s ease-in-out; transform-origin: right center; }
@keyframes turn-next {
  0% { transform: rotateY(0); }
  49% { transform: rotateY(-88deg); filter: brightness(.7); }
  50% { transform: rotateY(88deg); }
  100% { transform: rotateY(0); filter: brightness(1); }
}
@keyframes turn-prev {
  0% { transform: rotateY(0); }
  49% { transform: rotateY(88deg); filter: brightness(.7); }
  50% { transform: rotateY(-88deg); }
  100% { transform: rotateY(0); filter: brightness(1); }
}
.mobile-flipbook { display: none !important; }
.category-area { margin: 24px 0 66px; }
.category-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.category-nav button {
  min-height: 38px; padding: 4px 8px; border-radius: 12px;
  border: 1px solid #d6d8de; background: #f0f1f4;
  box-shadow: 0 1px 2px rgb(0 0 0 / 7%);
  font-size: 13px; font-weight: 700;
}
.category-nav button[aria-current=page] { color: #fff; background: #24262b; border-color: #24262b; }
.category-nav button:hover { border-color: #8d929d; }
.category-list {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-top: 10px; padding: 16px; border: 1px solid #e1e2e6;
  border-radius: 16px; background: #fff; box-shadow: 0 3px 14px rgb(0 0 0 / 5%);
}
.category-list.all-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.category-group { min-width: 0; }
.category-group-heading { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 10px; }
.category-group-heading h3 { margin: 0; font-size: 14px; }
.category-group-heading span { color: #777b83; font-size: 12px; white-space: nowrap; }
.category-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.all-categories .category-items { grid-template-columns: 1fr; }
.category-items button {
  min-width: 0; min-height: 34px; padding: 7px 10px; border: 0; border-radius: 9px;
  background: #f3f4f6; color: #24262b; text-align: left; font-size: 12px;
}
.category-items button:hover { background: #e6e8ed; }
.category-items button[aria-current=page] { color: #fff; background: #50545e; }

.detail-section { border-top: 3px solid #171717; }
.detail-heading { padding: 28px 0 24px; }
.detail-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.05em; }
.slide-viewport {
  width: 100%; overflow: hidden; touch-action: pan-y;
  overscroll-behavior-x: contain; transition: height .35s ease;
  border-top: 1px solid #171717;
}
.slide-track { display: flex; width: 100%; align-items: flex-start; transition: transform .4s ease; }
.detail-panel { flex: 0 0 100%; min-width: 0; background: #fff; padding: 22px 0 0; }
.slide-indicators { display: flex; justify-content: center; gap: 10px; padding: 16px 0 12px; }
.slide-indicators span { width: 8px; height: 8px; border-radius: 50%; background: #b7b7b7; }
.slide-indicators span.active { background: #e4002b; }
.page-navigation { display: flex; justify-content: space-between; padding: 0 0 26px; }
.page-navigation button {
  width: 52px; height: 46px; border: 1px solid #171717;
  background: #fff; color: #171717; font-size: 29px; line-height: 1;
}
.page-navigation button:hover:not(:disabled) { color: #fff; background: #171717; }
.page-navigation button:disabled { opacity: .3; cursor: default; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.image-scroll { width: 100%; overflow: hidden; border: 1px solid #d2d2d2; background: #fff; }
.image-crop { width: 100%; aspect-ratio: 1754 / 2480; overflow: hidden; }
.image-crop img {
  display: block; width: 100%; height: 100%; max-width: none; object-fit: cover;
}
.overview-map { aspect-ratio: 2250 / 2480; }
.overview-map img { object-position: center; }
.detail-map img { object-position: left; }
.info-crop img { object-position: right; }
.overview-lists {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid #171717; border-bottom: 0;
}
.overview-lists.single-group { grid-template-columns: 1fr; }
.overview-group { border-right: 1px solid #171717; border-bottom: 1px solid #171717; padding: 20px; }
.overview-group:last-child { border-right: 0; }
.overview-group h3 {
  margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid #e4002b; font-size: 19px;
}
.overview-group ol { margin: 0; padding-left: 20px; line-height: 1.9; font-size: 14px; }
.overview-group button {
  border: 0; background: transparent; padding: 0; text-align: left; color: #171717;
  text-decoration: underline; text-decoration-color: #e4002b; text-underline-offset: 3px;
}
.site-footer {
  display: flex; justify-content: space-between; gap: 12px;
  border-top: 1px solid #171717; max-width: 1376px;
  margin: auto; padding: 20px 0 36px; font-size: 11px;
  font-weight: 800; letter-spacing: .12em;
}
@media (max-width: 700px) {
  .layout { padding: 18px 12px 48px; }
  .book-heading { margin-bottom: 12px; }
  .book-heading h2 { font-size: 25px; }
  .book { padding: 15px 0; }
  .page-surface { display: none; }
  .mobile-flipbook {
    display: block !important; width: 100%; aspect-ratio: 3508 / 2480;
    background: #fff; touch-action: none; overflow: hidden;
  }
  .mobile-flipbook .book-page { background: #fff; }
  .mobile-flipbook .book-page img {
    display: block; width: 100%; height: 100%; object-fit: contain;
    user-select: none; pointer-events: none;
  }
  .category-area { margin: 18px 0 46px; }
  .category-nav { gap: 4px; }
  .category-nav button { min-height: 34px; padding: 3px 1px; border-radius: 10px; font-size: clamp(10px, 2.8vw, 11px); letter-spacing: -.04em; white-space: nowrap; }
  .category-list { padding: 12px; gap: 14px; }
  .category-list.all-categories { grid-template-columns: 1fr 1fr; }
  .category-items { grid-template-columns: 1fr 1fr; }
  .all-categories .category-items { grid-template-columns: 1fr; }
  .category-items button { min-height: 32px; padding: 6px 8px; font-size: 11px; }
  .detail-heading { padding: 21px 0; }
  .detail-heading h2 { font-size: 25px; }
  .detail-panel { padding-top: 17px; }
  .overview-lists { grid-template-columns: 1fr 1fr; }
  .overview-group:nth-child(2) { border-right: 0; }
  .overview-group { padding: 14px; }
  .overview-group h3 { font-size: 16px; }
  .overview-group ol { font-size: 12px; }
  .site-footer { padding: 15px 12px 28px; font-size: 9px; }
  .site-footer span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-surface.turn-next, .page-surface.turn-prev { animation: none; }
  .slide-track, .slide-viewport { transition: none; }
  html { scroll-behavior: auto; }
}
