@charset "utf-8";
/* 서브 페이지 CSS - sub.css */

/* 공통 외부 CSS 불러오기 */
/* @import url(경로/파일명); */

/* 상단 하단 공통모듈 */
@import url(./common.css);

@import url(./core.css);
/* 초기화CSS */
@import url(./reset.css);

/* 공사중 표시 */
body * {
  outline: 2px dashed #ccc;
}

/***************** 메인 CSS ********************/

/* spart-menu 공통 fixed 설정 */
#spart-menu {
  position: fixed;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 100%;
  max-width: 1360px;
  height: 94px;
  z-index: 999;
  background: url(../images/background.gif) no-repeat center top / cover;
}

/* header.top: fixed spart-menu(94px) 아래에 배치 */
header.top {
  margin-top: 94px;
}

/* 제목파트 */
.tit2 .inbox {
  max-width: 1360px;
}
/* 하위메뉴 호버시 */
.line1 > a:hover {
  color: #c52531;
  font-weight: bold;
}

.line1 a.active {
    color: #c52531;
    font-weight: bold;
    background-color: transparent;
}

.line1 {
  display: flex;
  height: 30px;
  border-bottom: 2px solid #b3b3b5;
  align-items: center;
  gap: 18px;
  font-size: 1.6rem;
  /* ?? */
  padding-left: calc(100% / 12);
}

.line2 {
  font-size: 3.6rem;
  text-align: center;
  align-content: center;
  height: 85px;
  border-bottom: 2px solid #b3b3b5;
}

.line3 {
  height: 30px;
  border-bottom: 2px solid #b3b3b5;
  align-content: center;
  margin-bottom: 45px;
  padding-left: calc(100% / 12);
}

/* ////////////////////////////////////////// */

/* for문 전에 */
/*.painting-part ul.cont-box {
    gap: 21.4vh 4.5vh;
}
.cont-box{
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    
}
.painting-part li {
  컨텐츠 세로 배치 
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
    width: calc((100% - 4.5vh * 2) / 3); */

/* 전체 화면구성 
    aspect-ratio: 340 / 455;
    box-shadow: 0 0 10px #ccc;
    box-sizing: border-box;
    padding: 24px 20px;
    cursor: pointer;}

    .cont-box img{
      max-width: 340px;
    }
    .cont-box h3{
     text-align: center;
     font-size: 1.8rem;
     } */

/* .booksbox {
  max-width: 1360px;
  margin: 0 auto;
}
   */
.wrap {
  max-width: 1114px;
  margin: 0 auto;
}

/* 내부 플렉스박스 */
.booksbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  position: relative;
  overflow: hidden;
}

.book-line-wrap::after {
  content: "";
  position: absolute;
  top: 380px;
  left: 50%;
  translate: -50% 0;
  width: 120%;
  height: 1px;
  z-index: 3;
  background-color: black;
}

.wrap ul {
  /* 한줄에 3개 오는 설정값을 찾음 */
  /* width: calc((100% - 4.5vh*3) / 4); */
  aspect-ratio: 266 / 548;
  cursor: pointer;
  text-align: center;

  /* 이미지,글자 셋팅 */
  display: flex;
  flex-direction: column;
  /* justify-content: flex-end; */
  align-items: center;

  /* 패딩, 보더를 크기에 포함하기 : bxb */
  box-sizing: border-box;
  gap: 20px;
}

.abtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.ab1 {
  left: 50px;
}

.ab2 {
  right: 50px;
}

.book {
  width: 266px;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}
.list {
  position: relative;
}


/* 이미지태그를 배경처럼 넣기 */
.wrap img {
  max-width: 230px;
  border: 1px solid #d9d9d9;
  /* height: 100%; */
  object-fit: cover;
  /* object-fit속성
            이미지를 해당박스에서 이미지처럼
            넘치는 부분을 적당히 잘라서 안보이게하며
            비율 유지를 할 수 있게 해주는 속성
            그 값으로 cover를 사용함! */
  box-shadow: -7px 5px 0px 0 #d9d9d9;
  transform: translateY(5px);
  transition: all 0.3s;
}

.section:hover .book {
  transform: translateY(-20px);
  overflow: visible;
}
.booktxt {
  width: 266px;
  height: 167px;
}
.wrap h3 {
     padding: 10px 35px 0;
    font-size: 1.8rem;
    max-width: 198px;
    text-align: center;
    word-break: break-all;
}

/* 버튼박스 */
.btns-box {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translate(-50%, 0);
  display: flex;
  gap: 5vw;
}

.dots {
  position: relative;
  text-align: center;
  margin: 107px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  background-color: #bdbdbd;
  border-radius: 50%;
  display: inline-block;
  margin: 0 19px;
}

