/* =================================================================
 * home.css — 첫 화면 (피그마 01 HOME (PC) 1440 · 01 HOME (Mobile) 390)
 * PC : 내용 폭 1200 (화면 1440 에서 양옆 120) · 영역 위아래 120 · 제목 Noto Serif 44 · 본문 16/28
 * 모바일 : 양옆 20 · 제목 26 · 본문 14/23.8
 * 900px 부터 PC 배치.
 * ================================================================= */

/* ---- 공통 ---- */

.home { color: var(--ink); }
.home + .popup + .footer, .home ~ .footer { margin-block-start: 0; }   /* 시안 : 뉴스레터 바로 아래 푸터 */

.h-wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* PC 전용 · 모바일 전용 (기획안 모바일은 문구가 짧다) */
.h-pc, .h-pc-flex { display: none !important; }
@media (min-width: 900px) {
	.h-pc { display: revert !important; }
	.h-pc-flex { display: inline-flex !important; }
	.h-m { display: none !important; }
}

.h-eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: 2px; color: var(--fg-muted); }
.h-title {
	margin: 0;
	font-family: var(--font-point); font-weight: 700;
	font-size: 26px; line-height: 1.25; letter-spacing: -0.02em;
	color: var(--ink);
}
.h-text { margin: 0; font-size: 14px; line-height: 23.8px; color: #545454; }
@media (min-width: 900px) {
	.h-title { font-size: 44px; line-height: 50.6px; letter-spacing: -0.5px; }
	.h-text { font-size: 16px; line-height: 28px; }
}

/* 버튼 : 각진 사각형 (시안) */
.h-btn {
	display: inline-flex; align-items: center; justify-content: center;
	height: 48px; padding-inline: 24px;
	border: 1px solid var(--ink);
	font-size: 14px; font-weight: 500; line-height: 1;
	transition: background-color .2s var(--ease), color .2s var(--ease);
	cursor: pointer;
}
.h-btn--fill { background: var(--ink); color: #fff; }
.h-btn--fill:hover { background: #545454; }
.h-btn--line { background: #fff; color: var(--ink); }
.h-btn--line:hover { background: var(--ink); color: #fff; }
@media (min-width: 900px) { .h-btn { height: 54px; font-size: 15px; } }

/* 제목 + 오른쪽 링크 */
.h-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.h-head__link { margin-block-end: 12px; font-size: 15px; color: var(--ink); white-space: nowrap; }
.h-head__link:hover { text-decoration: underline; }
@media (min-width: 900px) { .h-head__link { font-size: 16px; } }

/* ---- ① Hero (PC : 높이 760 · 왼쪽 글 · 오른쪽 사진 720 / 모바일 : 사진 440 위 · 글 아래) ---- */

.h-hero { display: flex; flex-direction: column; background: var(--tone-pink-soft); }
.h-hero__media { height: 440px; overflow: hidden; }
.h-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.h-hero__body { padding: 28px 20px 36px; }
.h-hero .h-eyebrow { margin-block-end: 14px; font-size: 11px; }
.h-hero__title { margin: 0; font-family: var(--font-point); font-weight: 700; font-size: 34px; line-height: 40.8px; letter-spacing: -0.02em; }
.h-hero__text { margin: 16px 0 0; font-size: 14px; line-height: 23.8px; color: #545454; }
.h-hero__btns { display: flex; gap: 12px; margin-block-start: 22px; }
.h-hero__btns .h-btn--fill { flex: 1; }
@media (min-width: 900px) {
	.h-hero { flex-direction: row-reverse; min-height: 760px; }
	.h-hero__media { position: relative; flex: 0 0 50%; height: auto; }
	.h-hero__media img { position: absolute; inset: 0; }
	.h-hero__media img { object-position: 50% 44%; }
	.h-hero__body { flex: 1; align-self: center; padding: 0 40px 0 max(40px, calc((100vw - 1200px) / 2)); }
	.h-hero .h-eyebrow { margin-block-end: 28px; font-size: 13px; }
	.h-silk .h-eyebrow, .h-maker .h-eyebrow { margin-block-end: 24px; }
	.h-hero__title { max-width: 560px; font-size: clamp(44px, 4.45vw, 64px); line-height: 1.1; letter-spacing: -1px; }
	.h-hero__text { max-width: 466px; margin-block-start: 28px; font-size: 18px; line-height: 31.5px; }
	.h-hero__btns { margin-block-start: 52px; }
	.h-hero__btns .h-btn--fill { flex: none; width: 158px; }
	.h-hero__btns .h-btn--line { width: 167px; }
}

/* ---- ② 신뢰 배지 띠 (검정 바탕 · 흰 글자) ---- */

.h-ticker { background: var(--ink); color: #fff; }
.h-ticker--pc { display: none; }
.h-ticker--m p { margin: 0; padding: 13px 20px; font-size: 11px; line-height: 18px; letter-spacing: 1px; }
.h-ticker ul { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 59px; }
.h-ticker li { font-size: 13px; letter-spacing: 2px; white-space: nowrap; }
@media (min-width: 900px) {
	.h-ticker--pc { display: block; }
	.h-ticker--m { display: none; }
}

/* ---- ③ Siltarae™ (PC : 사진 556×600 + 오른쪽 글 562 / 모바일 : 사진 350×300 위) ---- */

.h-silk { padding-block: 56px 48px; }
.h-silk__media { height: 300px; overflow: hidden; }
.h-silk__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.h-silk__body { margin-block-start: 20px; }
.h-silk__body .h-text { margin-block-start: 14px; }
.h-silk__body .h-text + .h-text { margin-block-start: 22px; }
.h-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 22px 0 0; padding-block-start: 16px; border-top: 1px solid #dddddd; }
.h-stats dt { font-family: var(--font-point); font-weight: 700; font-size: 22px; line-height: 27.5px; }
.h-stats dd { margin: 0; font-size: 11px; line-height: 18.7px; color: #545454; }
.h-note { margin: 22px 0 0; font-size: 12px; line-height: 21px; color: var(--fg-muted); }
@media (min-width: 900px) {
	.h-silk { padding-block: 120px; }
	.h-silk__inner { display: grid; grid-template-columns: minmax(0, 556px) minmax(0, 562px); justify-content: space-between; align-items: center; gap: 40px; }
	.h-silk__media { height: 600px; }
	.h-silk__body { margin: 0; }
	.h-silk__body .h-text { margin-block-start: 22px; }
	.h-stats { gap: 10px; margin-block-start: 28px; padding-block-start: 28px; max-width: 556px; }
	.h-stats dt { font-size: 36px; line-height: 41.4px; letter-spacing: -0.5px; }
	.h-stats dd { font-size: 14px; line-height: 24.5px; }
}

/* ---- ④ 제품 3종 (PC : 카드 379 · 사진 칸 460 / 모바일 : 옆으로 넘기는 카드 240) ---- */

.h-masks { padding-block: 48px 56px; }
.h-masks__list {
	display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 12px;
	margin-block-start: 20px;
	padding-inline: 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none;
}
.h-masks__list::-webkit-scrollbar { display: none; }
.h-mask { scroll-snap-align: start; }
.h-mask__media { display: block; height: 300px; padding: 20px; }
.h-mask__media img { width: 100%; height: 100%; object-fit: contain; }
.h-mask__media--pink { background: var(--tone-pink-soft); }
.h-mask__media--mint { background: var(--tone-mint-soft); }
.h-mask__media--yellow { background: var(--tone-yellow-soft); }
.h-mask__cate { margin: 12px 0 0; font-size: 12px; letter-spacing: 2px; color: var(--fg-muted); }
.h-mask__name { display: block; margin-block-start: 14px; font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.h-mask__desc { margin: 10px 0 0; font-size: 15px; line-height: 26.2px; color: #545454; }
.h-mask__price { margin: 18px 0 0; font-size: 14px; color: #545454; }
.h-mask__add { width: 100%; height: 52px; margin-block-start: 22px; }
@media (min-width: 900px) {
	.h-masks { padding-block: 0 120px; }
	.h-masks__list {
		grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; gap: 31px;
		width: min(1200px, 100% - 40px); margin: 52px auto 0; padding: 0; overflow: visible; scroll-padding-inline: 0;
	}
	.h-mask { display: flex; flex-direction: column; }   /* 이름이 두 줄이어도 버튼 높이를 맞춘다 */
	.h-mask__media { height: 460px; padding: 24px; }
	.h-mask__cate + .h-mask__name { margin-block-start: 12px; }
	.h-mask__name { font-size: 19px; }
	.h-mask__price { margin-block-start: 12px; margin-block-end: 22px; font-size: 16px; }
	.h-mask__add { margin-block-start: auto; }
}

/* ---- ⑤ 고민별 추천 (PC : 색 카드 384×521 · 위 사진 400 / 모바일 : 사진 없는 색 띠) ---- */

.h-concern { padding-block: 56px; background: #f7f7f5; }
.h-concern__list { display: grid; gap: 20px; margin-block-start: 20px; }
.h-concern__card { display: flex; flex-direction: column; padding: 22px; color: var(--ink); }
.h-concern__card--pink { background: var(--tone-pink); }
.h-concern__card--mint { background: var(--tone-mint); }
.h-concern__card--yellow { background: var(--tone-yellow); }
.h-concern__media { display: none; }
.h-concern__title { font-size: 17px; font-weight: 700; }
.h-concern__sub { margin-block-start: 8px; font-size: 15px; line-height: 1.6; color: #545454; }
@media (min-width: 900px) {
	.h-concern { padding-block: 120px; }
	.h-concern__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-block-start: 48px; }
	.h-concern__card { min-height: 521px; padding: 0 0 28px; }
	.h-concern__media { display: block; height: 400px; overflow: hidden; }
	.h-concern__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
	.h-concern__card:hover .h-concern__media img { transform: scale(1.03); }
	.h-concern__title { margin: 28px 32px 0; font-size: 19px; }
	.h-concern__sub { margin: 10px 32px 0; font-size: 16px; line-height: 28px; }
}

/* ---- ⑥ 사용법 (PC : 사진 379×440 세 칸 / 모바일 : 왼쪽 작은 사진 86×120 + 글) ---- */

.h-howto { padding-block: 56px; scroll-margin-top: 80px; }
.h-howto__list { display: grid; gap: 20px; margin: 20px 0 0; padding: 0; list-style: none; }
.h-step { display: grid; grid-template-columns: 86px 1fr; gap: 11px; align-items: start; }
.h-step__media { display: block; height: 120px; overflow: hidden; }
.h-step__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.h-step__media--prep img { object-position: 50% 30%; }
.h-step__no { margin: 0 0 10px; font-size: 13px; letter-spacing: 2px; color: var(--fg-muted); }
.h-step__title { margin: 0; font-size: 16px; font-weight: 700; }
.h-step__text { margin: 6px 0 0; font-size: 14px; line-height: 23.8px; color: #545454; }
@media (min-width: 900px) {
	.h-howto { padding-block: 120px; scroll-margin-top: 120px; }
	.h-howto__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
	.h-howto__head .h-text { max-width: 406px; margin-block-start: 28px; }
	.h-howto__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 31px; margin-block-start: 48px; }
	.h-step { grid-template-columns: 1fr; gap: 14px; }
	.h-step__media { height: 440px; }
	.h-step__title { font-size: 19px; }
	.h-step__text { margin-block-start: 14px; font-size: 16px; line-height: 28px; }
}

/* ---- ⑦ 제조사 (PC : 왼쪽 사진 720×620 + 오른쪽 글 / 모바일 : 사진 위) ---- */

.h-maker { display: flex; flex-direction: column; background: var(--soft); }
.h-maker__media { height: 244px; overflow: hidden; }
.h-maker__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.h-maker__body { padding: 28px 20px 40px; }
.h-maker__body .h-text { margin-block-start: 14px; }
.h-maker__btn { width: 100%; height: 50px; margin-block-start: 22px; }
@media (min-width: 900px) {
	.h-maker { flex-direction: row; min-height: 620px; }
	.h-maker__media { position: relative; flex: 0 0 50%; height: auto; }
	.h-maker__media img { position: absolute; inset: 0; }
	.h-maker__media img { object-position: 50% 50%; }
	.h-maker__body { flex: 1; align-self: center; max-width: calc(611px + 58px + 40px); padding: 0 40px 0 58px; }
	.h-maker__body .h-text { margin-block-start: 22px; }
	.h-maker__body .h-text + .h-text { margin-block-start: 24px; }
	.h-maker__btn { width: 140px; height: 54px; margin-block-start: 52px; }
}

/* ---- ⑧ Instagram (PC : 230×250 다섯 칸 / 모바일 : 2×2) ---- */

.h-insta { padding-block: 56px; }
.h-insta__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block-start: 20px; }
.h-insta__grid a { display: block; aspect-ratio: 1; overflow: hidden; }
.h-insta__grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s var(--ease); }
.h-insta__grid a:hover img { opacity: .85; }
@media (min-width: 900px) {
	.h-insta { padding-block: 120px; }
	.h-insta__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-block-start: 36px; }
	.h-insta__grid a { aspect-ratio: 230 / 250; }
}

/* ---- ⑨ 뉴스레터 (옅은 핑크 · PC 높이 253 · 입력 340 + 버튼 126 / 모바일 : 세로) ---- */

.h-news { padding-block: 40px 44px; background: var(--tone-pink-soft); }
.h-news__title { margin: 0 0 10px; font-family: var(--font-point); font-weight: 700; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.h-news__form { display: grid; gap: 12px; margin-block-start: 22px; }
.h-news__label { font-size: 12px; color: #545454; }
.h-news__input {
	height: 48px; padding-inline: 16px;
	border: 1px solid var(--ink); border-radius: 0;
	background: #fff;
	font-family: inherit; font-size: 15px; color: var(--ink);
}
.h-news__input::placeholder { color: transparent; }   /* 모바일 시안은 칸 위 제목만 */
.h-news__btn { width: 100%; }
@media (min-width: 900px) {
	.h-news { padding-block: 88px; }
	.h-news__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
	.h-news__title { font-size: 34px; line-height: 39.1px; letter-spacing: -0.5px; }
	.h-news__form { display: flex; gap: 0; margin-block-start: 12px; }
	.h-news__input { width: 340px; height: 52px; }
	.h-news__input::placeholder { color: #8a8a8a; }
	.h-news__btn { width: 126px; height: 52px; }
}

/* 품절 카드 버튼 */
.h-mask__add.is-off { opacity: .45; pointer-events: none; }
