body {
  margin: 0;
  padding: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
  color: #ffffff;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("Touhou_6050.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

header,
main,
footer {
  width: 90%;
  max-width: 1000px;
  margin: 20px auto;
  background-color: rgba(20, 20, 30, 0.78);
  padding: 20px;
  border-radius: 12px;
  box-sizing: border-box;
}

h1,
h2 {
  color: #ffddee;
}

a {
  color: #aee6ff;
}

a:hover {
  color: #ffffff;
}

nav ul {
  padding-left: 20px;
}

section {
  margin-bottom: 30px;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 20px 0;
}

footer {
  text-align: center;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 90px;
}

.top-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 30, 0.9);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.top-menu ul {
  margin: 0;
  padding: 15px 20px;
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.top-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.top-menu a:hover {
  color: #ffddee;
}

.top-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #ccc;
  z-index: 1000;
}

.menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 30px;
  height: 60px;
  gap: 30px;
}

.menu li {
  position: relative;
}

.menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 10px;
  transition: 0.2s;
}

.menu a:hover {
  color: #2a7fff;
}

.top-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #ccc;
  z-index: 1000;
}

.menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0 30px;
  height: 60px;
  gap: 30px;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  display: block;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 18px 10px;
  white-space: nowrap;
}

.menu > li > a:hover {
  color: #2a7fff;
}

.dropdown {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  background: white;
  min-width: 200px;
  border: 1px solid #ccc;
}

.menu .dropdown {
  display: none !important;
}

.menu > li:hover .dropdown {
  display: block !important;
}

/* ドロップダウンの各項目は縦並び */
.dropdown li {
  display: block;
  width: 100%;
}

/* ドロップダウン内リンク */
.dropdown li a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown li a:hover {
  background: #f2f6ff;
  color: #2a7fff;
}

.train-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  background-color: #1b5e20; /* 濃い緑 */
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;

  /* アニメーション用 */
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* ホバー時 */
.train-button:hover {
  background-color: #2e7d32;
  transform: scale(1.08);
}