@import url('https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap');

@font-face {
  font-family: 'ChilgokGrandmaLeeWonSoon';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2106@1.1/Chilgok_lws.woff') format('woff');
  font-weight: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #1a1a2e;
  --bg-deep: #121222;
  --pink: #e75480;
  --gold: #f2c94c;
  --topbar-h: 52px;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: 'Noto Sans KR', sans-serif;
  color: #eee;
}

.hidden {
  display: none !important;
}

/* 방명록/갤러리 이미지: iOS 길게 눌러 저장·선택·드래그 방지 */
#scatter img,
#lightbox-img,
.gal-cell img,
#gal-img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ══════════ Top bar ══════════ */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 14px;
  background: rgba(18, 18, 34, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(242, 201, 76, 0.25);
  z-index: 100;
}

#tabs {
  display: flex;
  gap: 4px;
}

.tab-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: var(--pink);
  color: #fff;
}

#notice-open {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s;
}

#notice-open:hover {
  transform: scale(1.15);
}

main {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  bottom: 0;
}

.tab {
  display: none;
  width: 100%;
  height: 100%;
}

.tab.active {
  display: block;
  animation: fadeSlideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════ 방명록 ══════════ */
#day-toggle {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  background: rgba(18, 18, 34, 0.85);
  border: 1px solid rgba(242, 201, 76, 0.35);
  border-radius: 20px;
  padding: 3px;
}

.day-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.day-btn.active {
  background: var(--gold);
  color: #1a1a2e;
}

#scatter {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scatter-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  text-align: center;
  line-height: 1.7;
  font-size: 0.95rem;
  opacity: 0.7;
  animation: fadeIn 0.4s ease forwards;
}

.postit,
.pair-wrap {
  position: absolute;
  cursor: pointer;
  z-index: 5;
  contain: layout style;
  animation: fadeIn 0.4s ease forwards;
  will-change: transform, opacity;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.postit:hover,
.pair-wrap:hover {
  z-index: 25;
}

.postit img,
.pair-wrap img {
  display: block;
  width: var(--sz);
  height: var(--sz);
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.45);
  transform: translateZ(0);
}

/* 짝꿍 카드: 하나의 래퍼 안에 좌우로 나란히, 회전은 카드별로 제각각 */
.pair-wrap {
  display: flex;
  gap: calc(var(--sz) * 0.06);
  align-items: center;
}

.pair-wrap .postit {
  position: static;
}

/* ══════════ 공지 모달 ══════════ */
#notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#notice-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  color: #222;
}

#notice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: 12px 12px 0 0;
}

#notice-header h2 {
  font-size: 15px;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.03em;
}

#notice-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
  padding: 2px 4px;
}

#notice-close:hover {
  color: #333;
}

#notice-list {
  padding: 8px 0;
}

.notice-item {
  border-bottom: 1px solid #f0f0f0;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  gap: 8px;
}

.notice-title-row:hover {
  background: #f8f8f8;
}

.notice-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.notice-title-text {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-time {
  font-size: 12px;
  color: #aaa;
}

.notice-chevron {
  font-size: 12px;
  color: #ccc;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.notice-item.open .notice-chevron {
  transform: rotate(180deg);
}

.notice-body {
  display: none;
  max-height: 180px;
  overflow-y: auto;
  padding: 0 20px 16px;
  font-size: 14px;
  color: #444;
  line-height: 1.65;
  white-space: pre-wrap;
}

.notice-body a {
  color: var(--pink);
  text-decoration: none;
}

.notice-body a:hover {
  text-decoration: underline;
}

.notice-sub-content {
  display: none;
  padding: 8px 20px 14px;
  font-size: 11px;
  color: #bbb;
  line-height: 1.55;
  border-top: 1px solid #f0f0f0;
}

.notice-item.open .notice-body,
.notice-item.open .notice-sub-content {
  display: block;
}

/* ══════════ 방명록 라이트박스 ══════════ */
#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#lightbox-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

#lb-prev-zone,
#lb-next-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  cursor: pointer;
  z-index: 5;
  pointer-events: none;
}

#lightbox-overlay.visible #lb-prev-zone,
#lightbox-overlay.visible #lb-next-zone {
  pointer-events: auto;
}

#lb-prev-zone {
  left: 0;
}

#lb-next-zone {
  right: 0;
}

#lightbox-wrap {
  position: relative;
  width: 100%;
  max-width: min(460px, 92vw);
  pointer-events: none;
}

#lightbox {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

#lightbox-img-wrap {
  flex: 0 0 auto;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 52vh;
  overflow: hidden;
}

#lightbox-img {
  max-width: 100%;
  max-height: 52vh;
  object-fit: contain;
  display: block;
}

#lightbox-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 20px 14px;
}

#lightbox-content {
  font-size: 15px;
  color: #222;
  line-height: 1.7;
  text-align: center;
}

#lightbox-staff-notice {
  display: none;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #999;
}

#lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

#lightbox-overlay.visible #lightbox-close {
  pointer-events: all;
}

/* ══════════ 갤러리 ══════════ */
#tab-gallery {
  overflow-y: auto;
  padding: 16px;
}

#gallery-grid {
  columns: 160px;
  column-gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.gal-cell {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-deep);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  break-inside: avoid;
  margin-bottom: 12px;
  will-change: transform;
  transform: translateZ(0);
}

.gal-cell img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
  will-change: transform;
}

.gal-cell:hover img {
  transform: scale(1.04);
}

/* 갤러리 라이트박스 */
#gal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#gal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

#gal-img-wrap {
  max-width: 94vw;
  max-height: 82vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gal-img {
  max-width: 94vw;
  max-height: 82vh;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s ease;
  transform-origin: center;
}

#gal-img.zoomed {
  cursor: zoom-out;
}

#gal-credit {
  margin-top: 12px;
  font-size: 13px;
  color: #ccc;
  text-align: center;
  padding: 0 16px;
}

#gal-credit a {
  color: var(--gold);
  text-decoration: none;
}

#gal-credit a:hover {
  text-decoration: underline;
}

#gal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  z-index: 10;
}

/* ══════════ 시험지 ══════════ */
#tab-exam {
  display: none;
  flex-direction: column;
}

#tab-exam.active {
  display: flex;
}

#exam-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-deep);
  border-bottom: 1px solid rgba(242, 201, 76, 0.2);
  flex-wrap: wrap;
}

#exam-toolbar button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #eee;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

#exam-toolbar button:hover {
  background: rgba(255, 255, 255, 0.16);
}

#exam-grade {
  background: var(--pink) !important;
  border-color: var(--pink) !important;
  font-weight: 700;
}

#exam-page-indicator {
  font-size: 13px;
  color: #ccc;
  min-width: 46px;
  text-align: center;
}

#exam-hint {
  font-size: 12px;
  color: #888;
  margin-left: auto;
}

#exam-score-banner {
  flex: 0 0 auto;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(231, 84, 128, 0.25), rgba(242, 201, 76, 0.25));
  border-bottom: 1px solid rgba(242, 201, 76, 0.3);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

#exam-stage {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  padding: 12px;
  touch-action: pan-y;
}

#exam-page-wrap {
  position: relative;
  width: min(100%, 860px);
  height: fit-content;
  container-type: inline-size;
}

#exam-page-img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}

#exam-page-wrap.turning #exam-page-img {
  animation: pageTurn 0.1s ease;
}

@keyframes pageTurn {
  from {
    opacity: 0.8;
  }

  to {
    opacity: 1;
  }
}

#exam-overlay {
  position: absolute;
  inset: 0;
}

/* 문제 클릭 영역 — 누르면 모달, 호버 효과 없음 */
.q-region {
  position: absolute;
  cursor: pointer;
}

/* 선택 표기(파란 V체크 = 수험생 펜) */
.choice-mark {
  position: absolute;
  transform: translate(-45%, -75%);
  color: rgba(13, 0, 197, 0.8);
  font-weight: 900;
  font-size: 3cqw;
  line-height: 1;
  pointer-events: none;
}

/* 주관식 답 표기 */
.text-mark {
  position: absolute;
  transform: translate(5%, -60%);
  color: rgba(13, 0, 197, 0.8);
  font-family: 'Zen Kurenaido', 'ChilgokGrandmaLeeWonSoon', 'Nanum Pen Script', cursive, sans-serif;
  font-size: 2.6cqw;
  white-space: nowrap;
  pointer-events: none;
}

/* 채점 표기 (이미지) */
.grade-mark {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.grade-mark.correct {
  width: 10%;
}

.grade-mark.wrong {
  width: 10%;
}

.grade-mark.answer-ring {
  width: 2%;
  aspect-ratio: 1;
  border: 0.25cqw dashed rgba(220, 40, 50, 0.7);
  border-radius: 50%;
  transform: translate(-65%, -50%);
}

/* ── 문제 모달 ── */
#q-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

#q-modal {
  background: #fff;
  color: #222;
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

#q-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

#q-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pink);
}

#q-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}

#q-crop {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  max-height: 52vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* 문제 rect 바깥은 절대 보이지 않도록 정확히 잘라내는 클립 */
#q-crop-clip {
  position: relative;
  overflow: hidden;
}

/* 크롭 이미지 위 선택지 클릭 존 + 선택 표기 */
.crop-zone {
  position: absolute;
  cursor: pointer;
  z-index: 2;
}

.crop-mark {
  position: absolute;
  transform: translate(-45%, -75%);
  color: rgba(37, 84, 199, 0.9);
  font-weight: 900;
  pointer-events: none;
  z-index: 3;
}

#q-crop-img {
  position: relative;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  max-width: none;
}

#q-answer-area {
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 객관식은 크롭 이미지에서 직접 선택하므로 입력 영역이 빈 경우 접기 */
#q-answer-area:empty {
  display: none;
}