.dot.active,
.dot:hover {
  background-color: #666666;
}

/* 메뉴 활성화 링크 색상 */
.spart-menu a.active,
.gnb-list a.active,
.line1 a.active {
  color: #c52531 !important;
  background-color: transparent !important;
}

/* 모달시작 */
.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper {
  width: 100%;
  height: 300px;
  margin-left: auto;
  margin-right: auto;
}

.swiper-slide {
  background-size: cover;
  background-position: center;
}

.mySwiper2 {
  height: 400px;
  /* width: 100%; */
}
section.modal-img {
  padding-top: 60px;
  width: 50%;
  box-sizing: border-box;
}
.mySwiper {
  height: auto;
  width: 558px;
}

.mySwiper .swiper-slide {
  width: 70px !important;
  height: 100%;
  /* opacity: 0.4; */
}

.swiper-button-next,
.swiper-button-prev {
  color: #000000 !important;
}

/* .mySwiper .swiper-slide-thumb-active {
      opacity: 1;
    } */

.swiper-slide.swiper-slide-visible.swiper-slide-fully-visible {
  width: 100px !important;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.big{
  height: 100%;
}
.big > img {
  display: inline;
  width: auto;
  height: 100%;
  object-fit: contain;
}

  .small {
    width: auto;
    height: 50px;
}

.small > img {
 object-fit: contain;
}

.swiper-free-mode>.swiper-wrapper {
      margin: 25px 0 0 0 ! important;
    height: auto;
}

/* 4. 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 333;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  /* padding: 30px; */
  /* padding: 30px 0 30px 0; */
  /* border-radius: 10px; */
  border: #000000 solid 1px;
  width: 90%;
  max-width: 1114px;
  height: 560px;
  position: relative;
  animation: slideIn 0.3s ease;
  /* overflow: auto; */
  user-select: none;
}
.modal-content::before {
  content: "";
  width: 1px;
  position: absolute;
  height: 100%;
  left: 50%;
  top: 0;
  background-color: #000000;
  z-index: 333;
}

.flex {
  display: flex;
}

.modal-content > .flex {
  position: relative;
  height: 560px;
  display: flex;
  flex-direction: row;
  z-index: 1;
}

/* section.modal-img {
    position: fixed;
} */

/* .modal-content::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 30px solid #ffffff;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none;
} */

.modal-tit {
  /* position: absolute; */
  /* left: 50%; */
  /* width: 50%; */
  position: relative;
  height: 100%;
  overflow: auto;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  /* margin: 35px 0 25px 30px; */
  /* padding-bottom: 30px; */
  /* box-sizing: border-box; */
}

.modal-tit > h3 {
  font-size: 3.2rem;
  padding: 60px 30px 45px;
  margin: 0;
}
section.modal-tit::before {
    content: "";
    display: block;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #fff;
}
section.modal-tit::after {
  content: "";
  display: block;
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background-color: #fff;
}

.txtbox {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 2.3vw;
  border-bottom: #000 solid 1px;
}
.box {
  display: flex;
  margin-left: 30px;
}
.box3 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  padding-top: 30px;
  margin-left: 30px;
  /* * 문단 깔끔하게 정렬하는 코드 */
  text-align: justify;
  /* *단어 깨져서 보이게 */
  /* word-break: break-all; */
  /* padding-bottom: 30px; */
}

.box3 > p {
  margin-right: 15px;
  line-height: 1.4;
}
strong {
  font-size: 1.8rem;
  min-width: 90px;
  text-align: left;
  margin-right: 15px;
  align-content: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
right: 20px;
  top: 0;
  z-index: 3;
}

.close:hover {
  color: #000;
}

.modal-btn {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  background: transparent;
  border: none;
  width: 100%;
  height: 100%;
  cursor: pointer;
  /* transition: background 0.3s ease; */
  z-index: 10;
}
.disabled {
  /* 투명도를 50%로 설정합니다. */
  opacity: 0.5;

  /* 마우스 이벤트도 무시하게 하려면 (필요한 경우) */
  /* pointer-events: none; */
}

.detail>p {
    padding-bottom: 28px;
}

/* .detail>p 중 마지막에 오는 p태그는 padding-bottom 0로 변경
 */

.detail>p:last-child {
    padding-bottom: 0;
}

.search-form>button {
  display: none;
}

.disabled {
  /* 투명도를 50%로 설정합니다. */
  opacity: 0.5;

  /* 마우스 이벤트도 무시하게 하려면 (필요한 경우) */
  /* pointer-events: none; */
}
.search-form {
    /* 폼의 너비나 위치를 .line3 스타일에 맞춰 조정하세요. */
    width: 100%;
 
    margin: 0 auto; /* 중앙 정렬 */
    text-align: center;
}

