/* === リセット & 全体設定 === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === フォント定義 === */
@font-face {
  font-family: 'NotoSansJP';
  src: url('fonts/NotoSansJP-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'NotoSansJP';
  src: url('fonts/NotoSansJP-Bold.ttf') format('truetype');
  font-weight: 600;
}

@font-face {
  font-family: 'popfont';
  src: url('fonts/851MkPOP_101.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

/* === 基本設定 === */
body {
  font-family: 'NotoSansJP', sans-serif;
  background-color: lightcyan;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

/* === ヘッダー（ポップフォント） === */
.header {
  background-color: blue;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-title {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  font-family: 'NotoSansJP', sans-serif;
}

/* === メインコンテンツ === */
.content {
  max-width: 800px;
  margin: 4rem auto;
  padding: 4rem 4rem;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

/* === タイトル内の h1 === */
.content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: 'NotoSansJP', sans-serif;
  font-weight: 600;
	text-align: center;
}

/* === 段落 === */
.content p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.spacer {
				height: 3rem;				
}

.site-links {
  list-style: none;
  padding-left: 0;
  margin-top: 2rem;
}

.site-links li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.site-links a {
  text-decoration: none;
  color: #006699;
  font-weight: bold;
}

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

.indented {
  padding-left: 4ch;  /* 8個分のスペースに相当するインデント */
	padding-right: 2ch;
}

.bold {
  font-weight: bold;
}

.nav-links {
  text-align: center;
  font-family: 'NotoSansJP', sans-serif;
  font-size: 1.4rem;
  margin: 2rem 0 6rem 0;
  padding: 1rem 0;
  border-top: 1px solid #aaa;
  color: #333;
}

.nav-links a {
  color: #004488;
  text-decoration: none;
  margin: 0 0.5rem;
}

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

/* === 理論ノート一覧 === */
.note-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.note-item {
  border: 1px solid #ccc;
  padding: 1.5rem;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
}

.note-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.note-desc {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.note-link {
  display: inline-block;
  background-color: #006699;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95rem;
}

.note-link:hover {
  background-color: #004466;
}

/* === ページネーション === */
.pagination {
  text-align: center;
  margin: 3rem 0 5rem 0;
  font-family: "MS Gothic", monospace;
  font-size: 0.95rem;
}

.page-number {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  color: #004488;
  border: 1px solid #999;
  border-radius: 4px;
  background-color: #f0f0f0;
}

.page-number:hover {
  background-color: #e0e0e0;
  cursor: pointer;
}

.page-number.current {
  font-weight: bold;
  background-color: #ccc;
  color: black;
  border: 1px solid #666;
  cursor: default;
}

.ellipsis {
  display: inline-block;
  margin: 0 0.5rem;
  color: #666;
}

/* === ナビゲーションリンク（前・上・次） === */
.nav-links .disabled {
  color: #aaa;
  pointer-events: none;
}
