* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    cursor: pointer;
}

body {
    margin : 0 auto;
    color : #102019;
    font-family: "Segoe UI", "Helvetica Neue", "Spoqa Han Sans Neo", "Sans-serif";
}

html { font-size: clamp(15px, 1.6vw, 18px); }

.inner {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 1rem;
    overflow: hidden;
}

header {
    width: 100%;
    height: 80px;
    background-color: #fff;
    position : fixed;
    top:0;
    left: 0;
    z-index: 1000;
}

.head-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.head-home {
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 1.5rem;
}

.logo-text {
  margin-left: 1rem;
}

.head-home img {
    height: 70px;
    width: auto;
    display: block;
}

.head-menu {
    display: flex;
    align-items: center;
    gap: 80px;
    font-weight: 400;
    font-size: 1.5rem;
}

section {
    width: 100%;
    background-color: #fff;
    position: relative;
}

.main {
    margin-top: 120px;
    margin-bottom: 100px;
    position: relative;
    height: 700px;
    overflow: hidden;
}

.main-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1300px; 
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.main-container {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin:  0 auto;
  height: 100%;
  background-color: rgba(26, 41, 71, 0.5); 
  z-index: 2;
}

.title-container {
    padding-top: 150px;
}

.title {
    text-align: center;
    font-size: clamp(18px, 4.5vw, 60px);
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
}

.message {
    text-align: center;
    font-size: clamp(14px, 2.6vw, 28px);
    font-weight: normal;
    font-style: italic; 
    word-spacing: 10px;
    color: #fff;
    line-height: 1.6;
}






.info-container {
  max-width: 1400px;
  display: flex;
  align-items: center;
  margin: 0px auto;
  gap: 10px;
  padding: 0 20px;
}

.info-container:nth-child(even) {
  flex-direction: row-reverse;
}

.info-image, .info-text {
  flex: 1;
  padding: 20px;
}

.info-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.info-text {
  text-align: left; 
}

.info-container:nth-child(even) .info-text {
  text-align: right; 
}

.info-text h2 {
  font-size: clamp(18px, 3.2vw, 28px);
  margin-bottom: 16px;
  color: #222;
}

.info-text p {
  font-size: clamp(14px, 2.2vw, 18px);
  color: #555;
  line-height: 1.6;
}

#backtotop {
    background-color: #777c85;
    width: 40px;
    height: 40px;
    text-align: center;

    border-radius: 20px;
    border: solid 2px #777c85;
    position: fixed;
    bottom: 30px;
    right: 30px;
    transition-property: background-color, opacity, visibility;
    transition-duration: 0.3s, 0.5s, 0.5s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

#backtotop::after {
    content: "\f102";
    font-family: FontAwesome;
    font-size: 1.3rem;
    line-height: 35px;
    color: #777c85;
}

#backtotop.show:hover {
    cursor: pointer;
    background-color: #777c85;
}

#backtotop.show {
    opacity: 1;
    visibility: visible;
    background-color: #ffffff;
}

.introduce {
    max-width: 1350px;
    margin: 60px auto 0;
    position: relative;
}

.introduce-image {
    width: 100%;
    height: 500px;
    display: block;
    margin-top: 100px;
    border-radius: 4px;
    object-fit: cover;
}

.introduce-text-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; 
    max-width: 1350px; 
}

.introduce-text-bg {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
    pointer-events: none;
}

.introduce-text {
    position: relative;
    z-index: 2;
    width: 1100px;
    margin: 0 auto;
    padding: 20px;
    color: #000000;
    font-size: clamp(10px, 2vw, 17px);
    line-height: 1.4;
    text-align: center;
}

.company-intro {
  max-width: 900px;         
  margin: 80px auto;        
  text-align: center;     
  padding: 0 20px;          
  color: #333;             
}

.company-intro p {
  font-size: clamp(14px, 2.2vw, 20px);
  line-height: 1.7;
  margin-bottom: 24px;
}

