/* ===========================
   CSS compiled from SCSS
   ========================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  margin: 0;
  padding: 0;
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
}

body {
  font-family: 'Noto Sans KR', 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #0A0A0A;
  background-color: #FAFAF8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.2;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  background: #E8EAE6;
  position: relative;
  /* 이미지 로딩 최적화 */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* 로딩 플레이스홀더 */
img[loading="lazy"] {
  background: linear-gradient(45deg, 
    rgba(201, 169, 97, 0.05) 25%, 
    transparent 25%, 
    transparent 75%, 
    rgba(201, 169, 97, 0.05) 75%),
  linear-gradient(45deg, 
    rgba(201, 169, 97, 0.05) 25%, 
    transparent 25%, 
    transparent 75%, 
    rgba(201, 169, 97, 0.05) 75%);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

/* 이미지 로딩 완료시 배경 제거 */
img[loading="lazy"]:not([src*="placeholder"]) {
  background: none;
}

main > :last-child,
body > section:last-of-type {
  margin-bottom: 0 !important;
}

[style*="translateY"], 
[class*="parallax"], 
.floating,
.hero__content {
  will-change: transform;
}

.hero,
.menu__slider {
  overflow: hidden;
}

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

.container {
  max-width: 1400px;
  padding: 0 80px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }
}

.content-primary { 
  width: 61.8%; 
}

.content-secondary { 
  width: 38.2%; 
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(10, 10, 10, 0.1);
}

.nav__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

@media (max-width: 768px) {
  .nav__container {
    padding: 0 40px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .nav__container {
    padding: 0 20px;
    height: 60px;
  }
}

.nav__logo-jp {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(10, 10, 10, 0.95);
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.nav__logo:hover .nav__logo-jp {
  color: #C9A961;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.nav__menu {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .nav__menu {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .nav__menu {
    gap: 20px;
  }
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(10, 10, 10, 0.9);
  text-decoration: none;
  letter-spacing: 0.05em;
  position: relative;
  transition: all 0.3s ease;
  padding: 5px 0;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C9A961;
  transition: width 0.3s ease;
}

.nav__link:hover {
  color: #C9A961;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--active {
  color: #C9A961;
}

@media (max-width: 480px) {
  .nav__link {
    font-size: 0.85rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #0A0A0A;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(201, 169, 97, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(201, 169, 97, 0.05) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(250, 250, 248, 0.02) 0%, transparent 70%);
  z-index: 0;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, transparent 100%);
  z-index: 2;
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 0 20px;
  z-index: 3;
}

.hero__title .jp {
  display: block;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: #FAFAF8;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero__title .en {
  display: block;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: #FAFAF8;
  opacity: 0.9;
  letter-spacing: 0.1em;
  font-family: 'Noto Sans KR', 'Noto Sans JP', sans-serif;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid #FAFAF8;
  border-radius: 20px;
  opacity: 0.7;
  z-index: 3;
}

.scroll-indicator__wheel {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: #FAFAF8;
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* Philosophy Section */
.philosophy {
  padding: 120px 0;
  background: #FAFAF8;
}

@media (max-width: 768px) {
  .philosophy {
    padding: 80px 0;
  }
}

.philosophy__grid {
  display: grid;
  grid-template-columns: 38.2% 61.8%;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .philosophy__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.philosophy__image {
  position: relative;
  overflow: hidden;
  background: #E8EAE6;
  min-height: 400px;
}

.philosophy__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.philosophy__image:hover img {
  transform: scale(1.02);
  filter: brightness(1.05) contrast(1.05);
}

.philosophy__text {
  padding-left: 40px;
}

@media (max-width: 768px) {
  .philosophy__text {
    padding-left: 0;
  }
}

.philosophy__line {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #0A0A0A;
  font-weight: 300;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.philosophy__line:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .philosophy__line {
    white-space: normal;
    font-size: clamp(1rem, 4vw, 1.2rem);
  }
}

/* Space Section */
.space {
  padding: 120px 0;
  background: #F5F0E8;
}

@media (max-width: 768px) {
  .space {
    padding: 80px 0;
  }
}

.space__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 768px) {
  .space__gallery {
    grid-template-columns: 1fr;
    padding: 0 40px;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .space__gallery {
    padding: 0 20px;
  }
}

.space__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #E8EAE6;
  min-height: 300px;
}

.space__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.space__item:hover img {
  transform: scale(1.05);
}

.space__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(10,10,10,0.8), transparent);
  color: #FAFAF8;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.space__item:hover .space__caption {
  transform: translateY(0);
}

/* Menu Section */
.menu {
  padding: 120px 0;
  background: #0A0A0A;
  color: #FAFAF8;
}

@media (max-width: 768px) {
  .menu {
    padding: 80px 0;
  }
}

.menu__container {
  max-width: 100%;
  position: relative;
}

.menu__title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  text-align: center;
  margin-bottom: 80px;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .menu__title {
    margin-bottom: 60px;
  }
}

.menu__slider {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.menu__track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 60px;
}

@media (max-width: 768px) {
  .menu__track {
    gap: 40px;
  }
}

.menu__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.menu__progress {
  flex: 1;
  height: 2px;
  background: rgba(250, 250, 248, 0.2);
  margin: 0 20px;
  position: relative;
  overflow: hidden;
}

.menu__progress-bar {
  height: 100%;
  background: #C9A961;
  transition: width 0.5s ease;
  width: 14.28%;
}

.menu__nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu__nav-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(250, 250, 248, 0.3);
  color: #FAFAF8;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.menu__nav-btn:hover {
  border-color: #C9A961;
  color: #C9A961;
}

