/* 基本設定 */
body {
  font-family: "UD Digi Kyokasho N-R", "UD デジタル 教科書体 N-R",
  "UD学参丸ゴシック", "Hiragino Maru Gothic ProN",
  "Yu Gothic", "sans-serif";
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header {
  background: white;
  color: #0A714E;
  padding: 1rem;
  text-align: center;
  font-family:"UD Digi Kyokasho N-R", "UD デジタル 教科書体 N-R",
  "UD学参丸ゴシック", "Hiragino Maru Gothic ProN",
  "Yu Gothic", "sans-serif";
  
}

h1 {
  font-size: 32px!important;
  line-height: 1.3!important;
}

h2 {
  font-size: 26px!important;
  line-height: 1.4!important;
}

p {
  font-size: 16px!important;
  line-height: 1.8!important;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav {
  margin-top: 0.5rem;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li {
  margin: 0.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: #fff;
}

/* メイン */
main {
  padding: 1.5rem;
}

/* フッター */
footer {
  background:white;
  color: black;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  font-family:"UD Digi Kyokasho N-R", "UD デジタル 教科書体 N-R",
  "UD学参丸ゴシック", "Hiragino Maru Gothic ProN",
  "Yu Gothic", "sans-serif";
  padding: 15px 0;
}

footer p {
  margin: 0;
  font-size: 14px;   /* ← 他のpより小さくする */
  color: black;       /* ← 好きな色に */
  line-height: 1.4;  /* ← 全体のline-heightを打ち消す */
}

/* タブレット表示（横幅960px以下） */
@media (max-width: 960px) {
  .container {
    flex-direction: column; /* 縦並びに */
    gap: 10px;
  }
}

/* スマホ表示（横幅600px以下） */
@media (max-width: 600px) {
  .container {
    font-size: 14px;
    padding: 10px;
  }
}

  
  