body {
  margin: 0;
  font-family: "Helvetica Neue", sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background: black;
  color: white;
  padding: 1rem;
  display: flex;
}

header nav {
  display: flex;
  align-items: center;
  height: 60px;
}

header nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

header img {
  height: 50px;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
}

#language-select {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 5px;
  background: white;
  border: 1px solid #ccc;
}

.menu-toggle,
.nav-mobile {
  display: none;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 15px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #0073e6;
}

.content-container {
  padding: 10px;
  display: flex; /* 横並び */
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px; /* 画像の間隔 */
  /* height: 300px; */
}

.content-container :hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.content {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  flex: 0 1 calc(20% - 20px); /* 5列（PC） */
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* 画像とテキストを縦並び */
  align-items: center; /* 画像とテキストを中央揃え */
  text-align: center;
  /* height: 250px; */
}

.content img {
  width: 98%; /* 親要素の幅に合わせて縮小 */
  max-width: 300px; /* 画像の最大幅 */
  height: auto; /* 縦横比を維持 */
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); /* 軽い影をつける */
  transition: transform 0.3s ease-in-out;
}

.content-name {
  font-weight: bold;
  font-size: large;
}

h2 {
  padding: 10px;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 1rem;
}

.footer_container {
  display: flex;
  justify-self: start;
  gap: 25px;
}

.footer_container img {
  width: 100%;
  max-width: 200px;
  height: auto;
  padding: 10px;
}

.footer_text_block {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 14px;
}

.footer_container a {
  color: white;
  text-decoration: none;
}

.footer_container a:hover {
  color: skyblue;
  text-decoration: none;
}

@media (max-width: 768px) {
  .desktop {
    display: none;
  }

  #language-select {
    display: none;
  }

  .nav-mobile img {
    height: 50px; /* 必要に応じて調整 */
    width: auto; /* アスペクト比保持 */
    /* display: block; */
    margin: 0; /* 不要な余白排除 */
    padding: 0;
  }

  .menu-toggle {
    background: #00ade64e;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    display: block;
    position: fixed;
    top: 25px;
    right: 10px;
    z-index: 2000;
  }

  .nav-mobile {
    display: none;
    flex-direction: column;
    background-color: rgba(32, 25, 25, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    z-index: 1999;
  }

  .nav-mobile.open {
    display: flex;
  }

  .nav-mobile ul {
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-mobile li {
    width: 100%;
    margin-bottom: 20px;
  }

  .nav-mobile li a {
    display: block;
    width: 100%;
    padding: 15px;
    color: white;
    text-decoration: none;
    font-size: 20px;
  }

  .nav-mobile li a:hover {
    background-color: #333;
  }

  .content-container {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .content {
    flex: 0 1 calc(50% - 20px); /* 2列表示、gap考慮 */
    box-sizing: border-box;
  }

  body {
    font-size: 14px;
  }

  h1,
  h2,
  h3 {
    font-size: 18px;
  }

  .content-name {
    font-size: 12px;
  }

  .footer_text_block {
    display: none;
  }

  .footer_container img {
    width: 90%;
    max-width: 150px;
    height: auto;
    padding: 5px;
  }
}
