/* nie.place 기종별 최적화 1차 (2026-11-23)
 * 불러오는 곳: CSV6/APP_PAGE/Layout/head_layout_pack_abs.php, nie.place 호스트에서만
 * 되돌림: 그 파일의 「np_v1」 한 줄을 지운다. 공용 CSV6/styles 는 고치지 않는다.
 * 경계: 340 이하(폴드 접힘) | 600 이상(읽기 폭) | 992 이상(왼쪽 메뉴만, 261123f 에 1024 에서 바꿈) | 가로 높이 500 이하
 */
:root {
  --np-read: 640px;
  --np-tab-h: 76px;
  --np-st: env(safe-area-inset-top, 0px);
  --np-sb: env(safe-area-inset-bottom, 0px);
  --np-focus: #039154;
}

/* 1. 위 바: 고정 높이 대신 최소 높이, 노치 여백, 가운데 단추는 글자 폭만 */
.nie-top-menu-box {
  height: auto;
  min-height: calc(50px + var(--np-st));
  padding-top: var(--np-st);
}
.nie-top-menu-box > .simple-button {
  justify-self: center;
  width: auto;
  max-width: 240px;
  min-height: 36px;
  white-space: nowrap;
}
.nie-top-menu-box .login-box {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  margin-right: 12px;
}

/* 2. 아래 탭: 다섯 칸이 같은 폭으로 들어가게, 홈 막대 여백, 야외 대비 */
.nie-bottom-menu-box {
  padding-bottom: var(--np-sb);
}
.nie-bottom-menu-box .item-box {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  opacity: 0.85;
}
.nie-bottom-menu-box .item-box.active {
  opacity: 1;
}
/* 키보드가 열리면 아래 탭이 입력창을 가리지 않게 숨긴다(np_v1.js 가 클래스를 붙임) */
html.np-kb .nie-bottom-menu-box {
  display: none !important;
}

/* 3. 스크롤 상자 끝이 아래 탭에 가리지 않게 */
.main-feed-screen,
.main-notice-screen,
.main-mypage-screen,
.main-stour-screen,
.main-stampbook-screen {
  padding-bottom: calc(var(--np-tab-h) + var(--np-sb) + 24px) !important;
}

/* 4. 폴드 접힘(340 이하): 브랜드 글자는 화면에서만 숨기고 로고를 남긴다, 탭 글자와 아이콘 축소 */
@media screen and (max-width: 340px) {
  .nie-top-menu-box .brand-box {
    padding-left: 12px;
    min-width: 56px;
    min-height: 44px;
  }
  .nie-top-menu-box h1.name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .nie-top-menu-box > .simple-button {
    padding: 6px 12px;
    font-size: 13px;
  }
  .nie-bottom-menu-box {
    padding-left: 4px;
    padding-right: 4px;
    gap: 2px;
  }
  .nie-bottom-menu-box .item-box {
    gap: 6px;
  }
  .nie-bottom-menu-box .item-box .title {
    font-size: 11px;
    padding: 3px 5px;
  }
  .nie-bottom-menu-box .item-box .icon:not(.home) {
    width: 40px;
    height: 19px;
    background-size: contain;
    background-position: center bottom;
  }
  .nie-bottom-menu-box .item-box .icon.home {
    width: 54px;
    height: 58px;
    background-size: contain;
    background-position: center bottom;
  }
  .nie-bottom-menu-box .item-box.active .icon:not(.home) {
    height: 32px !important;
  }
  .nie-bottom-menu-box .item-box.active .icon.home {
    height: 58px !important;
  }
}

