@font-face {
  font-family: "Balmoral";
  src: url("fonts/Balmoral-Std-Regular.woff") format("woff"),
       url("fonts/Balmoral-Std-Regular.ttf") format("truetype");
}

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&family=Noto+Serif+JP:wght@400;700&display=swap');

body {
  background-color: #f5f0e1;
  font-family: "Noto Serif JP", serif;
  color: #333;
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
}

h1 {
  font-family: "Balmoral", "Libre Baskerville", serif;
  font-size: 42px;
  color: #654321;
  margin-top: 0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.nowrap {
  white-space: nowrap;
}

.welcome-text {
  font-family: "Noto Serif JP", "Libre Baskerville", "Georgia", serif;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  margin: 1.2rem 0;
  text-align: justify;
  word-break: break-word;
}

.content {
  max-width: 720px;
  margin: 2rem auto 0 auto;
  padding: 0.5rem 2rem 2rem 2rem;
  text-align: left;
  line-height: 1.8;
  font-size: 1rem;
  word-break: break-word;
}

.separator {
  border: none;
  border-bottom: 3px solid #8b5a2b;
  width: 18rem;
  max-width: 90%;
  margin: 0.5rem auto;
  display: block;
}

.lang-separator {
  border: none;
  border-bottom: 3px solid #8b5a2b;
  width: 36rem;
  max-width: 90%;
  margin: 0.05rem auto 0.6rem auto;
  display: block;
}

.footer-separator {
  border: none;
  border-bottom: 3px solid #8b5a2b;
  width: 36rem;
  max-width: 90%;
  margin: 0 auto 0.5rem auto;
  display: block;
}

.language-switcher {
  margin-bottom: 0;
  text-align: center;
}

.lang-btn {
  display: inline-block;
  margin: 0.4rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  background-color: #fdf6ee;
  color: #8b5a2b;
  border: 2px solid #8b5a2b;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.lang-btn:hover {
  background-color: #f0e0d0;
  transform: translateY(-2px);
}

.nav-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 240px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  background-color: #fdf6ee;
  color: #8b5a2b;
  border: 2px solid #8b5a2b;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 0.5rem 0;
}

.nav-btn:last-child {
  margin-bottom: 0 !important;
}

.nav-btn:hover {
  background-color: #f0e0d0;
  transform: translateY(-2px);
}

.nav-btn.news {
  margin-bottom: 0;
}

.nav-btn.faq {
  margin-top: 0;
}

.btn-back {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 240px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  background-color: #a8c5e8;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin: 1.5rem auto;
}

.btn-back:hover {
  background-color: #8bb3e0;
  transform: translateY(-2px);
}

.qr-link {
  color: #2a5d9f;
  text-decoration: none;
  font-weight: bold;
}

.qr-link:hover {
  text-decoration: underline;
}

.navigation-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.latest-news-muted {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0;
  margin-bottom: 0;
}

.footer {
  font-size: 0.75rem;
  color: #777;
  margin-top: 0;
  padding-top: 0;
  text-align: center;
}

.logo-e {
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  display: block;
}

.logo-j {
  width: 160px;
  height: auto;
  margin: 1rem auto;
  display: block;
}

.member-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  background-color: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  min-width: 600px;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
}

th {
  background-color: #e6f0fa;
  color: #333;
  font-weight: bold;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

.name-link {
  color: #2a5d9f;
  text-decoration: none;
  font-weight: bold;
}

.name-link:hover {
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  h1 {
    font-size: 32px;
  }

  .container, .content {
    padding: 1rem;
  }

  .nav-btn, .lang-btn, .btn-back {
    min-width: auto;
    width: 100%;
    box-sizing: border-box;
  }

  .logo-e, .logo-j {
    width: 80%;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.5rem;
  }
}