.company-intro strong {
  font-weight: 600;
  color: #111; 
}

.ms-table--props{
  table-layout: fixed;
  border-radius: 10px;
  overflow: hidden;
}
.ms-table--props thead th{
  white-space:nowrap;
}
.ms-table--props .col-feature{ width:18%; }
.ms-table--props .col-type{ width:27%; }

.ms-table--props tbody th[scope="row"]{
  text-align:center;
  background:#fafbfc;
  font-weight:700;
}

.ms-sub{ display:block; font-size:12px; color:var(--muted); margin-top:2px; }

.ms-composition{
  --bg:#ffffff;
  --ink:#1d1f24;
  --muted:#6b7280;
  --line:#e6e8eb;
  --accent:#feeb8a;           
  --accent-ink:#202020;
  --radius:14px;
  --shadow:0 6px 24px rgba(17,24,39,.06);
  background:var(--bg);
  color:var(--ink);
  margin: 40px 0;
}
.ms-table-wrap{
  margin:0 auto;
  padding:20px 16px 8px;
  max-width:980px;
  background:linear-gradient(180deg,#fff, #fafafa);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.ms-table-wrap > figcaption {
  font-size:20px;
  font-weight:700;
  letter-spacing:.01em;
  margin:4px 6px 14px;
}
.ms-table-caption{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}
.ms-table-caption .ms-source{
  font-size:13px;
  font-weight:400;
  color:var(--muted);
  margin:0;
  white-space:nowrap;
}
.ms-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border-radius:6px;
  overflow:hidden;
}
.ms-table thead th{
  background:#0f172a;             
  color:#fff;
  text-align:center;
  padding:14px 12px;
  font-weight:700;
  border-right:1px solid rgba(255,255,255,.12);
}
.ms-table thead th:last-child{border-right:none;}
.ms-table tbody th,
.ms-table tbody td{
  padding:14px 12px;
  border-bottom:1px solid var(--line);
  border-right:1px solid var(--line);
  border-left:1px solid var(--line);
  vertical-align:middle;
  text-align:center;
}
.ms-table tbody th{ text-align:center; font-weight:700; }
.ms-table tbody tr:nth-child(even):not(.is-primary){ background:#fcfcfd; }


.ms-table tbody tr.is-primary th,
.ms-table tbody tr.is-primary td{
  background:var(--accent);
  color:var(--accent-ink);
  border-color:#f1d200;
}

.ms-table tbody tr.stress th,
.ms-table tbody tr.stress td{
  color: red;
}

.ms-table .col-remark{ width:28%; }
.ms-table .remark{ font-size:14px; color:var(--muted); line-height:1.6; }


.ms-note{
  margin:12px 6px 8px;
  font-size:13px;
  color:var(--muted);
}

.ms-gallery{
  display:none;
  grid-template-columns:1fr; 
  gap:12px;
  max-width:760px;       
  margin:40px auto;  
}

.ms-gallery figure{
  margin:30px 0;
  border:1px solid var(--line);
  border-radius: 3px;
  overflow:visible;
  background:#fff;
  box-shadow:var(--shadow);
  position: relative;
}

.ms-gallery img{
  display:block;
  width:100%;
  height:auto;        
  object-fit:contain;
  transition: transform .22s ease;
  transform-origin: center top;      /* ↑ 위쪽 기준으로 커져서 캡션과 안겹침 */
  will-change: transform;
  margin-top: 20px;
}

.ms-gallery figcaption{
  padding:8px 10px;
  font-size:15px;
  color:var(--muted);
  text-align:center;
}


/* 반응형(모바일: 카드형) */
@media (max-width: 760px){
  .ms-table thead , .hide-on-mobile { display:none; }
  .ms-table, .ms-table tbody, .ms-table tr, .ms-table td, .ms-table th{ display:block; width:100%; }
  .ms-table tbody tr{ 
    background:#fff; 
    border:1px solid var(--line);
    border-radius:12px;
    margin:12px 0;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,.04);
  }
  .ms-table tbody th[scope="row"]{
    background:#0f172a; color:#fff; 
    padding:14px 16px; border:none;
  }
  .ms-table tbody tr.is-primary th[scope="row"]{
    background:var(--accent); color:var(--accent-ink);
  }
  .ms-table tbody td{
    display:flex; justify-content:space-between; gap:16px;
    border:none; border-top:1px dashed var(--line);
    padding:12px 16px;
    text-align:right;
    font-weight:600;
  }
  .ms-table tbody td::before{
    content: attr(data-label);
    color:var(--muted);
    font-weight:500;
    text-align:left;
  }
  .ms-table .remark{ border-top:1px dashed var(--line); text-align:left; }
}

