body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #F5F7FA;
  color: #333333;
  margin: 0;
  padding: 0;
}

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

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

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

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.language-selector {
  position: relative;
}

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

.language-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #003366;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-width: 100px;
}

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

.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

section {
  padding: 4rem 2rem;
  text-align: center;
}

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

.card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: scale(1.05);
  z-index: 2;
}

.cta {
  background-color: #0099CC;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  display: inline-block;
  margin-top: 2rem;
}

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

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}


body {
  font-family: 'Noto Sans', sans-serif;
  background-color: #F5F7FA;
  color: #333333;
  margin: 0;
  padding: 0;
}

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

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

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

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.language-selector {
  position: relative;
}

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

.language-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #003366;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-width: 100px;
}

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

.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}
  
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

section {
  padding: 4rem 2rem;
  text-align: center;
}

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

.card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: scale(1.05);
  z-index: 2;
}

.cta {
  background-color: #0099CC;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  display: inline-block;
  margin-top: 2rem;
}

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

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

@media (max-width: 1024px) {
  .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  header { flex-wrap: wrap; }
  .menu-toggle { display: flex; }
  .nav-links { display: none; flex-direction: column; width: 100%; background-color: #003366; }
  .nav-links.active { display: flex; }
  nav a { margin: 1rem 0; text-align: center; }
  .hero { height: 70vh; }
  .hero-content h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero { height: 60vh; }
  .hero-content h1 { font-size: 1.5rem; }
}



/* ====================
 フィーチャーカード表示修正
==================== */
.feature-card {
display: flex;
flex-direction: row;
background-color: #f8f9fc;
border-radius: 16px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
margin-bottom: 2rem;
overflow: hidden;
}

.feature-card .image {
flex: 1 1 40%;
min-width: 150px;
max-width: 300px;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
}

.feature-card .image img {
max-width: 100%;
height: auto;
object-fit: cover;
border-radius: 12px;
}

.feature-card .text {
flex: 1 1 60%;
padding: 1.5rem;
display: flex;
flex-direction: column;
justify-content: center;
}

@media (max-width: 768px) {
.feature-card {
  flex-direction: column;
}

.feature-card .image {
  max-width: 100%;
  padding: 1rem 1rem 0 1rem;
}

.feature-card .text {
  padding: 1rem;
}
}



/* ====================
 サービスカード モバイル表示強制調整
==================== */
@media (max-width: 768px) {
.service-card,
.service-card:nth-of-type(even) {
  flex-direction: column !important;
  align-items: center;
  text-align: center;
}

.service-card-text {
  width: 100%;
  text-align: left;
}

.service-card-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
}

/* ========== 修正: ヒーローヘッダーのテキスト ========== */
.hero-content h1 {
font-size: 3rem;
font-weight: bold;
color: white;
text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
margin-bottom: 1rem;
}

/* ========== 修正: ヒーローオーバーレイ ========== */
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
z-index: 2;
}

/* ========== 修正: サービスカード内のテキスト調整 ========== */
.service-card-text h3 {
font-size: 1.6rem;
font-weight: bold;
color: #003366;
margin-bottom: 1rem;
}

.service-card-text p {
font-size: 1.05rem;
line-height: 1.75;
color: #333;
}

/* ========== 修正: ナビゲーション（モバイル時） ========== */
@media (max-width: 768px) {
.nav-links a {
  font-size: 1rem;
  padding: 1rem;
  line-height: 1.6;
}

/* ========== 修正: カードや説明部分の文字整形 ========== */
.card, .feature-card {
  padding: 1.2rem;
  border-radius: 12px;
}

.card h3, .feature-card .text h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.card p, .feature-card .text p {
  font-size: 1rem;
  line-height: 1.7;
  word-break: break-word;
}

.card h3, .card p {
  text-decoration: none !important;
}

.feature-card {
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.feature-card .text {
  padding: 1rem;
  text-align: left;
}

.feature-card .text p {
  margin-bottom: 1rem;
}

.feature-card .image {
  max-width: 100%;
  padding: 1rem 1rem 0 1rem;
}

.feature-card .image img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 12px;
}
}

/* 小画面用タイトル調整 */
@media (max-width: 480px) {
.card h3, .feature-card .text h3 {
  font-size: 1.2rem;
}

.card p, .feature-card .text p {
  font-size: 0.95rem;
}
}
