/* === 1. 기본 설정 (Variables & Reset) === */
:root {
  --color-bg: #f9f7f2; /* 한지색 */
  --color-main: #1f2a3c; /* 쪽빛 (진한 남색) */
  --color-accent: #a64452; /* 연지색 (포인트) */
  --color-text: #2c2c2c; /* 먹색 (본문) */
  --color-border: #e5e0d8;

  --font-serif: "Noto Serif KR", serif;
  --font-sans: "Pretendard", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}

/* 공통 레이아웃 */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/*quick 시작*/
.quick {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  grid-gap: 6px;
}

.quick a.call {
  background-color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  display: block;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.quick a.call i {
  font-size: 24px;
  line-height: 50px;
}

.quick button {
  display: block;
  text-align: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #333;
  margin-top: 6px;
  color: #fff;
}

/*quick 끝//*/

/* 배경 텍스처 */
.bg-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://www.transparenttextures.com/patterns/asanoha-400px.png");
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}

/* === 2. 헤더 & 네비게이션 === */
.top-bar {
  background-color: var(--color-main);
  color: white;
  text-align: center;
  font-size: 12px;
  padding: 8px 0;
  letter-spacing: 0.1em;
  font-family: var(--font-serif);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(249, 247, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
  height: 60px;
}

.navbar.scrolled {
  height: 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-content {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 120px;
}

.logo span {
  font-size: 12px;
  color: var(--color-accent);
  vertical-align: top;
}

.nav-links {
  display: none; /* 모바일 숨김 */
}
.mobile-menu-btn {
  font-size: 22px;
}
@media (min-width: 1024px) {
  .logo img {
    width: 170px;
  }
  .nav-links {
    display: flex;
    gap: 40px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .nav-links li:hover {
    color: var(--color-accent);
  }

  .mobile-menu-btn {
    display: none;
  }

  .nav-links a {
    font-size: 16px;
  }
}

.nav-icons {
  display: flex;
  gap: 20px;
}
.nav-icons button:hover {
  color: var(--color-accent);
}

/* === 모바일  === */
@media (max-width: 1023px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .nav-links a {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--color-main);
  }
}

/* 메뉴 내려오는 애니메이션 */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === 3. 히어로 섹션 === */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--color-border);
  min-height: calc(100vh - 80px);
  background: url(../img/tt.jpg) center;
  background-size: 210%;
  animation: herobg 4s alternate;
}
@keyframes herobg {
  0% {
    background-size: 210%;
  }
  100% {
    background-size: 200%;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    background-size: 110%;
  }
  .hero-text {
    order: 1;
  } /* 왼쪽 */
  .hero-image {
    order: 2;
  } /* 오른쪽 */
  @keyframes herobg {
    0% {
      background-size: 110%;
    }
    100% {
      background-size: 100%;
    }
  }
}

.hero-text {
  position: relative;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.decoration-line {
  display: none;
  position: absolute;
  top: 40px;
  left: 40px;
}
.decoration-flower {
}

@media (min-width: 1024px) {
  .sub-title {
    font-size: 15px;
  }
}

.sub-title {
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 26px;
  opacity: 0.6;
}

.main-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 32px;
}
.main-title .italic {
  font-style: italic;
}

@media (min-width: 1024px) {
  .main-title {
    font-size: 72px;
  }
}

.desc {
  color: rgba(44, 44, 44, 0.7);
  margin-bottom: 40px;
  max-width: 450px;
}

.btn-group {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 16px 32px;
  font-size: 14px;
  letter-spacing: 0.1em;
  transition: 0.3s;
}

.btn-primary {
  background-color: var(--color-main);
  color: white;
}
.btn-primary:hover {
  background-color: var(--color-accent);
}

.btn-outline {
  border: 1px solid var(--color-main);
  color: var(--color-main);
}
.btn-outline:hover {
  background-color: var(--color-main);
  color: white;
}

.hero-image {
  position: relative;
  overflow: hidden;
  height: 50vh; /* 모바일 높이 */
}
@media (min-width: 1024px) {
  .hero-image {
    height: auto;
  }
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2s;
}
.hero-image:hover img {
  transform: scale(1.05);
}

.image-overlay-text {
  position: absolute;
  bottom: 40px;
  right: 40px;
  text-align: right;
  color: white;
  z-index: 10;
}
.image-overlay-text .small {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.image-overlay-text .large {
  font-size: 24px;
  font-family: var(--font-serif);
}

/* === 4. 마키 (흐르는 텍스트) === */
.marquee-wrap {
  background-color: var(--color-main);
  color: var(--color-bg);
  overflow: hidden;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  opacity: 0.8;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* === 5. 상품 섹션 === */
.product-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 29px;
  color: var(--color-main);
  margin-bottom: 8px;
}
.section-header p {
  color: rgba(44, 44, 44, 0.6);
}

.view-all {
  display: none;
  border-bottom: 1px solid var(--color-main);
  padding-bottom: 4px;
  font-size: 14px;
}
@media (min-width: 768px) {
  .view-all {
    display: inline-block;
  }

  .marquee-content {
    font-size: 18px;
  }
}
.view-all:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 32px;
}
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* === 5. 상품 섹션 === */
  .product-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }
  .section-header h2 {
    font-size: 36px;
  }
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 어바웃 */
.about {
  display: grid;
  grid-template-columns: 1fr;
}
.about .left {
  background: url(../img/about_1.jpg) center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70vh;
  position: relative;
}
.about .right {
  background: url(../img/about_2.jpg) center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70vh;
  position: relative;
}
.about_marker {
  font-size: 16px;
  opacity: 0.6;
  letter-spacing: -1px;
  position: absolute;
  color: #fff;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .about {
    grid-template-columns: 1fr 1fr;
  }
  .about .left,
  .about .right {
    height: 100vh;
  }
}

