@charset "utf-8";

.hc-sp-page{--hc-sp-gap:clamp(0.75rem,1.25vw,1.125rem);--hc-sp-text-h:5.5rem;}

/* =============================================================
   굿즈 목록
   ============================================================= */
.hc-sp-main{padding:clamp(3rem,5.8vw,5.25rem) 0 clamp(3.5rem,5.6vw,5rem);}

.hc-sp-card{display:block;width:100%;text-align:center;}
/* 시안 카드 300x366 · 오버레이 394x481 → 9:11 */
.hc-sp-card__thumb{position:relative;display:block;aspect-ratio:9 / 11;overflow:hidden;background:var(--hc-tile);}
.hc-sp-card__thumb img{width:100%;height:100%;object-fit:cover;}
.hc-sp-card__text{display:block;padding-top:1.25rem;}
.hc-sp-card__title{display:block;font-size:1.125rem;font-weight:500;line-height:1.4;color:var(--hc-maroon);word-break:keep-all;}
.hc-sp-card__en{display:block;margin-top:2px;font-size:0.875rem;line-height:1.4;letter-spacing:.01em;color:var(--hc-maroon);}

/* 마우스를 올리면 이미지가 어두워지며 + 표시 (archive.css 의 .hc-ap-plus 와 같은 모양, 시안에 맞춰 조금 옅게) */
.hc-sp-plus{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(34,24,21,.25);color:#fff;opacity:0;pointer-events:none;transition:opacity .25s ease;}
.hc-sp-plus svg{width:2.75rem;height:2.75rem;}
.hc-sp-card:focus-visible .hc-sp-plus{opacity:1;}
/* 터치 기기에서는 누르면 바로 오버레이가 열리므로 + 를 띄우지 않는다 */
@media (hover:hover){
	.hc-sp-card:hover .hc-sp-plus{opacity:1;}
}

/* 모바일 전용 화살표 */
.hc-sp-nav{display:none;}

/* =============================================================
   굿즈 오버레이
   ============================================================= */
/* 내용이 화면보다 길면 오버레이 안에서 스크롤된다. 짧으면 margin:auto 로 가운데에 선다 */
.hc-sp-modal{position:fixed;inset:0;z-index:200;display:flex;overflow-y:auto;overscroll-behavior:contain;padding:3rem clamp(1.25rem,3.2vw,2.875rem);
	visibility:hidden;opacity:0;transition:opacity .25s ease,visibility 0s linear .25s;}
.hc-sp-modal.is-open{visibility:visible;opacity:1;transition:opacity .25s ease,visibility 0s;}
/* 배경 : 라이트박스(components/lightbox.php)와 같은 색, 시안에 맞춰 조금 더 진하게 */
.hc-sp-modal__dim{position:fixed;inset:0;background:rgba(52,49,44,.86);}
.hc-sp-modal__swiper{width: 100%; height: 100%;}

/* 왼쪽 이미지 394 : 오른쪽 내용 334 (시안 기준) */
.hc-sp-modal__box{position:relative;display:grid;grid-template-columns:minmax(0,394fr) minmax(0,334fr);column-gap:clamp(2rem,5.8vw,4.875rem);align-items:center;width:100%;max-width:50.375rem;margin:auto;color:#fff;}
/* 어두운 배경 위라 초점 테두리를 흰색으로 바꾼다 */
.hc-sp-modal :where(a,button):focus-visible{outline-color:#fff;}

.hc-sp-modal__media{position:relative;aspect-ratio:9 / 11;overflow:hidden;background:#2a2622;}
.hc-sp-modal__img{width:100%;height:100%;object-fit:cover;transition:opacity .2s ease;}
.hc-sp-modal__img[hidden]{display:none;}

/* 이미지 위 좌우 : 이전 / 다음 굿즈 */
.hc-sp-modal__nav{position:absolute;top:50%;z-index:2;display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin-top:-1rem;border-radius:50%;background:rgba(34,24,21,.3);color:#fff;transition:background-color .2s ease;}
.hc-sp-modal__nav:hover{background:rgba(34,24,21,.55);}
.hc-sp-modal__nav[hidden]{display:none;}
.hc-sp-modal__nav svg{width:0.5rem;height:0.9375rem;}
.hc-sp-modal__nav--prev{left:0.75rem;}
.hc-sp-modal__nav--next{right:0.75rem;}

.hc-sp-modal__info{display:flex;flex-direction:column;min-width:0;}
.hc-sp-modal__head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-bottom:0.5rem;border-bottom:1px solid rgba(255,255,255,.6);}
.hc-sp-modal__eyebrow{font-family:var(--hc-serif);font-size:1.25rem;line-height:1.4;letter-spacing:.01em;}
.hc-sp-modal__close{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;margin-right:-0.5rem;color:#fff;}
.hc-sp-modal__close svg{width:0.875rem;height:0.875rem;}

.hc-sp-modal__body{padding:0.875rem 0 clamp(2.5rem,4.6vw,4rem);transition:opacity .2s ease;}
.hc-sp-modal__title{font-size:1.5rem;font-weight:500;line-height:1.4;word-break:keep-all;}
.hc-sp-modal__en{margin-top:0.25rem;font-size:0.875rem;line-height:1.4;letter-spacing:.01em;}
/* 관리자가 넣은 줄바꿈을 그대로 살린다 */
.hc-sp-modal__desc{margin-top:clamp(1.5rem,2.6vw,2.25rem);font-size:1rem;line-height:1.875;white-space:pre-line;word-break:keep-all;}

/* 구매 버튼 : 메인의 View all(.hc-viewall)과 같은 알약 모양을 흰색으로 */
.hc-sp-modal__foot{display:flex;justify-content:flex-end;padding-top:1.125rem;border-top:1px solid rgba(255,255,255,.6);}
.hc-sp-modal__buy{display:inline-flex;align-items:center;justify-content:center;height:2.125rem;padding:0 0.875rem;border:1px solid rgba(255,255,255,.85);border-radius:999px;font-size:0.9375rem;line-height:1;color:#fff;transition:background-color .2s ease,color .2s ease;}
.hc-sp-modal__buy:hover{background:#fff;color:var(--hc-maroon);}
.hc-sp-modal__buy[hidden]{display:none;}

/* 이전 / 다음으로 바뀌는 동안 잠깐 흐려진다 */
.hc-sp-modal__box.is-changing .hc-sp-modal__img,
.hc-sp-modal__box.is-changing .hc-sp-modal__body{opacity:0;}

/* =============================================================
   responsive
   ============================================================= */
/* PC 양옆 여백 : 1440px 시안과 1920px 화면에서 정한 여백 사이를 화면 폭에 따라 고르게 잇는다.
                  1440px     1920px
   헤더            48px  →  305px   (안쪽 1344 → 1310px)
   상단 띠 · 목록  125px  →  365px   (안쪽 1190px 그대로)
   푸터           125px  →  305px   (안쪽 1190 → 1310px)
   계산 : 1440px 여백 + (화면 폭 - 1440px) × (1920px 여백 - 1440px 여백) / 480
   1440px 보다 좁으면 1440px 일 때의 비율로 줄고, 1920px 보다 넓으면 1rem 과 함께 같은 비율로 커진다.
   설명글은 제목 칸(418px) 오른쪽에서 시작한다 */
@media (min-width:1025px){
	.hc-sp-page .hc-header__inner,
	.hc-sp-page .hc-iv-inner,
	.hc-sp-page .hc-foot__bottom{width:auto;max-width:none;margin-left:0;margin-right:0;padding-left:var(--hc-sp-side);padding-right:var(--hc-sp-side);}
	.hc-sp-page .hc-header__inner{--hc-sp-side:max(3.3333%, calc(3rem + (100% - 90rem) * .53542));}
	.hc-sp-page .hc-iv-inner{--hc-sp-side:max(8.6806%, calc(7.8125rem + (100% - 90rem) * .5));}
	.hc-sp-page .hc-foot__bottom{--hc-sp-side:max(8.6806%, calc(7.8125rem + (100% - 90rem) * .375));}
	.hc-sp-page .hc-iv-band__inner{grid-template-columns:26.125rem minmax(0,1fr);column-gap:0;}
	.hc-sp-page .hc-iv-band__head{padding-left:0;}
}

/* 상단 띠 : PC · 모바일 모두 아카이브 메뉴 띠(archive.css .hc-ap-band__inner · __title)와 같은 위아래 간격 · 제목 크기를 써서 띠 높이까지 같게 한다.
   (PC 는 설명글이 2줄이라 interview.css 의 --hc-band-gap 대신 이 값을 쓴다. 좌우 여백은 interview.css 그대로) */
.hc-sp-page .hc-iv-band__inner{padding-top:clamp(2.5rem,3.8vw,3.375rem);padding-bottom:clamp(2.5rem,4.2vw,3.75rem);}
.hc-sp-page .hc-iv-band__head{padding-top:0;padding-bottom:0;}
.hc-sp-page .hc-iv-band__title{font-size:clamp(2rem,3.05vw,2.75rem);letter-spacing:-.01em;}

/* 데스크톱 : Swiper 를 붙이지 않고 한 줄에 3개씩 펼친다.
   swiper-bundle.css 의 overflow · 100% 폭을 여기서 되돌린다. 마지막 줄이 모자라면 가운데로 모인다 */
@media (min-width:769px){
	.hc-sp-list.swiper{max-width:calc(18.75rem * 3 + var(--hc-sp-gap) * 2);overflow:visible;}
	.hc-sp-list .hc-sp-grid{flex-wrap:wrap;justify-content:center;gap:clamp(2.25rem,4vw,3.5rem) var(--hc-sp-gap);height:auto;}
	.hc-sp-list .hc-sp-item{flex:0 0 calc((100% - var(--hc-sp-gap) * 2) / 3);width:auto;height:auto;}
	.hc-sp-card__thumb{border-radius:0.625rem;}
}

@media (max-width:768px){
	/* 상단 띠 : 제목과 설명 사이도 아카이브 메뉴 띠(archive.css 모바일 .hc-ap-band__inner)와 같게 */
	.hc-sp-page .hc-iv-band__inner{row-gap:0.875rem;}

	.hc-sp-main{padding:0 0 4rem;}

	/* 이미지는 화면 끝까지 */
	.hc-sp-list.swiper{margin-left:calc(var(--hc-iv-gut) * -1);margin-right:calc(var(--hc-iv-gut) * -1);}
	.hc-sp-card:focus-visible{outline-offset:-2px;}

	/* 이름 줄 높이를 고정해 두고, 그 높이에 맞춰 좌우 화살표를 겹친다 */
	.hc-sp-card__text{display:flex;flex-direction:column;justify-content:center;min-height:var(--hc-sp-text-h);padding:0.5rem 3.5rem;}
	.hc-sp-card__title{font-size:1.0625rem;}
	.hc-sp-card__en{margin-top:0.25rem;font-size:0.8125rem;}

	.hc-sp-nav{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;height:var(--hc-sp-text-h);padding:0 0.25rem;pointer-events:none;}
	.hc-sp-nav .hc-arrow{pointer-events:auto;}
	.hc-sp-nav .hc-arrow svg{width:0.6875rem;height:1.25rem;}
	/* 굿즈가 하나뿐이면 Swiper 가 붙이는 클래스로 화살표를 감춘다 */
	.hc-sp-nav .swiper-button-lock{display:none;}

	/* 오버레이 : 한 줄로 쌓는다. 제목줄(닫기) → 이미지 → 내용 → 구매 버튼 */
	.hc-sp-modal{padding:1.25rem 1.25rem 2rem;}
	.hc-sp-modal__box{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "media" "body" "foot";max-width:30rem;}
	.hc-sp-modal__info{display:contents;}
	.hc-sp-modal__head{grid-area:head;margin-bottom:1rem;}
	.hc-sp-modal__media{grid-area:media;}
	.hc-sp-modal__body{grid-area:body;padding:1.25rem 0 2rem;}
	.hc-sp-modal__foot{grid-area:foot;}
	.hc-sp-modal__eyebrow{font-size:1.125rem;}
	.hc-sp-modal__title{font-size:1.25rem;}
	.hc-sp-modal__desc{margin-top:1.125rem;font-size:0.9375rem;line-height:1.7;}
}

/* 위로 가기(#hcTop) 모바일 자리 : 콘텐츠 아래 80px 에 'TOP' 버튼이 놓인다 (모양은 components/top_button.php 의 .hc-top-slot).
   원래 콘텐츠 아래 여백(본문(main) 아래 64px)은 버튼 아래로 옮겨 푸터와의 간격을 그대로 둔다 */
@media (max-width:768px){
	.hc-sp-main{padding-bottom:0;}
	.hc-sp-page .hc-top-slot{padding-bottom:4rem;}
}