/* 5. 600 이상: 글 읽기 폭 상한, 가운데 정렬(스크롤 막대는 화면 끝에 남김) */
@media screen and (min-width: 600px) {
  /* 스토리는 카드가 좌우로 6vw 넘치게 설계돼 있어 자식이 아니라 상자 안쪽 여백으로 폭을 묶는다 */
  .main-feed-screen {
    padding-left: max(6vw, calc((100% - var(--np-read)) / 2));
    padding-right: max(6vw, calc((100% - var(--np-read)) / 2));
  }
  .main-notice-screen > * {
    max-width: var(--np-read);
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .nie-bottom-menu-box .item-box {
    max-width: 120px;
  }
  .nie-bottom-menu-box {
    justify-content: center;
  }
}

/* 6. 992 이상(261123f 에 1024→992, 공용 CSS 의 왼쪽 메뉴 경계와 맞춤): 원래 설계대로 왼쪽 메뉴 하나만 쓴다(위 바와 아래 탭 숨김) */
@media screen and (min-width: 992px) {
  .nie-top-menu-box,
  .nie-bottom-menu-box {
    display: none !important;
  }
  .main-feed-screen,
  .main-notice-screen,
  .main-mypage-screen,
  .main-stour-screen,
  .main-stampbook-screen {
    padding-bottom: 40px !important;
  }
  .leftBar--nieplace ul.menu li {
    padding: 0;
  }
  .leftBar--nieplace ul.menu li > a,
  .leftBar--nieplace ul.menu li > div,
  .leftBar--nieplace ul.menu li > button {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 15px;
    width: 100%;
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
  }
  .leftBar--nieplace ul.menu li.np-sep {
    margin-top: 12px;
    border-top: 1px solid gainsboro;
    border-radius: 0;
    padding-top: 12px;
  }
}

/* 7. 가로로 눕힌 폰(높이 500 이하): 물결과 아이콘을 줄여 본문 높이를 돌려준다 */
@media screen and (orientation: landscape) and (max-height: 500px) and (max-width: 991px) {
  :root {
    --np-tab-h: 56px;
  }
  .nie-bottom-menu-box .mountain {
    height: 60px;
  }
  .nie-bottom-menu-box .gradient {
    height: 44px;
  }
  .nie-bottom-menu-box .item-box {
    flex-direction: row;
    justify-content: center;
    gap: 4px;
    padding-bottom: 6px;
  }
  .nie-bottom-menu-box .item-box .icon:not(.home),
  .nie-bottom-menu-box .item-box.active .icon:not(.home) {
    width: 34px;
    height: 16px !important;
    background-size: contain;
  }
  .nie-bottom-menu-box .item-box .icon.home,
  .nie-bottom-menu-box .item-box.active .icon.home {
    width: 40px;
    height: 44px !important;
    background-size: contain;
  }
}

/* 9. (261123b) 확대를 허용하면 아이폰이 16px 미만 입력창에서 저절로 확대하므로 터치 기기 입력 글자를 16px 이상으로 */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea,
  select {
    font-size: max(16px, 1em);
  }
}

/* 10. (261123c) 글자 단계: 정반합 합의안. 화면 폭(vw)에 비례해 작아지던 글자를 px 로 고정한다.
 *  제목 20/700/1.4 | 본문 16(360 미만 15)/400/1.6 | 이름 14/600 | 날짜, 좋아요 13/500 | 유의사항 단추 14(340 이하 13)/700 */
:root {
  --np-ink-strong: #111111;
  --np-ink: #222222;
  --np-ink-sub: #5f5f5f;
}
.main-feed-screen .pl-30 > .title,
.main-notice-screen .pl-30 > .title {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.3px !important;
  color: var(--np-ink-strong);
}
.main-feed-screen .pl-30 > .content,
.main-notice-screen .pl-30 > .content {
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: -0.2px !important;
  color: var(--np-ink);
}
.name-box > .name {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.1px !important;
  color: var(--np-ink);
}
.name-box > .clock {
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  color: var(--np-ink-sub);
}
.main-feed-screen .pl-30 > .like,
.main-notice-screen .pl-30 > .like {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--np-ink);
}
.nie-top-menu-box > .simple-button {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
}
@media screen and (max-width: 359px) {
  .main-feed-screen .pl-30 > .content,
  .main-notice-screen .pl-30 > .content {
    font-size: 15px !important;
  }
  .main-feed-screen .pl-30,
  .main-notice-screen .pl-30 {
    padding-left: 16px !important;
  }
}
@media screen and (max-width: 340px) {
  .nie-top-menu-box > .simple-button {
    font-size: 13px !important;
  }
}