.menu__nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.menu__nav-btn:disabled:hover {
  border-color: rgba(250, 250, 248, 0.3);
  color: #FAFAF8;
}

.menu__counter {
  color: rgba(250, 250, 248, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  min-width: 60px;
  text-align: center;
}

.menu__course {
  flex: 0 0 350px;
  padding: 40px;
  background: rgba(250, 250, 248, 0.05);
  border: 1px solid rgba(250, 250, 248, 0.1);
  transition: all 0.3s ease;
}

.menu__course:hover {
  background: rgba(250, 250, 248, 0.1);
  transform: translateY(-5px);
}

@media (max-width: 480px) {
  .menu__course {
    flex: 0 0 280px;
    padding: 30px;
  }
}

.menu__course-number {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #C9A961;
  font-family: 'Playfair Display', serif;
}

.menu__course-title {
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 400;
}

.menu__course-subtitle {
  font-size: 1rem;
  color: rgba(250, 250, 248, 0.7);
  margin-bottom: 30px;
  font-family: 'Noto Sans KR', 'Noto Sans JP', sans-serif;
}

.menu__course-details .ingredients {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: rgba(250, 250, 248, 0.8);
}

.menu__course-details .wine-pairing {
  font-size: 0.9rem;
  color: #C9A961;
  font-style: italic;
}

/* Testimonials Section */
.testimonials {
  padding: 120px 0;
  background: #FAFAF8;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(201, 169, 97, 0.1) 20%, rgba(201, 169, 97, 0.2) 50%, rgba(201, 169, 97, 0.1) 80%, transparent 100%);
}

.testimonials::after {
  content: '';
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: #C9A961;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .testimonials {
    padding: 80px 0;
  }
}

.testimonials .haiku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .testimonials .haiku-grid {
    gap: 60px;
  }
}

@media (max-width: 480px) {
  .testimonials .haiku-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.testimonials .haiku {
  text-align: center;
  position: relative;
  padding: 40px 30px;
}

.testimonials .haiku::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 169, 97, 0.2), transparent);
}

.testimonials .haiku::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(120, 120, 120, 0.1), transparent);
}

.testimonials .haiku:hover {
  transform: translateY(-3px);
  transition: transform 0.3s ease;
}

.testimonials .haiku:hover::before {
  width: 90%;
  background: linear-gradient(to right, transparent, rgba(201, 169, 97, 0.4), transparent);
}

.testimonials .haiku__line {
  font-size: 1.3rem;
  line-height: 2;
  color: #0A0A0A;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
}

.testimonials .haiku__line:nth-child(1) { animation-delay: 0.1s; }
.testimonials .haiku__line:nth-child(2) { animation-delay: 0.2s; }
.testimonials .haiku__line:nth-child(3) { animation-delay: 0.3s; }

.testimonials .haiku__author {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #787878;
  font-style: normal;
  letter-spacing: 0.1em;
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.4s forwards;
}

.testimonials .haiku__author::before {
  content: '◯';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #C9A961;
  opacity: 0.5;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  padding: 60px 0 20px;
  background: #0A0A0A;
  color: #FAFAF8;
  margin-top: auto;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-bottom: 40px;
}

@media (max-width: 480px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer__info h3,
.footer__contact h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.footer__info p,
.footer__contact p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(250, 250, 248, 0.8);
}

.footer__info p:first-of-type,
.footer__contact p:first-of-type {
  color: #C9A961;
  font-size: 1rem;
  margin-bottom: 10px;
}

.footer__bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(250, 250, 248, 0.1);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.85rem;
  color: rgba(250, 250, 248, 0.6);
}

/* Reservation Orb */
.reservation-orb {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 80px;
  height: 80px;
  background: #C9A961;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  overflow: hidden;
}

@media (max-width: 480px) {
  .reservation-orb {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }
}

.reservation-orb:hover {
  background: #B8924A;
  transform: scale(1.1);
}

.reservation-orb__default {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.reservation-orb__pulse {
  display: block;
  width: 20px;
  height: 20px;
  background: #FAFAF8;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.reservation-orb__hover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FAFAF8;
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reservation-orb:hover .reservation-orb__hover {
  opacity: 1;
}

.reservation-orb:hover .reservation-orb__default {
  opacity: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(250, 250, 248, 0.4);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(250, 250, 248, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(250, 250, 248, 0);
  }
}

/* Reservation Modal */
.reservation-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.9);
  z-index: 1000;
  overflow-y: auto;
}

.reservation-modal.active {
  display: block;
}

.reservation-modal__content {
  position: relative;
  max-width: 600px;
  margin: 50px auto;
  padding: 60px;
  background: #FAFAF8;
}

@media (max-width: 480px) {
  .reservation-modal__content {
    margin: 20px;
    padding: 40px 20px;
  }
}

.reservation-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  color: #787878;
  transition: color 0.3s ease;
}

.reservation-modal__close:hover {
  color: #0A0A0A;
}

.reservation-modal h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 0.1em;
}

/* Form Styles */
.reservation-form .form-group {
  margin-bottom: 25px;
}

.reservation-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #787878;
  letter-spacing: 0.05em;
}

.reservation-form .form-group input,
.reservation-form .form-group select,
.reservation-form .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: #FAFAF8;
  border: 1px solid #E8EAE6;
  font-family: 'Noto Sans KR', 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.reservation-form .form-group input:focus,
.reservation-form .form-group select:focus,
.reservation-form .form-group textarea:focus {
  outline: none;
  border-color: #C9A961;
}

.reservation-form .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.reservation-form .btn-submit {
  width: 100%;
  padding: 16px;
  background: #C9A961;
  color: #FAFAF8;
  border: none;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reservation-form .btn-submit:hover {
  background: #B8924A;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}