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

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #1f1f1f;
  background-color: #fefbf3;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  background-color: #fefbf3;
  padding: 2rem 0;
  border-bottom: 2px solid #1e3a8a;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1f1f1f 100%);
  color: #fefbf3;
  padding: 6rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-text .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fefbf3;
}

.hero-text .hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-text .hero-description {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
section {
  padding: 4rem 0;
}

section.centered {
  text-align: center;
}

section.centered .container > * {
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  text-align: center;
  color: #1e3a8a;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #dc2626;
}

/* Mission Section */
.mission {
  background-color: #f8f9fa;
}

.mission-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mission-text p {
  font-size: 1.1rem;
  color: #374151;
}

.mission-image img,
.auth-image img,
.licensing-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.archive-item {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.archive-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.archive-item h3 {
  color: #1e3a8a;
  margin-bottom: 1rem;
}

/* Authentication Section */
.authentication {
  background-color: #f8f9fa;
}

.auth-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.auth-text p {
  font-size: 1.1rem;
  color: #374151;
}

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

.course-item {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #dc2626;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.course-item h3 {
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.education-image {
  text-align: center;
  margin-top: 3rem;
}

.education-image img {
  width: 100%;
  max-width: 600px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Products Section */
.products {
  background-color: #f8f9fa;
}

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

.product-item {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-item h3 {
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #dc2626;
  margin: 1rem 0;
}

.cta-button {
  background-color: #1e3a8a;
  color: #fefbf3;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
}

.cta-button:hover {
  background-color: #1d4ed8;
}

/* Licensing Section */
.licensing-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.licensing-text p {
  font-size: 1.1rem;
  color: #374151;
}

/* Research Section */
.research {
  background-color: #f8f9fa;
}

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

.research-item {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  border-top: 4px solid #1e3a8a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.research-item h3 {
  color: #dc2626;
  margin-bottom: 1rem;
}

/* Contact Section */
.contact {
  background-color: #1f1f1f;
  color: #fefbf3;
}

.contact .section-title {
  color: #fefbf3;
}

.contact .section-title::after {
  background-color: #dc2626;
}

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

.contact-item h3 {
  color: #dc2626;
  margin-bottom: 1rem;
}

.contact-item p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: #1e3a8a;
  color: #fefbf3;
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fefbf3;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

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

.footer-copyright {
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-copyright p {
  margin: 0;
}

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

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

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

  .hero-text .hero-title {
    font-size: 2rem;
  }

  .hero-image img {
    height: 250px;
  }

  .mission-content,
  .auth-content,
  .licensing-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-links {
    justify-content: center;
    gap: 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .logo-brand {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero-text .hero-title {
    font-size: 1.8rem;
  }

  .hero-image img {
    height: 200px;
  }

  section {
    padding: 3rem 0;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
}