:root {
  --header-height: 100px;
}

* {
  font-weight: inherit;
  box-sizing: border-box;
}

.line {
  width: 100%;
  height: 1px;
  background-color: #ccc;
}

.line.gap {
  margin-block: 50px;
}

b {
  font-weight: 600;
}

html,
body {
  font-size: 16px;
}

body {
  background: #fff;
}

.search {
  display: none;
  top: 100%;
  font-size: 20px;
  height: auto;
}

.search_mo {
  top: 0;
  position: static;
}

.search_bt,
.search_close {
  width: 26px;
  height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: static;
}

.search_bt img,
.search_close img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search_close {
  display: none;
}

header {
  height: var(--header-height, 100px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  left: 0;
  box-shadow: 0 2px 10px 2px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  z-index: 100;
}

header .logo_wrap {
  margin-left: 50px;
  display: flex;
  align-items: center;
  gap: 20px;
}

header .logo_wrap .vol_wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-size: 18px;
}

header .logo_wrap .vol_wrap b {
  margin-bottom: 3px;
}

header nav {
  height: 100%;
}

header nav ul {
  height: 100%;
  display: flex;
  gap: 60px;
  font-weight: 600;
}

header nav ul li {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

header nav ul li.active {
  color: var(--primary-color, #0055aa);
}

header nav ul li::after {
  content: "";
  width: 0;
  height: 4px;
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color, #0055aa);
  transition: all .35s
}

header nav ul li.active::after {
  width: 120px;
}

header .btns {
  display: flex;
  align-items: center;
  gap: 30px;
}

header .btns .gnb {
  width: var(--header-height, 100px);
  height: var(--header-height, 100px);
  position: relative;
  background-color: var(--primary-color, #0055aa);
  border: none;
  outline: none;
}

header .btns .gnb * {
  pointer-events: none;
}

header .btns .gnb span {
  width: 50%;
  height: 6px;
  display: block;
  position: absolute;
  transition: all .35s;
  background-color: #558cc5;
}

header .btns .gnb .top {
  top: calc(50% - 16px);
  left: 50%;
  transform: translate(-50%, -50%);
}

body:has(.mo_nav.active) header .btns .gnb .top {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

header .btns .gnb .left {
  width: 22%;
  top: 50%;
  left: 47%;
  transform: translate(-100%, -50%);
}

.mo_nav .book_container {
  max-width: 600px;
  margin-right: 0;
  margin-left: auto;
  position: relative;
  box-shadow: 0 -2px 5px 2px rgba(0, 0, 0, 0.1);
}

.mo_nav .book_container .inner_wrap {
  padding-top: 0;
  width: 100%;
}

.mo_nav .book_container .abs {
  width: max-content;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 30px;
  position: relative;
  top: -44px;
  white-space: nowrap;
  background-color: #004488;
  color: #fff;
}

.mo_nav .book_container .abs * {
  color: inherit;
  letter-spacing: 1px;
}

.mo_nav .book_container .cover_img {
  margin-bottom: 25px;
}

.mo_nav .book_container h4 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
}

.mo_nav .book_container h4 * {
  font-size: inherit;
  font-weight: inherit;
}

.mo_nav .book_container h4 + p {
  letter-spacing: -0.5px;
  margin-bottom: 30px;
  font-size: 15px;
  font-weight: 300;
}

.mo_nav .book_container::after {
  content: "";
  width: 10px;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: -5px;
  background-color: #ccc;
  opacity: 0.7;
  filter: blur(10px);
  z-index: -1;
}

.mo_nav .book_container .links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.mo_nav .book_container .links > * {
  flex: 1;
}

.mo_nav .book_container .view_pdf,
.mo_nav .book_container .view_oldlist {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #999999;
  padding-bottom: 5px;
}

.mo_nav .book_container .view_pdf img,
.mo_nav .book_container .view_oldlist img {
  filter: invert(55%) sepia(84%) saturate(0%) hue-rotate(190deg) brightness(97%) contrast(76%);
}

.mo_nav .book_container .view_pdf span,
.mo_nav .book_container .view_oldlist span {
  color: #999999;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.mo_nav .book_container .view_pdf:hover,
.mo_nav .book_container .view_oldlist:hover {
  border-color: #0055aa;
}

.mo_nav .book_container .view_pdf:hover img,
.mo_nav .book_container .view_oldlist:hover img {
  filter: invert(16%) sepia(65%) saturate(4688%) hue-rotate(198deg) brightness(97%) contrast(102%);
}

.mo_nav .book_container .view_pdf:hover span,
.mo_nav .book_container .view_oldlist:hover span {
  color: #0055aa;
}

body:has(.mo_nav.active) header .btns .gnb .left {
  left: 40%;
  opacity: 0;
}

header .btns .gnb .right {
  width: 22%;
  top: 50%;
  right: 47%;
  transform: translate(100%, -50%);
}

body:has(.mo_nav.active) header .btns .gnb .right {
  right: 40%;
  opacity: 0;
}

header .btns .gnb .bot {
  top: calc(50% + 16px);
  left: 50%;
  transform: translate(-50%, -50%);
}

body:has(.mo_nav.active) header .btns .gnb .bot {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.pc_nav {
  width: 100%;
  padding-top: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
  z-index: 99;
  border-bottom: 1px solid #ddd;
}

.pc_nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 80px;
}

.pc_nav article {
  display: none;
}

.pc_nav article .left {
  width: 300px;
  padding-block: 50px;
  padding-right: 60px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  border-right: 1px solid #e5e5e5;
}

.pc_nav article .left h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 40px;
}

.pc_nav article .right {
  padding-block: 50px;
  padding-left: 60px;
}

.pc_nav article .right h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  position: relative;
}

.pc_nav article .right ul li {
  position: relative;
}

.pc_nav article .right ul li:hover h3 {
  color: #0055aa;
}

.pc_nav article .right ul li:hover h3::before {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  background-color: #0055aa;
  display: block;
  transform: translate(-150%, 0);
  top: 0;
  left: 0;
  border-radius: 50%;
}

.pc_nav article .right ul li h4 {
  letter-spacing: -0.5px;
  word-break: keep-all;
}

.pc_nav article .right ul li .cover {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.mo_nav {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all .35s;
  pointer-events: none;
  z-index: 90;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.mo_nav.active {
  opacity: 1;
  pointer-events: all;
}

.mo_nav .inner_wrap {
  max-width: 600px;
  height: max-content;
  padding-inline: 60px;
  margin-right: 0;
  gap: 30px;
  background-color: #fff;
}

.mo_nav .inner_wrap:not(:has(form)) {
  padding-top: calc(var(--header-height) * 1.5);
  padding-bottom: calc(var(--header-height) * 0.5);
}

.mo_nav .inner_wrap:has(form) {
  display: none;
}

.mo_nav .inner_wrap:has(form) .search {
  width: 100%;
  padding: 10px 30px;
  margin-bottom: 2em;
}
.mo_nav .inner_wrap:has(form) .search .it {
  float: none; 
  font-size: 16px;
}

.mo_nav .category {
  display: flex;
  align-items: center;
  margin-bottom: 2em;
}

.mo_nav ul li {
  position: relative;
  margin-bottom: 2em;
}


.mo_nav ul li .cover {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

.mo_nav .category img {
  height: 3em;
  margin-right: 1em;
}

.mo_nav h2 {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 600;
  word-break: keep-all;
}

.mo_nav h3 {
  font-size: 18px;
  font-weight: 600;
  word-break: keep-all;
}

.mo_nav h4 {
  font-size: 16px;
  word-break: keep-all;
  letter-spacing: -0.5px;
}

.mo_nav ul li:hover h2,
.mo_nav ul li:hover h3,
.mo_nav ul li:hover h4 {color: var(--primary-color);}

body:has(.mo_nav.active) .pc_nav {
  display: none !important;
}

body:has(.mo_nav.active) header nav ul li.active {
  color: #010101; 
}

body:has(.mo_nav.active) header nav ul li::after {
    display: none !important;
}

body:has(.mo_nav.active) {
  overflow: hidden !important;
}

@media screen and (max-width: 1024px) {
  .mo_nav .hide_clickevent {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
  }
}

@media screen and (max-width: 640px) {
  .mo_nav .inner_wrap {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 1200px) {
  header nav ul {gap: 30px;}
}

@media screen and (max-width: 1024px) {
  :root {
    --header-height: 80px;
  }

  header .btns {gap: 15px;}
  header .btns .search_onoff {display: none;}
  header .logo_wrap {margin-left: 20px; gap: 10px;}
  header .logo_wrap img {width: 120px;}
  header .logo_wrap .vol_wrap * {font-size: 15px;}
  header nav {display: none;}

  .mo_nav {
    padding-top: calc(var(--header-height)* 1.5);
    padding-bottom: calc(var(--header-height)* 0.5);
    background-color: #fff;
    /* pointer-events: none !important; */
  }

  .mo_nav.active .inner_wrap {
    width: 100%;
    max-width: 100%;
    padding-inline: 30px;
    pointer-events: all;
    position: relative;
    z-index: 2;
  }

  .mo_nav .inner_wrap:not(:has(form)) {
    width: 100%;
    max-width: 100%;
    padding-block: 0;
  }

  .mo_nav .inner_wrap:has(form) {
    display: block;
  }

  .mo_nav .book_container {
    max-width: 100%;
    margin-top: 88px;
    box-shadow: 0 -4px 5px 2px rgba(0, 0, 0, 0.05);
  }
}

@media screen and (max-width: 475px) {
  .mo_nav .inner_wrap {
    padding-inline: 20px;
  }

  .mo_nav h2 {
    font-size: 24px;
  }

  .mo_nav .category img {
    height: 2.5em;
  }

}

.inner_wrap {
  width: 92%;
  max-width: 1200px;
  margin-inline: auto;
}

footer {
  padding: 60px 0 40px;
  background-color: #2b2a2a;
  position: relative;
}

footer .remote {
  width: max-content;
  height: max-content;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

footer article {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

footer article p,
[data-page-type="sub"] footer article p {
  opacity: 0.8;
  color: #888;
  font-size: 15px;
  text-align: right;
  margin-bottom: 20px;
}

footer article p * {
  color: #888;
  font-size: inherit;
}

footer article ul {
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 0 10px;
}

footer article ul li img {
  filter: grayscale(1);
}

footer article ul li .btn {
  padding: 10px 20px;
  color: #888;
  border: 1px solid #888;
  border-radius: 20vw;
  font-size: 15px;
}


@media screen and (max-width: 1200px) {
  footer article {
    flex-direction: column;
    gap: 10px;
  }

  footer article > img {
    margin-inline: auto;
  }

  footer article .textbox {
    width: 100%;
  }

  footer article p,
  [data-page-type="sub"] footer article p {
    text-align: center;
    word-break: keep-all;
    font-size: 14px;
  }

  footer article ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  footer article ul li {
    height: max-content;
  }

  footer article ul li:last-of-type {
    width: 100%;
    padding-top: 20px;
  }

  footer article ul li:last-of-type a {
    width: max-content;
    margin-inline: auto;
    display: block;
  }
}