.container_nav {
  padding: 0 2.5rem;
}

body.no-scroll {
  overflow: hidden;
  padding-right: var(--scrollbar-width);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  font-family: "Pretendard Variable";
  background: #f5f5f5;
  color: #1f201c;
  overscroll-behavior: none;
}

.page-section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.page-section--main {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: clamp(20px, 8vh, 80px);
}
.wrap {
  background-image: url("images/cover.png"), url("images/water-blur.png"),
    url("images/vision-outline.png");
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: auto, cover, 60%;
  background-position: center, center, 98% 10%;
  background-blend-mode: normal;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.parallax-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.parallax-element {
  position: absolute;
  inset: 0;
  transform: translateZ(0);
}

.visual-wrap .visual-split,
.visual-split {
  display: flex;
  width: 100%;
  height: 100%;
}

.visual-left {
  flex: 0 0 320px;
  background: #d8cebf;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  gap: 16px;
  transition: flex-basis 0.3s ease-out;
  overflow: hidden;
}

.visual-caption {
  font-size: 24px;
  font-weight: 600;
}

.visual-title {
  font-size: 64px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
}

.visual-text {
  font-size: 16px;
  font-weight: 600;
}

.visual-right {
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: transform 0.7s ease-out;
}

.visual-right img {
  width: 107%;
  height: 100%;
  object-fit: cover;
  transform-origin: center right;
  transition: transform 0.3s ease-out;
}

/* 비주얼 오버레이 라인/텍스트 */
.visual-overlay {
  position: absolute;
  inset: 20% 15%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  pointer-events: none;
}

.vr-line {
  width: 2px;
  height: 30%;
  background: rgba(255, 255, 255, 0.9);
  transform-origin: top;
  transform: scaleY(0);
}

.vr-text {
  opacity: 0;
  font-weight: 700;
  text-align: center;
}

.vr-text--top {
  font-size: 18px;
  opacity: 1;
}

.vr-text--bottom {
  font-size: 16px;
  line-height: 1.6;
}

/* 스크롤 인디케이터 */
.scroll {
  color: #b8b4b9;
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  right: 10%;
  bottom: 30px;
}

/* =========================================
   헤더 / 네비게이션
========================================= */
.header {
  position: relative;
  z-index: 999;
  background: var(--header-bg, transparent);
  color: #111;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 5px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  display: flex;
}

.logo img {
  width: 140px;
}

.nav {
  display: flex;
  gap: 50px;
  font-size: 14px;
}

.nav a {
  color: #111;
  text-decoration: none;
}

.nav a:hover {
  color: #532626;
}

/* 모바일 네비 (초기값 숨김) */
.m-nav {
  display: none;
}

.m-nav-toggle {
  display: none;
}

/* =========================================
   히어로 섹션
========================================= */
.hero {
  margin-top: 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  column-gap: 64px;
  align-items: center;
}

.hero__title {
  color: #1f201c;
  font-size: 48px;
  font-weight: 800;
  line-height: 60px;
}

.hero__text {
  color: #1f201c;
  font-size: 13px;
  font-weight: 800;
  line-height: 23px;
}

.hero__right {
  display: flex;
  justify-content: flex-end;
}

/* 히어로 카드 */
.hero-card {
  max-width: 640px;
  width: 100%;
  background: #1a1c1d;
  color: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 40px;
  width: 56px;
  height: 2px;
  background: #f3f3f3;
  opacity: 0.9;
}

.hero-card h2 {
  margin-top: 16px;
  color: #fff;
  font-weight: 900;
  font-size: 26px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  list-style: none;
  margin-top: 20px;
}

.card-title li {
  flex: 1;
  min-width: 0;
}

.card-title li h3 {
  color: #e4e4e4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  white-space: nowrap;
}

.card-title li p {
  color: #8c8c8c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.email-text {
  word-break: break-all;
}

/* =========================================
   서비스 카드 슬라이더
========================================= */

.services-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 50px;
}

.services-list {
  display: none; /* 모바일용 리스트(기본 숨김) */
}

.service-slot {
  position: relative;
  padding: 80px 0;
  cursor: default;
  width: auto;
  flex: 1 1 0;
}

.service-inner {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

.service-slot--center {
  width: auto;
  padding: 80px 30px;
  border-radius: 20px;
  color: #fff;
  flex: 1 1 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  position: relative;
}

.service-slot--center::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* 가운데 카드 배경 */
.service-center-bg {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
}

/* 오른쪽 흐릿 카드 */
.service-slot--faded {
  opacity: 0.25;
  filter: grayscale(40%);
}

/* 모바일에서 보여줄 여분 카드 */
.service-slot--end {
  display: none;
}

/* 슬라이드 버튼 */
.services-next {
  position: absolute;
  right: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.services-next span {
  font-size: 26px;
}

/* 텍스트 공통 */
.service-label {
  font-size: 12px;
  color: #58605d;
  margin-bottom: 8px;
}

.service-slot--center .service-label,
.service-slot--center .service-title,
.service-slot--center .service-meta {
  position: relative;
  color: #fff;
  z-index: 2;
}

.service-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
}

.service-line {
  margin-top: 24px;
  height: 1px;
  background: #40403f;
}

.service-slot--center .service-line {
  position: relative;
  background: #fff;
  z-index: 2;
}

.service-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #58605d;
}

/* =========================================
   법봉 페이지 (업무절차)
========================================= */
.procedure {
  background: url(./images/courthouse.png) no-repeat 0 0;
  background-position-y: -100px;
  position: relative;
  background-size: cover;
}

.procedure-bg {
  position: absolute;
  bottom: 0;
  background: #f6f6f6;
  width: 100%;
  height: 120px;
  border-radius: 20px 20px 0 0;
}

/* .procedure-baton {
  background: url(./images/baton.png) no-repeat 0 0;
  background-size: 98% 85%;
  width: 55%;
  height: 80%;
  position: absolute;
  left: 33%;
  top: -50%;
  transition: transform 0.9s ease-out;
} */

/* .procedure.is-active .procedure-baton {
  transform: translateY(100%);
} */

.procedure-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 100px;
  height: 83vh;
  padding: 0 24px;
}

.point-box {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  gap: clamp(40px, 8vw, 80px);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.procedure.is-active .point-box {
  opacity: 1;
  transform: translateY(0);
}

.procedure.is-active .point-box--row1 {
  transition-delay: 0.05s;
}

.procedure.is-active .point-box--row2 {
  transition-delay: 0.3s;
}

.procedure.is-active .point-box--row3 {
  transition-delay: 0.55s;
}

.left,
.right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1 1 0;
}

.point-box .text {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  width: clamp(180px, 22vw, 260px);
  min-width: 0;
  max-width: 260px;
}

.point-box .text strong {
  font-size: 16px;
  font-weight: 700;
}

.point-box span {
  font-size: 12px;
}

.point-box .line {
  height: 1px;
  flex: 1 1 auto;
  max-width: 200px;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
}

.point-box .dot {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  right: 0;
  bottom: -6px;
}

.point-box .right .dot {
  left: 0;
  right: auto;
}

.point-box .right .text {
  text-align: right;
}

/* =========================================
   비전 미디어 섹션
========================================= */
.media-section {
  width: 100%;
  padding: 20px 0;
}

.media-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 46vh;
  padding: 0 20px;
}

.media-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  color: #fff;
  background: #222;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.media-card.show {
  opacity: 1;
  transform: translateY(0);
}

.media-card:hover .media-card__bg {
  transform: scale(1.2);
}

.media-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  transition: transform 0.5s ease;
}

.media-card__content {
  position: absolute;
  inset: 0;
  padding: 24px 24px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  z-index: 1;
}

.media-card__content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 20%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 70%
  );
  z-index: -1;
}

.media-card__title {
  font-size: 16px;
  font-weight: 600;
  opacity: 0.9;
}

.media-card__text {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
}

.media-card--tall {
  grid-column: span 2;
}

.media-title1 {
  color: #000;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 32px;
}

.media-text1 {
  color: #000;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
}

.media-bg {
  background: #e0dcd2 !important;
}

.media-cta {
  gap: 20px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 24px;
  text-align: center;
}

.media-cta__title {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin-bottom: 20px;
}

.media-cta__btn {
  padding: 10px 26px;
  border-radius: 999px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.media-cta__btn:hover {
  background: #222;
}

/* 미디어 모달 */
.media-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}

