/* =========================================================
   알파인테리어 - 사이트 스타일
   (크리에이터링크 원본의 블록 CSS 수치를 그대로 옮겨 정리)
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Quicksand', 'Nanum Gothic', 'Noto Sans KR', sans-serif;
  font-size: 13px;
  line-height: 1.42857;
  color: #171717;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
hr { box-sizing: content-box; height: 0; }
.text-center { text-align: center; }

/* 부트스트랩 컨테이너와 동일한 폭 */
.container { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 768px)  { .container { width: 750px; } }
@media (min-width: 992px)  { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }

/* ---------- 헤더 (menu-top16, 2row / 가운데 정렬 / 스티키) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  transition: background-color .3s;
}
.site-header.is-sticky {
  background: rgba(255, 255, 255, .898);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.header-inner {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 35px; padding-bottom: 35px;
  gap: 29px;
}
.brand {
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 35px; font-weight: 600; line-height: 49px;
  color: #000;
  white-space: nowrap;
}
.brand-img { display: block; line-height: 0; }
.brand-img img { height: var(--logo-h, 54px); width: auto; max-width: 80vw; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav-item a {
  display: block; position: relative;
  padding: 8px 0;
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 14px; line-height: 19.6px;
  color: #212327;
}
.nav-item a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 1px; background: #212327;
  transform: scaleX(0); transition: transform .3s;
}
.nav-item a:hover::after, .nav-item.active a::after { transform: scaleX(1); }
.nav-toggle {
  display: none; border: 0; background: none; padding: 6px; cursor: pointer;
  color: #0a0a0b;
}
.nav-toggle svg { fill: currentColor; display: block; }

@media (max-width: 767px) {
  .header-inner {
    flex-direction: row; flex-wrap: wrap; justify-content: space-between;
    padding-top: 14px; padding-bottom: 14px; gap: 0;
  }
  .brand { font-size: 22px; line-height: 32px; }
  .brand-img img { height: calc(var(--logo-h, 54px) * .7); max-width: 70vw; }
  .nav-toggle { display: block; }
  .nav { width: 100%; display: none; }
  .site-header.nav-open .nav { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 10px 0 4px; }
  .nav-item a { padding: 12px 0; font-size: 15px; border-top: 1px solid #f0f0f0; }
  .nav-item a::after { display: none; }
  .nav-item.active a { font-weight: 700; }
}

/* ---------- AOS (fade-up 1000ms) ---------- */
.aos { opacity: 0; transform: translate3d(0, 100px, 0); transition: opacity 1s ease, transform 1s ease; }
.aos.aos-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .aos { opacity: 1; transform: none; transition: none; } }