/* 11. (261123d) 색과 모서리 기준값: 정반합 합의안. 아래 탭 그림, 캐릭터, 활성 알약 색, 로고, 카카오 단추는 그대로 둔다. */
:root {
  --np-brand: #039154;
  --np-accent: #f3561d;
  --np-accent-text: #c2410c;
  --np-accent-weak: rgba(243, 86, 29, 0.12);
  --np-muted: #767676;
  --np-line: #e5e5e5;
  --np-r-sm: 8px;
  --np-r-md: 12px;
  --np-r-pill: 999px;
}
/* 아래 탭 비활성 알약: 진초록 물결 위에서도 읽히게 흰 바탕과 진한 주황 글자. 활성은 공용 규칙(주황 바탕, 흰 글자) 유지 */
.nie-bottom-menu-box .item-box {
  opacity: 1;
}
.nie-bottom-menu-box .item-box .title {
  background: rgba(255, 255, 255, 0.92);
  color: var(--np-accent-text);
  border-radius: var(--np-r-pill);
}
/* 피드보기, 모아보기: 색만으로 갈리던 상태를 굵기와 밑줄로도 구분 */
.view-tab .tabstyle-type-a {
  color: var(--np-muted) !important;
}
.view-tab .tabstyle-type-a.active {
  color: var(--np-accent-text) !important;
  font-weight: 700 !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
/* 강조색 하나로, 모서리 단계 */
.post-btn-plus {
  border-color: var(--np-accent) !important;
  border-radius: var(--np-r-sm) !important;
}
.pl-30 > .like {
  background: var(--np-accent-weak) !important;
  border-radius: var(--np-r-pill) !important;
}
.pl-30 > img,
.pl-30 img.feed-img {
  border-radius: var(--np-r-md) !important;
  border-color: #dddddd !important;
}
.nie-top-menu-box > .simple-button {
  border-radius: var(--np-r-pill);
}
/* 안내 팝업: 세 번째 색이던 하늘색 테두리를 걷고 그림자로 */
.utilPopPanel_container .inner {
  border-color: transparent !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: var(--np-r-md) !important;
}
.utilPopPanel_container .icon.shake {
  border-color: var(--np-brand) !important;
}
.utilPopPanel_container .util_popPanel_btn {
  border-radius: var(--np-r-md) !important;
}

/* 8. 키보드 포커스, 동작 줄이기 */
.nie-top-menu-box a:focus-visible,
.nie-top-menu-box button:focus-visible,
.nie-bottom-menu-box .item-box:focus-visible,
.leftBar--nieplace a:focus-visible,
.leftBar--nieplace button:focus-visible,
.simple-button:focus-visible {
  outline: 3px solid var(--np-focus);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .nie-bottom-menu-box {
    transition: none;
  }
  .simple-button:hover,
  .simple-button:focus {
    transform: none;
  }
}

/* 8f. (261123f) PC 화면 틀 통일: 왼쪽 메뉴(200px)를 비키고 본문은 640px 가운데.
 *    스토리, 공지 목록은 이미 비켜 있어 손대지 않는다. 마이, 상세 머리 바, 글쓰기 레이어가 메뉴를 덮던 것을 고친다. */
@media screen and (min-width: 992px) {
  :root {
    --np-left: 200px;
    --np-side: max(6vw, calc((100vw - var(--np-left) - var(--np-read)) / 2));
  }
  .main-mypage-screen {
    margin-left: var(--np-left);
    width: calc(100% - var(--np-left));
    padding-left: var(--np-side) !important;
    padding-right: var(--np-side) !important;
  }
  .main-feed-detail-screen,
  .main-notice-detail-screen {
    padding-left: var(--np-side) !important;
    padding-right: var(--np-side) !important;
  }
  .detail-page-topbar {
    left: var(--np-left);
    padding-left: var(--np-side);
    padding-right: var(--np-side);
  }
  .post-page-container {
    left: var(--np-left);
    width: calc(100% - var(--np-left));
  }
  .post-page-container .post-grid {
    position: relative;
    max-width: var(--np-read);
    margin: 0 auto;
  }
}
@media screen and (min-width: 992px) {
  /* 위 바를 숨긴 폭에서는 그 50px 를 마이 화면 높이에 돌려준다 */
  .main-mypage-screen {
    height: calc(var(--vh, 1vh) * 100);
  }
}

/* 9f. (261123f) 글쓰기 입력 글자: 화면 폭에 비례(calc(8px + 2vw), PC 에서 41.6px)하던 것을 16px 로 고정 */
.post-page-container input,
.post-page-container textarea {
  font-size: 16px !important;
}

/* 10f. (261123f) 로그인 화면: 600 이상에서 로고와 카카오 단추를 440px 가운데로 */
@media screen and (min-width: 600px) {
  .main-kakaolog-pop-container .logo-box,
  .main-kakaolog-pop-container .btn-box-kakaologin {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .main-kakaolog-pop-container .logo-box {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* 12. (261123j) 현대식 1단계, 스토리 목록과 공통(시안 platform_v6/시안_nieplace_디자인_261123.html 합의안)
 *     초록 글자 #027a47, 활성 탭 주황 알약 유지, 사진 원본 비율, 누름 44px 이상, 보조 글자 14px */
:root {
  --np-brand-text: #027a47;
  --np-text-1: #1a1a1a;
  --np-text-2: #4a4a4a;
  --np-text-3: #5f5f5f;
  --np-bg-sub: #f5f6f4;
  --np-sh-1: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
  --np-sh-2: 0 8px 24px rgba(0, 0, 0, 0.14);
}
/* 화면 제목과 보기 전환 */
.main-feed-screen .page-title-box .title span {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--np-text-1);
}
.main-feed-screen .page-title-box .post-btn-plus {
  display: none !important;
}
.main-feed-screen .view-tab {
  gap: 4px;
  padding: 4px;
  background: var(--np-bg-sub);
  border-radius: var(--np-r-pill);
}
.main-feed-screen .view-tab .tabstyle-type-a,
.main-feed-screen .view-tab .tabstyle-type-a.active {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--np-r-pill);
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer;
}
.main-feed-screen .view-tab .tabstyle-type-a.active {
  background: #fff;
  color: var(--np-text-1) !important;
  box-shadow: var(--np-sh-1);
}
/* 스토리 카드: 들여쓰기 없이, 카드 사이 선 */
.main-feed-screen .list-box {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--np-line);
}
.main-feed-screen .list-info-box {
  align-items: center;
  min-height: 44px;
}
.main-feed-screen .list-info-box .user-icon-box img {
  width: 36px;
  height: 36px;
}
.main-feed-screen .list-info-box .name {
  font-size: 15px;
  color: var(--np-text-1);
}
.main-feed-screen .list-info-box .clock {
  font-size: 14px;
  font-weight: 400;
  color: var(--np-text-3);
}
.main-feed-screen .list-box .pl-30 {
  padding-left: 0 !important;
}
.main-feed-screen .list-box .img-box {
  gap: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.main-feed-screen .list-box .img-box::-webkit-scrollbar {
  display: none;
}
.main-feed-screen .list-box .img-box img {
  flex: 0 0 calc(100% - 32px);
  width: calc(100% - 32px) !important;
  height: auto !important;
  max-width: none !important;
  max-height: 600px !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  scroll-snap-align: start;
  border-radius: var(--np-r-md) !important;
}
.main-feed-screen .list-box .img-box img:only-of-type {
  flex-basis: 100%;
  width: 100% !important;
}
.main-feed-screen .list-box .content-box .title {
  font-size: 18px;
  padding: 12px 0 4px;
  letter-spacing: -0.01em;
  color: var(--np-text-1);
}
.main-feed-screen .list-box .content-box .content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--np-text-2);
}
.main-feed-screen .list-box .social-box .like {
  display: inline-flex;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  align-items: center;
  cursor: pointer;
}
/* 모아보기(격자) 카드 글자 */
.main-feed-screen .card-box .name {
  font-size: 14px;
}
.main-feed-screen .card-box .clock {
  font-size: 13px;
  color: var(--np-text-3);
}
/* 떠 있는 「글쓰기」(np_v1.js 6절이 만든다) */
.np-fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--np-tab-h) + var(--np-sb) + 16px);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 0 20px 0 16px;
  border-radius: var(--np-r-pill);
  background: var(--np-brand-text);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: var(--np-sh-2);
}
.np-fab svg {
  width: 22px;
  height: 22px;
}
html.np-kb .np-fab {
  display: none;
}
/* 스크롤로 아래 탭이 내려가면(공용 bottom-down-60) 단추도 함께 내려간다 */
.np-fab {
  transition: transform 0.25s ease;
}
.nie-bottom-menu-box.bottom-down-60 ~ .np-fab {
  transform: translateY(60px);
}
@media screen and (min-width: 992px) {
  .np-fab {
    right: 32px;
    bottom: 32px;
  }
}
/* 아래 탭 이름: 흰 알약에 진한 글자(대비 높임), 활성만 주황 알약에 흰 테두리 */
.nie-bottom-menu-box .item-box .title {
  background: rgba(255, 255, 255, 0.94);
  color: var(--np-text-1);
  font-size: 12px;
  font-weight: 700;
}
.nie-bottom-menu-box .item-box.active .title {
  background: var(--np-accent-text) !important;
  color: #fff;
  box-shadow: 0 0 0 2px #fff;
}
/* 위 바 「관람 유의사항」: 검정 알약을 가벼운 테두리 단추로 */
.nie-top-menu-box > .simple-button {
  background: #fff !important;
  color: var(--np-text-1) !important;
  border: 1px solid var(--np-line) !important;
  font-weight: 600;
  min-height: 36px;
}
/* 「홈」 이름: 나무 칸은 캐릭터가 커서 글자가 떠 보이므로 화면에는 숨기고 화면 읽기 이름으로만 둔다(261123n 확정: 생태원 협의 없이 이대로, Next 이관 때 탭 재설계) */
.nie-bottom-menu-box .item-box[data-bottom-menu="/home"] > .title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  padding: 0;
}
/* 폴드 접힘 폭: 떠 있는 단추를 「+」 원으로 */
@media screen and (max-width: 340px) {
  .np-fab {
    width: 52px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }
  .np-fab svg {
    width: 24px;
    height: 24px;
  }
}