.media-modal.is-open {
  display: block;
}

.media-modal__backdrop {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-modal__inner {
  position: relative;
  width: 90%;
  max-width: 960px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.media-modal__player {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.media-modal__player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

/* =========================================
   오시는 길 / 카카오맵
========================================= */
.location {
  position: relative;
  padding-top: 40px;
}

.location__map {
  position: relative;
  width: 100%;
  height: calc(100vh - 250px);
  border-radius: 4px;
  overflow: hidden;
}

.location__map iframe,
.location__map img {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* 지도 위 카드용 컨테이너 */
.location__map .container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 99;
}

.location__info {
  padding: 40px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}

.location__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}

.location__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.location__row dt {
  width: 72px;
  color: #555;
  font-weight: 600;
}

.location__row dd {
  margin: 0;
  color: #111;
}

.location__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 0;
  background: #181c3a;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  margin-top: 20px;
  text-decoration: none;
}

.location__btn:hover {
  background: #12152b;
}
.m-only {
  display: none;
}

.footer {
  background: #111;
  color: #eee;
  padding: 40px 0;
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__logo {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 1px solid #fff;
  font-size: 28px;
  font-weight: 700;
}

.footer__logo-text p:first-child {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.footer__logo-text p:last-child {
  font-size: 22px;
  font-weight: 600;
}

.footer__title {
  max-width: 720px;
}

.footer__text {
  font-size: 13px;
  color: #bbbbbb;
  line-height: 1.7;
}

.footer__text + .footer__text {
  margin-top: 4px;
}

.footer__right {
  display: flex;
  gap: 12px;
}

.footer__icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
}

.footer__icon-btn img {
  display: block;
}
/* ========================================= 플로팅 버튼 (Top) ========================================= */

.btn-top {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: none;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}
.btn-top svg {
  display: block;
  width: 44px;
  height: 44px;
} /* ========================================= ✅ 공증 이메일 버튼: 버튼은 56x56 그대로 ✅ 내용은 버튼 옆 "패널(mail-panel)"로 펼쳐짐 ========================================= */ /* 버튼+패널을 한 덩어리로 묶는 래퍼 */
.mail-float {
  position: fixed;
  right: 40px;
  bottom: 110px;
  z-index: 999;
} /* 공증 이메일 버튼 */
.btn-mail {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: none;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: box-shadow 0.25s ease;
}
.btn-mail:hover {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
} /* 아이콘 래퍼 */
.btn-mail__icon-wrap {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-mail__icon-wrap img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.icon-default {
  opacity: 1;
}
.icon-active {
  opacity: 0;
}
.btn-mail.is-open .icon-default {
  opacity: 0;
}
.btn-mail.is-open .icon-active {
  opacity: 1;
} /* ✅ 버튼 옆 패널 */
.mail-panel {
  position: absolute;
  right: calc(56px + 12px); /* 버튼(56) + 간격(12) 만큼 왼쪽 */
  bottom: 0;
  width: 240px;
  padding: 14px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28); /* 기본 숨김 */
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 998;
} /* ✅ 열렸을 때만 보이기 (버튼 바로 다음 요소가 패널이므로 + 사용) */
.btn-mail.is-open + .mail-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
} /* 링크 스타일 */
.btn-mail__link {
  display: block;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
  padding: 8px 10px;
  border-radius: 10px;
  color: #111;
  text-decoration: none;
}
.btn-mail__link:hover {
  background: #f5f5f5;
}
.btn-mail__divider {
  display: block;
  height: 1px;
  background: #eee;
  margin: 6px 0;
} /* 반응형(모바일에서 너무 오른쪽 붙으면 조정) */
@media (max-width: 480px) {
  .mail-float {
    right: 16px;
    bottom: 90px;
  }
  .btn-top {
    right: 16px;
    bottom: 32px;
  }
  .mail-panel {
    width: 220px;
  }
}
/* =========================================
   공통 애니메이션 (slideUp)
========================================= */
.slideUp {
  animation-name: slideUp;
  -webkit-animation-name: slideUp;
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
  animation-timing-function: ease;
  -webkit-animation-timing-function: ease;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
  visibility: visible !important;
}

@keyframes slideUp {
  0% {
    transform: translateY(20%);
  }
  100% {
    transform: translateY(0%);
  }
}

@-webkit-keyframes slideUp {
  0% {
    -webkit-transform: translateY(20%);
  }
  100% {
    -webkit-transform: translateY(0%);
  }
}

.hero__left.slideUp {
  animation-delay: 0s;
}

.hero__right.slideUp {
  animation-delay: 0.2s;
}

/* =========================================
   반응형 - PC 좁은 화면 (1025px ~ 1200px)
========================================= */
@media (min-width: 1025px) and (max-width: 1200px) {
  .hero-card h2 {
    font-size: 22px;
  }
  .card-title {
    gap: 18px;
  }
}

/* =========================================
   반응형 - 태블릿 (769px ~ 1024px)
========================================= */
@media (max-width: 1024px) and (min-width: 769px) {
  .services {
    padding-block: 0;
  }
  .media-card--tall {
    grid-column: span 1;
  }
  .t-none {
    display: none;
  }
  .footer {
    padding: 32px 0 72px;
  }

  .footer__inner {
    padding: 0 20px;
  }

  .footer__logo {
    gap: 16px;
  }

  .footer__title {
    max-width: 100%;
  }

  .footer__text {
    font-size: 12px;
    line-height: 1.7;
  }

  .media-section.page-section {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .media-grid {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 30vh;
  }

  .media-card {
    height: 100%;
  }

  .point-box {
    max-width: 100%;
  }
  /* 
  .procedure-baton {
    background-size: 98% 80%;
    top: -48%;
  } */

  .procedure-wrap {
    padding: 0 24px;
  }

  .visual-title {
    font-size: 40px;
  }

  .hero__title {
    font-size: 38px;
    line-height: 55px;
  }

  .hero__text {
    font-weight: 600;
    font-size: 12px;
  }

  .hero-card {
    padding: 24px 36px;
  }

  .hero-card::before {
    left: 36px;
    top: 26px;
  }

  .card-title {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
  }

  .hero-card h2 br {
    display: none;
  }

  .scroll {
    display: none;
  }

  .container {
    padding: 0 20px;
  }

  .hero__inner {
    row-gap: 32px;
    column-gap: 30px;
  }

  .hero__right {
    justify-content: flex-start;
  }

  .hero-card {
    max-width: 100%;
  }

  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    gap: 30px;
    font-size: 14px;
  }

  .service-slot {
    width: 180px;
  }

  .service-slot--faded {
    display: none;
  }

  .location__map {
    height: calc(80vh - 250px);
  }

  .location {
    padding-top: 32px;
  }

  .location__info {
    width: 340px;
    padding: 24px 24px 30px;
    border-radius: 16px;
  }

  .location__title {
    font-size: 26px;
    margin-bottom: 22px;
  }

  .location__row {
    gap: 16px;
    font-size: 14px;
  }

  .location__btn {
    font-size: 14px;
    padding: 9px 0;
  }
}
@media (max-width: 1440px) and (min-width: 1024px) {
  .page-section--main {
    gap: clamp(20px, 4vh, 80px);
  }
}
/* ============================
   노트북(세로가 낮은 화면) 전용
   1024px 이상 + 높이 900px 이하
============================ */
@media (min-width: 1024px) and (max-height: 900px) {
  /* 섹션 안에서 위/아래 요소 사이 간격 줄이기 */
  .page-section--main {
    gap: clamp(16px, 4vh, 40px); /* 기존 8vh → 4vh 정도로 */
  }

  /* 히어로 전체를 조금 더 컴팩트하게 */
  .hero {
    margin-top: 16px; /* 기존 40px → 16px */
  }

  .hero__inner {
    column-gap: 40px; /* 좌우 간격 살짝 줄이기 */
    align-items: flex-start;
  }

  .hero__title {
    font-size: 40px; /* 기존 48px */
    line-height: 1.35; /* 60px 대신 */
  }

  .hero__text {
    font-size: 12px; /* 살짝 줄이고 */
    line-height: 1.7;
  }

  .hero-card {
    padding: 28px 32px; /* 카드 세로 여백만 살짝 줄이기 */
  }

  .hero-card h2 {
    font-size: 22px;
  }

  .card-title {
    gap: 24px;
  }

  /* 슬라이드는 느낌 유지하면서 여백만 살짝만 줄임 */
  .services-row {
    gap: 40px;
  }
}

/* 900px 이하 태블릿 슬라이더 정리 */
@media (max-width: 900px) and (min-width: 769px) {
  .service-slot:nth-child(4),
  .service-slot:nth-child(5) {
    display: none;
  }
}

/* 769px 이상: 법봉 절차 3열 정렬 */
@media (min-width: 769px) {
  .procedure-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .point-box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr);
    align-items: center;
    gap: 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    justify-content: normal;
  }

  .left {
    grid-column: 1 / 2;
    justify-content: flex-start;
  }

  .right {
    grid-column: 3 / 4;
    justify-content: flex-end;
  }

  .left,
  .right {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .point-box .text {
    display: flex;
    flex-direction: column;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    width: clamp(180px, 15vw, 260px);
    max-width: 260px;
  }

  .point-box .text strong {
    font-size: 16px;
    font-weight: 700;
  }

  .point-box span {
    font-size: 12px;
  }

  .point-box .line {
    position: relative;
    height: 1px;
    flex: 1 1 auto;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.5);
  }

  .point-box .dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    bottom: -6px;
    right: 0;
  }

  .point-box .right .dot {
    left: 0;
    right: auto;
  }

  .point-box .right .text {
    text-align: right;
  }
}

