@charset "UTF-8";
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Kosugi Maru", Arial, "メイリオ", sans-serif;
  font-weight: 500;
  font-size: large;
  color: #4d525c;
  padding: 0 5px; /* 狭い画面幅でのパディング */
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
body ul {
  list-style-type: none;
}

/*===============================ヘッダーメインタイトル============*/
header {
  height: auto;
  width: 100%;
  min-width: 380px;
}
header .houjin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #d2eed1;
  width: 100%;
  padding: 20px;
  border: none;
}
header .houjin a {
  text-decoration: none;
}
header .houjin p {
  margin: 30px 0;
}
header h1 {
  width: 100%;
  max-width: 430px;
  padding-top: 10px;
  font-size: medium;
  font-weight: lighter;
  margin-left: 4px;
  letter-spacing: 1px;
  line-height: 2em;
  color: #4b4b4b;
}
header h1 a {
  text-decoration: none;
}
header h1 img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  margin-top: 0;
  margin-bottom: 0;
}
header h1 span {
  font-size: 28px;
  font-weight: bold;
}
header p {
  line-height: 1.8;
  margin-top: 30px;
  margin-bottom: 20px;
  margin-right: 30px;
  color: #000000;
}

h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #3a3a3a;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  position: relative;
  letter-spacing: 0.05em;
  border-top: none;
  height: auto;
}
h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  margin: 0;
  margin-top: 20px;
  margin-bottom: 40px;
  padding-top: 20px;
  height: 80px;
  border-top: #f0e8d8 solid 20px;
  padding-top: 40px;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif; /* フォントを変更 */
  font-size: 26px;
  font-weight: 700; /* 少し太くする */
  letter-spacing: 0.1em; /* 文字間隔を調整 */
  color: #3a3a3a; /* 文字色を少し濃くする */
}

h4 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 22px;
  font-weight: 500; /* h3より少し細くする */
  color: #4d525c;
  width: 100%;
  margin: 50px 0 25px;
  padding: 10px 20px;
  border-left: 5px solid #fddaa6; /* ナビゲーションボタンのアクセントカラー */
  background-color: #fffaf2; /* ページ内ナビの背景と統一感のある色 */
}

/*-----------------------グローバルナビゲーション-------------*/
.navi {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.navi ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 10px;
}
.navi ul li {
  width: 46%;
  letter-spacing: 0.3em;
  font-weight: bolder;
  font-size: 20px;
  font-family: "Kosugi Maru", sans-serif;
  margin-bottom: 20px;
}
.navi ul li a {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #292e29;
  text-decoration: none;
  background-color: #9ce3f8;
  border: solid 1px #9ce3f8;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.navi ul li a:hover {
  color: #000; /* 文字色を黒に変更 */
  background-color: #e0f2f7;
  transform: scale(1.05); /* 1.05倍に拡大 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 影を追加 */
  border: solid 6px #9ce3f8;
}

/* --- 現在表示しているページのグローバルナビボタンをアクティブにする --- */
body.page-mousikomi .navi li#omousi a, body.page-riyou .navi li.riyou a,
body.page-kousyuu .navi li.teiki a,
body.page-gyouji .navi li.gyouji a {
  background-color: #fddaa6;
  color: #121213;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1);
  transform: none;
  border: solid 0 #f8e799;
}
body.page-mousikomi .navi li#omousi a:hover, body.page-riyou .navi li.riyou a:hover,
body.page-kousyuu .navi li.teiki a:hover,
body.page-gyouji .navi li.gyouji a:hover {
  transform: none;
  background-color: #fddaa6;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1);
  border: solid 0 #f8e799;
}

body.page-mousikomi .navi li#omousi a {
  background-color: #fda8bb;
}
body.page-mousikomi .navi li#omousi a:hover {
  background-color: #fda8bb;
}

/*--本文--*/
main {
  width: 100%;
  max-width: 1000px;
  min-width: 380px;
  margin: 0 auto;
}

