/* ============================================
   Reset & Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette */
  --teal-dark: #0a4d5c;
  --teal-medium: #1a6b7a;
  --gold: #d4af37;
  --gold-light: #f4e4bc;
  --brown: #8b6f47;
  --brown-light: #a68b5b;

  /* Glass effect colors */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);

  /* Text colors */
  --text-light: #ffffff;
  --text-dark: #2c3e50;
}

body {
  font-family: 'Noto Serif JP', serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-image: url('images/Key_Visual.jpg');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--teal-dark);
  overflow-x: hidden;
  position: relative;
  padding-top: 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 77, 92, 0.95) 0%, rgba(139, 111, 71, 0.95) 100%);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.past-concept::before {
  opacity: 0.95;
}

html {
  scroll-behavior: smooth;
}

/* ============================================
   Glass Morphism & Liquid Effects
   ============================================ */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--glass-shadow),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.liquid-effect {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.liquid-effect::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: liquid-flow 8s ease-in-out infinite;
}

@keyframes liquid-flow {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(-20px, 20px) rotate(180deg);
  }
  75% {
    transform: translate(20px, 20px) rotate(270deg);
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 77, 92, 0.3);
  border-bottom: 1px solid var(--glass-border);
  width: 100%;
  display: block;
}

/* デスクトップサイズでのheader表示を明示的に確保 */
@media (min-width: 769px) {
  header {
    position: fixed !important;
    display: block !important;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  height: auto;
}

.logo img {
  height: auto;
  max-height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

/* モバイルナビは通常時非表示 */
.mobile-nav {
  display: none;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lang-btn.active {
  background: var(--gold);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
}

/* Menu Overlay */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  padding-top: 100px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  padding: 3rem;
}

.hero-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Sections
   ============================================ */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

section#hero {
  max-width: none;
  padding: 0;
  margin: 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: var(--text-light);
}

/* Concept Section */
.concept-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.concept-card {
  padding: 2rem;
}

.concept-card h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Menu Section */
.menu-list-container {
  margin-top: 3rem;
  padding: 3rem;
}

.menu-food-section {
  margin-bottom: 3rem;
}

.menu-items-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}

.menu-items-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}


.menu-section-title {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid rgba(212, 175, 55, 0.5);
  column-span: all;
  break-inside: avoid;
}

.menu-category-header {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  break-inside: avoid;
}

/* セクションタイトル直後の最初のカテゴリヘッダーは上マージンなし */
.menu-section-title + .menu-category-header {
  margin-top: 0;
}

.menu-list-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  break-inside: avoid;
  break-before: avoid;
}

.menu-list-item:last-child {
  border-bottom: none;
}

.menu-name-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.menu-name {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  flex: 1;
}

.menu-price {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-price-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  break-inside: avoid;
}

/* Access Section */
.access-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.access-info {
  padding: 2rem;
}

.access-info h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.access-info p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.social-link:hover {
  background: var(--gold);
  color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.social-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: white;
}

.social-link.line:hover {
  background: #06C755;
  border-color: #06C755;
  color: white;
}

.social-link.reservation {
  background: var(--gold);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
  order: -1;
}

.social-link.reservation:hover {
  background: var(--teal-dark);
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.social-link.reservation svg {
  width: 26px;
  height: 26px;
}

/* Hours Section */
.hours-content {
  max-width: 600px;
  margin: 3rem auto 0;
  padding: 2rem;
  text-align: center;
}

.hours-content h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.hours-content p {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 15px;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery Modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: var(--gold);
  font-size: 3rem;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
  line-height: 1;
  padding: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-close:hover {
  color: var(--text-light);
}

.gallery-modal-prev,
.gallery-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 3rem;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--gold);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gallery-modal-prev {
  left: 30px;
}

.gallery-modal-next {
  right: 30px;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
  background: var(--gold);
  color: var(--teal-dark);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Footer */
footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  margin-top: 5rem;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  margin-bottom: 0.5rem;
}

/* ============================================
   Mobile Responsive Design
   ============================================ */
@media (max-width: 768px) {
  body {
    padding-top: 0;
  }

  /* モバイル時はheader全体を非表示 */
  header {
    display: none !important;
  }

  /* デスクトップナビを非表示 */
  .desktop-nav {
    display: none !important;
  }

  /* モバイルナビをスライドメニューとして表示 */
  .mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 77, 92, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    z-index: 300;
    border-left: 1px solid var(--glass-border);
  }

  .mobile-nav.active {
    display: flex !important;
    right: 0;
  }

  .nav-links li {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a {
    display: block;
    font-size: 1.2rem;
    padding: 0.5rem 0;
  }

  .nav-links a::after {
    display: none;
  }

  .lang-toggle {
    display: none;
  }

  nav {
    background: transparent;
    padding: 0;
  }

  .menu-overlay {
    display: block;
  }

  /* Hamburger Menu - モバイルのみ表示 */
  .hamburger-menu {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 350;
    width: 60px;
    height: 60px;
    background: #d4af37;
    border: 3px solid #ffffff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
  }

  .hamburger-menu span {
    width: 100%;
    height: 4px;
    background: #0a4d5c;
    display: block;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }

  .hero {
    background-attachment: scroll;
    padding-top: 2rem;
  }

  .hero-logo {
    max-width: 200px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .menu-list-container {
    padding: 2rem;
  }

  .menu-items-grid-2col {
    grid-template-columns: 1fr;
  }

  .menu-items-grid-3col {
    grid-template-columns: 1fr;
  }

  .access-content {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 1rem;
  }

  .gallery-modal-close {
    top: 10px;
    right: 20px;
    font-size: 2rem;
    width: 40px;
    height: 40px;
  }

  .gallery-modal-prev,
  .gallery-modal-next {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .gallery-modal-prev {
    left: 10px;
  }

  .gallery-modal-next {
    right: 10px;
  }

  .gallery-modal-content {
    max-width: 95%;
    max-height: 85%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
