body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === 言語切替セレクト === */
#language-select {
  font-size: 16px;
  position: fixed;
  top: 10px;      /* Heroに被らないよう上に配置 */
  right: 10px;
  z-index: 3001;  /* Heroやオーバーレイより前に */
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 6px 10px;
  backdrop-filter: blur(2px);
}

.headPanel {
  background: black;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.headPanel nav {
  display: flex;
  align-items: center;
  height: 60px;
}

.headPanel nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.headPanel img {
  height: 50px;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
}

.headPanel.scrolled {
  background: black;
  color: black;
  position: fixed;
  top: 0;
}

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

/* ===== Hero ===== */
.hero {
  background: none !important; /* 固定背景を無効化 */
  height: 500px;
  position: relative;
  color: pink;
  text-shadow: 0px 2px 4px black;
  text-align: left;
}

/* Hero見出し：左下固定＆小さめ */
section.hero.ja > h2 {
  position: absolute !important;
  left: 16px !important;
  bottom: 16px !important;
  background: rgba(201, 200, 200, 0.341) !important;
  padding: 12px !important;
  font-size: 26px !important; /* 半分サイズ */
  border-radius: 10px !important;
  margin: 0 !important;
  z-index: 2 !important;
}

h2 {
  padding: 10px;
}

.content-container {
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 35px;
}

.content {
  background: rgba(205, 205, 207, 0.729);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 400px);
}

.content:hover {
  transform: scale(1.03);
}

.content img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.content-name {
  justify-content: center;
  margin-top: 5px;
  font-size: 16px;
  color: #333;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

.newssection {
  display: flex;
  padding: 20px;
}

.news-box {
  width: 700px;
  height: 200px;
  border-radius: 10px;
  background-color: #f9f9f9;
  padding: 10px;
  overflow-y: scroll;
}

.news-box p {
  padding: 10px;
  border-bottom: 1px dashed darkgray;
}

.news-box p:last-child {
  border-bottom: none;
}

.newssection a {
  color: black;
}

footer {
  background: rgb(0, 0, 0);
  color: rgb(252, 250, 250);
  text-align: center;
  padding: 10px;
}

.footer_container {
  display: flex;
  justify-self: start;
  gap: 25px;
}

.footer_container img {
  width: 100%;
  max-width: 200px;
  height: auto;
  padding: 10px;
}

.menu-toggle {
  display: none;
  background: #00ade64e;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  margin-left: auto;
}

.nav-mobile {
  display: none;
}

.nav-mobile img {
  height: 50px;
  width: auto;
  margin: 0;
  padding: 0;
}

.nav-mobile.open {
  display: flex;
}

@media screen and (max-width: 600px) {
  .hero {
    height: 200px;
    font-size: 18px;
  }

  #language-select {
    display: none;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-mobile {
    display: none;
  }

  .nav-mobile.open {
    display: flex;
  }

  .nav-mobile ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    list-style: none;
    margin: 0;
  }

  .nav-mobile li {
    width: 100%;
  }

  .nav-mobile li a {
    display: block;
    width: 100%;
    padding: 10px;
    color: white;
    text-decoration: none;
  }

  .nav-mobile li a:hover {
    background-color: #333;
  }

  .headPanel {
    display: none;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 2px;
    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;
  }

  body {
    font-size: 14px;
  }

  h1,
  h2,
  h3 {
    font-size: 18px;
  }

  .content-name,
  .news-box {
    font-size: 12px;
  }

  .content-container {
    display: grid;
  }

  .footer_container img {
    width: 90%;
    max-width: 150px;
    height: auto;
    padding: 5px;
  }
}