article {
  width: 100%;
  margin-top: 40px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  width: 100%;
  max-width: 100vw;
  min-width: 380px;
  height: auto;
  min-height: 300px;
  margin-top: 40px;
  background-color: #e0f2f7;
  padding: 20px;
  background-image: url(../img/footer.png);
  background-position: left bottom; /* 画像を左下に配置 */
  background-repeat: no-repeat; /* 画像を繰り返さない */
  background-size: 100%;
}
footer .footer-links {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 0 auto;
  margin-bottom: 40px;
}
footer .footer-links section {
  width: 46%;
  margin-left: 10px;
  margin-top: 20px;
  /* SNS アイコンのスタイル */
}
footer .footer-links section ul {
  line-height: 1.7;
}
footer .footer-links section li.sub-link a {
  padding-left: 15px;
  font-size: 14px;
  position: relative;
  color: #555;
}
footer .footer-links section li.sub-link a::before {
  content: "└";
  margin-right: 4px;
}
footer .footer-links section div {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
footer .footer-links section div img {
  width: 100px;
  margin-top: 10px; /* アイコン間の余白 */
}
footer .footer-links section div .sns-icon {
  width: 40px; /* アイコンの幅 */
  height: 40px; /* アイコンの高さ */
  margin-right: 20px;
}
footer small {
  display: block;
  margin-bottom: 100px;
}

/* ボタンが順番に表示されるアニメーション */
@keyframes fadeInNavButton {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ページ内ナビゲーションのスタイル */
.page-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px 18px;
  margin-bottom: 40px;
  /* 各ボタンに表示遅延を設定 (最大10個まで対応) */
}
.page-nav ul li {
  opacity: 0; /* アニメーションの初期状態 */
  animation: fadeInNavButton 0.5s ease-out forwards; /* アニメーションを適用 */
  margin-bottom: 10px;
}
.page-nav ul li a {
  display: block;
  padding: 10px 16px;
  background-color: #fddaa6;
  color: #1d1e1f;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.page-nav ul li a:hover {
  background-color: #eba14c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.page-nav ul li:nth-child(1) {
  animation-delay: 0.15s;
}
.page-nav ul li:nth-child(2) {
  animation-delay: 0.3s;
}
.page-nav ul li:nth-child(3) {
  animation-delay: 0.45s;
}
.page-nav ul li:nth-child(4) {
  animation-delay: 0.6s;
}
.page-nav ul li:nth-child(5) {
  animation-delay: 0.75s;
}
.page-nav ul li:nth-child(6) {
  animation-delay: 0.9s;
}
.page-nav ul li:nth-child(7) {
  animation-delay: 1.05s;
}
.page-nav ul li:nth-child(8) {
  animation-delay: 1.2s;
}
.page-nav ul li:nth-child(9) {
  animation-delay: 1.35s;
}
.page-nav ul li:nth-child(10) {
  animation-delay: 1.5s;
}

@media screen and (min-width: 901px) {
  /*ウィンドウ幅が最大901px以上の場合に適用*/
  body {
    padding: 0 20px;
  }
  header {
    height: auto;
    margin-bottom: 20px;
  }
  header .houjin {
    padding-left: 100px;
  }
  header .houjin p {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
  }
  header .navi {
    text-align: center;
  }
  header .navi ul li {
    width: 24%;
    font-size: 80%;
    margin-top: 30px;
    display: flex; /* Flexbox を適用 */
    justify-content: center; /* 右端に配置 */
  }
  header .navi ul li a {
    width: 150px;
    height: 150px;
    background-color: #9ce3f8;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 100px;
  }
  header .navi ul li a:hover {
    border: solid 1px #9ce3f8;
  }
  .page-nav {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
  }
  .page-nav ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .h3-wrapper {
    width: 100vw;
    margin-top: 40px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f5f0e0;
    padding: 4px 0;
    text-align: center;
    height: 90px;
  }
  .h3-wrapper h3 {
    border-top: none;
    position: relative;
    z-index: 1;
    height: 20px;
    margin-top: 0;
    padding-top: 26px;
  }
  footer {
    padding: 40px auto;
    background-size: 70%; /* 画像を70%に縮小 */
  }
  footer .footer-links {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  footer .footer-links section {
    width: 22%;
    margin-left: 20px;
    border-bottom: none;
  }
  footer .footer-links section img {
    width: 100px;
  }
  footer small {
    text-align: right;
  }
}/*# sourceMappingURL=kyoutuu.css.map */