/* 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;
}

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

.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;
}

.nav a {
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid #1e3a8a;
}

.nav a:hover {
  background-color: #1e3a8a;
  color: #fefbf3;
}

/* Main Content */
.main-content {
  min-height: 60vh;
  padding: 4rem 0;
}

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

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

/* About Page Sections */
.about-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-section.centered {
  text-align: center;
}

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

.about-content.reverse {
  grid-template-columns: 1fr 2fr;
}

.about-content.reverse .about-text {
  order: 2;
}

.about-content.reverse .about-image {
  order: 1;
}

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

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

.about-illustration,
.research-illustration,
.values-illustration {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.about-section h2 {
  color: #1e3a8a;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.about-section p {
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.8;
}

/* Policy Pages */
.policy-content {
  background-color: #ffffff;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 400px;
}

.placeholder-text {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  font-size: 1.1rem;
  padding: 3rem 0;
}

/* Policy Sections */
.policy-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 6px;
  border-left: 4px solid #1e3a8a;
}

.policy-section h2 {
  color: #1e3a8a;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.policy-section p {
  color: #374151;
  line-height: 1.7;
  margin-bottom: 0;
}

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

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

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

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

.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;
  }

  .header .container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .page-title {
    font-size: 2rem;
  }

  .about-section {
    padding: 1.5rem;
  }

  .about-content,
  .about-content.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-content.reverse .about-text,
  .about-content.reverse .about-image {
    order: unset;
  }

  .policy-content {
    padding: 2rem;
  }

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

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

  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;
  }

  .main-content {
    padding: 3rem 0;
  }

  .about-section {
    padding: 1rem;
  }

  .about-content {
    gap: 1.5rem;
  }

  .policy-content {
    padding: 1.5rem;
  }

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