/* =========================================
   반응형 - 모바일 (max-width: 768px)
========================================= */
@media (max-width: 768px), (max-height: 600px) {
  /* header: 처음 숨김 → 끝나면 보임 */
  html.mobile-intro .header {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  html.mobile-intro.intro-done .header {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* visual-left: 풀스크린 커버(초기) */
  html.mobile-intro .visual-left {
    display: flex !important; /* 네 코드에 mobile에서 none이라 강제 */
    position: fixed;
    inset: 0;
    z-index: 2500; /* header보다 위 */
    width: 100%;
    height: 100vh;
    padding: 28px 18px;
    justify-content: center;
    align-items: center;
    gap: 12px;

    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity;
  }

  /* 자동 재생 시작되면 위로 슬라이드 */
  html.mobile-intro.intro-play .visual-left {
    transition: transform 0.9s cubic-bezier(0.2, 0.85, 0.2, 1),
      opacity 0.6s ease;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }

  /* overlay: 처음 숨김 → 재생/완료 시 등장 */
  html.mobile-intro .visual-overlay {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }
  html.mobile-intro.intro-play .visual-overlay,
  html.mobile-intro.intro-done .visual-overlay {
    opacity: 1;
    transform: translateY(0);
  }

  /* 살짝 분위기(선택): 이미지 줌 */
  html.mobile-intro .visual-right img {
    transform: scale(1.04);
    transition: transform 1.2s ease;
  }
  html.mobile-intro.intro-done .visual-right img {
    transform: scale(1.08);
  }
  html.mobile-intro.intro-done .visual-left {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
  }
  /* 오버레이 전체를 "한 덩어리"로 */
  .visual-overlay {
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: min(92vw, 520px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px; /* 줄 사이 간격 */
  }

  /* 라인 2개는 모바일에선 걍 죽이는게 깔끔 */
  .visual-overlay .vr-line {
    display: none;
  }

  /* 1줄(법무법인 비전은) */
  .vr-text--top {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    opacity: 0.95;
  }

  /* 2줄을 "한 블록"처럼 보이게: 같은 스타일 + 간격 최소화 */
  .vr-text--center,
  .vr-text--bottom {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
  }

  /* 두 문장이 쪼개져 보이는 거 방지: 간격 거의 0 */
  .vr-text--center {
    margin: 0;
  }
  .vr-text--bottom {
    margin-top: -6px;
  } /* ✅ 핵심: 아래 문장을 살짝 붙임 */

  /* 필요하면 전체가 더 또렷하게 */
  .visual-right img {
    filter: brightness(0.85);
  }
  .visual {
    height: 46vh; /* 히어로 ❌ / 인트로 컷 ⭕ */
    min-height: 360px;
  }

  .directions #kakaoMap {
    height: 100% !important;
  }
  .resource-hero__inner {
    padding: 110px 0px 80px;
  }

  .resource-hero__title {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .resource-hero__desc {
    font-size: 13px;
    line-height: 1.8;
  }

  .resource-hero__bg {
    font-size: 140px;
    bottom: -40px;
  }

  .resource-section {
    padding: 0 0 80px;
  }

  .resource-tabs {
    width: 100%;
    justify-content: space-between;
  }

  .notary-list-head {
    display: none;
  }

  .notary-item {
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .notary-item__no {
    font-size: 12px;
    margin-bottom: 2px;
    text-align: left;
  }

  .notary-item__date,
  .notary-download-btn {
    justify-self: flex-start;
    margin-top: 4px;
  }
  .notary-group__head {
    padding: 14px 14px;
  }
  .notary-group__body {
    padding: 4px 14px 10px;
  }
  .notary-doc {
    grid-template-columns: 40px minmax(0, 1fr) 60px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .notary-doc {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    column-gap: 10px;
  }
  .child-doc .notary-doc__bullet {
    padding-left: 18px;
  }

  .notary-doc--child {
    padding-left: 16px;
  }
  .yk-video-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .yk-video-text {
    font-size: 16px;
  }
  .practice-hero__subtitle {
    font-size: 16px;
  }
  .practice-hero__title-layer--front .practice-hero__title-main {
    font-size: 28px;
    line-height: 38px;
  }
  .practice-hero__row {
    flex-direction: row;
    align-items: flex-end;
  }

  .practice-hero__visual-wrap {
    margin: 40px 40px 100px;
  }
  .service-slot--center {
    box-shadow: none;
  }
  #why_flatten .cover {
    padding-top: calc(var(--m-header-h) + var(--m-header-gap));
    min-height: calc(100vh - var(--m-header-h));
    min-height: auto;
    padding: 100px 16px 80px;
  }

  #why_flatten .title {
    font-size: 40px;
  }

  #why_flatten .subtitle {
    flex-direction: column;
    margin-top: 16px;
    text-align: center;
  }

  /* 본문: 모바일용만 사용 */
  #why_flatten .desc {
    display: none;
  }
  #why_flatten .desc.mobile {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #7a7a7a;
  }

  #why_flatten .logo-wrapper {
    max-width: 360px;
    margin-top: 32px;
    gap: 24px;
  }

  #why_flatten .btn {
    margin-top: 60px;
  }

  #why_flatten .btn .cta {
    font-size: 15px;
    padding: 12px 24px;
  }

  /* ✅ 모바일에서는 패널을 '위로' 뜨게 (옆으로 X) */
  .mail-panel {
    right: 0;
    bottom: calc(40px + 10px); /* btn-mail 높이(40) + 간격 */
    width: min(220px, calc(100vw - 40px));
    transform: translateY(8px);
  }

  .btn-mail.is-open + .mail-panel {
    transform: translateY(0);
  }

  /* ✅ 버튼 옆으로 빼는 값 무효화 */
  .mail-panel {
    right: 0;
  }

  .footer__icon-btn img {
    width: 36px;
    height: 36px;
    display: block;
  }

  .footer__logo {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
  }

  .footer__right {
    margin-top: 4px;
  }

  .footer {
    padding: 28px 0 32px;
  }

  .footer__inner {
    padding: 0 18px;
  }

  .footer__title {
    max-width: none; /* 모바일에서는 폭 제한 풀기 */
  }

  .footer__text {
    font-size: 12px;
    line-height: 1.6;
  }

  /* 모바일에서만 줄바꿈 보여주기 */
  .m-only {
    display: block;
  }

  /* 모바일에서는 가운데 점/세로선 안 보이게 */
  .pc-dot {
    margin: 0 8px;
  }

  .footer__icon-btn {
    width: 38px;
    height: 38px;
  }
  .container_nav {
    padding: 0 1rem;
  }
  /* 데스크탑 네비 숨기고 햄버거 표시 */
  .header.is-open {
    background: #ffffff !important;
  }

  .header.is-open .m-nav-toggle span {
    background: #111111 !important;
  }
  .nav {
    display: none;
  }

  .m-nav-toggle {
    display: inline-flex;
    width: 28px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    background: transparent;
    padding: 0;
    margin-left: auto;
    cursor: pointer;
  }

  .m-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #000;
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
  }

  /* X 모양 */
  .m-nav-toggle.is-open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .m-nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .m-nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* 오버레이 메뉴 */
  .m-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: #ffffff;
    color: #111;
    display: block;
    opacity: 0;
    pointer-events: none;
    height: calc(100dvh - 60px);
    transition: opacity 0.25s ease;
  }

  .m-nav.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  body.m-nav-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
  }
  .m-nav__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px 40px;
    min-height: 100vh;
    height: 100dvh; /* 최신 iOS 사파리 */
    height: 100svh;
    display: flex;
    flex-direction: column;
  }

  .m-nav__menu {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .m-nav__menu a {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
  }

  .m-nav__menu a:hover {
    color: #0070a8;
  }

  .location {
    padding: 24px 0 0;
  }

  .location__map {
    position: static;
    width: 100%;
    height: auto;
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: #fff; /* ✅ 기본값을 흰색으로 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
  }

  /* 햄버거 라인/링크 색도 흰 배경 기준으로 고정 */
  .m-nav-toggle span {
    background: #111;
  }
  .nav a {
    color: #111;
  }
  .header.is-solid {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  .location__map > .container {
    position: static;
    inset: auto;
    order: 1;
    max-width: 100%;
    margin: 0;
    padding: 0 16px;
    pointer-events: auto;
  }

  #kakaoMap {
    order: 2;
    width: 100% !important;
    height: 260px !important;
  }

  #kakaoMap iframe {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border: 0;
  }

  .location__info {
    width: 100%;
    padding: 20px 16px 24px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    background: #fff;
  }

  .location__title {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .location__row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 6px;
  }

  .location__row dt {
    width: 68px;
    flex-shrink: 0;
  }

  .location__row dd {
    margin: 0;
  }

  .location__row > div {
    display: inline;
  }

  .location__row > div dd {
    display: inline;
    margin-right: 8px;
  }

  .location__btn {
    width: 100%;
    height: 40px;
    font-size: 14px;
    margin-top: 12px;
  }

  .service-slot--end {
    display: block;
  }

  .parallax-section {
    height: auto;
    min-height: 520px;
  }

  .visual-split {
    position: relative;
    height: auto;
    display: block;
  }

  .services-row {
    display: flex;
    align-items: stretch;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .services-row::-webkit-scrollbar {
    display: none;
  }

  .services-next {
    display: none;
  }

  .service-slot {
    position: relative;
    flex: 0 0 min(90vw, 320px);
    max-width: min(90vw, 320px);
    padding: 30px;
    scroll-snap-align: center;
  }

  .service-inner {
    max-width: none;
    margin: 0;
  }
  .scroll {
    display: none;
  }
  .p-none {
    padding: 0;
    margin-left: 16px;
  }
  .service-slot--faded {
    opacity: 0.4;
    filter: grayscale(40%);
  }
  .header__inner {
    height: 60px;
  }

  .visual-title {
    font-size: 40px !important;
    line-height: 1.1;
  }

  .visual-right {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
  }

  .visual-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.07);
  }

  .page-section {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }
  .wrap {
    padding-bottom: 20px;
  }
  .media-grid {
    max-width: 100%;
    padding: 0 20px;
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
    gap: 12px;
  }

  .media-card {
    height: 194px;
  }

  .media-card--tall,
  .media-cta {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .media-card__content {
    padding: 18px;
  }

  .media-card__title {
    font-size: 13px;
  }

  .media-card__text {
    font-size: 18px;
    -webkit-line-clamp: 2;
  }

  .media-cta {
    padding: 24px 20px;
  }

  .btn-top {
    right: 20px;
    bottom: 20px;
  }

  .visual-wrap {
    position: relative;
    height: auto;
    overflow: hidden;
  }
  .hero {
    margin-top: 24px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    row-gap: 20px;
  }

  .hero__title {
    font-size: 28px;
    line-height: 1.4;
  }

  .hero__text {
    font-size: 12px;
    line-height: 1.8;
  }

  /* 모바일용 히어로 카드 */
  .hero-card {
    max-width: 100%;
    background: transparent;
    color: #111;
    padding: 16px 0;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .hero-card::before {
    display: none;
  }

  .hero-card h2 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111;
  }

  .card-title {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .card-title li {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .card-title li br {
    display: none; /* ✅ 강제 줄바꿈 제거 */
  }
  .card-title li h3 {
    letter-spacing: 0.12em;
    color: #000;
    margin-bottom: 0;
  }

  .card-title li p {
    font-size: 12px;
    line-height: 1.5;
  }

  .hero__left.slideUp,
  .hero__right.slideUp {
    animation: none !important;
    -webkit-animation: none !important;
    transform: none !important;
    margin-top: 40px;
  }

  .procedure {
    position: relative;
    padding: 80px 16px 120px;
    height: 100vh;
    background: url("./images/courthouse.png") center center / cover no-repeat;
    overflow: hidden;
  }

  /* .procedure-baton {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50px);
    top: 0;
    width: 350px;
    height: 350px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    transition: none;
    opacity: 0.8;
  } */

  .procedure-bg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    border-radius: 24px 24px 0 0;
    background: #f6f6f6;
  }

  .line {
    opacity: 0;
  }

  .left,
  .right {
    justify-content: space-between;
  }

  .point-box {
    flex-direction: column;
  }

  .btn-top {
    width: 40px;
    height: 40px;
    right: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  }
  .mail-float {
    right: 20px;
  }
  .btn-mail {
    width: 40px;
    border-radius: 12px;
    height: 40px;
  }
  .btn-top {
    bottom: 20px;
  }

  .btn-top svg,
  .btn-mail img {
    width: 26px;
    height: 26px;
  }

  .footer__icon-btn {
    width: 36px;
    height: 36px;
  }
}

/* =========================================
   회사소개 페이지 공통 스타일
========================================= */
.page-company footer {
  background: #1f1f1f;
}

/* =========================================
   회사소개 히어로 (WHY_FLATTEN)
========================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 전체 래퍼 */
#why_flatten {
  min-height: 100vh;
  background: #f5f5f5;
  color: #000;
}

