:root {
  --primary-color: #1a1a1a;
  --secondary-color: #5a9fa6;
  --accent-color: #5a9fa6;
  --background-color: #faf9f7;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #666;
  --border-color: #e5e5e5;
}

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

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-color);
}

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

/* Logo and Brand */
.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo svg {
  width: auto;
  height: auto;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
}

.brand-name a {
  text-decoration: none;
  color: inherit;
}

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

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.hero-text {
  text-align: left;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

.hero-image {
  text-align: center;
}

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

.cta-button {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.cta-button:hover {
  background-color: #4a8a8f;
  transform: translateY(-2px);
}

/* Section Styles */
section {
  padding: 80px 0;
}

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

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-dark);
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 15px;
  color: var(--text-dark);
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-dark);
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Centered sections */
.about,
.services,
.products,
.technology,
.craftsmanship,
.sustainability,
.b2b-services,
.contact {
  text-align: center;
}

.about .section-content,
.services .container,
.products .container,
.technology .container,
.craftsmanship .container,
.sustainability .container,
.b2b-services .container,
.contact .container {
  text-align: center;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.about-item {
  text-align: center;
  padding: 30px 20px;
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Products Section */
.products {
  background-color: var(--background-color);
}

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

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

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

.product-image {
  height: 220px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-img {
  color: var(--text-light);
  font-size: 1rem;
}

.product-card h3,
.product-card p {
  padding: 0 20px;
}

.product-card h3 {
  padding-top: 20px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary-color);
  padding: 0 20px;
  margin-bottom: 10px;
}

.product-btn {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  margin: 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
  font-family: inherit;
}

.product-btn:hover {
  background-color: #4a8a8f;
}

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

.tech-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 40px;
}

.tech-text {
  text-align: left;
}

.tech-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.tech-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

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

/* Craftsmanship Section */
.craft-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.craft-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.craft-text {
  text-align: left;
}

.craft-content ul {
  margin-top: 30px;
}

.craft-content li {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.craft-content li::before {
  content: '✓';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
}

/* Sustainability Section */
.sustain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.sustain-item {
  text-align: center;
  padding: 20px;
}

/* B2B Services */
.b2b-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.b2b-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.b2b-option {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Contact Section */
.contact {
  background-color: var(--white);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-item {
  text-align: center;
  padding: 20px;
}

.contact-item a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-item small {
  color: var(--text-light);
  font-size: 0.9rem;
  display: block;
  margin-top: 5px;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 50px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
  align-items: start;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-description {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 15px;
  line-height: 1.5;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 600;
}

.footer-column p {
  color: #ccc;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-column a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #ccc;
  margin: 0;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 50px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
  align-items: start;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-description {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 15px;
  line-height: 1.5;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #ccc;
  margin: 0;
}

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

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-light);
}

.close:hover {
  color: var(--text-dark);
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

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

.submit-btn {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: inherit;
}

.submit-btn:hover {
  background-color: #4a8a8f;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .logo-brand {
    gap: 8px;
  }
  
  .brand-name {
    font-size: 1.3rem;
  }
  
  .tech-visual,
  .craft-visual {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .tech-text,
  .craft-text {
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .modal-content {
    margin: 10% auto;
    padding: 20px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .about-grid,
  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
}