@media (max-width: 480px){
  .ms-table-caption{ flex-wrap:wrap; }
  .ms-table-caption .ms-source{ white-space:normal; }
}


/* 커스텀 변수로 속도/높이/간격 조절 */
.ms-marquee{
  --h: 350px;
  --w: 700px;          /* 이미지 높이 */
  --gap: 10px;         /* 이미지 간격 */
  --speed: 40s;        /* 한 바퀴 도는 시간(느리게=크게) */

  background:#fff;
  border-top:1px solid #e6e8eb;
  padding:30px 0 0 0;      /* 띠 여백 */
}

/* 뷰포트: 양 끝 페이드(선택) + 스크롤 숨김 */
.ms-marquee__viewport{
  overflow:hidden;
  position:relative;
  /* 양 끝 페이드 효과(선택 사항) */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

/* 트랙: 가변폭 + 수평 플렉스 + 무한 애니메이션 */
.ms-marquee__track{
  display:flex;
  gap: var(--gap);
  width: max-content;
  will-change: transform;
  animation: ms-scroll var(--speed) linear infinite;
}

/* 항목(이미지 카드) */
.ms-marquee__item{
  flex: 0 0 auto;
  border:1px solid #e6e8eb;
  border-radius:2px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 6px 24px rgba(17,24,39,.06);
}

.ms-marquee__item img{
  display:block;
  height: var(--h);
  width: var(--w);           /* 가로 비율 유지 */
  object-fit: cover;     /* 필요 시 contain으로 변경 */
  transform: translateZ(0);
}

/* 핵심: 두 번 이어붙인 트랙을 절반(-50%)만큼 이동 → 완전 무한루프 */
@keyframes ms-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 모션 최소화 선호 시 애니메이션 끄기 */
@media (prefers-reduced-motion: reduce){
  .ms-marquee__track{ animation: none; }
}


.product-main {
    margin-top: 90px;
    margin-bottom: 2rem;
}

.main-image {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: block;
    justify-content: center;
}

.overlay-text {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: clamp(16px, 6vw, 80px);
    white-space: nowrap;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.overlay-text2 {
    width: 1100px;
    max-width: min(1100px, 90%);
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: clamp(12px, 2.6vw, 22px);
    text-shadow: 2px 2px 10px rgba(0,0,0,2);
}

.product-section {
    max-width: 1500px;
    margin: 5rem auto;
    padding: 0 5rem;
}

.product-type {
  font-size: clamp(16px, 2.2vw, 24px);
  margin-bottom: 1rem;
  color: #102019;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
}


.product-grid-standard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.product-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.product-grid-prestige {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.product-grid-carara {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.product-grid-calacatta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  padding-bottom : 50px;
}

.product-item {
  position: relative;
  text-align: center;
}

.product-item:hover {
  cursor: pointer;
  
}

.product-item:hover img {
  box-shadow: 10px 10px 10px 0px rgba(0, 0, 76, 0.2);
  transform: translate(0, -2px);
  transition: transform 0.3s ease;
}

.product-item {
  position: relative;
}




@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  50% {
    transform: scale(1.1) rotate(0deg);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.9);
  }
}

.badge-best.list {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #FFD700; 
  color: rgb(20, 34, 158);
  font-weight: bold;
  font-size: 10px;
  text-align: center;
  line-height: 30px;
  z-index: 10;
  animation: sparkle 1.5s infinite ease-in-out;

  border: solid 1px;

  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.product-grid-standard img {
  width: 100%;
  height: 230px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-grid-premium img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-grid-prestige img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-grid-carara img {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-grid-calacatta img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-name {
  margin-top: 0.5rem;
  font-size: clamp(13px, 1.8vw, 18px);
  color: #333;
}

body.form-page {
  background: url('../img/estimate/form.jpg') no-repeat center center fixed;
  background-size: cover;
}

.estimate-form {
  max-width: 600px;
  margin: 150px auto 80px auto;           
  padding: 40px 40px 10px 40px;               
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #f9f9f9;
}

.estimate-form h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: clamp(18px, 3vw, 24px);
}

.required-star {
  color: red;
  margin-left: 4px;
}

.estimate-form label {
  display: block;
  margin-top: 20px;
  font-weight: bold;
}

.estimate-form input,
.estimate-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: clamp(14px, 2vw, 17px);
  box-sizing: border-box;
}

.estimate-form .hint {
  margin-top: 5px;
  margin-bottom: 30px;
  font-size: 14px;
  color: #666;
}

.estimate-form .button-group {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.estimate-form button,
.estimate-form {
  padding: 12px 20px;
  font-size: clamp(14px, 2vw, 17px);
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}

.estimate-form button.email-btn {
  background-color: #4CAF50;
  color: white;
}

.status-message {
  margin-top: 20px;
  font-weight: bold;
  text-align: center;
}

.status-message.success {
  color: green;
}

.status-message.error {
  color: red;
}

.emergency-contact {
    margin-top: 3rem;
    text-align: left;
}

.emergency-contact p {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    margin: 0;
}

.emergency-contact a {
    color: #007AFF;
    text-decoration: underline;
}

#map-page .wrapper {
    margin: 0 auto;
    max-width: 1200px;
}

.store-section {
  max-width: 1200px;
  margin: 0 auto;
}

.store1-image, .samplebook-images img {
  width: 100%;
  height: auto;
  display: block;
}

.store1-image {
  margin-top: 100px;
  margin-bottom: 20px; 
}

.samplebook-images {
  display: none;
  gap: 20px;             
  align-items: center;  
}

.samplebook-images img {
  width: calc(50% - 10px);
}

#map-page .map-container iframe {
    width: 100%;
    height: 100%;
}

#map-page .map-and-image {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 2rem 0;
    height: 450px;
}