/* 헤더 아래 영역만 쓰기 */
#why_flatten main {
  overflow: hidden;
  text-align: center;
}

/* HERO: 항상 헤더 제외 화면 높이에서 가운데 정렬 */
#why_flatten .cover {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 72px;
  padding: clamp(120px, 6.25vw, 9999px) 0 clamp(0px, 4.33333vw, 9999px) 0;
  width: 100vw;
  min-height: calc(100vh - 72px);
}

/* 전체 덩어리 (위로 슬라이드) */
#why_flatten .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.8s ease-out;
  transform: translateY(0);
}

#why_flatten.stage-1 .hero-inner {
  transform: translateY(-40px);
}
#why_flatten.stage-2 .hero-inner {
  transform: translateY(-70px);
}
#why_flatten.stage-3 .hero-inner {
  transform: translateY(-100px);
}

/* -----------------------------
   TEXT
----------------------------- */
#why_flatten .text-wrapper {
  width: 100%;
}

/* 타이틀 */
#why_flatten .title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(64px, 5.41667vw, 96px);
  font-weight: 700;
  white-space: nowrap;
}

#why_flatten .title p:last-child {
  max-width: calc(1000 / 1920 * 100vw);
  transition: max-width 0.8s ease-out;
  overflow: hidden;
}

#why_flatten .title p.hidden {
  max-width: 0;
}

/* 서브타이틀 */
#why_flatten .subtitle {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: clamp(24px, 2vw, 32px);

  font-size: clamp(24px, 1.66667vw, 32px);
  font-weight: 700;
  line-height: 1.4;

  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#why_flatten .subtitle p {
  animation: fadeUp 0.8s ease-out forwards;
}

#why_flatten .subtitle.hidden {
  margin-top: 0;
  opacity: 0;
  transform: translateY(40px);
}

/* 본문 (PC용) */
#why_flatten .desc {
  margin-top: clamp(12px, 1vw, 16px);
  font-size: clamp(14px, 0.9vw, 16px);
  line-height: 1.6;
  color: #666;

  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#why_flatten .desc p {
  animation: fadeUp 0.8s ease-out forwards;
}

