/* BASIC css start */
#contents{}
.page_top .page_nav{float:right !important}
.page_top .page_nav a{font-weight:400 !important;}
ul.items{padding: 0 5% !important}
.recmd_sec{margin-top: 30px;margin-bottom:40px;padding: 0 5% !important; border-bottom:1px solid #eee}

.recmd_sec h3{font-family: 'Jost', sans-serif;font-size:23px; color:#333333; font-weight:600}
.recmd_sec .best_tit{display:flex; align-items:center; justify-content:space-between; margin-bottom:30px}
.recmd_sec .best_tit h3{}
.recmd_sec .best_tit>div{ }
.recmd_sec .swiper{}

.recmd_sec .swiper-pagination{position:unset}
.recmd_sec .swiper-pagination-bullets.swiper-pagination-horizontal{left:unset; top:unset; width:auto;}
.recmd_sec .swiper-pagination-bullet {width: 22px;height: 22px;text-align: center;line-height: 22px;box-sizing:unset; font-weight:500; font-size: 12px;color: #5d5d5d;opacity: 1; background: rgba(0, 0, 0, 0);font-family: 'Lato', sans-serif;border:1px solid #ccc }
.recmd_sec .swiper-pagination-bullet-active { color: #fff;background: #333333;}


/* =========================
   카테고리 (│ 라인형 탭)
   ========================= */

/* Lora Variable (cate1 제목용) */
@font-face{
  font-family:'Lora Variable';
  font-style:normal;
  font-weight:400 700;
  src:url(https://cdn.jsdelivr.net/fontsource/fonts/lora:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
}


/* 섹션 패딩 */
.product_category_wrap{padding:25px 5% 25px !important}

/* 1차 카테고리 제목 */
.product_category_wrap .cate1{
  font-family:'Lora Variable',serif !important;
  font-weight:500 !important;
  font-size:22px !important;
  padding:20px 0 40px !important;
  color:#666 !important;
  text-align:center;
}

/* 컨테이너 */
.product_category_wrap .cate_child_wrap{overflow:hidden;}

/* 기본: 한 줄 고정 + 중앙 정렬 + 가로 스크롤 */
.product_category_wrap .cate_child_wrap ul{
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;

  display:flex !important;
  flex-wrap:nowrap !important;         /* 줄바꿈 금지 */
  justify-content:center !important;   /* 중앙 정렬 */
  align-items:center;

  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;

  scrollbar-width:none;
}
.product_category_wrap .cate_child_wrap ul::-webkit-scrollbar{display:none;}

/* li */
.product_category_wrap .cate_child_wrap ul li{
  flex:0 0 auto;
  margin:0 !important;
  padding:0 !important;
}

/* 링크 */
.product_category_wrap .cate_child_wrap ul li a{
  display:inline-flex;align-items:center;justify-content:center;
  height:34px;
  padding:0 12px 0 16px !important; /* 앞에 바 들어갈 여백 확보 */
  white-space:nowrap;
  line-height:1;
  font-family:'Noto Sans KR','Pretendard Variable',sans-serif !important;
  font-size:16px !important;font-weight:400 !important;
  color:#aaaaaa !important;text-decoration:none !important;
  background:transparent !important;border:none !important;border-radius:0 !important;
  position:relative;
}

/* 모든 항목 앞에 │ 바 */
.product_category_wrap .cate_child_wrap ul li a::before{
  content:"";
  position:absolute; left:0; top:50%;
  transform:translateY(-50%);
  width:1px; height:16px;
  background:#cfcfcf;
}

/* 선택 상태 */
.product_category_wrap .cate_child_wrap ul li a.sel{
  color:#000 !important;
  font-weight:600;
}

/* 3차 카테고리 기본 비노출 */
.product_category_wrap .cate_child_wrap ul.cate3{display:none;padding-top:0 !important;}
.product_category_wrap .cate_child_wrap ul.cate3.on{
  display:flex !important;
  justify-content:center;
  padding-top:15px !important;
}

/* ─────────────────────────────────────────────
   모바일(≤420px): 2열 그리드 + 세로바(│) 유지, 가로바(─) 제거
   ───────────────────────────────────────────── */
@media (max-width:420px){
  .product_category_wrap .cate_child_wrap ul{
    display:grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    justify-content:stretch !important;
    align-items:stretch !important;
    overflow:visible !important;
    flex-wrap:unset !important;
  }

  .product_category_wrap .cate_child_wrap ul li{
    margin:0 !important; padding:0 !important;
  }

  .product_category_wrap .cate_child_wrap ul li a{
    display:flex !important;
    align-items:center; justify-content:center;
    padding:12px 10px 12px 16px !important;
    height:auto; line-height:1.2;
    white-space:normal !important;
    text-align:center;
  }

  /* 가로 바 제거 */
  .product_category_wrap .cate_child_wrap ul li:nth-child(n+3) a{
    border-top:none !important;
  }

  /* 세로 바는 ::before로 그대로 유지됨 */

  .product_category_wrap .cate_child_wrap ul li a.sel{
    color:#111 !important; font-weight:700 !important;
  }

  .product_category_wrap .cate_child_wrap ul.cate3.on{
    display:grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top:8px !important;
    padding-top:0 !important;
  }
}


/* =========================
   메인 배너 (히스토리와 동일 위치 규격)
   ========================= */
.store-banner-section {
   position: relative;
  width: 100%;
  max-width: 846px;
  margin: 0 auto;
  height: 400px;  /* ← 여기 고정 높이 */
  background: url('/design/issis/mo_lash_banner_01.jpg') no-repeat center center;
  background-size: cover;
  display: block;

  /* ▶ 내부 패딩 */
  padding: 80px 20px 100px;
  
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
  
  }  



/* 화면에 들어오면 표시 (JS가 .show 를 붙임) */
.store-banner-section.show{
  opacity: 1;
  transform: translateY(0);
}



/* ▶ 히스토리 배너처럼 텍스트를 static + margin으로 배치 */
.store-banner-section h2 {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  margin: 185px 0 15px 20px;  /* top right bottom left */
  text-align: left;
  font-family: 'Pretendard Variable', serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
  text-shadow: 0 1px 10px rgba(255,255,255,0.6);
}

/* 작은 화면에서 높이 축소 */
@media (max-width: 420px) {
  .store-banner-section { height: 400px; }
  .store-banner-section h2 { font-size: 30px; }
}


/* 모션 최소화 환경 배려 */
@media (prefers-reduced-motion: reduce){
  .store-banner-section{ transition: none; transform: none; opacity: 1; }
}

/* 배너 위쪽에 불필요한 여백이 생기면 조정 */
#container { padding-top: 20px; } /* 필요 시 0으로 변경 가능 */

.section {
  max-width: 846px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* 커리큘럼 */
.curriculum h2 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.curriculum p {
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
}
.swiper-container {
  width: 100%;
  margin: 0 auto 40px;
}
.swiper-slide img {
  width: 100%;
  border-radius: 12px;
}

/* 후기 */
.review h2 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
}
.review .review-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review img {
  width: 100%;
  border-radius: 12px;
}

/* Steps */
.steps h2 {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}
.steps p.subtext {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}
.step-item {
  position: relative;
  background-image: url('/web/upload/homecare_step_bg.jpg'); /* 각 step 공통 배경 */
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 20px;
  color: #111;
}
.step-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}
.step-item h4::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background-color: #000;
  margin-right: 8px;
}
.step-item p {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

@media screen and (max-width: 480px) {
  .top-banner { height: 360px; }
  .top-banner .text h1 { font-size: 24px; }
  .top-banner .text p,
  .curriculum p,
  .step-item p { font-size: 14px; }
  .curriculum h2,
  .review h2,
  .steps h2 { font-size: 18px; }
}

/* 연혁 박스 공통 */
.history-section {
  background-size: 846px auto; /* 가로 846px 고정, 세로는 자동 */
  background-repeat: no-repeat;
  max-width: 846px;
  background-position: center; /* 필요에 따라 위치 조정 */
  margin: 0 auto; /* 가운데 정렬용 */
  background: url('/design/issis/mo_history_bg.jpg') no-repeat center/cover;
  padding: 100px 20px;
  font-family: 'Pretendard', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  margin-top: 70px; /* 타이틀 높이와 시각적 여유 감안 */
}

.history-block {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 20px; /* ← 좌우 여백 */
  flex: 1 1 400px; /* 최소 너비 400px, 유연하게 크기 조정 */
  box-sizing: border-box;
  margin-top: 60px;
  margin-bottom: 25px; /* ✅ 아래 인스타그램과 간격 넓힘 */
}

.history-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  padding: 40px 20px;
  text-align: center;
  width: 100%;
  max-width: 640px; /* ← 박스 최대 너비 지정 */
  min-width: 400px; /* 최소 가로 크기 설정 */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.top-desc {
  font-size: 20px;
  margin-bottom: 16px;
  font-weight: 400;
}

.year {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
}

.year .plus {
  font-size: 18px;
  margin-left: 4px;
  vertical-align: middle;
  font-weight: 500;
}

.year-sub {
  white-space: nowrap;       /* 줄바꿈 방지 */
  font-size: 16px;
  margin-top: 16px;
  font-weight: 400;
  text-overflow: ellipsis;   /* 너무 길면 말줄임 */
}

.history-card span.count-num {
  font-size: 2.5rem;          /* 숫자 크기 고정 */
  font-weight: bold;
}

.count-num {
  display: inline-block;
  transition: all 0.3s ease-out;
}

@media (max-width: 420px) {
  .year { font-size: 32px; }
  .history-card { padding: 30px 16px; }
}



 /* 공통 페이드 인 기본값 */
  .fadein-target{
    opacity:0;
    transform: translate3d(0, 24px, 0);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
  }
  /* 화면에 들어오면 표시 */
  .fadein-show{
    opacity:1 !important;
    transform: translate3d(0, 0, 0) !important;
  }

  /* 히스토리 카드들 순차 등장을 위한 지연(옵셔널) */
  .history-section .history-block.fadein-target{ transition-delay: .0s; }
  .history-section .history-block.fadein-target:nth-child(2){ transition-delay: .08s; }
  .history-section .history-block.fadein-target:nth-child(3){ transition-delay: .16s; }
  .history-section .history-block.fadein-target:nth-child(4){ transition-delay: .24s; }
  /* 필요하면 더 추가 */

/* BASIC css end */