#map-page .map-container {
  width: 100%;
  height: 100%;
}

#map-page .side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

#map-page .map-info {
    width: 100%;
    margin: 1rem 0 ;
    background-color: #fff9e65e;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: row;              
    justify-content: center;   
    align-items: center;
    text-align: left;
    line-height: 1.6;
    box-sizing: border-box;
}

#map-page .map-title h2 {
    font-size: clamp(16px, 2.6vw, 22px);
    margin: 0;
    color: #27306b;
    white-space: nowrap;
    padding-right: 5rem;
}

#map-page .map-address address {
    font-size: clamp(14px, 2vw, 18px);
    font-style: normal;
    color: #27306b;
    margin: 0;
}

.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 10px;
}

.product-stack {
  max-width: 1200px;  
  margin: 0 auto;
}

.image-block {
  display: flex;
  flex-direction: column;
  align-items: center;    
  margin: 0 auto 28px;    
  text-align: center;     
}

.image-block img {
  width: 100%;
  height: auto;
  display: block;
}

.image-block figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: #666;
}

.image-block.big  { max-width: 1200px; margin-top: 70px;} 
.image-block.sub1 { max-width: 900px;  } 
.image-block.sub2 { max-width: 400px;  }

.zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed; inset: 0;
  display: none;             
  align-items: center; justify-content: center;
  z-index: 9999;
}
.lightbox.open { display: flex; }