#why_flatten .desc.hidden {
  margin-top: 0;
  opacity: 0;
  transform: translateY(40px);
}

/* 모바일용 desc는 기본 숨김 */
#why_flatten .desc.mobile {
  display: none;
}

/* -----------------------------
   LOGO (법봉 3개)
----------------------------- */
#why_flatten .logo-wrapper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: clamp(32px, 2vw, 48px);
  padding: 0 20px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, margin-top 0.6s;
  overflow: visible;
}

#why_flatten .logo-wrapper.hidden {
  margin-top: 0;
  opacity: 0;
  transform: translateY(40px);
}

#why_flatten .logo-wrapper:not(.hidden) {
  margin-top: clamp(80px, 4vw, 120px);
}

#why_flatten .logo-item {
  flex: 1 1 0;
}

#why_flatten .logo-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* -----------------------------
   BUTTON
----------------------------- */
#why_flatten .btn {
  display: flex;
  justify-content: center;
  margin-top: clamp(60px, 3.5vw, 90px);

  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#why_flatten .btn.hidden {
  margin-top: 0;
  opacity: 0;
  transform: translateY(40px);
}

#why_flatten .btn .cta {
  border-radius: 999px;
  background: #1f201c;
  color: #fff;
  cursor: pointer;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: fadeUp 0.8s ease-out forwards;
}

#why_flatten .btn .cta .icon {
  width: 16px;
  height: 16px;
  background: url("https://static.shoeprize.com/flatten/icon-right-w.svg")
    no-repeat center / contain;
}

/* ===========================
   1) 태블릿 (600~1024)
=========================== */
@media (max-width: 1024px) {
  #why_flatten .cover {
    min-height: auto;
    padding: 80px 24px 100px;
  }

  #why_flatten .title {
    font-size: 48px;
  }

  #why_flatten .text-wrapper {
    max-width: 640px;
  }

  #why_flatten .logo-wrapper {
    flex-direction: column;
    align-items: center;
    max-width: 480px;
  }
}

.services body,
.services html {
  background: #ffffff !important;
}

.practice-hero {
  position: relative;
  padding-top: 160px;
  overflow: visible;
}

.practice-hero__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 헤더 부분 sticky */
.practice-hero__sticky {
  position: sticky;
  top: 80px;
  z-index: 2;
  margin-bottom: 60px;
}

.practice-hero__title-wrap {
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.practice-hero__title-wrap.is-hidden {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}
.practice-hero__title-wrap .practice-hero__eyebrow,
.practice-hero__title-wrap .practice-hero__title-main,
.practice-hero__title-wrap .practice-hero__subtitle {
  transition: color 0.3s ease;
}

.practice-hero__eyebrow {
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.practice-hero__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.practice-hero__title-main {
  flex: 1;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
}

.practice-hero__subtitle {
  font-size: 14px;
  line-height: 1.6;
}

/* 이미지 위에서는 흰색으로 변환 */
.practice-hero__title-wrap.is-over-image .practice-hero__eyebrow,
.practice-hero__title-wrap.is-over-image .practice-hero__title-main,
.practice-hero__title-wrap.is-over-image .practice-hero__subtitle {
  color: #fff !important;
}

/* ====== 2겹 텍스트 (밑은 흰색, 위는 진한색) ====== */

.practice-hero__title-layer--ghost {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #ffffff;
}
.practice-hero__title-layer--ghost .practice-hero__eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.practice-hero__title-layer--ghost .practice-hero__title-main,
.practice-hero__title-layer--ghost .practice-hero__subtitle {
  color: #ffffff;
}

.practice-hero__title-layer--front {
  position: relative;
}
.practice-hero__title-layer--front .practice-hero__eyebrow {
  font-size: 18px;
  line-height: 18px;
}
.practice-hero__title-layer--front .practice-hero__title-main {
  font-size: 38px;
  line-height: 48px;
}
.practice-hero__title-layer--front .practice-hero__subtitle {
  font-size: 16px;
  line-height: 26px;
}

/* ====== 아래 이미지 카드 ====== */

.practice-hero__visual-wrap {
  position: relative;
  margin: 16px 16px 80px;
}

.practice-hero__visual-inner {
  position: relative;
  height: 320px;
}

.practice-hero__card {
  position: absolute;
  inset: 0; /* top/right/bottom/left 전부 0 */
  border-radius: 16px;
  overflow: hidden;
  color: #ffffff;
  transform-origin: bottom center;
}

.practice-hero__card-img {
  position: relative;
  width: 100%;
  height: 100%;
}

.practice-hero__card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practice-hero__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

/* ========== 탭(큰 섹션) ========== */
.tab {
  position: relative;
}
.tab input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}
.tab__content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s;
}
.tab input:checked ~ .tab__content {
  max-height: 100%;
}

.accordion {
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}
.accordion:first-of-type {
  margin-top: 80px;
  border-top: 2px solid #262626;
}
.accordion:last-of-type {
  border-bottom: 2px solid #262626;
  margin-bottom: 80px;
}

.tab__label,
.tab__close {
  display: flex;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}
.tab__label {
  justify-content: space-between;
  padding: 28px 40px;
  background: #fff;
  font-size: 24px;
  font-weight: 700;
}
.tab__label::after {
  content: "\276F";
  width: 1em;
  height: 1em;
  text-align: center;
  transform: rotate(90deg);
  transition: all 0.35s;
}
.tab input:checked + .tab__label::after {
  transform: rotate(270deg);
}

.tab__close {
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Arrow animation */
.tab input:not(:checked) + .tab__label:hover::after {
  animation: bounce 0.5s infinite;
}
@keyframes bounce {
  25% {
    transform: rotate(90deg) translate(0.25rem);
  }
  75% {
    transform: rotate(90deg) translate(-0.25rem);
  }
}

/* ========== 카드 그리드 (PC 기본) ========== */
.accordion-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 60px 28px;
  padding: 24px 20px 32px 20px;
  background: #fafafa;
}
.accordion-wrap.col3 .accordion-item {
  width: calc(33.3333% - 18.6666px);
}
.accordion-wrap .accordion-item .accordion-btn {
  width: 100%;
}
.accordion-item .accordion-btn .img-wrap {
  overflow: hidden;
  height: 200px;
  margin-bottom: 8px;
}
.accordion-item .accordion-btn .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(1);
  transition: 0.4s ease;
}

.accordion-item:hover .accordion-btn .img-wrap img {
  filter: grayscale(0);
  transform: scale(1.05);
}
.accordion-item .accordion-btn .tit {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  transition: opacity 0.4s ease, color 0.25s ease;
  color: #111;
}
.accordion-wrap.has-open .accordion-item:not(.is-open) .tit {
  color: #b5b5b5;
}
.accordion-item .accordion-content-wrap {
  display: none;
}

.accordion-item .tit img {
  width: 12px;
}

