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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
  line-height: 1.3;
  color: #1E3A8A;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.large-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #1E3A8A;
}

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  flex-shrink: 0;
}

.brand-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1E3A8A;
  text-decoration: none;
}

.brand-name:hover {
  color: #8BC34A;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  white-space: nowrap;
}

.btn-primary {
  background-color: #1E3A8A;
  color: white;
  border-color: #1E3A8A;
}

.btn-primary:hover {
  background-color: #1E40AF;
  border-color: #1E40AF;
}

.btn-outline {
  background-color: transparent;
  color: #1E3A8A;
  border-color: #1E3A8A;
}

.btn-outline:hover {
  background-color: #1E3A8A;
  color: white;
}

/* Hero Section */
.hero {
  padding: 80px 0 120px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #1E3A8A;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #64748b;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image .image-placeholder {
  aspect-ratio: 16/10;
  background: #e2e8f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 14px;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

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

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Centered wrappers for index page sections */
.features-wrapper,
.steps-wrapper,
.products-wrapper,
.benefits-wrapper,
.audience-wrapper,
.tech-wrapper,
.support-wrapper {
  text-align: center;
}

/* Features Section */
.features {
  background: #ffffff;
}

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

.feature-card {
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid #e5e7eb;
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.feature-title {
  margin-bottom: 1rem;
  color: #1E3A8A;
}

.feature-description {
  color: #64748b;
}

/* How It Works */
.how-it-works {
  background: #f8fafc;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: #8BC34A;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto 1.5rem;
}

.step-title {
  margin-bottom: 1rem;
  color: #1E3A8A;
}

.step-description {
  color: #64748b;
}

/* Products Section */
.products {
  background: #ffffff;
}

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

.product-card {
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.product-image {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

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

.product-title {
  margin-bottom: 1rem;
  color: #1E3A8A;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #8BC34A;
  margin-bottom: 1rem;
}

.product-description {
  margin-bottom: 1.5rem;
  color: #64748b;
  flex-grow: 1;
}

.product-features ul {
  list-style: none;
  margin-bottom: 2rem;
}

.product-features li {
  padding: 0.5rem 0;
  color: #374151;
  position: relative;
  padding-left: 1.5rem;
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8BC34A;
  font-weight: 600;
}

/* Benefits Section */
.benefits {
  background: #f8fafc;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
}

.benefit-title {
  margin-bottom: 1rem;
  color: #1E3A8A;
}

.benefit-description {
  color: #64748b;
}

.benefits-image {
  margin-bottom: 3rem;
  text-align: center;
}

.benefits-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Target Audience */
.target-audience {
  background: #ffffff;
}

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

.audience-card {
  padding: 2rem;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid #8BC34A;
}

.audience-title {
  margin-bottom: 1rem;
  color: #1E3A8A;
}

.audience-description {
  color: #64748b;
}

/* Technology Section */
.technology {
  background: #f8fafc;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tech-item {
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.tech-title {
  margin-bottom: 1rem;
  color: #1E3A8A;
}

.tech-description {
  color: #64748b;
}

/* Support Section */
.support {
  background: #ffffff;
}

.support-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.support-image {
  margin: 2rem 0;
}

.support-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.support-description {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 3rem;
}

.support-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.support-feature {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.support-feature-title {
  font-weight: 600;
  color: #1E3A8A;
  margin-bottom: 0.5rem;
}

.support-feature-desc {
  font-size: 0.9rem;
  color: #64748b;
}

/* Contacts Section */
.contacts {
  background: #f8fafc;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

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

.contact-title {
  margin-bottom: 1rem;
  color: #1E3A8A;
}

.contact-detail {
  font-size: 1.1rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.contact-note {
  font-size: 0.9rem;
  color: #64748b;
}

/* Footer */
.footer {
  background: #1E3A8A;
  color: #ffffff;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-brand {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-description {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin: 0;
}

.footer-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #8BC34A;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-contact {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-copyright {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin: 0;
}

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

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  padding: 2rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.modal-title {
  color: #1E3A8A;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #1E3A8A;
}

/* Form Styles */
.order-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #374151;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8BC34A;
  box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

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

  .hero-buttons {
    justify-content: center;
  }

  .features-grid,
  .products-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-content {
    justify-content: center;
  }

  .footer-section {
    text-align: center;
    min-width: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    justify-content: center;
  }

  .form-buttons {
    flex-direction: column;
  }

  section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }
}