/* ====================
   共通スタイル（ヘッダー・フッター含む）
==================== */
body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #F5F7FA;
  overflow-x: hidden;
  color: #333;
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

header {
  background-color: #003366;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav {
  display: flex;
  align-items: center;
  position: relative;
}

nav a {
  color: white;
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto; 
}

.menu-toggle span {
  background: white;
  height: 3px;
  margin: 5px 0;
  width: 25px;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.nav-links.active {
  display: flex;
}

.nav-links a {
  display: block;
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.language-selector {
  position: relative;
}

.language-toggle {
  cursor: pointer;
  font-size: 1.5rem;
}

.language-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #003366;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-width: 120px;
  max-width: 150px;
  z-index: 1000;
  white-space: nowrap;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.language-options a {
  display: block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
}

.language-selector:hover .language-options,
.language-selector:focus-within .language-options {
  display: block;
}

footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer a {
  color: white !important;
  text-decoration: none !important;
}

/* ====================
   hero
==================== */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f2f5fc;
  flex-wrap: wrap;
  width: 100%;
  padding: 60px 5%;
}

.hero-text {
  width: 50%;
  z-index: 2;
}

.hero-text h1 {
  font-size: 36px;
  color: #002266;
  margin-bottom: 0.5em;
}

.hero-text h2 {
  font-size: 20px;
  color: #333;
  line-height: 1.6;
}

.hero-image {
  width: 45%;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====================
   features
==================== */
#features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

#features .card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 340px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#features .card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

#features .card h3 {
  font-size: 1.1rem;
  color: #003366;
  margin: 0 0 12px 0;
  font-weight: bold;
  line-height: 1.4;
}

#features .card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

/* ====================
   modules
==================== */
#modules {
  padding: 60px 20px;
  box-sizing: border-box;
}

.module {
    width: 100%;
    max-width: 1200px;
    max-height: none;
    min-height: auto;
    height: auto;
    margin: 0 auto 60px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

.module-text {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.module-img {
  width: 50%;
  height: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module-img img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.module:nth-of-type(even) {
  flex-direction: row-reverse;
}

.module-text h3 {
  font-size: 1.8rem;
  color: #003366;
  font-weight: bold;
  margin-bottom: 1.2rem;
  text-align: left;
}

.module-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin: 0;
}

/* ====================
   card
==================== */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.card {
  flex: 1 1 calc(50% - 32px);
  max-width: 480px;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.card-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 1rem;
  min-height: 64px;
  width: auto;
  padding: 1rem 0;
}

.card-header h3 {
  text-align: center;
  width: auto;
  margin: 0;
}

.card-icon {
  width: 120px;
  max-width: 180px;
  height: 120px;
  max-height: 180px;
  flex-shrink: 0;
  display: block;
  margin: 0 auto 12px;
}

.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-body p {
  margin: 0;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ====================
   case-studies
==================== */
#case-studies {
  padding: 4rem 2rem;
  background-color: #f5f7fa;
  text-align: center;
}

.case-slider {
  margin-top: 2rem;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.case-card {
  background: #fff;
  padding: 24px;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: left;
}

.case-card h3 {
  font-size: 1.2rem;
  color: #003366;
}

.case-card p {
  font-size: 1rem;
  margin-top: 10px;
  color: #555;
  align-items: center;
}

.case-card .read-more {
  display: inline-block;
  margin-top: 12px;
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
}

/* ====================
   cta
==================== */
.cta {
  display: block;
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  margin: 20px auto;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  max-width: 200px;
}

.cta:hover {
  background-color: #0056b3;
}

/* ====================
   section
==================== */
section {
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
  box-sizing: border-box;
}

section#features {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  box-sizing: border-box;
}

section#benefits {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 2rem;
  box-sizing: border-box;
}


section h1, section h2 {
  color: #003366;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

section h2 {
  border-bottom: 2px solid #0279a0;
  display: inline-block;
}

section p, section li {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 1rem;
  text-align: left;
}

ul {
  list-style: disc;
  padding-left: 2rem;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.bullet-list {
  list-style: none;
  padding-left: 0;
}

.bullet-list li::before {
  content: "●";
  color: #003366;
  font-weight: bold;
  margin-right: 8px;
}

.bullet-list-small {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.bullet-list-small li {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  margin-bottom: 0.6em;
  line-height: 1.6;
}

.bullet-list-small li::before {
  content: "●";
  font-size: 0.6em;
  color: #003366;
  line-height: 1;
}

/* ====================
   レスポンシブ対応
==================== */
@media (max-width: 768px) {
  header, footer {
    padding: 1rem 0.5rem;
  }

  .menu-toggle {
    display: flex !important;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #003366;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
  }

  .nav-links a {
    color: white;
    padding: 1rem;
    border-top: 1px solid #ffffff33;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .hero, .feature, .cards {
    flex-direction: column;
    align-items: center;
  }

  .hero-text, .hero-image,
  .feature img, .feature div,
  .card {
    width: 100%;
    max-width: 100%;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 340px;
  }

  .module {
    min-height: auto;
    max-height: none;
    flex-direction: column;
    margin: 30px 0;
}

.module,
.module:nth-of-type(even) {
  flex-direction: column;
}

.module-text, .module-img {
  width: 100%;  
  flex: 1 1 100%;
  padding: 24px 20px;
  text-align: center;
}

.module-text h3 {
  font-size: 1.5rem;
}

.module-text p {
  font-size: 1rem;
}

.module.reverse {
  flex-direction: column;
}

  .module-img img {
    border-left: none;
    border-top: 1px solid #ccc;
    border-radius: 0;
    width: 80%;
    height: auto;
  }

  #features {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  #features .card {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  #features .card-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }

  #features .card-icon {
    width: 56px;
    height: 56px;
  }

  #features .card-header h3 {
    text-align: center;
    font-size: 1rem;
  }
}