/* 13. (261123k) 현대식 1단계 2: 공지 목록, PC 왼쪽 메뉴 */
/* 공지 카드: 스토리 카드와 같은 틀, 이미지는 자르지 않음(길찾기 캡처 등) */
.main-notice-screen .page-title-box .title,
.main-notice-screen .page-title-box .title span {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--np-text-1);
}
.main-notice-screen .page-title-box .view-more {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--np-line);
  border-radius: var(--np-r-pill);
  background: #fff;
  color: var(--np-text-1) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.main-notice-screen .list-box {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--np-line);
}
.main-notice-screen .list-info-box {
  align-items: center;
  min-height: 44px;
}
.main-notice-screen .list-info-box .user-icon-box img {
  width: 36px;
  height: 36px;
}
.main-notice-screen .list-info-box .name {
  font-size: 15px;
  color: var(--np-text-1);
}
.main-notice-screen .list-info-box .clock {
  font-size: 14px;
  font-weight: 400;
  color: var(--np-text-3);
}
.main-notice-screen .list-box .pl-30 {
  padding-left: 0 !important;
}
.main-notice-screen .list-box .img-box {
  gap: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.main-notice-screen .list-box .img-box::-webkit-scrollbar {
  display: none;
}
.main-notice-screen .list-box .img-box img {
  flex: 0 0 calc(100% - 32px);
  width: calc(100% - 32px) !important;
  max-width: none !important;
  height: auto !important;
  max-height: 600px !important;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--np-bg-sub);
  scroll-snap-align: start;
  border-radius: var(--np-r-md) !important;
}
.main-notice-screen .list-box .img-box img:only-of-type {
  flex-basis: 100%;
  width: 100% !important;
}
.main-notice-screen .list-box .content-box .title {
  font-size: 18px;
  padding: 12px 0 4px;
  letter-spacing: -0.01em;
  color: var(--np-text-1);
}
.main-notice-screen .list-box .content-box .content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--np-text-2);
}
.main-notice-screen .list-box .social-box .like {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
/* PC 왼쪽 메뉴: 활성 파랑을 초록으로, 캐릭터 아이콘(np_v1.js 7절), 로고, 계정 줄 키움 */
@media screen and (min-width: 992px) {
  .leftBar--nieplace {
    padding: 28px 16px;
    border-right-color: var(--np-line);
  }
  .leftBar--nieplace .logo {
    gap: 8px;
    height: 48px;
    padding: 0 10px;
    margin-bottom: 12px;
    font-size: 16px;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  .leftBar--nieplace .logo .np-logo {
    width: 28px;
    height: 28px;
  }
  .leftBar--nieplace ul.menu li {
    margin-bottom: 2px;
    border-radius: var(--np-r-md);
  }
  .leftBar--nieplace ul.menu li > a,
  .leftBar--nieplace ul.menu li > button {
    gap: 12px;
    min-height: 48px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--np-text-2);
  }
  .leftBar--nieplace ul.menu li:hover {
    background: var(--np-bg-sub);
  }
  .leftBar--nieplace ul.menu li.active {
    background: var(--np-brand-weak, #e6f4ec) !important;
  }
  .leftBar--nieplace ul.menu li.active > a {
    color: var(--np-brand-text) !important;
    font-weight: 700;
  }
  .leftBar--nieplace ul.menu .np-ico {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: none;
  }
  .leftBar--nieplace .account-box {
    left: 16px;
    right: 16px;
    bottom: 20px;
    gap: 10px;
    min-height: 52px;
    padding: 8px 12px;
    border: 1px solid var(--np-line);
    border-radius: var(--np-r-md);
  }
  .leftBar--nieplace .account-box .name {
    font-size: 15px;
  }
}
:root {
  --np-brand-weak: #e6f4ec;
}
/* 13-보강 (261123k 레드팀): 공용 CSS 의 긴 선택자(0,6,0)와 10절 !important 를 넘도록 우선순위를 올린다 */
.main-notice-screen .notice-listType-box .list-box .img-box .img {
  flex: 0 0 calc(100% - 32px) !important;
  object-fit: contain !important;
  background: var(--np-bg-sub) !important;
  aspect-ratio: 1 / 1;
}
.main-notice-screen .notice-listType-box .list-box .img-box .img:only-of-type {
  flex-basis: 100% !important;
}
.main-notice-screen .notice-listType-box .list-box .img-box {
  gap: 8px !important;
}
.main-notice-screen .notice-listType-box .list-box {
  border-bottom: 1px solid var(--np-line) !important;
}
.main-feed-screen .list-info-box .user-icon-box img.logo,
.main-notice-screen .notice-listType-box .list-info-box .user-icon-box img.logo {
  width: 36px !important;
  height: 36px !important;
}
.main-feed-screen .list-info-box .name,
.main-notice-screen .list-info-box .name {
  font-size: 15px !important;
}
.main-feed-screen .list-info-box .clock,
.main-notice-screen .list-info-box .clock {
  font-size: 14px !important;
}
.main-feed-screen .list-box .content-box .title,
.main-notice-screen .list-box .content-box .title {
  font-size: 18px !important;
}
.main-feed-screen .list-box .social-box .like,
.main-notice-screen .list-box .social-box .like {
  font-size: 14px !important;
}
@media screen and (min-width: 992px) {
  .leftBar--nieplace ul.menu li > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--np-text-2);
    cursor: pointer;
  }
  .leftBar--nieplace ul.menu li.active > div {
    color: var(--np-brand-text) !important;
    font-weight: 700;
  }
  .leftBar--nieplace .account-box .name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* 14. (261123l) 현대식 1단계 3: 나의생태. 프로필은 왼쪽 정렬 한 줄, 두 묶음은 회색 카드, 「스탬프북 보기」는 48px 초록 단추, 걸음기부 그림은 140px */
.main-mypage-screen {
  display: block !important;
}
.main-mypage-screen .profile-container {
  flex-direction: row !important;
  justify-content: flex-start !important;
  gap: 14px;
  padding: 8px 0 20px !important;
  border-bottom: 0 !important;
}
.main-mypage-screen .profile-container .img-box,
.main-mypage-screen .profile-container .avatar_icon_circle {
  width: 56px !important;
  height: 56px !important;
  line-height: 56px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #fff !important;
}
.main-mypage-screen .profile-container .nickname {
  padding: 0 !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--np-text-1);
}
.main-mypage-screen .stampbook-linkguide-container,
.main-mypage-screen .stampbook-stat-container {
  margin-bottom: 12px;
  padding: 20px !important;
  border: 0 !important;
  border-radius: var(--np-r-md);
  background: var(--np-bg-sub);
}
.main-mypage-screen .stampbook-linkguide-container > .title,
.main-mypage-screen .stampbook-stat-container .title-box .title {
  padding: 0 0 4px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--np-text-1);
}
.main-mypage-screen .stampbook-stat-container .title-box {
  height: auto !important;
  padding: 0 0 8px !important;
}
.main-mypage-screen .stampbook-linkguide-container > .sub-title {
  padding: 0 0 8px !important;
  font-size: 14px !important;
  color: var(--np-text-3) !important;
}
.main-mypage-screen .record-box {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.main-mypage-screen .record-box img.icon {
  width: 56px !important;
  height: 56px !important;
}
.main-mypage-screen .record-box .text {
  font-size: 15px !important;
  color: var(--np-text-1);
}
.main-mypage-screen .record-box .clock {
  font-size: 14px !important;
  color: var(--np-text-3) !important;
}
.main-mypage-screen .record-box .btn-box {
  position: static !important;
  flex: 0 0 100%;
  width: 100% !important;
  margin-top: 8px;
}
.main-mypage-screen .goto-stampbook-page-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 48px;
  border: 0 !important;
  border-radius: var(--np-r-md) !important;
  background: var(--np-brand-text) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.main-mypage-screen .stat-box {
  display: flex !important;
  align-items: center;
  gap: 16px;
  height: auto !important;
}
.main-mypage-screen .stat-box .level-icon {
  width: auto !important;
  height: 140px !important;
  max-width: 45%;
  object-fit: contain;
}
.main-mypage-screen .stat-box .infos {
  position: static !important;
  transform: none !important;
  text-align: left !important;
}
.main-mypage-screen .stat-box .rec {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--np-text-1) !important;
}
.main-mypage-screen .stat-box .guidetext {
  font-size: 14px !important;
  line-height: 1.5;
  color: var(--np-text-2) !important;
}
.main-mypage-screen .record-box .btn-box {
  display: block !important;
}
.main-mypage-screen .stat-box .infos {
  flex-direction: column;
  align-items: flex-start !important;
}
.main-mypage-screen .stat-box .rec,
.main-mypage-screen .stat-box .guidetext {
  justify-content: flex-start !important;
  text-align: left !important;
}
.main-mypage-screen .stat-box .guidetext,
.main-mypage-screen .stat-box .guidetext * {
  text-align: left !important;
}

