/* === assets/style.css === */
body {
  font-family: "Inter", "Noto Sans", sans-serif;
  opacity: 0;
}

body.js-loaded {
  opacity: 1;
  transition: opacity 0.8s ease;
}


/* 言語別クラス */
.lang-ja {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
}

.lang-zh {
  font-family: "Noto Sans SC", sans-serif;
}

.lang-ko {
  font-family: "Noto Sans KR", sans-serif;
}

.lang-en,
.lang-es,
.lang-fr,
.lang-de,
.lang-pt {
  font-family: "Inter", "Noto Sans", sans-serif;
}

.site-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 16px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
  width: auto; /* アスペクト比を保つ */
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto; /* アスペクト比を保つ */
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

main {
  max-width: 1024px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  line-height: 1.75;
  color: #333;
  background-color: #fff;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: bold;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: bold;
  color: #222;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

a {
  color: #007bff;
  text-decoration: underline;
  word-break: break-word;
}

a:hover {
  text-decoration: none;
}

nav {
  font-size: 0.9em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

footer {
  color: #444;
  font-size: 0.9rem;
  padding: 1.5rem 0.3rem;
  text-align: center;
  border-top: 1px solid #ddd;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-inner p {
  font-size: 12px;
  color: #555;
}

.footer-nav {
  margin: 0.5rem 0;
}

.footer-nav a {
  color: #555;
  font-size: 14px;
  text-decoration: none;
  margin: 0 0.3em;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.lang-links {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  max-width: 600px;
}

.language-toggle {
  text-align: center;
  margin-bottom: 20px;
  width: 160px;
}

.language-toggle button {
  margin: 0 0.5rem;
  padding: 0.5em 1em;
  font-size: 1em;
}

.lang-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: none;
  border-radius: 10px;
  background-color: #efefef; /* ← 濃いめグレーで視認性アップ */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 1rem;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  color: #333; /* 文字色もしっかり濃く */
}

.lang-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
  background-color: #f0f0f0; /* フォーカス時に少し明るく */
  cursor: pointer;
}

.wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.mainlogo {
  justify-content: center;
  margin: 24vh 0;
  padding-inline: 1.5rem;
}

.mainlogo img {
  display: block;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 390 / 88;
}

.notfound {
  width: 100%;
  text-align: center;
  padding-top: 10vh;
  padding-bottom: 10vh;
  font-size: 2rem;
  font-weight: 900;
  color: #555;
}

@media screen and (max-width: 600px) {
  .logo {
    height: 34px;
  }

  .logo img {
    height: 34px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 14px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  p,
  li {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 389px) {
  .logo {
    height: 28px;
  }

  .logo img {
    height: 28px;
  }
}
