/* ImagingWord (levup.app) 홈페이지 스타일
   원본(Web_StudyBase)은 Bootstrap 4 + site.css 였지만, 실제로 쓰던 것은
   이미지 배치와 상단/하단 틀 정도라서 필요한 부분만 직접 옮겼다. */

:root {
  --header-h: 92px;
  --text: #212529;
  --muted: #6c757d;
  --footer-bg: #ececec;
  --footer-line: #808080;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding-top: var(--header-h);
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
}

/* PC: 로고 왼쪽, 메뉴 이미지 오른쪽 */
.header-pc .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.header-pc .brand img { max-height: 85px; padding: 8px 0; }
.header-pc nav { display: flex; align-items: center; }
.header-pc nav a { display: block; padding: 8px; text-align: center; }
.header-pc nav img { max-width: 160px; }

/* 모바일: 로고 1칸 + 메뉴 4칸 */
.header-mobile {
  display: none;
  height: 90px;
  padding-top: 15px;
}
.header-mobile .row { display: flex; align-items: flex-start; }
.header-mobile .brand { flex: 0 0 25%; text-align: center; }
.header-mobile .brand img { max-height: 60px; }
.header-mobile nav { flex: 0 0 75%; display: flex; }
.header-mobile nav a { flex: 1 1 25%; text-align: center; }
.header-mobile nav img { max-width: 60px; }

@media (max-width: 768px) {
  .header-pc { display: none; }
  .header-mobile { display: block; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 8px solid var(--footer-line);
  background: var(--footer-bg);
}
.site-footer .container {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.site-footer .footer-logo { flex: 0 0 33.333%; text-align: center; }
.site-footer .footer-info { flex: 1 1 auto; margin: 0; }

@media (max-width: 575px) {
  .site-footer .container { padding-top: 16px; padding-bottom: 16px; }
  .site-footer .footer-logo { flex: 0 0 50%; margin: 0 auto; }
  .site-footer .footer-info { display: none; }
}

/* ===== 메인: 이미지를 세로로 이어 붙인 화면 ===== */
.wrap {
  width: 1340px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: 0;
  line-height: 0;
}
.wrap > div {
  width: 860px;
  max-width: 100%;
  margin: 0 auto;
}
.wrap a { display: block; }

/* ===== 이미지 소개 페이지 (교재 소개 / 서점 / 이벤트 / 가이드) ===== */
.band { text-align: center; }
.band img { display: block; margin: 0 auto; }
.band-title { padding: 16px 0; }
.band-title img { width: 58%; max-width: 285px; }
.band-body { padding: 0 15px 48px; }
.band-body > * + * { margin-top: 40px; }
.band-body.first { padding-top: 48px; }

/* ===== 음성 제공 (Sound) ===== */
.sound-page { padding-top: 20px; padding-bottom: 30px; }
.sound-page h1 {
  margin: 20px 0 30px;
  font-size: 1.75rem;
  font-weight: 500;
  text-align: center;
}
.pack-all { display: flex; justify-content: center; margin-bottom: 30px; }
.pack-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0 15px;
}
.pack {
  display: flex;
  align-items: center;
  width: 200px;
  height: 30px;
  margin: 5px 0;
}
.pack-title {
  width: 100px;
  margin: 0;
  padding-right: 4px;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.pack-all .pack { width: 220px; }
.pack-all .pack-title { width: 120px; text-align: left; }
.pack a,
.pack .pack-off { display: block; width: 50px; text-align: center; }
.pack img { max-height: 30px; }
.pack .pack-off { cursor: default; }
.pack .pack-off img { opacity: 0.25; }

/* ===== 안내 화면 (점검 중 등) ===== */
.notice-page {
  padding-top: 60px;
  padding-bottom: 80px;
  line-height: 1.6;
  text-align: center;
  word-break: keep-all;
}
.notice-page .notice-icon { font-size: 64px; line-height: 1; }
.notice-page h1 { margin: 24px 0 0; font-size: 2rem; line-height: 1.4; }
.notice-page p { color: var(--muted); }
.notice-page .notice-desc { margin-top: 16px; font-size: 17px; line-height: 1.7; }
.notice-page .notice-contact { margin-top: 40px; font-size: 14px; }
.btn-outline {
  display: inline-block;
  margin-top: 40px;
  padding: 6px 12px;
  border: 1px solid var(--muted);
  border-radius: 4px;
  color: var(--muted);
  text-decoration: none;
}
.btn-outline:hover { background: var(--muted); color: #fff; }

/* ===== 약관 / 개인정보처리방침 (앱 안 웹뷰에서도 열리므로 머리말·꼬리말 없음) ===== */
body.legal { padding-top: 0; }
.legal-page { padding-top: 20px; padding-bottom: 40px; }
.legal-page h1 {
  margin: 40px 0 20px;
  padding-bottom: 9px;
  border-bottom: 1px solid #eee;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
}
.legal-content { padding-top: 20px; word-break: keep-all; overflow-wrap: anywhere; }
.legal-content p { margin: 0 0 1rem; }
.legal-content table { border-collapse: collapse; }
.legal-content td,
.legal-content th { padding: 4px 8px; border: 1px solid #ccc; vertical-align: top; }

/* 가이드: 유튜브 로고를 버튼 위에 겹쳐 올린다 (원본의 margin-top:-125px 배치) */
.guide-youtube { display: block; margin-top: 80px !important; }
.guide-youtube img + img { margin-top: -125px; margin-bottom: 125px; }