/* 15. (261123m) 현대식 1단계 4: 스토리 상세, 글쓰기, 로그인 */
/* 스토리 상세: 목록 카드와 같은 틀 */
.main-feed-detail-screen .detail-page-topbar .title-box {
  font-size: 17px !important;
  font-weight: 700;
  color: var(--np-text-1);
}
.main-feed-detail-screen .list-box .pl-30 {
  padding-left: 0 !important;
}
.main-feed-detail-screen .list-info-box {
  align-items: center;
  min-height: 44px;
}
.main-feed-detail-screen .list-info-box .user-icon-box img.logo {
  width: 36px !important;
  height: 36px !important;
}
.main-feed-detail-screen .list-info-box .name {
  font-size: 15px !important;
  color: var(--np-text-1);
}
.main-feed-detail-screen .list-info-box .clock {
  font-size: 14px !important;
  font-weight: 400;
  color: var(--np-text-3);
}
.main-feed-detail-screen .feed-listType-box .list-box .img-box {
  gap: 8px !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.main-feed-detail-screen .feed-listType-box .list-box .img-box::-webkit-scrollbar {
  display: none;
}
.main-feed-detail-screen .feed-listType-box .list-box .img-box .img {
  flex: 0 0 calc(100% - 32px) !important;
  width: calc(100% - 32px) !important;
  max-width: none !important;
  height: auto !important;
  max-height: 600px !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  scroll-snap-align: start;
  border-radius: var(--np-r-md) !important;
}
.main-feed-detail-screen .feed-listType-box .list-box .img-box .img:only-of-type {
  flex-basis: 100% !important;
  width: 100% !important;
}
.main-feed-detail-screen .list-box .content-box .title {
  font-size: 20px !important;
  padding: 14px 0 6px !important;
  letter-spacing: -0.02em;
  color: var(--np-text-1);
}
.main-feed-detail-screen .list-box .content-box .content {
  font-size: 16px !important;
  line-height: 1.65;
  color: var(--np-text-2);
}
.main-feed-detail-screen .list-box .social-box .like {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 600;
}
/* 글쓰기: 칸 이름, 회색 입력칸, 큰 등록 단추 */
.post-page-container .post-grid > .g-head {
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  border-bottom-color: var(--np-line) !important;
}
.post-page-container label {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--np-text-1) !important;
}
.post-page-container .section-box span {
  font-size: 13px !important;
  color: var(--np-text-3);
}
.post-page-container input[type="text"],
.post-page-container input:not([type]),
.post-page-container textarea {
  border: 1px solid transparent !important;
  border-radius: var(--np-r-md) !important;
  background: var(--np-bg-sub) !important;
  padding: 14px 16px !important;
  color: var(--np-text-1);
}
.post-page-container input[type="text"]:focus,
.post-page-container input:not([type]):focus,
.post-page-container textarea:focus {
  border-color: var(--np-brand-text) !important;
  background: #fff !important;
  outline: none;
}
.post-page-container button.submit {
  min-height: 52px !important;
  border-radius: var(--np-r-md) !important;
  background: var(--np-brand-text) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
/* 로그인: 로고와 문장, 로그인하면 되는 일 세 줄(np_v1.js 8절), 카카오 단추는 폰에서 아래 고정 */
.main-kakaolog-pop-container {
  display: flex;
  flex-direction: column;
}
.main-kakaolog-pop-container .logo-box p {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.02em;
  margin: 16px 0 24px !important;
}
.np-benefit {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.np-benefit li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--np-text-2);
}
.np-benefit i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--np-brand-weak);
  color: var(--np-brand-text);
}
.np-benefit svg {
  width: 22px;
  height: 22px;
}
.main-kakaolog-pop-container .btn-box-kakaologin {
  margin-top: auto;
  padding: 24px 24px calc(24px + var(--np-sb)) !important;
}
.main-kakaolog-pop-container .btn-box-kakaologin .kakao-btn {
  align-items: center;
  gap: 8px;
  min-height: 56px;
  border-radius: 12px !important;
  font-size: 17px !important;
}
@media screen and (min-width: 600px) {
  .main-kakaolog-pop-container .btn-box-kakaologin {
    margin-top: 32px;
  }
}
.np-benefit li {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 40px;
  line-height: 1.4;
}
.main-kakaolog-pop-container .logo-box,
.main-kakaolog-pop-container .btn-box-kakaologin {
  width: 100%;
  box-sizing: border-box;
}
.main-kakaolog-pop-container .btn-box-kakaologin .kakao-btn {
  width: 100% !important;
}