/* 공통 화살표 */
.accordion-arrow {
  display: inline-block;
  width: 14px;
  height: auto;
  filter: brightness(0) saturate(100%);
  margin-left: 6px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.accordion-item.is-open .accordion-arrow {
  transform: rotate(180deg);
  filter: brightness(0) saturate(100%);
}
.accordion-wrap.has-open .accordion-item:not(.is-open) .accordion-arrow {
  filter: grayscale(1) brightness(0.6);
}

/* PC용: 3개 묶음 아래 하얀 패널 */
.accordion-detail {
  flex: 0 0 100%;
  padding: 40px;
  max-width: 1400px;
  background: #fff;
  display: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.accordion-detail.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.accordion-tit {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 32px;
}
.accordion-desc {
  font-size: 20px;
  font-weight: 500;
}
.accordion-content {
  margin-top: 60px;
}
.accordion-content .txt-box.gray {
  padding: 40px;
  background-color: #f5f5f5;
}
.accordion-content .txt-box.gray p {
  white-space: pre-line;
}
.inner {
  width: 100%;
  max-width: 1400px;
  height: 100%;
  padding: 0 24px;
  margin: 0 auto;
  position: relative;
}
.tit01 {
  font-size: 48px;
  font-weight: 700;
}
.tit01 + .txt02 {
  margin-top: 38px;
}
.txt02 {
  font-size: 20px;
  line-height: 1.8;
}

/* =========================================
     🔽 BREAKPOINT 정리
========================================= */

/* 1) min-width: 640px */
@media (min-width: 640px) {
  .practice-hero__visual-inner {
    height: 380px;
  }
}

/* 4) max-width: 1024px & min-width: 769px (노트북 정도) */
@media (max-width: 1024px) and (min-width: 769px) {
  .practice-hero__title-main {
    font-size: 44px;
  }
  .practice-hero__title-layer--front .practice-hero__title-main {
    font-size: 28px;
    line-height: 38px;
  }
  .practice-hero__title-layer--front .practice-hero__subtitle {
    font-size: 14px;
    line-height: 24px;
  }
}

/* 5) min-width: 1024px */
@media (min-width: 1024px) {
  .practice-hero__visual-inner {
    height: 460px;
  }
}

/* 6) min-width: 1280px */
@media (min-width: 1280px) {
  .practice-hero__visual-inner {
    height: 500px;
  }
}

/* 7) max-width: 1024px – 태블릿/작은 노트북 공통 */
@media (max-width: 1024px) {
  body.services {
    font-size: 15px;
  }

  .practice-hero {
    padding-top: 130px;
  }
  .practice-hero__sticky {
    top: 70px;
    margin-bottom: 40px;
  }
  .practice-hero__visual-wrap {
    margin: 24px 24px 72px;
  }
  .practice-hero__visual-inner {
    height: 320px;
  }

  .inner {
    padding: 0 20px;
  }

  .tit01 {
    font-size: 48px;
  }

  .txt02 {
    font-size: 20px;
    line-height: 1.7;
    font-weight: 500;
  }

  .tab__label {
    padding: 22px 24px;
    font-size: 20px;
  }

  .accordion-wrap {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 24px;
    padding: 24px 0;
  }
  .accordion-wrap.col3 .accordion-item {
    width: 100%;
  }

  .accordion-item .accordion-btn {
    text-align: left;
  }

  .accordion-item .accordion-btn .img-wrap {
    height: 300px;
  }
  .accordion-item .accordion-btn .img-wrap img {
    display: block;
  }

  /* 👉 기본은 전부 검정 */
  .accordion-item .accordion-btn .tit {
    font-size: 24px;
    color: #111;
    margin-top: 16px;
  }

  /* 열린 카드 아래에 흰색 박스 */
  .accordion-item .accordion-content-wrap {
    display: none;
    margin-top: 24px;
    padding: 40px;
    background: #ffffff; /* 흰 패널 */
  }
  .accordion-item.is-open .accordion-content-wrap {
    display: block;
  }

  /* 한 카드가 열려 있는 상태에서는
       그 카드만 검정, 나머지는 회색 */
  .accordion-wrap.has-open .accordion-item:not(.is-open) .tit {
    color: #b5b5b5;
  }

  /* 디테일 텍스트 축소 */
  .accordion-tit {
    font-size: 36px;
    margin-bottom: 32px;
  }
  .accordion-desc {
    font-size: 20px;
    line-height: 1.4;
  }
  .accordion-content {
    margin-top: 28px;
  }
  .accordion-content .txt-box.gray {
    padding: 40px;
  }
  .txt-box p {
    font-size: 12px;
    line-height: 18px;
    font-weight: 500;
  }
  /* PC용 아래 패널은 태블릿/모바일에서는 사용 X (카드 바로 아래로 나오니까) */
  .accordion-detail {
    display: none !important;
  }
}

/* 8) max-width: 640px – 폰 전용 */
@media (max-width: 640px) {
  .accordion-item .accordion-btn .img-wrap {
    height: 180px;
  }
  body.services {
    font-size: 14px;
  }

  .practice-hero {
    padding-top: 110px;
  }
  .practice-hero__sticky {
    top: 64px;
    margin-bottom: 24px;
  }
  .practice-hero__inner {
    padding: 0 16px;
  }
  .practice-hero__visual-wrap {
    margin: 16px 16px 56px;
  }
  .practice-hero__visual-inner {
    height: 260px;
  }

  .practice-hero__eyebrow {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .practice-hero__title-main {
    font-size: 26px;
    line-height: 1.4;
  }
  .practice-hero__subtitle {
    font-size: 13px;
    line-height: 1.7;
  }

  .inner {
    padding: 0 16px;
  }

  .tit01 {
    font-size: 28px;
  }
  .tit01 + .txt02 {
    margin-top: 16px;
  }
  .txt02 {
    font-size: 14px;
    line-height: 1.7;
  }

  .tab__label {
    padding: 18px 16px;
    font-size: 16px;
  }

  .accordion-wrap {
    gap: 20px;
    padding: 20px 0 24px;
  }

  .accordion-item .accordion-btn .tit {
    font-size: 16px;
    margin-top: 10px;
  }

  .accordion-item .accordion-content-wrap {
    margin-top: 12px;
    padding: 20px 16px;
  }

  .accordion-tit {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .accordion-desc {
    font-size: 13px;
  }
  .accordion-content {
    margin-top: 20px;
  }
  .accordion-content .txt-box.gray {
    padding: 18px 14px;
  }
}
/* =========================================
   구성원 페이지 공통 스타일
====*/
.team-card.is-placeholder {
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

/* 배경을 '배경'처럼 쓰지 말고, 이미지 영역으로 전환 */
.team-card.is-placeholder .team-card__bg {
  position: relative;
  inset: auto;
  flex: 1;
  display: flex;
  align-items: flex-start; /* 이미지 위로 */
  justify-content: center;
}

/* placeholder 이미지는 contain으로, 확대효과 제거 */
.team-card.is-placeholder .team-card__bg img {
  width: 87%;
  object-fit: contain;
  object-position: center;
  transform: none !important;
  transition: none !important;
  opacity: 0.9;
}

/* 텍스트는 absolute 금지 → 아래 영역으로 */
.team-card.is-placeholder .team-card__info {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  padding: 0px 20px 22px;
  color: #111;
}

/* 폰트도 placeholder는 살짝 줄이면 더 안정적 */
.team-card.is-placeholder .team-card__name {
  font-size: 20px;
  font-weight: 800;
}

.team-card.is-placeholder .team-card__role {
  font-size: 12px;
  opacity: 0.65;
}

.team-card.is-placeholder .team-card__cta {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.7;
}

/* hover 시 카드만 살짝, 이미지 확대는 X */
.team-card.is-placeholder:hover .team-card__bg img {
  transform: none !important;
}

/* ===== 탭 ===== */
.team-tabs {
  margin-bottom: 28px;
}

/* PC 기본(기존 resource-tabs 스타일을 존중) */
.resource-tabs.team-tabs {
  display: flex;
  gap: 34px;
  align-items: center;
}

/* 태블릿/모바일에서만 3등분 100% */
@media (max-width: 900px) {
  .resource-tabs.team-tabs {
    width: 100%;
    gap: 0;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .resource-tabs.team-tabs .resource-tab {
    flex: 1;
    width: 100%;
    text-align: center;
    padding: 14px 0 16px;
    font-size: 15px;
  }
}

/* ===== 섹션/그리드 ===== */
.page-team {
  padding: 10px 0 120px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
#sec-committee .team-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1200px) {
  .team-grid,
  #sec-committee .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .team-grid,
  #sec-committee .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .team-grid,
  #sec-committee .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card.is-placeholder {
    flex-direction: row;
  }
  .team-card.is-placeholder .team-card__bg img {
    object-position: center !important;
  }
  .team-card.is-placeholder {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 18px 16px;
    min-height: 0;
    height: auto;
  }

  /* 왼쪽 이미지 */
  .team-card.is-placeholder .team-card__bg {
    position: relative;
    flex: 0 0 96px;
    height: 96px;
    margin-right: 16px;
    background: #f2f2f2;
  }

  .team-card.is-placeholder .team-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.85;
  }

  /* 오른쪽 info */
  .team-card.is-placeholder .team-card__info {
    position: relative;
    flex: 1;
    padding: 0;
    color: #111;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* 이름 */
  .team-card.is-placeholder .team-card__name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  /* 직함 */
  .team-card.is-placeholder .team-card__role {
    font-size: 13px;
    color: #666;
    font-weight: 600;
  }

  /* 상세보기 → 오른쪽 정렬 */
  .team-card.is-placeholder .team-card__cta {
    margin-top: 8px;
    align-self: flex-end;
    font-size: 12px;
    font-weight: 700;
    color: #111;
    opacity: 0.85;
  }
}

/* =========================================================
        ✅ CARD OPTION 2 (이미지 배경 + 오버레이)
      ========================================================= */
.team-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  min-height: 320px;
  background: #e9e9e9;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transform: translateZ(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
}

/* 배경 이미지 */
.team-card__bg {
  position: absolute;
  inset: 0;
}
.team-card__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* 얼굴쪽 위로 보이게 기본값 */
  object-position: center 15%;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}
.team-card:hover .team-card__bg img {
  transform: scale(1.06);
}

/* 그라데이션 오버레이 */
.team-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.46) 30%,
    rgba(0, 0, 0, 0.06) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

/* 텍스트 영역 */
.team-card__info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  color: #fff;
  z-index: 2;
}

.team-card__name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.team-card__role {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.95;
}

.team-card__field {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.82;
  line-height: 1.5;
}

/* “상세보기” 힌트 */
.team-card__cta {
  margin-top: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.team-card__cta::after {
  content: "→";
  display: inline-block;
  transform: translateY(-1px);
}

/* 고문/전문위원 placeholder 느낌 */
.team-card.is-placeholder .team-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.35) 35%,
    rgba(0, 0, 0, 0.06) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* =========================================================
        MODAL (정리 버전 + prev/next + scrollbar hide)
      ========================================================= */
body.modal-open {
  overflow: hidden;
  touch-action: none;
}

.team-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.team-modal.is-open {
  display: block;
}

/* ✅ backdrop은 dialog보다 반드시 아래 */
.team-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.team-modal__dialog {
  position: relative;
  z-index: 1;

  width: min(1200px, calc(100% - 48px));
  height: min(760px, calc(100vh - 72px));
  margin: 36px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.team-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 56px;
  height: 56px;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.team-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.team-modal__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: 100%;
}

/* LEFT */
.team-modal__left {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-modal__photoBox {
  border-radius: 18px;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 3 / 4; /* ✅ 세로형 */
  width: 100%;
}

.team-modal__photoBox img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* ✅ 얼굴쪽(위) */
  object-position: center 15%;
}

.team-modal__nav {
  display: flex;
  gap: 10px;
}
.team-modal__navBtn {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}
.team-modal__navBtn:hover {
  border-color: #111;
}

/* RIGHT */
.team-modal__right {
  padding: 24px 28px;
  overflow: auto;
  height: 100%;

  scrollbar-width: none;
  -ms-overflow-style: none;
}
.team-modal__right::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.team-modal__brand {
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.team-modal__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.team-modal__name {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
}

.team-modal__role {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.team-modal__sections {
  display: grid;
  gap: 22px;
}

.team-modal__history-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 10px;
}

.team-modal__history-title::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background-image: url(images/logo-icon.png);
  background-size: cover;
  display: inline-block;
}

.team-modal__history-list {
  margin: 0;
  padding-left: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 12px;
}

.team-modal__history-list li {
  margin: 8px 0;
  color: #333;
  line-height: 1.65;
  font-size: 14px;
}

/* 모달 모바일 */
@media (max-width: 900px) {
  .team-modal__dialog {
    width: min(720px, calc(100% - 28px));
    height: calc(100vh - 28px);
    margin: 14px auto;
  }
  .team-modal__grid {
    grid-template-columns: 1fr;
  }
  .team-modal__left {
    padding: 16px 16px 0;
  }
  .team-modal__photoBox {
    height: 42vh;
    max-height: 42vh;
  }
  .team-modal__right {
    padding: 16px;
  }
  .team-modal__name {
    font-size: 30px;
  }
}

/* ============== 비전 미디어 (자료실 탭용) ============== */
.resources {
  background: #fff;
}

.media-section {
  margin-top: 8px;
}

.media-section__head {
  margin-bottom: 18px;
}

.media-section__title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
}