/* 검색 입력 칸 스타일 */
#search-input {
    /* **핵심: 테두리와 배경 제거** */
    border: none;             /* 테두리 제거 */
    /* 얇은 밑줄만 남기기 (깔끔함) */
    background: transparent;  /* 배경 투명하게 */
    outline: none;            /* 포커스 시 생기는 파란색 테두리 제거 */
    
    /* 너비 및 텍스트 스타일 */
    width: 100%;
    padding: 10px 0;         /* 상하 패딩만 남기고 좌우는 0 */
    font-size: 1.2em;
    color: #333;             /* 글자색 */
}

/* 포커스 시 밑줄 색상 변경 (선택 사항: 사용자 피드백) */
#search-input:focus {
    border-bottom-color: #c52531; /* 포커스 시 강조 색상 적용 */
}

/* Placeholder 스타일링 (브라우저별 접두사 필요) */
#search-input::placeholder {
    color: #000000;
    font-size: 1.6rem;
    opacity: 1;
}

/* ====================================================
   미디어쿼리
   ==================================================== */

/* 1200px 이하 */
@media screen and (max-width: 1200px) {
  .wrap {
    max-width: 900px;
  }
  .book {
    width: 220px;
    height: 320px;
  }
  .book-line-wrap::after {
    top: 320px;
  }
  .wrap img {
    max-width: 190px;
  }
  .booktxt {
    width: 220px;
  }
  .wrap h3 {
    font-size: 1.6rem;
    max-width: 180px;
    padding: 8px 20px 0;
  }
}

/* 1024px 이하 */
@media screen and (max-width: 1024px) {
  html {
    font-size: 8px;
  }
  .wrap {
    max-width: 760px;
  }
  .book {
    width: 200px;
    height: 290px;
  }
  .book-line-wrap::after {
    top: 290px;
  }
  .wrap img {
    max-width: 170px;
  }
  .booktxt {
    width: 200px;
  }
  .wrap ul {
    aspect-ratio: auto;
  }
  /* 모달 가로 → 세로 전환 */
  .modal-content {
    height: auto;
    max-height: 90vh;
    overflow: auto;
  }
  .modal-content > .flex {
    flex-direction: column;
    height: auto;
  }
  section.modal-img {
    width: 100%;
    padding-top: 30px;
  }
  .mySwiper2 {
    height: 300px;
  }
  .mySwiper {
    width: 100%;
  }
  .modal-content::before {
    display: none;
  }
  .modal-tit {
    width: 100%;
    height: auto;
  }
}