.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
}

.lightbox__inner {
  position: relative;
  max-width: 95vw; max-height: 95vh;
  display: flex; align-items: center; justify-content: center;
}

.lightbox__viewport {
  position: relative;
  width: 95vw; max-width: 1200px;
  height: 90vh; max-height: 900px;
  overflow: hidden;
  background: #000;                 
  display: flex; align-items: center; justify-content: center;
}


.lightbox__img {
  user-select: none; -webkit-user-drag: none;
  touch-action: none;               
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--scale, 1));
  transform-origin: center center;
  cursor: default;                  
  max-width: none; max-height: none;
}


.lightbox__controls {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.lb-btn {
  border: 0; padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.9); color: #111;
  font-size: 16px; cursor: pointer;
}
.lb-btn:hover { background: #fff; }

.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;

  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 0; padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  font-size: 18px; line-height: 1;
  cursor: pointer;
}
.lb-close:hover { background: #fff; }

.product-description {
  text-align: center;
  margin: 100px 0;
}

.product-description p {
  margin: 8px 0;
  font-size: 1.1rem;
}

.product-description h1 {
  font-size: 1.3rem;
}

.interior-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 가로 최대 2칸 */
  gap: 30px;
  justify-items: center;
  margin-bottom: 100px;
}

.interior-images img {
  width: 100%;
  height: 500px; 
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.example {
text-align: right;
margin-bottom: 10px;
font-size: clamp(11px, 2vw, 17px);
}

.more-products {
  text-align: center;
  margin-bottom: 50px;
}

.browse-button {
  display: inline-block;
  margin: 10px 40px;
  padding: 12px 20px;
  background-color: #293651;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  font-size: clamp(11px, 2vw, 17px);
}

.browse-button:hover {
  background-color: #fee993;
}

html {
  scroll-behavior: smooth;
}

#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; 
  background-color: white;
  color: black;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 1000;
  pointer-events: auto;
}

#main-header.hide {
  opacity: 0;
  pointer-events: auto; 
}

#main-header.scrolled {
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#all-products, #best-products {
  scroll-margin-top: 100px; 
}

#recent-products {
  position: fixed;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 100px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
  z-index: 9999;
  transition: right 0.3s ease;
}

#recent-products.collapsed {
  right: -90px; 
}

#recent-toggle {
  position: absolute;
  top: 50%; 
  left: -15px; 
  transform: translateY(-50%); 
  width: 24px;
  height: 24px;
  background: white;
  border: 1px solid #aaa;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  z-index: 10;
}

.recent-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  text-decoration: none;
  color: #333;
  font-size: 12px;
}

.recent-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 4px;
}

.recent-item span {
  text-align: center;
  line-height: 1.2;
}

#recent-products h4 {
  font-size: 14px;
  margin: 0 0 10px 0;
  text-align: center;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2000;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 80px;
  right: 0;
  width: 200px;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1500;
}

.mobile-menu a {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  color: #273e6b;
  font-weight: bold;
}

.footer {
  background-color: #fdfdfd;
  color: #333;
  padding: 50px 350px 50px 350px;
  border-top: 2px solid #ddd;
  font-size: clamp(12px, 1.8vw, 14px);
  margin-top: 40px;
}


.footer-inner {
  display: flex;
  align-items: center;
  gap: 30px; 
  flex-wrap: nowrap;
}


.footer-logo {
  margin-right: 30px;
}
.footer-logo img { 
  max-height: 100px; 
  height: auto;
  width: auto;
}


.footer-text {
  flex: 1;
  min-width: 220px;
}