/* 16. (261123q) 현대식 2단계 1: 스탬프 투어 「투어안내」 탭(/stour). 시안 합의안의 회색 카드, 48px 이상 단추, 보조 글자 14px.
 *     PC(992 이상)는 다른 화면처럼 본문 640 가운데. 선물받기 탭(진행 카드)은 다음 판. */
@media screen and (min-width: 992px) {
  .main-stour-screen {
    padding-left: var(--np-side) !important;
    padding-right: var(--np-side) !important;
  }
}
.main-stour-screen .tab-box {
  height: auto !important;
  padding: 8px 0 !important;
  gap: 8px !important;
}
.main-stour-screen .tab-box .tab {
  min-height: 44px;
  padding: 8px 18px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--np-text-2) !important;
  border: 1px solid var(--np-line) !important;
  background: #fff !important;
}
.main-stour-screen .tab-box .tab.active {
  color: #fff !important;
  border-color: var(--np-brand-text) !important;
  background: var(--np-brand-text) !important;
}
/* 터치 기기에서 누른 뒤 hover 가 남아 비활성 탭이 활성처럼 보이지 않게, 마우스 기기에서만 */
.main-stour-screen .tab-box .tab:not(.active):hover {
  color: var(--np-text-2) !important;
  border-color: var(--np-line) !important;
  background: #fff !important;
}
@media (hover: hover) {
  .main-stour-screen .tab-box .tab:not(.active):hover {
    color: var(--np-brand-text) !important;
    border-color: var(--np-brand-text) !important;
  }
}
.main-stour-screen .np-gift-closed {
  font-size: 14px !important;
}
.main-stour-screen .stour-tab-container.info .info-box {
  margin: 12px 0 0 !important;
  padding: 24px 20px !important;
  gap: 8px !important;
  border-radius: var(--np-r-md) !important;
  background: var(--np-bg-sub) !important;
  color: var(--np-text-1) !important;
  letter-spacing: -0.01em !important;
}
.main-stour-screen .stour-tab-container.info .info-box .title {
  font-size: 22px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  color: var(--np-text-1) !important;
}
.main-stour-screen .stour-tab-container.info .info-box .sub-title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--np-text-2) !important;
  white-space: normal !important;
  text-align: center;
}
.main-stour-screen .stour-tab-container.info .tour-btn-box {
  margin: 12px 0 0 !important;
}
.main-stour-screen .stour-tab-container.info .tour-btn-box .btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 52px;
  border: 0 !important;
  border-radius: var(--np-r-md) !important;
  background: var(--np-brand-text) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.main-stour-screen .stour-tab-container.info .process-guide-box {
  margin: 16px 0 0 !important;
  padding: 4px 16px !important;
  border: 1px solid var(--np-line) !important;
  border-radius: var(--np-r-md) !important;
  background: #fff !important;
}
.main-stour-screen .stour-tab-container.info .process-guide-box .guide-list li {
  padding: 12px 0 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--np-text-1) !important;
  border-bottom: 1px solid var(--np-line) !important;
  border-top: 0 !important;
}
.main-stour-screen .stour-tab-container.info .process-guide-box .guide-list li:last-child {
  border-bottom: 0 !important;
}
.main-stour-screen .stour-tab-container.info .process-guide-box .guide-list li.sub {
  font-size: 14px !important;
  color: var(--np-accent-text) !important;
}