/* 800px 이하 - 모바일 */
@media screen and (max-width: 800px) {
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* ── header: sticky 해제, 일반 흐름으로 ── */
  header.top {
    position: static;
  }

  /* ── #spart-menu: 화면 상단 fixed 고정 ── */
  #spart-menu {
    position: fixed;
    top: 0;
    left: 0 !important;
    translate: none;
    width: 100%;
    height: 94px;
    z-index: 999;
    background: url(../images/background.gif) no-repeat center top / cover;
  }

  /* ── center-box: 모바일 헤더 컨테이너 ── */
  .center-box {
    width: 100%;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
    height: 94px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 데스크탑 nav ul 전체 숨기기 */
  .spart-menu ul {
    display: none !important;
  }
  /* center-box 직속 ul(로고 포함 메뉴)만 flex로 살리기 */
  #spart-menu2 > ul {
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 94px;
    padding: 0;
  }
  #spart-menu2 > ul > li {
    display: none;
  }
  /* 로고(3번째 li)만 보이기 */
  #spart-menu2 > ul > li:nth-child(3) {
    display: block;
    text-align: center;
  }

  /* ── header.top: spart-menu(fixed 94px) 아래로 밀기 ── */
  header.top {
    margin-top: 94px;
  }
  .tit2 .inbox {
    padding: 0;
  }
  .line1 {
    padding-left: 4vw;
  }
  .line3 {
    padding-left: 4vw;
  }

  /* ── 햄버거 버튼 그룹 ── */
  .menubtn-group {
    display: flex !important;
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    right: 20px;
    gap: 20px;
  }
  .menubtn-group > button {
    background-color: transparent;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: #ffffff;
  }
  .menubtn-ham i:nth-child(2) {
    display: none;
  }
  #spart-menu2.menu-open .menubtn-ham i:nth-child(1) {
    display: none;
  }
  #spart-menu2.menu-open .menubtn-ham i:nth-child(2) {
    display: block;
  }

  /* ── 모바일 메뉴박스 슬라이드 ── */
  .menu-box {
    display: block !important;
    position: fixed;
    top: 94px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 94px);
    background-color: #fff;
    z-index: 9999;
    transition: left 0.5s ease-in-out;
    overflow-y: auto;
  }
  #spart-menu2.menu-open .menu-box {
    left: 0;
    translate: none;
  }

  /* 메뉴그룹 */
  .menu-group {
    display: flex;
    flex-direction: column;
    background-color: white;
    box-sizing: border-box;
  }
  nav.gnb-menu {
    width: 100%;
  }
  .gnb-menu ul {
    display: flex !important;
    flex-direction: column;
    height: auto;
    margin: 0;
    padding: 0;
    align-items: flex-start;
  }
  .gnb-list > li {
    width: 100%;
    border-bottom: 1px solid #000;
    padding: 3.2rem;
    box-sizing: border-box;
  }
  .gnb-list > li:nth-child(3),
  .gnb-list > li:nth-child(4) {
    padding: 3.2rem 3.2rem calc(2.5vh * 2 + 3.2rem) 3.2rem;
  }
  .gnb-list > li > a {
    color: #000 !important;
    font-size: 2.5vh !important;
    text-decoration: none;
    width: 33%;
    margin: 0 0 0 calc(100% / 12);
    text-align: left;
  }
  .sub {
    display: flex;
    width: 100%;
  }
  .sub2 {
    position: absolute;
    width: 40%;
    text-align: left;
    right: calc(100% / 12);
  }
  .sub2 > div {
    font-size: 2.5vh;
    position: relative;
  }
  .sub2 a {
    color: #000 !important;
    font-size: 2vh !important;
    text-decoration: none;
  }
  .sub-list {
    display: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .sub-list.active {
    display: block;
    max-height: 500px;
  }
  .two-line li a {
    color: #000 !important;
    font-size: 1.8vh !important;
  }
  .fa-chevron-down {
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: 8px;
  }
  .fa-chevron-down.active {
    transform: rotate(180deg);
  }

  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
  }
  /* 메뉴 열릴 때 뒤 콘텐츠 클릭 방지 오버레이 */
  body.menu-open::after {
    content: "";
    position: fixed;
    top: 94px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background-color: transparent;
  }
  /* 메뉴 열릴 때 책 영역 클릭/선 완전 차단 */
  body.menu-open .book-part {
    pointer-events: none;
  }
  body.menu-open .book-line-wrap::after {
    display: none;
  }
  body.menu-open .booksbox {
    visibility: hidden;
  }

  /* ── 책 레이아웃 모바일 ── */
  .wrap {
    max-width: 100%;
    padding: 0 4vw;
    box-sizing: border-box;
  }
  .booksbox {
    justify-content: space-around;
    gap: 20px 0;
  }
  .wrap ul {
    width: calc(50% - 10px);
    aspect-ratio: auto;
  }
  .book {
    width: 100%;
    max-width: 150px;
  }
  .booksbox::after {
    top: 210px;
  }
  .wrap img {
    max-width: 130px;
  }
  .booktxt {
    width: 100%;
    max-width: 150px;
    height: auto;
  }
  .wrap h3 {
    font-size: 1.3rem;
    padding: 6px 8px 0;
    max-width: 100%;
    word-break: keep-all;
  }

  /* 좌우 버튼 */
  .abtn.ab1 { left: 10px; }
  .abtn.ab2 { right: 10px; }
  .abtn img { width: 28px; }

  /* 모달 모바일 */
  .modal-content {
    margin: 5% auto;
    width: 95%;
    height: auto;
    max-height: 88vh;
    overflow: hidden;
  }
  .modal-content > .flex {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
    max-height: 88vh;
  }
  .modal-content::before { display: none; }
  section.modal-img {
    width: 100%;
    padding-top: 40px;
    box-sizing: border-box;
  }
  .mySwiper2 { height: 240px; }
  .mySwiper { width: 100%; }
  .modal-tit {
    width: 100%;
    height: auto;
  }
  .modal-tit > h3 {
    font-size: 2rem;
    padding: 20px 15px 15px;
  }
  strong {
    min-width: 70px;
    font-size: 1.5rem;
  }
  .box { margin-left: 12px; }
  .box3 { margin-left: 12px; padding-top: 15px; }
}

/* 480px 이하 */
@media screen and (max-width: 480px) {
  .book {
    max-width: 120px;
    height: 175px;
  }
  .book-line-wrap::after {
    top: 175px;
  }
  .wrap img {
    max-width: 100px;
  }
  .wrap h3 {
    font-size: 1.1rem;
  }
  .dots {
    margin: 50px 10px;
  }
}