/* ===== リセット・ベース ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-size: 18px;
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== コンテナ ===== */
#container {
  text-align: center;
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== ロゴ行 ===== */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 0;
}

/* ===== タイトル画像 ===== */
.title-img {
  margin: 10px 0;
}

/* ===== 言語切替 ===== */
.lang-table {
  display: inline-table;
  border-collapse: collapse;
  border: 1px solid #999;
  margin: 8px 0;
}
.lang-table td {
  padding: 0;
  border: 1px solid #999;
}
.lang-table a img,
.lang-table img {
  display: block;
}

/* ===== ナビリンク ===== */
.nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 10px auto;
  text-align: left;
  width: fit-content;
  max-width: 100%;
}
.nav-links p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  align-items: baseline;
  font-size: 1rem;
  line-height: 2;
}
.nav-links p a {
  white-space: nowrap;
}
.nav-bullet {
  color: #990099;
  flex-shrink: 0;
}

/* ===== 告知ボックス ===== */
.announce-box {
  padding: 0;
  margin: 20px auto;
  width: 90%;
  text-align: left;
  border: 3px solid #1D2B5F;
  overflow: hidden;
}
.announce-date {
  padding: 8px 20px;
  font-size: 0.9rem;
  color: #1D2B5F;
  background: #ffda00;
  font-weight: bold;
}
.announce-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1D2B5F;
  text-decoration: none;
  background: #FFF0A0;
  transition: background 0.2s;
}
.announce-link:hover {
  background: #ffda00;
}
.announce-label {
  font-size: 0.8rem;
  font-weight: normal;
  background: #1D2B5F;
  color: #ffda00;
  padding: 3px 10px;
  white-space: nowrap;
}
.announce-arrow {
  margin-left: auto;
  font-size: 1.6rem;
  color: #1D2B5F;
}

/* ===== テクニカルアナウンスリンク ===== */
.tech-link {
  display: block;
  margin: 0 auto;
}
.tech-link img {
  width: 90%;
  max-width: 100%;
}

/* ===== 歴代成績リスト ===== */
.history-list {
  background-color: #ffffdf;
  width: 100%;
  margin: 30px auto 0;
  text-align: left;
  padding: 10px 16px;
  font-size: 1rem;
  line-height: 2;
}
#container .history-list,
#container .history-list p,
#container .history-list a {
  text-align: left;
}
.history-list p {
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.history-list img.bullet {
  width: 16px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
  flex-shrink: 0;
}

/* ===== SNSエリア ===== */
#sidebar {
  margin-top: 24px;
}
#sidebar h2,
#mainContent h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}

#mainContent {
  margin: 20px auto;
  text-align: left;
  width: 100%;
}

/* ===== フッター画像 ===== */
.footer-img img {
  max-width: 100%;
  height: auto;
}

hr {
  margin: 16px 0;
}

/* ===== スマホ（480px以下） ===== */
@media (max-width: 480px) {
  .announce-box {
    font-size: 0.95rem;
    padding: 12px 12px;
  }

  .history-list {
    font-size: 0.9rem;
    line-height: 1.9;
    padding: 8px 10px;
  }

  .nav-links {
    align-items: flex-start;
  }
  .nav-links p {
    font-size: 0.95rem;
  }
}
