@charset "utf-8";

/* 要素 */

/* ボディ */
/* 文字指定 */
body {
  font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
}

/* ヘッダー */
/* ボタン横並び */
header {
  padding: 8px 0;
  position: fixed;
  width: 100%;
  height: 90px;
}

/* セクション */
/* ボタンの分だけ空ける */
section {
  padding-top: 90px;
}

/* 見出し */
h1 {
  text-align: center;
  margin-top: 15px;
}

h2 {
  text-align: center;
  margin-top: 5px;
}

h3 {
  margin-top: 5px;
}

/* 本文 */
p {
  margin-top: 3px;
  margin-left: 15px;
  margin-right: 15px;
  overflow-wrap: normal;
}

/*フッター */
/* 背景：黒 */
footer {
  background-color: black;
  text-align: center;
  padding: 13px 0;
}
/* 文字色：白 */
footer p {
  color: #fff;
  font-size: 0.75rem;
}

/* 画像 */
img {
  width: 100%;
}

/* アイディ */
/* 背景色（通常） */
#wrapper {
  background-image: linear-gradient(#aed4ff,#fdd1d9);
  overflow:hidden;
}
/* 背景色（数学・Excel） */
#mathwrapper {
  background-image: linear-gradient(#d0e6ff,#d7ffe5);
  overflow:hidden;
}

/* 上部のボタン */
#g_navi ul {
  display: flex;
  margin: 0 auto;
  padding: 0 3%;
  width: 94%;
  list-style-type: none;
}
#g_navi ul li {
  position: relative;
  width: 150px;
}
#g_navi ul li:first-child::before {
  position: absolute;
  display: block;
  content: "";
  top: 25%;
  left: 0px;
  width: 1px;
  height: 50%;
}
#g_navi ul li::after {
  position: absolute;
  display: block;
  content: "";
  top: 25%;
  right: 0px;
  width: 1px;
  height: 50%;
}
#g_navi ul li a {
  display: block;
  padding: 17px 10px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

/* 以下スマホ（500pxより小さくなった場合） */
@media screen and (max-width: 500px) {
  
  body {
    width: 100%;
  }

  section {
    padding-top: 12%;
  }

  h1 {
    text-align: center;
    margin-top: 15px;
    font-size: 35px;
  }

  h2 {
    text-align: center;
    margin-top: 5px;
    font-size: 30px;
  }

  h3 {
    margin-top: 15px;
    font-size: 24px;
  }

  h4 {
    margin-top: 10px;
    font-size: 20px;
  }

  p {
    margin-top: 5px;
    margin-left: 15px;
    margin-right: 15px;
    font-size: 15px;
    overflow-wrap: normal;
  }

}