/* 상품 카드 */
.product-card {
  cursor: pointer;
}

.img-box {
  position: relative;
  aspect-ratio: 3 / 4;
  background-color: #ededed;
  overflow: hidden;
  margin-bottom: 24px;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.7s;
}
.product-card:hover .img-box img {
  transform: scale(1.1);
}

.quick-view {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 90%;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 12px;
  font-size: 12px;
  font-weight: bold;
  color: var(--color-main);
  text-transform: uppercase;
  opacity: 0;
  transition: 0.3s;
}
.product-card:hover .quick-view {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
}
.badge-red {
  background-color: var(--color-accent);
}
.badge-blue {
  background-color: var(--color-main);
}
.badge-gray {
  left: auto;
  right: 16px;
  background: none;
  border: 1px solid #ccc;
  color: #999;
}

.info-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.info-box h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--color-main);
  margin-bottom: 4px;
}
.info-box p {
  font-size: 14px;
  color: gray;
}
.info-box .price {
  font-family: var(--font-serif);
  color: var(--color-main);
}

/* === 6. 스토리 섹션 === */
.story-section {
  position: relative;
  overflow: hidden;
  background: #3b3b3b;
}

.story-grid {
  display: flex;
  gap: 0px;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.item {
  flex: 1;
  padding: 20px;
  transition: all 0.5s ease;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
}

.item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.story-grid .item:nth-child(1)::before {
  background-image: url("../img/story_bg_1.jpg");
}
.story-grid .item:nth-child(2)::before {
  background-image: url("../img/story_bg_2.jpg");
}
.story-grid .item:nth-child(3)::before {
  background-image: url("../img/story_bg_3.jpg");
}

.story-text {
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 15px;
  position: relative;
  z-index: 10;
  color: #fff;
  padding: 4rem;
}

/* 기본 */
.item:first-child {
  flex: 2;
}
.item:first-child .story-text {
  opacity: 1;
}

/* [호버 시 로직] */

.story-grid:hover .item {
  flex: 1;
}
.story-grid:hover .story-text {
  opacity: 0;
}

/* 호버시 */
.story-grid .item:hover {
  flex: 4;
}
.story-grid .item:hover .story-text {
  opacity: 1;
}

.story-text .label {
  letter-spacing: 0.3em;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
  opacity: 0.7;
}
.story-text h2 {
  font-size: 43px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 36px;
  font-weight: 600;
}
.story-text .divider {
  width: 100px;
  height: 1px;
  margin-bottom: 32px;
}
.story-text p {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.7;
  margin-bottom: 40px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--color-main);
  padding-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.link-arrow:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* 반응형 */
@media (max-width: 1024px) {
  .story-grid {
    flex-direction: column;
    height: auto;
  }
  .item {
    flex: none !important;
    height: 250px;
  }
  .story-text {
    opacity: 1 !important;
  }
  .story-grid {
    flex-direction: column;
    height: auto;
  }

  .item {
    flex: none !important;
    width: 100%;
    height: 550px;
    padding: 30px 20px;
  }

  .story-text {
    opacity: 1 !important;
    transform: none !important;
    margin-top: 0;
    padding: 2rem !important;
  }

  .story-grid:hover .item,
  .story-grid .item:hover {
    flex: none !important;
    height: 550px;
  }

  .story-grid:hover .story-text {
    opacity: 1 !important;
  }

  .story-text h2 {
    font-size: 35px;
  }
  .story-grid .item2,
  .story-grid .item3 {
    display: none;
  }
  .story-text p {
    font-size: 17px;
  }
}

/* === 7. 위치 섹션 === */
.location-section {
  display: grid;
  grid-template-columns: 1fr;
  height: auto;
}
@media (min-width: 1024px) {
  .location-section {
    grid-template-columns: 1fr 1fr;
    height: 500px;
  }
}

.map-area {
  position: relative;
  background: #eee;
  height: 300px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .map-area {
    height: 100%;
  }
}

.map-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.5s;
}
.map-area:hover img {
  filter: grayscale(0%);
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 42, 60, 0.2);
  transition: 0.3s;
}
.map-area:hover .map-overlay {
  background: transparent;
}

.map-overlay button {
  background: white;
  color: var(--color-main);
  padding: 12px 24px;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}
.map-overlay button:hover {
  background: var(--color-accent);
  color: white;
}

.info-area {
  background-color: var(--color-main);
  color: var(--color-bg);
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.info-area h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  margin-bottom: 32px;
}
.info-area ul {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.05em;
}
.info-area li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.info-area .label {
  width: 80px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.5);
}

/* === 8. 푸터 === */
.footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 64px;
}
@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo img {
  max-width: 120px;
  display: block;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 12px;
  color: gray;
}

.footer-top h4 {
  font-size: 15px;
  font-weight: normal;
  color: #555;
  list-style: -1px;
}

.footer-top i.fa {
  color: var(--color-accent);
}

.footer-links {
  display: flex;
  gap: 64px;
}
.footer-links h4 {
  font-weight: bold;
  margin-bottom: 16px;
  color: var(--color-main);
}
.footer-links ul li {
  margin-bottom: 8px;
}
.footer-links a {
  color: gray;
}
.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #999;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.legal-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .legal-links {
    margin-top: 0;
  }
}

/* === 애니메이션 클래스 === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