.media-section__desc {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

/* 모달 */
.media-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
/* =========================
   YK 느낌 메인 영상 섹션
========================= */
.yk-video-section {
  background: #fff;
}
.yk-video-section .media-cta__btn,
.insight-cta__btn {
  display: block;
  margin: 60px auto 0;
  border-radius: 999px;
  background: #1f201c;
  color: #fff;
  cursor: pointer;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
}
.yk-video-head {
  margin-bottom: 26px;
}

.yk-video-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
  margin: 0 0 8px;
}

.yk-video-desc {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.yk-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.yk-video-card {
  cursor: pointer;
}

.yk-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  background-color: #eee;
}

.yk-video-cap {
  margin-top: 14px;
  background: #fff;
  border-radius: 22px;
  padding: 18px 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  text-align: center;
  min-height: 86px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.yk-video-text {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: #111;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yk-video-card:hover .yk-video-cap {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
}

/* 반응형 */
@media (max-width: 1200px) {
  .yk-video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 960px) {
  .yk-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 2번 라인: 설명용(다운로드 아님) */
.notary-doc--summary .notary-doc__note {
  font-size: 13px;
  color: #666;
}

/* 하위 항목 들여쓰기 */
.child-doc .notary-doc__bullet {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-left: 30px;
}

.child-doc {
  grid-template-columns: 80px minmax(0, 1fr) 70px;
}

/* ================= 비전 블로그 ================= */
.notary-doc--section {
  background: #fafafa;
  font-weight: 600;
  color: #444;
}
.notary-doc--section .notary-doc__badge {
  display: none;
}

.blog-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.blog-card {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #eeeeee;
  padding: 18px 20px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f4f6fb;
  font-size: 11px;
  color: #6a76a2;
}

.blog-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  line-height: 1.5;
  margin: 0;
}

.blog-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* ✅ 3줄 고정 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.7;
  min-height: calc(1.7em * 3);
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

.blog-readmore {
  font-size: 12px;
  color: #1f4f9d;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.blog-readmore svg {
  width: 11px;
  height: 11px;
}

.blog-readmore:hover {
  text-decoration: underline;
}

/* ================= 공증 인트로 박스 ================= */
.notary-intro {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 10px;
  background: #f7f8fb;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

.notary-intro a {
  color: #1f4f9d;
  text-decoration: underline;
}

/* ================= 아코디언 그룹 ================= */
.notary-accordion {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notary-group {
  border-radius: 18px;
  border: 1px solid #ebedf3;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.notary-group__head {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.notary-group__title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.notary-group__text {
  text-align: left;
}

.notary-group__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.notary-group__desc {
  font-size: 12px;
  color: #888;
}

.notary-group__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notary-group__count {
  font-size: 12px;
  color: #999;
}

.notary-group__icon {
  display: inline-block;
  font-size: 11px;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
  color: #555;
}

.notary-group.is-open .notary-group__icon {
  transform: rotate(0deg);
}

.notary-group__body {
  display: none;
}

.notary-group.is-open .notary-group__body {
  display: block;
}

.notary-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notary-doc {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 70px;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
}

.notary-doc + .notary-doc {
  border-top: 1px dashed #eef0f6;
}

.notary-doc__bullet {
  color: #b0b4c6;
  text-align: center;
}

.notary-doc__link {
  color: #222;
  text-decoration: none;
}

.notary-doc__link:hover {
  text-decoration: underline;
}

.notary-doc__badge {
  justify-self: flex-end;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f5fb;
  color: #646fa0;
  font-size: 11px;
  margin-right: 10px;
}

/* ================= HERO (Megazone 스타일) ================= */
.resource-hero {
  position: relative;
  overflow: hidden;
}

.resource-hero__inner {
  padding: 140px 0px 120px;
  opacity: 0;
  transform: translateY(24px);
  animation: resourceHeroTextIn 0.8s ease-out forwards;
}

.resource-hero__title {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  color: #111;
}

.resource-hero__desc {
  color: rgb(25, 25, 25);
  font-size: 22px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.56px;
}

.resource-hero__bg {
  position: absolute;
  left: 0;
  bottom: -130px;
  font-size: 258px;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: rgba(0, 0, 0, 0.02);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translateY(30px);
  animation: resourceHeroBgIn 1.2s ease-out 0.15s forwards;
}

@keyframes resourceHeroTextIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes resourceHeroBgIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= 자료 섹션 (탭 + 컨텐츠) ================= */
.resource-section {
  padding: 0 0 120px;
}

.resource-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 32px;
}

.resource-tab {
  position: relative;
  padding: 12px 0 14px;
  font-size: 15px;
  color: #b0b0b0;
  background: none;
  border: none;
  cursor: pointer;
}

.resource-tab.is-active {
  font-weight: 600;
  color: #111;
}

.resource-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #111;
}

.resource-panels {
  margin-top: 4px;
}

.resource-panel {
  display: none;
}

.resource-panel.is-active {
  display: block;
}

/* ================= 공증 자료 리스트 ================= */
.notary-list-wrap {
  margin-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.notary-list {
  display: block;
  padding-top: 0;
}

.notary-list-head {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 120px 120px;
  align-items: center;
  padding: 12px 4px;
  font-size: 13px;
  color: #888;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
}

.notary-list-head span {
  padding: 0 8px;
}

.head-no,
.head-file,
.head-date {
  text-align: center;
}

.notary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

.notary-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 120px 120px;
  align-items: center;
  gap: 0;
  padding: 14px 4px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  border-bottom: 1px solid #f3f3f3;
  background: transparent;
}

.notary-item:hover {
  background: #fafafa;
}

.notary-item__left,
.notary-item__right {
  display: contents;
}

.notary-item__no {
  text-align: center;
  font-size: 13px;
  color: #b0b0b0;
}

.notary-item__title {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notary-item__title:hover {
  text-decoration: underline;
  color: #111;
}

.notary-item__date {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.notary-download-btn {
  justify-self: center;
  min-width: auto;
  padding: 0 14px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #dde2ec;
  font-size: 12px;
}

.notary-download-btn svg {
  width: 12px;
  height: 12px;
}

.notary-download-btn:hover {
  border-color: #1f4f9d;
  color: #1f4f9d;
}

/* ======================
  INSIGHT DETAIL LAYOUT
====================== */

/* 히어로 전체 배경 + 여백 */
.insight-hero {
  padding: 70px 0 60px;
  background: #f5f5f5; /* 본문 배경과 맞춤 */
}

/* 안쪽 카드 (제목 박스) */
.insight-hero__card {
  max-width: 1400px; /* 본문 카드와 동일 폭 */
  margin: 0 auto;
  padding: 40px 48px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}

/* 상단 “INSIGHT” */
.insight-hero__eyebrow {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #111;
  margin-bottom: 18px;
}

/* 글 제목 */
.insight-hero__title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: #111;
}

/* 카테고리 · 작성자 · 날짜 */
.insight-hero__meta {
  font-size: 14px;
  color: #8c8f9b;
  margin-bottom: 32px;
}

/* 리드 문단 */
.insight-hero__lead {
  font-size: 17px;
  color: #444;
  line-height: 1.75;
  max-width: 968px;
  margin: 0 auto;
}

/* ================= 본문 영역 ================= */

.insight-body {
  background: #f5f5f5;
  padding: 0 0 120px;
}

.insight-body__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) 220px; /* 본문 3, 사이드 1 */
  gap: 40px;
}