#q-text-input {
  width: 100%;
  max-width: 320px;
  padding: 10px 14px;
  font-size: 18px;
  font-family: 'Zen Kurenaido', 'ChilgokGrandmaLeeWonSoon', 'Noto Sans KR', sans-serif;
  color: #2554c7;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
}

#q-text-input:focus {
  border-color: var(--pink);
}

#q-text-input:disabled {
  background: #f5f5f5;
}

#q-explanation {
  margin: 0 16px 12px;
  padding: 10px 14px;
  background: #fdf3f6;
  border: 1px solid #f5cfdc;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

#q-explanation .q-result-line {
  font-weight: 700;
  margin-bottom: 4px;
}

#q-explanation .q-result-line.ok {
  color: #2a9d4a;
}

#q-explanation .q-result-line.no {
  color: #d33;
}

#q-nav {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

#q-nav button {
  flex: 1;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

#q-prev {
  background: #f0f0f0;
  color: #555;
}

#q-next {
  background: var(--pink);
  color: #fff;
}

#q-nav button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* 표지 위 필적 확인란 표기 */
.pen-mark-img {
  position: absolute;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
}

/* ══════════ 필적 확인란 모달 ══════════ */
#pen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

#pen-modal {
  background: #fff;
  color: #222;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  padding: 0 0 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

#pen-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  font-weight: 700;
  color: var(--pink);
}

#pen-modal-header button {
  background: none;
  border: none;
  font-size: 22px;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}

#pen-phrase {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  padding: 14px 16px 4px;
}

#pen-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 10px 16px;
}

.pen-tab {
  background: #f0f0f0;
  border: none;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 16px;
  cursor: pointer;
}

.pen-tab.active {
  background: var(--pink);
  color: #fff;
}

/* 가로로 긴 캔버스를 담는 스크롤 영역 — 쓰다 보면 자동으로 옆으로 이동 */
#pen-scroll {
  margin: 4px 16px 0;
  border: 2px dashed #ccc;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}

#pen-canvas {
  display: block;
  width: 1600px;
  height: 150px;
  touch-action: none;
  cursor: crosshair;
}

#pen-hint {
  margin: 6px 16px 0;
  font-size: 11px;
  color: #aaa;
  text-align: center;
}

#pen-input {
  display: block;
  width: calc(100% - 32px);
  margin: 4px 16px 0;
  padding: 12px 14px;
  font-size: 18px;
  font-family: 'Zen Kurenaido', 'ChilgokGrandmaLeeWonSoon', 'Noto Sans KR', sans-serif;
  color: #2554c7;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
}

#pen-input:focus {
  border-color: var(--pink);
}

#pen-actions {
  display: flex;
  gap: 8px;
  padding: 14px 16px 0;
}

#pen-actions button {
  flex: 1;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

#pen-clear {
  background: #f0f0f0;
  color: #555;
}

#pen-save {
  background: var(--pink);
  color: #fff;
}

/* ══════════ 모바일 ══════════ */
@media (max-width: 560px) {
  #topbar {
    gap: 6px;
    padding: 0 8px;
  }

  #site-title {
    font-size: 12px;
    flex: 0 1 auto;
    min-width: 0;
  }

  .tab-btn {
    font-size: 13px;
    padding: 5px 9px;
  }

  #exam-hint {
    display: none;
  }

  #exam-toolbar {
    padding: 6px 8px;
    gap: 6px;
  }

  #exam-toolbar button {
    padding: 6px 10px;
  }

  #exam-stage {
    padding: 8px;
  }
}

/* 초소형 화면: 제목을 숨기더라도 메뉴는 절대 깨지지 않게 */
@media (max-width: 380px) {
  #site-title {
    display: none;
  }

  #tabs {
    margin-left: 0;
    flex: 1;
    justify-content: center;
  }
}

/* ── 드롭다운 메뉴 (다운로드) ── */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #eee;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 6px;
  overflow: hidden;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-group {
  border-bottom: 1px solid #ddd;
}

.dropdown-group:last-child {
  border-bottom: none;
}

.dropdown-title {
  padding: 10px 14px 4px;
  font-size: 12px;
  color: #888;
  font-weight: bold;
}

.dropdown-content a {
  color: #333;
  padding: 8px 14px;
  text-decoration: none;
  display: block;
  font-size: 13px;
}

.dropdown-content a:hover {
  background-color: #eee;
}

/* ── 인쇄(PDF 다운로드)용 스타일 ── */
@media print {
  body * {
    visibility: hidden;
  }

  #print-container,
  #print-container * {
    visibility: visible;
  }

  #print-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .print-page {
    page-break-after: always;
    position: relative;
    width: 100%;
    margin-bottom: 0;
  }

  .print-page:last-child {
    page-break-after: avoid;
  }

  .print-page img.print-base-img {
    width: 100%;
    display: block;
  }
}
