@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: 15px;
}

/* 本文 */
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%;
}

/* リスト */
ul {
  list-style-type: none;
}

/* 表 */
table {
  border-collapse: collapse; /* 枠線を重ねて1本にする */
}

th, td {
  border: 1px solid black; /* 基本の枠線 */
  padding: 8px;
}

td {
  text-align: left;
  padding: 7px;
}

/* ボタン */
button {
  width: 200px;
  padding:0;
  margin:0;
  background:none;
  border:0;
  font-size:0;
  line-height:0;
  overflow:visible;
  cursor:pointer;
}

/* セレクトボックス全体の文字サイズ */
select {
  font-size: 18px;
}

/* オプション部分の文字サイズ */
select option {
  font-size: 16px;
}

/* 閉じたり開いたりのボタンのカーソル */
strong {
  cursor: pointer;
}

/* キャプション */
figure {
  overflow:hidden;
  margin: 5px;
}

/* アイディ */
/* 背景色（通常） */
#wrapper {
  background-image: linear-gradient(#aed4ff,#fdd1d9);
  overflow:hidden;
  padding: 10px;
}
/* 背景色（数学・Excel） */
#mathwrapper {
  background-image: linear-gradient(#d0e6ff,#d7ffe5);
  overflow:hidden;
  padding: 10px;
}
/* 背景色（長文） */
#wrapper-longsentence {
  background-image: linear-gradient(#d0e6ff,#d7ffe5);
  overflow:hidden;
  padding: 10px;
}

/* 上部のボタン */
#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;
}

#textToCopy {
  border: 2px solid black;
  background-color: white;
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
}

/* クラス */
/* QRコード */
.qr {
  width: 250px;
}

/* 中央揃え */
.cntr {
  text-align: center;
}

/* コード記述 */
.code-wrapper {
  display: flex;
  font-family: monospace;
  border: 1px solid black;
  background-color: black;
  color: white;
  max-height: 200px;
  margin: 10px;
}
.line-numbers {
  background-color: black;
  color: #888;
  padding: 10px 5px;
  text-align: right;
  user-select: none;
  overflow-y: scroll;
}
.code-content {
  padding: 10px;
  white-space: pre;
  flex: 1;
  overflow: auto;
}
/* 同期スクロール */
.code-content::-webkit-scrollbar {
  width: 8px;
}
.line-numbers::-webkit-scrollbar {
  width: 8px;
}

/* 数学用 */
.fitaly {
  font-style: italic;
  font-size: 16px;
}

.italy {
  font-style: italic;
}

.fcurs {
  font-style: cursive;
  font-size: 16px;
}

.lcurs {
  font-style: cursive;
  font-size: 20px;
}

.curs {
  font-style: cursive;
}

.fsize {
  font-size: 18px;
}

.lft {
  text-align: left;
}

.button-margin {
  margin-top: 5px;
}

.math-icon {
  width: 20px;
  align-items: center;
}

.math-margin {
  margin-top: 4px;
  margin-bottom: 4px;
  height: 75px;
  width: 350px;
}

.math-margin1 {
  margin-left: 30px;
  color: #390ccd;
}

.math-large {
  font-size: 18px;
  margin-bottom: 10px;
}

.large1 {
  font-size: 21px;
}

.large2 {
  font-size: 18px;
}

.math-container {
  display: flex;
  gap: 10px;
}

.large-select {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 20px;
}

.math-img-aids {
  width: 75px;
  margin-left: 10px;
}

.math-white-frame {
  border: 2px solid black;
  display: inline-block;
  padding: 1px 3px;
  background-color: white;
}

.math-white-frame1 {
  border: 2px solid #390ccd;
  display: inline-block;
  padding: 1px 3px;
  background-color: white;
}

/* リストの点 */
.disc {
  list-style-type:disc;
  margin-left: 30px;
  margin-right: 30px;
}

/* リンクアイコン横並び */
.linkicon_double{
  display: flex;
  width: 400px;
}

.linkicon_single{
  display: flex;
  width: 200px;
}

.botton1 {
  width: 100%;
}

.container {
  display: flex;
  width: 100%;
}

.container1 {
  display: flex;
}

.botton1_pc{
  width: 100%;
  display: block;
}

.botton1_mobile{
  display: none;
}

.lContainer {
  display: flex;
  flex-direction: column;
}

.submit {
  width: 100px;
  display: block;
}

.frame {
  border: 2px solid black;
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
}

.white-frame {
  border: 2px solid black;
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  background-color: white;
}

.white-frame-margin {
  border: 2px solid black;
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  background-color: white;
  margin: 5px 10px;
  font-size: 90%;
}

.flex-border {
  border: 2px solid black;
  display: flex;
}

.white-frame-num {
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  background-color: white;
  font-size: 90%;
}

.num {
  padding: 5px 10px;
  background-color: #d4d4d4;
  font-size: 90%;
}

.dotted-box {
  border: 2px dashed black;
  display: inline-block;
  width: fit-content;
  padding: 3px;
}

.imgHandmade {
  width: 200px;
}

/* 2列目の右側に二重線を追加 */
.double-border-right {
  border-right: 3px double black; /* 太さ3pxの二重線 */
  padding: 3px;
}

.td-padding3 {
  padding: 3px;
}

.p-right {
  text-align: right;
}

@media screen and (max-width: 840px) {
  /* リンクアイコン縦並び */
  .linkicon_double{
    display: flex;
    width: 70vw;
  }

  .linkicon_single{
    display: flex;
    width: 35vw;
  }

  .botton1 {
    width: 100%;
  }

  .botton1_pc{
    display: none;
  }

  .botton1_mobile{
    width: 35vw;
    display: block;
  }

  .container {
    display: block;
    width: 90%;
  }

  .container1 {
    display: block;
  }

  .math-margin1 {
    margin-left: 0px;
    margin-top: 3px;
  }

  .math-margin {
    margin-top: 4px;
    margin-bottom: 4px;
    height: 125px;
  }
}

/* 以下スマホ（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;
  }

  span {
    font-size: 15px;
  }

  th, td {
    border: 1px solid black; /* 基本の枠線 */
    padding: 8px;
    font-size: 15px;
  }

  #wrapper-longsentence {
    background-image: linear-gradient(#d0e6ff,#d7ffe5);
    overflow:hidden;
    padding: 10px;
  }

  #wrapper-longsentence p div {
    font-size: 15px;
  }

  #g_navi ul li {
    position: relative;
    width: 20%;
  }

  .linkicon_double{
    display: flex;
    width: 90vw;
  }

  .linkicon_single{
    display: flex;
    width: 45vw;
  }

  .botton1 {
    width: 100%;
  }

  .botton1_pc{
    display: none;
  }

  .botton1_mobile{
    width: 45vw;
    display: block;
  }

  .container {
    display: block;
    width: 100%;
  }

  .math-margin1 {
    margin-left: 0px;
    margin-top: 3px;
  }

  .qr {
    width: 50vw;
  }
}