/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@300;400;500;700&display=swap');

/* Base Styles */
:root {
  /* Color Palette */
  --cedar-dark: #6b4423;
  --cedar-medium: #9c6644;
  --cedar-light: #d9b99b;
  --off-white: #f8f5f2;
  --charcoal: #333333;
  --slate: #6d7a8c;
  --beige: #eae0d5;
  --accent: #dc3545;
  
  /* Typography */
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background-color: var(--off-white);
  line-height: 1.6;
}

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

/* Logo and Branding */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md) 0;
}

.logo {
  width: 80px;
  height: 80px;
  margin-bottom: var(--spacing-md);
}

.logo.small {
  width: 40px;
  height: 40px;
}

.brand-name {
  text-align: center;
  margin: 0;
  padding: 0;
}

.brand-name .ja {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--cedar-dark);
}

.brand-name .en {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--cedar-medium);
  margin-top: var(--spacing-xs);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background-color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2rem;
  margin: var(--spacing-lg) 0 var(--spacing-md);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--cedar-medium);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .brand-name .ja {
    font-size: 2rem;
  }
  
  .brand-name .en {
    font-size: 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 60px;
    height: 60px;
  }
  
  .brand-name .ja {
    font-size: 1.75rem;
  }
  
  .brand-name .en {
    font-size: 0.9rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

a {
  color: var(--cedar-medium);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--cedar-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 500;
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-sm);
}

.ja {
  display: block;
}

.en {
  display: block;
  font-size: 0.85em;
  color: var(--slate);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--cedar-medium);
}

/* Section Styling */
section {
  padding: var(--spacing-xl) 0;
}

section:nth-child(even) {
  background-color: white;
}

/* About Section */
.about-content, 
.philosophy-content,
.interior-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

@media (max-width: 768px) {
  .about-content, 
  .philosophy-content,
  .interior-content {
    grid-template-columns: 1fr;
  }
  
  .philosophy-content {
    flex-direction: column-reverse;
  }
}

/* Seasonal Section */
.seasonal-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.seasonal-item {
  text-align: center;
}

.seasonal-item h3 {
  margin-top: var(--spacing-sm);
}

/* Products Section */
.products-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.product-item {
  background-color: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
}

.product-details {
  padding: var(--spacing-md);
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cedar-dark);
  margin: var(--spacing-sm) 0;
}

.call-button {
  display: inline-block;
  background-color: var(--cedar-medium);
  color: white;
  border: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background-color 0.3s ease;
}

.call-button:hover {
  background-color: var(--cedar-dark);
  color: white;
}

.call-button.large {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: 1.1rem;
}

/* Interior Section */
.interior-item {
  margin-bottom: var(--spacing-md);
}

/* Reservation Section */
.reservation-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.reservation-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin: var(--spacing-md) 0;
}

@media (max-width: 768px) {
  .reservation-details {
    grid-template-columns: 1fr;
  }
}

.reservation-item {
  text-align: left;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

.contact-item {
  margin-bottom: var(--spacing-md);
}

.map-container {
  height: 300px;
}

/* Footer */
footer {
  background-color: var(--cedar-dark);
  color: white;
  padding: var(--spacing-lg) 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.footer-brand {
  margin-left: var(--spacing-sm);
  color: white;
}

.footer-brand .en {
  color: var(--cedar-light);
}

.copyright {
  font-size: 0.9rem;
  color: var(--cedar-light);
}

/* Image Styling */
.rounded-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-image,
.philosophy-image,
.interior-image {
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.seasonal-item img {
  height: 250px;
  width: 100%;
  margin-bottom: var(--spacing-sm);
}

.product-item img {
  height: 300px;
  width: 100%;
  margin-bottom: 0;
}

.map-container img {
  height: 300px;
  width: 100%;
}

@media (max-width: 768px) {
  .about-image,
  .philosophy-image,
  .interior-image {
    height: 300px;
  }

  .seasonal-item img {
    height: 200px;
  }

  .product-item img {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .about-image,
  .philosophy-image,
  .interior-image {
    height: 250px;
  }

  .seasonal-item img {
    height: 180px;
  }

  .product-item img {
    height: 200px;
  }
}

/* Image Placeholders */
.image-placeholder {
  background-color: var(--cedar-light);
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 4px;
  position: relative;
}

.image-placeholder.large {
  height: 350px;
}

.map-placeholder {
  background-color: var(--slate);
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 4px;
}

.placeholder-text {
  font-weight: 500;
  font-size: 1.25rem;
}

.placeholder-text-en {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  :root {
    --spacing-xl: 6rem;
    --spacing-lg: 3rem;
  }
  
  .hero {
    height: auto;
    min-height: 80vh;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-lg: 2.5rem;
    --spacing-md: 1.5rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .image-placeholder,
  .image-placeholder.large {
    height: 200px;
  }
}

@media (max-width: 576px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
  }
  
  .logo-container {
    flex-direction: column;
  }
  
  .logo {
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--off-white);
  border-top: 2px solid var(--cedar-light);
  padding: var(--spacing-md);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  font-family: var(--font-sans);
}

.cookie-banner.hidden {
  display: none;
}

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

.cookie-text {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.cookie-text .ja {
  display: block;
  margin-bottom: var(--spacing-xs);
}

.cookie-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.cookie-button {
  padding: var(--spacing-xs) var(--spacing-md);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.cookie-button.accept {
  background-color: var(--cedar-medium);
  color: white;
}

.cookie-button.accept:hover {
  background-color: var(--cedar-dark);
}

.cookie-button.reject {
  background-color: var(--slate);
  color: white;
}

.cookie-button.reject:hover {
  background-color: var(--charcoal);
}

.cookie-button.customize {
  background-color: transparent;
  border: 1px solid var(--cedar-medium);
  color: var(--cedar-medium);
}

.cookie-button.customize:hover {
  background-color: var(--cedar-light);
  color: var(--cedar-dark);
}

.cookie-preferences {
  display: none;
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--cedar-light);
}

.cookie-preferences.visible {
  display: block;
}

.cookie-option {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xs);
}

.cookie-option label {
  margin-left: var(--spacing-xs);
  cursor: pointer;
}

.cookie-option input[type="checkbox"] {
  cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.cookie-option.required {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-button {
    width: 100%;
    text-align: center;
    padding: var(--spacing-sm);
  }
}