body {
  font-family: sans-serif;
  background-color: #f0f0f0;
  background-image: url("../images/bodybgd.png");
  background-size: 300px;
  background-repeat: repeat;
}

.top-title {
  text-align: center;
  font-size: 70px;
  color: rgb(0, 255, 0);
  background: rgba(0, 0, 0, 0.596);
  padding: 1px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  -webkit-text-stroke: 1px rgb(0, 0, 0);
  margin-bottom: 20px;
  border-radius: 30px;
}

.container {
  display: flex;
}

/* サイドバー */
.sidebar {
  width: 180px;
  background-color: #f0f0f0;
  padding: 10px;
  height: 100vh;       /* 画面いっぱい */
  position: sticky;
  top: 0;
  overflow-y: auto;
}

/* メインコンテンツ */
.content {
  flex: 1;
  padding: 20px;
}

header {
  background-image: url("../images/headerbgd.jpg");
  background-size: cover;      /* 全体に広げる */
  background-position: center; /* 中央表示 */
  height: 120px;
  border-radius: 30px;
  display: flex;
  align-items: center;         /* 縦中央 */
}

nav {
  width: 100%;
  display: flex;
  justify-content: center; /* 横中央 */
  gap: 60px;               /* 間隔 */
}

nav a {
  color: rgb(77, 42, 3);
  text-decoration: none;
  font-size: 25px;
  font-weight: bold;
  background: rgb(235, 235, 235);
  padding: 8px 15px;
  border-radius: 5px;
}

nav a:hover {
  text-decoration: underline;
}
.content {
  background: white;
  max-width: 700px;
  margin: 50px auto;
}

.sidebar {
  background-color: white;
}

.character {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.character img {
  width: 200px;
  margin-right: 15px;
}

.character .text {
  max-width: 500px;
}

.words {
  margin-bottom: 20px;
}

.words img {
  width: 500px;
  margin-right: 15px;
}

.words .text {
  max-width: 500px;
}

td {
  padding-right: 24px;
}

h1 {
  color: rgb(0, 0, 0);
  background: #fdffddaf;
}

p {
  color: rgb(0, 0, 0);
}

h2 {
  color: rgb(255, 0, 0);
}

h3 {
  color: rgb(255, 0, 0);
  line-height: 0.0;
  font-size: 24px
}

h4 {
  color: rgb(0, 0, 0);
  line-height: 0.0;
  font-size: 24px
}

h5 {
  color: rgb(0, 0, 0);
  line-height: 0.0;
  font-size: 16px
}

h6 {
  color: rgb(255, 0, 0);
  line-height: 0.0;
  font-size: 26px
}