.footer-social {
  display: flex;
  align-items: center;
  gap: 35px;
  flex-shrink: 0;
  margin-left: 40px;
}


.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 9999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}


.icon {
  width: 55px;
  height: 55px;
  display: block;
}
.icon path {
  transition: fill 0.25s ease;
}


.insta .insta-path { fill: #9aa0a6; }
.naver .naver-bg { fill: #9aa0a6; }
.naver .naver-letter { fill: #ffffff; }


.social-btn:hover,
.social-btn:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  outline: none;
}


.insta:hover .insta-path { fill: url(#insta-gradient); }
.naver:hover .naver-bg { fill: #03C75A; }

@media (pointer: coarse) {
  .lightbox__controls { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .social-btn { transition: none; }
  .social-btn:hover, .social-btn:focus-visible {
    transform: none; box-shadow: none;
  }
}

@media (max-width: 768px) {
  .footer { padding: 30px 10px; }
  .footer-inner { align-items: flex-start; gap: 0px; flex-wrap: nowrap; }
  .footer-logo img { max-height: 50px; }
  .icon { width: 32px; height: 32px; }
  .social-btn { width: 48px; height: 48px; }
  .footer-social { flex-direction: column; align-items: flex-end; margin-left: auto; gap: 0px; }
  .insta .insta-path { fill: url(#insta-gradient); }
  .naver .naver-bg { fill: #03C75A; }
}



@media only screen and (min-width: 1200px) {
    .inner {
        max-width: 1200px;
    }
}

@media (max-width: 768px) {

  html, body {
    width: 100vw;
    overflow-x: hidden;
  }


  .inner,
  .main-container,
  .hero-section,
  .product-section,
  .product-detail,
  .estimate-form,
  .introduce,
  .info-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .head-menu {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-menu.show {
    display: flex;
  }

  .info-container {
    flex-direction: column !important;
    text-align: center;
  }

  .company-sections {
    flex-direction: column;
    margin: 50px auto;
  }

  .company-section {
    flex: 1 1 100%;
  }

  .value-box {
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .main-image {
    height: 300px;
    aspect-ratio: unset; 
  }

  .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


  .overlay-text2 {
    width: 80%;
  }

  .product-grid-standard img,
  .product-grid-premium img,
  .product-grid-prestige img,
  .product-grid-carara img,
  .product-grid-calacatta img {
    width: 80%;
    aspect-ratio: 4 / 3;  
    height: auto;
    object-fit: cover;
  }

  .product-stack {
    margin-top: 80px;
  }

  .interior-images {
    grid-template-columns: 1fr;
  }

  .interior-images img {
    width: 100%;
    height: auto;
  }

  .estimate-form {
    width: 100%;
    max-width: 600px;
    margin: 150px auto 60px auto; 
    padding: 24px;
    box-sizing: border-box;
  }

  .estimate-form h2 {
    font-size: 20px;
  }

  .estimate-form input,
  .estimate-form textarea {
    font-size: 15px;
  }

  .estimate-form button,
  .estimate-form {
    width: 100%;
    text-align: center;
  }

  .main {
    position: relative;
    margin-top: 80px;
    height: 300px;
    overflow: hidden;
  }

  .main-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  .main-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;  
    background-color: rgba(26, 41, 71, 0.4);
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    text-align: center;
  }

  .title {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 0.8rem;
  }

  .title-container {
    padding-top: 0px;
}

  .message {
    font-size: 0.9rem;
    color: white;
    line-height: 1.4rem;
  
  }
  

  .info-text {
    text-align: left;
  }

  .info-container:nth-child(even) .info-text {
  text-align: left; 
}

  .introduce {
    margin-top: 40px;
    position: relative;
  }

  .introduce-image {
    height: 300px;
    width: 100%;
    object-fit: cover;
    display: block;
    margin-top: 60px;
  }

  .introduce-text-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
  }

  .introduce-text-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3); 
    z-index: 1;
  }

  .introduce-text {
    position: relative;
    z-index: 2;
    padding: 1rem;
    color: #000;
    width: 90%;

  }

  .product-description p {
  margin: 8px 0;
  font-size: 0.8rem;
}

.product-description h1 {
  font-size: 1rem;
}

.samplebook-images {
  flex-direction: column;
  gap: 15px;
}
.samplebook-images img {
  width: 100%;
}

  #map-page .map-and-image,
  #map-page .map-info {
    flex-direction: column;
    height: auto; 
    align-items: center; 
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box;
  }

  #map-page .store1-image {
    height: 300px;
    margin-top: 60px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box;
  }

  #map-page .map-container,
  #map-page .side-image {
    width: 100%;
    height: 300px;
  }

  #map-page .side-image {
    object-fit: cover;
    aspect-ratio: 3 / 2; 
  }

#backtotop {
    width: 30px;
    height: 30px;
    border: solid 1px #273e6b;
    bottom: 5px;
    right: 10px;
}

#backtotop::after {
    content: "\f102";
    font-family: FontAwesome;
    font-size: 1rem;
    line-height: 30px;
    color: #273e6b;
}

.best-title-container .arrow-container {
   display: none; 
}

}


/* =========================
   시공사례 공통 레이아웃
   ========================= */

.case-page,
.case-view {
  padding: 90px 0;
}

.case-container {
  width: min(1400px, 94%);
  margin: 0 auto;
}

/* 공통 제목 기본 (크기 없음) */
.case-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* =========================
   시공사례 목록 페이지
   ========================= */

.case-list-title {
  margin: 70px auto 10px;
  font-size: 24px;
  display: inline-block;

  padding: 10px 28px;
  border: 2px solid #ffb84f;   
  border-radius: 999px;    
  background-color: #fafafa;
  
  text-align: center;
  font-weight: 600;
}

.case-desc {
  margin: 0 0 20px;
  color: #666;
  font-size: 18px;
}

/* 썸네일 그리드 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}


.case-item {
  position: relative;          
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}


.case-item img {
  width: 100%;
  aspect-ratio: 5 / 4;         
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.case-item-title {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;

  padding: 15px 18px;
  font-size: 17px;
  font-weight: 350;
  letter-spacing: -0.01em;

  color: #fff;

background-color: rgba(120, 120, 120, 0.55);
text-align: center;
border-top: 1px solid rgba(255,255,255,0.12);
}


/* hover 효과 */
@media (hover:hover) and (pointer:fine) {
  .case-item img {
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .case-item:hover img {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  }
}

/* =========================
   시공사례 상세 페이지
   ========================= */

.case-view-title {
  margin: 48px 0 6px;   /* 위 여백 */
  font-size: 24px;
}

.case-subtitle {
  margin: 0 0 36px;
  font-size: 18px;
  color: #666;
}

/* 목록으로 버튼 */
.case-back {
  display: block;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 999px;
  text-decoration: none;
  color: #222;
  font-weight: 600;
}

.case-back:hover {
  text-decoration: underline;
}

/* 상세 이미지 나열 */
.case-gallery {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 40px;
}

.case-photo {
  max-width: 1200px;
  margin: 0 auto; 
  border-radius: 5px;
  overflow: hidden;
}

.case-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}



/* 반응형 */
@media (max-width: 1300px) {
  .case-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1000px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-list-title { font-size: 18px; }
  .case-desc { font-size: 13px; }
  .case-item-title { font-size: 13px; }

  .case-view-title { font-size: 18px; margin-top: 32px; }
  .case-subtitle { font-size: 13px; margin-bottom: 28px; }

  .case-back { font-size: 13px; padding: 8px 14px; }
}
@media (max-width: 420px) {
  .case-grid { grid-template-columns: 1fr; }
  .case-page,
  .case-view { padding: 70px 0; }

}