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

:root {
  --washi-white: #FAF7F2;
  --indigo-blue: #1B3A57;
  --matcha-green: #6FA36B;
  --warm-amber: #C98E5B;
  
  --text-primary: #2C2C2C;
  --text-secondary: #666666;
  --border-color: #E8E8E8;
  
  --font-heading: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--washi-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Centered Sections */
.centered-section {
  text-align: center;
}

.centered-section .container > * {
  text-align: center;
}

.centered-section .hero-content,
.centered-section .about-content,
.centered-section .subscription-content,
.centered-section .workshop-content {
  text-align: left;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 16px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

.section-title {
  text-align: center;
  color: var(--indigo-blue);
  margin-bottom: 48px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--matcha-green);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Header */
.header {
  background: var(--washi-white);
  padding: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--indigo-blue);
  margin: 0;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--washi-white) 0%, #F5F2ED 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-title {
  color: var(--indigo-blue);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hero-feature svg {
  flex-shrink: 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--matcha-green);
  color: white;
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  background: #5A8F5F;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(111, 163, 107, 0.3);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-main-image {
  width: 100%;
  max-width: 500px;
  height: 350px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.about-main-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.subscription-main-image,
.workshop-main-image {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.product-img,
.about-main-image svg,
.subscription-main-image svg,
.workshop-main-image svg {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.about-section-image {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-placeholder {
  width: 400px;
  height: 300px;
  background: #E8E8E8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  border: 2px dashed #CCCCCC;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--washi-white);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  margin-bottom: 24px;
}

.feature-card h4 {
  color: var(--indigo-blue);
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 80px 0;
  background: #F8F6F1;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  margin-bottom: 24px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Products Section */
.products {
  padding: 80px 0;
  background: white;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--washi-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.product-image {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0F0F0;
  border-bottom: 1px solid var(--border-color);
}

.product-image .image-placeholder {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}

.product-info {
  padding: 24px;
}

.product-info h4 {
  color: var(--indigo-blue);
  margin-bottom: 8px;
}

.product-info p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--warm-amber);
  margin-bottom: 16px;
}

.product-button {
  width: 100%;
  background: var(--indigo-blue);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.product-button:hover {
  background: #2A4A67;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: #F8F6F1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
}

.service-card {
  text-align: center;
  padding: 40px 32px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
  margin-bottom: 24px;
}

.service-card h4 {
  color: var(--indigo-blue);
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Subscription Section */
.subscription {
  padding: 80px 0;
  background: white;
}

.subscription-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.subscription-features {
  list-style: none;
  margin: 32px 0;
}

.subscription-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
}

.subscription-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--matcha-green);
  font-weight: bold;
}

/* Workshop Section */
.workshop {
  padding: 80px 0;
  background: #F8F6F1;
}

.workshop-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.workshop-details {
  margin: 32px 0;
}

.workshop-detail {
  display: flex;
  margin-bottom: 12px;
  align-items: baseline;
  gap: 16px;
}

.workshop-detail strong {
  color: var(--indigo-blue);
  min-width: 100px;
}

.workshop-detail span {
  color: var(--text-secondary);
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--washi-white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--matcha-green);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 500;
  color: var(--indigo-blue);
  font-size: 0.95rem;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: #F8F6F1;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-item strong {
  color: var(--indigo-blue);
  display: block;
  margin-bottom: 8px;
}

.contact-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.contact-form {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h4 {
  color: var(--indigo-blue);
  margin-bottom: 24px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--matcha-green);
}

.contact-form button {
  width: 100%;
  background: var(--matcha-green);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #5A8F5F;
}

/* Footer */
.footer {
  background: var(--indigo-blue);
  color: white;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo .brand-name {
  color: white;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.footer-links-section h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
}

.footer-contact h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 20px;
}

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

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  color: var(--indigo-blue);
  margin: 0;
}

.close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-button:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

#orderForm {
  padding: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--indigo-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--matcha-green);
}

.submit-button {
  width: 100%;
  background: var(--matcha-green);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-button:hover {
  background: #5A8F5F;
}

/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--indigo-blue);
  color: white;
  padding: 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-info h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.cookie-banner-info p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

.cookie-banner-info a {
  color: var(--warm-amber);
  text-decoration: underline;
}

.cookie-banner-info a:hover {
  color: white;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-accept-btn,
.cookie-reject-btn,
.cookie-customize-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-accept-btn {
  background: var(--matcha-green);
  color: white;
}

.cookie-accept-btn:hover {
  background: #5A8F5F;
}

.cookie-reject-btn {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-reject-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cookie-customize-btn {
  background: var(--warm-amber);
  color: white;
}

.cookie-customize-btn:hover {
  background: #B8804F;
}

/* Cookie Customization Panel */
.cookie-customization {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  padding: 24px;
  margin-top: 16px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.cookie-customization h4 {
  color: var(--indigo-blue);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.cookie-categories {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.cookie-category-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.cookie-category-label:hover {
  background: rgba(111, 163, 107, 0.1);
}

.cookie-category-label input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-category-name {
  font-weight: 500;
  color: var(--indigo-blue);
  display: block;
  margin-bottom: 4px;
}

.cookie-category-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: block;
}

.cookie-customization-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-save-btn,
.cookie-cancel-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-save-btn {
  background: var(--matcha-green);
  color: white;
}

.cookie-save-btn:hover {
  background: #5A8F5F;
}

.cookie-cancel-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.cookie-cancel-btn:hover {
  background: var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .hero-grid,
  .about-content,
  .subscription-content,
  .workshop-content,
  .contact-content,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .features,
  .products,
  .services,
  .subscription,
  .workshop,
  .testimonials,
  .contact {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-main-image {
    height: 250px;
  }
  
  .about-main-image,
  .subscription-main-image,
  .workshop-main-image,
  .about-section-image {
    height: 200px;
  }
  
  .image-placeholder {
    width: 100%;
    height: 250px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .footer-links {
    gap: 16px;
  }
  
  .modal {
    padding: 16px;
  }
  
  .modal-content {
    margin: 0;
  }
  
  .modal-header,
  #orderForm {
    padding: 24px;
  }
  
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .cookie-banner-buttons {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-accept-btn,
  .cookie-reject-btn,
  .cookie-customize-btn {
    width: 100%;
  }
  
  .cookie-customization-buttons {
    flex-direction: column;
  }
}