/* ---------- 메인 슬라이드 (slideshow46) ---------- */
.hero { position: relative; height: 937px; overflow: hidden; background: #000; }
.hero-track { position: relative; height: 100%; }
.slide {
  position: absolute; inset: 0;
  background-color: #000; background-position: center center;
  background-repeat: no-repeat; background-size: cover;
  display: none;
  transition: transform .6s ease-in-out;
}
.slide.active, .slide.next, .slide.prev { display: block; }
.slide.next { transform: translate3d(100%, 0, 0); }
.slide.prev { transform: translate3d(-100%, 0, 0); }
.slide.next.left, .slide.prev.right { transform: translate3d(0, 0, 0); }
.slide.active.left { transform: translate3d(-100%, 0, 0); }
.slide.active.right { transform: translate3d(100%, 0, 0); }
.slide-dim { position: absolute; inset: 0; background: #000; opacity: .3; }
.slide-caption {
  position: absolute; left: 15%; right: 15%; top: 50%; transform: translateY(-50%);
  z-index: 2; text-align: center; color: #fff;
}
.slide-sub, .slide-gap {
  font-family: 'Noto Sans KR', sans-serif; font-size: 15px; font-weight: 400; line-height: 1.5;
}
.slide-title {
  font-family: 'Quicksand', 'Nanum Gothic', sans-serif;
  font-size: 60px; font-weight: 700; line-height: 1.15;
}
.scroll-line {
  position: absolute; left: 0; right: 0; bottom: 10%; margin: auto;
  width: 1px; height: 100px; z-index: 10;
}
.scroll-line::before, .scroll-line::after {
  content: ''; position: absolute; left: 50%; margin-left: -.5px; bottom: 0;
  width: 1px; height: 100px;
}
.scroll-line::before { background: rgba(255, 255, 255, .2); }
.scroll-line::after { background: #fff; animation: scrollLine 2s cubic-bezier(.77, 0, .175, 1) infinite; }
@keyframes scrollLine {
  0%      { transform-origin: 50% 100%; transform: scaleY(1); }
  50%     { transform-origin: 50% 100%; transform: scaleY(0); }
  50.0001%{ transform-origin: 50% 0;    transform: scaleY(0); }
  100%    { transform-origin: 50% 0;    transform: scaleY(1); }
}
.hero-ctrl { position: absolute; top: 0; bottom: 0; width: 15%; z-index: 3; color: #fff; }
.hero-ctrl.prev { left: 0; }
.hero-ctrl.next { right: 0; }
.hero-ctrl .txt {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: 'Raleway', sans-serif; font-size: 11px; letter-spacing: 7px; line-height: 1;
  padding-bottom: 5px;
}
.hero-ctrl.prev .txt { left: 140px; }
.hero-ctrl.next .txt { right: 140px; }
.hero-ctrl .side-line {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; margin: 0; border: 0; border-top: 1px solid #fff; transition: width .35s;
}
.hero-ctrl.prev .side-line { left: 70px; }
.hero-ctrl.next .side-line { right: 70px; }
.hero-ctrl:hover .side-line { width: 60px; }

@media (max-width: 1199px) { .hero { height: 840px; } }
@media (max-width: 991px)  { .hero { height: 740px; } .hero-ctrl .txt, .hero-ctrl .side-line { display: none; } }
@media (max-width: 767px)  {
  .hero { height: 640px; }
  .slide-caption { left: 20px; right: 20px; }
  .slide-sub, .slide-gap { font-size: 13px; }
  .slide-title { font-size: 36px; }
}

/* ---------- 섹션 타이틀 (text10) ---------- */
.t-title {
  font-family: 'Noto Sans KR', sans-serif; font-size: 48px; font-weight: 700;
  line-height: 1.6; color: #000;
}
.t-sub {
  font-family: 'Noto Sans KR', sans-serif; font-size: 14px; font-weight: 300; color: #999;
}
.sec-portfolio-title { padding: 100px 0 0; }
.sec-pick-title { padding: 60px 0 40px; }
.sec-pick-title .t-title { line-height: 1.5; }
@media (max-width: 767px) {
  .t-title { font-size: 30px; }
  .sec-portfolio-title { padding-top: 64px; }
  .sec-pick-title { padding: 40px 0 24px; }
}

/* ---------- 메인 갤러리 (gallery36) ---------- */
.g-grid { display: grid; }
.g-img { position: relative; overflow: hidden; }
.g-img img { width: 100%; height: 100%; object-fit: cover; }

.home-gallery { padding: 80px 0 30px; }
.home-gallery .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.home-gallery .g-img { aspect-ratio: 1 / 1; transition: box-shadow .4s ease, transform .4s ease; }
.home-gallery .g-img img { transition: filter .4s ease; }
/* 마우스 효과: 포트폴리오 페이지와 같게 (잘림 없이 살짝 떠오름) */
.home-gallery .g-item a:hover .g-img { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, .12); }
.home-gallery .g-item a:hover .g-img img { filter: brightness(1.04); }
@media (max-width: 767px) {
  .home-gallery { padding-top: 48px; }
  .home-gallery .g-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* ---------- 자세히 보기 버튼 (text89) ---------- */
.sec-button { padding: 30px 0 100px; }
.btn-more {
  display: inline-block; padding: 12px 52px;
  font-family: 'Noto Sans KR', sans-serif; font-size: 14px; font-weight: 400; line-height: 16px;
  color: #fff; background: #807d75; transition: filter .3s;
}
.btn-more:hover { filter: brightness(.85); }
@media (max-width: 767px) { .sec-button { padding: 20px 0 64px; } }

/* ---------- 디자이너 Pick (contents120) ---------- */
.sec-pick { padding: 40px 0 0; }
.pick-wrap { padding-top: 60px; }
.pick-box {
  display: flex; align-items: flex-start;
  padding: 60px 0 50px; background: #fbf9f5;
}
.pick-img { width: 50%; padding: 0 30px 0 60px; }
.pick-img img { width: 100%; margin-top: -120px; }
.pick-text {
  width: 50%; padding: 0 60px 0 30px;
  font-family: 'Noto Sans KR', sans-serif; font-size: 14px; font-weight: 300;
  line-height: 1.5; color: #999;
}
@media (max-width: 991px) {
  .pick-box { flex-wrap: wrap; padding: 48px 0 40px; }
  .pick-img { padding: 0 24px 0 48px; }
  .pick-img img { margin-top: -96px; }
  .pick-text { width: 100%; padding: 30px 48px 0; }
}
@media (max-width: 767px) {
  .pick-wrap { padding: 0 0 15px; }
  .pick-box { padding: 5px 0 25px; margin-top: 20px; }
  .pick-img { width: 100%; padding: 0 15px; }
  .pick-img img { margin-top: -20px; }
  .pick-text { padding: 20px 15px 0; }
}

/* ---------- 오시는길 ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.sec-location { padding: 100px 0 40px; scroll-margin-top: 186px; }
.sec-location .t-title { line-height: 1.5; margin-bottom: 40px; }
.loc-map { position: relative; height: 420px; background: #f1efea; }
.loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.loc-info {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 30px; background: #fbf9f5;
}
.loc-name { font-family: 'Noto Sans KR', sans-serif; font-size: 18px; font-weight: 700; color: #222; margin-bottom: 6px; }
.loc-addr { font-family: 'Noto Sans KR', sans-serif; font-size: 15px; color: #444; line-height: 1.6; }
.loc-sub { font-family: 'Noto Sans KR', sans-serif; font-size: 13px; color: #999; line-height: 1.7; }
.loc-sub a { color: #666; text-decoration: underline; text-underline-offset: 2px; }
.loc-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.loc-btn {
  display: inline-block; padding: 11px 22px;
  font-family: 'Noto Sans KR', sans-serif; font-size: 13px; line-height: 16px;
  color: #fff; background: #807d75; transition: filter .3s;
}
.loc-btn:hover { filter: brightness(.85); }
.loc-call { display: none; }
@media (max-width: 767px) {
  .sec-location { padding: 60px 0 20px; scroll-margin-top: 62px; }
  .sec-location .t-title { margin-bottom: 24px; }
  .loc-map { height: 300px; margin: 0 -15px; }
  .loc-info { flex-direction: column; align-items: stretch; padding: 22px 18px; margin: 0 -15px; }
  .loc-btns { justify-content: stretch; }
  .loc-btn { flex: 1; text-align: center; padding: 12px 8px; }
  .loc-call { display: inline-block; }
}

/* ---------- 푸터 (footer15) ---------- */
.site-footer { padding: 20px 0 65px; background: #fff; }
.footer-top { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-top: 15px; }
.footer-brand {
  padding-left: 15px;
  font-family: 'Roboto', 'Nanum Gothic', sans-serif; font-size: 22px; font-weight: 700;
  letter-spacing: 4px; line-height: 1.4; color: #0a0a0a;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.footer-logo { max-width: none; line-height: 0; }
.footer-logo img { height: var(--logo-h, 36px); width: auto; max-width: 60vw; }
.sns-wrap { display: flex; gap: 7px; align-items: center; }
.sns-item { width: 26px; display: flex; justify-content: center; }
.sns-item img { max-height: 22px; width: auto; }
.footer-info {
  margin-top: 15px;
  font-family: 'Noto Sans KR', sans-serif; font-size: 13px; color: #999;
  line-height: 1.6; letter-spacing: .05em;
}
@media (max-width: 767px) {
  .footer-brand { padding-left: 0; font-size: 18px; }
  .footer-info { margin-top: 20px; font-size: 12px; }
}

/* ---------- 포트폴리오 페이지 (contents88 + gallery29) ---------- */
.pf-hero {
  height: 600px; display: flex; align-items: center; justify-content: center;
  background-position: center center; background-repeat: no-repeat; background-size: cover;
  text-align: center; color: #fff;
}
.pf-hero-inner { padding: 0 15px; }
.pf-title { font-family: 'Noto Sans KR', sans-serif; font-size: 48px; font-weight: 700; line-height: 1.3; }
.pf-sub { font-family: 'Noto Sans KR', sans-serif; font-size: 14px; font-weight: 300; line-height: 1.3; }
.pf-gallery { padding: 100px 0; }
.pf-gallery .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 60px; }
/* 사진 비율: 기본 1:1 (시공 사진이 정사각형이라 사진 속 글씨가 잘리지 않음) */
.pf-gallery .g-img { aspect-ratio: 1 / var(--pf-ratio, 1); transition: box-shadow .4s ease, transform .4s ease; }
.pf-gallery .g-img img { transition: transform .8s ease-out, filter .4s ease; backface-visibility: hidden; }
/* 기본 마우스 효과: 잘림 없이 살짝 떠오름 */
.pf-gallery .g-item a:hover .g-img { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, .12); }
.pf-gallery .g-item a:hover .g-img img { filter: brightness(1.04); }
/* 확대 효과를 켠 경우 (원본 크리에이터링크 방식, 가장자리가 잘릴 수 있음) */
.pf-gallery.zoom .g-item a:hover .g-img { transform: none; box-shadow: none; }
.pf-gallery.zoom .g-img img:hover { transform: scale(1.2); }
.g-cap {
  padding: 20px 15px 1px; text-align: center;
  font-family: 'Noto Sans KR', 'Nanum Gothic', sans-serif; font-size: 15px; color: #313131;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* 사례별 "자세히 보기" 버튼 (gallery29 템플릿 버튼: 마우스 올리면 왼쪽부터 색이 채워짐) */
.g-btn-wrap { text-align: center; }
.g-btn {
  position: relative; z-index: 0; display: inline-block; overflow: hidden;
  width: 150px; max-width: 100%; margin-top: 15px; padding: 9px 5px;
  font-family: 'Noto Sans KR', 'Nanum Gothic', sans-serif; font-size: 12px; line-height: 1.4;
  color: #949599; background: #fff; border: 1px solid #d3d3d3;
  transition: color .3s ease-in-out, border-color .3s ease-in-out;
}
.g-btn::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 -1px;
  background: var(--pf-btn, #807d75);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s ease-in-out;
}
.g-item a:hover .g-btn, .g-item a:focus-visible .g-btn { color: #fff; border-color: var(--pf-btn, #807d75); }
.g-item a:hover .g-btn::before, .g-item a:focus-visible .g-btn::before { transform: scaleX(1); }

@media (max-width: 991px) { .g-cap { padding: 16px 12px 1px; } }
@media (max-width: 767px) {
  .pf-hero { height: 450px; }
  .pf-title { font-size: 34px; }
  .pf-gallery { padding: 60px 0; }
  .pf-gallery .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 32px; }
  .g-cap { padding: 10px 7.5px 1px; font-size: 13px; }
  .g-btn { margin-top: 10px; width: 120px; padding: 7px 4px; font-size: 11.5px; }
}

/* ---------- 맨 위로 버튼 ---------- */
.goto-top {
  position: fixed; right: 30px; bottom: 30px; z-index: 90;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: #e9e9e9; color: #666; border-radius: 2px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.goto-top.show { opacity: 1; pointer-events: auto; }