/* 기사 본문 카드 */
.insight-article {
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}

.insight-article__section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 10px;
  color: #222;
}

.insight-article__section-title:first-of-type {
  margin-top: 0;
}

.insight-article p {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 10px;
}

.insight-article ul {
  margin: 8px 0 14px 0;
  padding-left: 18px;
}

.insight-article li {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  list-style: disc;
}

/* 인용 박스 */
.insight-quote {
  margin: 18px 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8f9fc;
  border: 1px solid #e3e6f3;
  font-size: 13px;
  line-height: 1.9;
  color: #555;
}

.insight-quote strong {
  color: #1f4f9d;
}

/* ================= 영상 블록 ================= */

.insight-video {
  margin-bottom: 18px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.insight-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: 8px; /* 카드 스타일이면 추천 */
  background: #000;
}
.insight-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ================= 오른쪽 사이드 ================= */

.insight-side {
  align-self: flex-start;
  position: sticky;
  top: 120px;
}

.insight-side__card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
  font-size: 13px;
  color: #555;
}

/* “글 정보” 제목 */
.insight-side__title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

/* 메타 줄 간격 */
.insight-side__meta-item + .insight-side__meta-item {
  margin-top: 4px;
}

/* 메타 한 줄을 라벨 / 값으로 정렬 */
.insight-side__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* 왼쪽 라벨 */
.insight-side__label {
  flex: 0 0 56px;
  color: #999;
}

/* 오른쪽 값 (두 줄 이상으로 내려가도 정렬 유지) */
.insight-side__value {
  flex: 1;
  line-height: 1.5;
}

/* 태그 */
.insight-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.insight-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f5fb;
  color: #56618d;
  font-size: 11px;
}

/* 목록 버튼 */
.insight-back {
  margin-top: 14px;
}

.insight-back__btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e2e5ea;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: 0.2s ease;
}

.insight-back__btn:hover {
  background: #e9ebef;
  border-color: #d4d7dd;
}

/* 네이버 블로그 버튼 */
.insight-blog-link-wrap {
  margin-top: 14px;
}

.insight-blog-link {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;

  background: #e9f1ff;
  border: 1px solid #bcd4ff;

  color: #1a4fb3;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;

  transition: 0.2s ease;
}

.insight-blog-link:hover {
  background: #dce8ff;
  border-color: #9fbfff;
  color: #153f8f;
}

/* =========================
   LOCATION PAGE
========================= */
.directions .page-location {
  background: #fff;
}

.directions .location-wrap {
  padding: 120px 0;
}

.directions .location-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: start;
}

/* 왼쪽 텍스트 */
.directions .location-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 48px;
  color: #111;
}
.location-text {
  padding: 37px 0;
}
.directions .location-block {
  margin-bottom: 36px;
}
.directions .location-block:last-child {
  margin-bottom: 0;
}
.directions .location-block h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.directions .location-block p,
.directions .location-block span {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}

.directions .location-block ul {
  list-style: none;
  padding: 0;
}

.directions .location-block li {
  margin-bottom: 10px;
}

.directions .location-block strong {
  display: inline-block;
  width: 64px;
  font-weight: 600;
  color: #222;
}

/* 지도 */
.directions .location-map {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.directions .location-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.06); /* 너무 세면 지도 망가짐 */
  pointer-events: none;
}
.directions .location-map #kakaoMap {
  width: 100%;
  height: 100%;
}
/* 오른쪽(지도+사진) 래퍼 */
.directions .location-right {
  display: grid;
  gap: 18px;
}

/* 사진 3컷 갤러리 */
.directions .location-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 6px;
}

.directions .location-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #eee;
}

.directions .location-photo img {
  width: 100%;
  height: 140px; /* ✅ 너무 커지면 페이지 길어져서 이 정도 추천 */
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
}

@media (hover: hover) {
  .directions .location-photo:hover img {
    transform: scale(1.04);
  }
}

/* 반응형 */
@media (max-width: 1024px) {
  .directions .location-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .directions .location-map {
    height: 360px;
  }
  .directions .location-gallery {
    grid-template-columns: 1fr;
  }
  .directions .location-photo img {
    height: 180px;
  }
}

.vr-text {
  margin: 0;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
/* 1. 비주얼 영역을 화면 높이에 맞춤 (인트로 느낌) */
.visual-wrap {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* 기본: 모바일 오버레이 숨김 */
.visual-overlay-m {
  display: none;
}

/* 모바일에서만 교체 */
@media (max-width: 768px) {
  /* 데스크탑용 오버레이는 모바일에서 숨김 */
  .visual-overlay {
    display: none !important;
  }

  /* 모바일용 오버레이 표시 */
  .visual-overlay-m {
    display: block;
    position: absolute;
    left: 50%;
    top: 56%;
    transform: translate(-50%, -50%);
    width: min(86vw, 520px);
    padding: 30px;
    text-align: center;
    color: #fff;
  }

  .visual-overlay-m__eyebrow {
    margin: 0 0 20px;
    font-size: 32px;
    font-weight: 700;
  }

  .visual-overlay-m__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 500;
  }

  .visual-overlay-m__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    height: 40px;
    padding: 0 24px;
    border-radius: 999px;
    width: 160px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;

    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .visual-overlay-m__btn:active {
    transform: translateY(1px);
  }
  .visual-overlay-m {
    opacity: 0;
    transform: translate(-50%, -46%);
    transition: opacity 450ms ease, transform 450ms ease;
    pointer-events: none;
  }

  .intro-done .visual-overlay-m {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }
}
