:root {
  --primary-color: #f5f1eb;
  --accent-color: #f4c2c2;
  --brown-accent: #8b6f47;
  --text-dark: #3a3026;
  --text-light: #6b5d4f;
  --white: #ffffff;
}

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background: var(--primary-color);
  line-height: 1.7;
  font-size: 16px;
}

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

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 4px solid var(--brown-accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; flex-direction: row; align-items: baseline; gap: 0.3em; line-height: 1.2; }
.logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brown-accent);
}
.logo-jp { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--brown-accent); letter-spacing: 0.05em; }

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-menu a:hover { color: var(--brown-accent); }

.header-icons { display: flex; align-items: center; gap: 14px; }
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-color);
  color: var(--white);
  font-size: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}
.hamburger span { width: 26px; height: 3px; background: var(--brown-accent); border-radius: 2px; }

/* Main / Hero */
.main-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 50px 0;
}

.slideshow {
  position: relative;
  width: 100%;
  padding-top: 75%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.store-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.store-photo.active { opacity: 1; }

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  color: var(--brown-accent);
  margin-bottom: 14px;
  line-height: 1.4;
}
.hero-text p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 26px;
}
.cta-button {
  display: inline-block;
  background: var(--brown-accent);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(139,111,71,0.3);
  transition: transform .2s;
}
.cta-button:hover { transform: translateY(-2px); }

/* Products / Menu section */
.products-section {
  background: var(--white);
  padding: 60px 0;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  text-align: center;
  color: var(--brown-accent);
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 36px;
}

.carousel-wrapper { position: relative; overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 0;
}
.carousel-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.product-card {
  flex: 0 0 33.333%;
  padding: 0 11px;
  box-sizing: border-box;
  background: var(--primary-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.product-card img { width: 100%; height: 180px; object-fit: cover; }
.product-card-body { padding: 16px; }
.product-name { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.product-description { font-size: 0.9rem; color: var(--text-light); margin-bottom: 10px; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--brown-accent); }

.carousel-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #e0d8cc;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--brown-accent);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.carousel-counter {
  display: none;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brown-accent);
  margin: 0;
}

.products-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 28px;
}

/* Gallery */
.gallery-section { padding: 60px 0; }
.gallery-carousel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-viewport {
  overflow: visible;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gallery-dots {
  display: none;
  justify-content: center;
  gap: 8px;
}
.gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(91, 69, 43, 0.25);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.gallery-dot.active {
  background: var(--brown-accent);
  transform: scale(1.08);
}

/* Location */
.location-section {
  background: var(--white);
  padding: 60px 0;
}
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.location-image img { border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.location-panel {
  position: relative;
}

.detail-list { display: flex; flex-direction: column; gap: 18px; }
.detail-item { display: flex; gap: 14px; }
.detail-item strong {
  min-width: 90px;
  font-size: 0.95rem;
  color: var(--brown-accent);
}
.detail-item p { font-size: 0.95rem; }
.detail-item a { color: var(--brown-accent); font-weight: 600; }

.detail-item-long p { font-size: 0.9rem; color: var(--text-light); }

.map-frame-wrapper {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.map-frame-wrapper iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.location-more-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 26px;
  border: 2px solid var(--brown-accent);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown-accent);
}

/* SNS */
.sns-section {
  padding: 60px 0;
  text-align: center;
}
.sns-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}
.sns-link.instagram { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af); }
.sns-link.map { background: #4285f4; }
.sns-link.tabelog { background: #ff8c00; }

/* Footer */
footer { background: var(--text-dark); color: #e8e2d8; padding: 50px 0 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
.footer-section h3 { font-size: 1.05rem; margin-bottom: 12px; color: var(--accent-color); }
.footer-section p, .footer-section a { font-size: 0.9rem; color: #c9c1b3; display: block; margin-bottom: 6px; }
.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: #978c79;
  border-top: 1px solid #524a3d;
  padding-top: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-content { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .gallery-viewport {
    overflow: hidden;
  }
  .gallery-grid {
    display: flex;
    gap: 0;
    transition: transform 0.45s ease;
    will-change: transform;
  }
  .gallery-item {
    min-width: 100%;
    flex: 0 0 100%;
  }
  .gallery-dots {
    display: flex;
  }
  .carousel-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .carousel-wrapper::-webkit-scrollbar { display: none; }
  .carousel-controls { display: flex; }
  .carousel-btn { display: inline-flex; }
  .carousel-counter { display: block; }
  .product-card {
    scroll-snap-align: start;
  }
  .location-image {
    display: none;
  }
  .location-panel {
    padding: 24px 18px;
    border-radius: 18px;
    background:
      linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
      url("../images/exterior-front.png") center center / cover no-repeat;
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: 0 8px 14px rgba(0,0,0,0.08);
  }
  .nav-menu.active { max-height: 320px; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 16px 24px; border-bottom: 1px solid #eee; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .logo-main { font-size: 1.3rem; }
  .hero-text h1 { font-size: 1.5rem; }
  .cta-button { font-size: 0.95rem; padding: 12px 22px; }
  .product-card { flex: 0 0 100%; }
  .products-note {
    max-width: 22em;
    margin: 24px auto 0;
    text-align: left;
    line-height: 1.9;
  }
  .location-panel { padding: 22px 16px; }
  .detail-item-long p { font-size: 0.9rem; }
  .map-frame-wrapper iframe { height: 250px; }
}

@media (min-width: 769px) {
  .carousel-wrapper { overflow: visible; }
  .carousel-controls {
    display: none !important;
  }
  .carousel-btn {
    display: none;
  }
  .carousel-counter {
    display: none !important;
  }
}