/* 17. (261123r) 현대식 2단계 2: 스탬프 투어 「선물받기」 탭(/stour?tab=gift, StampToday 모듈). 범위는 .stour-tab-container.gift 안만.
 *     머리 카드는 투어안내와 같은 회색 카드, 숫자 묶음은 회색 카드에 큰 숫자, 안내 목록은 흰 카드. 교환 장소 상자(10주년 로고)는 모서리만 맞춘다. */
.main-stour-screen .stour-tab-container.gift .intro-box {
  margin: 12px 0 0 !important;
  padding: 24px 20px !important;
  border-radius: var(--np-r-md) !important;
  background: var(--np-bg-sub) !important;
  color: var(--np-text-1) !important;
  letter-spacing: -0.01em !important;
}
.main-stour-screen .stour-tab-container.gift .intro-box .title {
  font-size: 22px !important;
  line-height: 1.45 !important;
  font-weight: 800 !important;
  color: var(--np-text-1) !important;
}
.main-stour-screen .stour-tab-container.gift .intro-box .title.sub {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--np-text-2) !important;
}
.main-stour-screen .stour-tab-container.gift .tour-btn-box {
  margin: 12px 0 0 !important;
  padding: 0 !important;
}
.main-stour-screen .stour-tab-container.gift .tour-btn-box .btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 52px;
  border: 0 !important;
  border-radius: var(--np-r-md) !important;
  background: var(--np-brand-text) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.main-stour-screen .stour-tab-container.gift .section-title {
  margin: 28px 0 10px !important;
  padding: 0 !important;
  height: auto !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--np-text-1) !important;
  border: 0 !important;
}
.main-stour-screen .stour-tab-container.gift .present-now-box {
  padding: 16px 8px !important;
  border: 0 !important;
  border-radius: var(--np-r-md) !important;
  background: var(--np-bg-sub) !important;
}
.main-stour-screen .stour-tab-container.gift .present-now-box .item-box .item {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--np-text-2) !important;
}
.main-stour-screen .stour-tab-container.gift .present-now-box .item-box .val {
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  /* 위 묶음(완주 횟수) 숫자는 모듈 인라인 color:#004f2d !important 라 덮이지 않으므로 아래 묶음도 같은 색으로 맞춘다 */
  color: #004f2d !important;
  opacity: 1 !important;
  font-variant-numeric: tabular-nums;
}
.main-stour-screen .stour-tab-container.gift .present-now-box .item-box .val sub {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--np-text-3) !important;
  vertical-align: baseline !important;
  margin-left: 2px;
}
.main-stour-screen .stour-tab-container.gift .guide-box {
  padding: 4px 16px !important;
  border: 1px solid var(--np-line) !important;
  border-radius: var(--np-r-md) !important;
  background: #fff !important;
}
.main-stour-screen .stour-tab-container.gift .guide-box .item {
  padding: 10px 0 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: var(--np-text-1) !important;
  border-bottom: 1px solid var(--np-line) !important;
}
.main-stour-screen .stour-tab-container.gift .guide-box .item:last-child {
  border-bottom: 0 !important;
}
.main-stour-screen .stour-tab-container.gift .discount-info-box {
  margin-top: 12px !important;
  border-radius: var(--np-r-md) !important;
  overflow: hidden;
}
