@charset "utf-8";
/* 📐 ௶の数式カスケード スタイル シート */
/* MathJacksもMathMLもEdgeでは不完全でタグが多過ぎ使いづらく使い物にならないので */
/* なので 独自のjavascriptで自動生成したHTMLを独自のcssで操作し数式を表した */
/* 現状はcssでできることは限られているが できる限りHTMLタブさえ書けば 後はcssだけで数式を表示できるようにした */
/* HTMLとCSSの仕様とブラウザの機能が複雑なのに限定されているので cssは調整のための多くの記述を必要とし ふくれあがっている */

/* 数式 */
/* 棒分数 nut fraction stacked fraction vertical fraction → 分子 分母をblockにして 分子のborder-bottomで棒をひく */
mfr {
  display: inline-block;
  margin-left: 0.2em;
  margin-right: 0.2em;
  vertical-align: calc(-0.8em); /* 一番下のラインを中央に合わせる */
  text-align: center;
}
mfr>o {
  display: block;
  line-height: 1.2em;
  word-break: break-all;
}
mfr>o::before, mfr>*::after {
  white-space: pre-wrap;
  content: " ";
}
mfr>o:first-child {
  width: 100%;
  border-bottom-style: solid;
  border-bottom-width: 1.25px;
  border-bottom-color: var(--FColor);
}
/* 分数の縦位置合わせ */
/* デフォルトは中央揃え */
*[vat] {
  vertical-align: top; /* 上揃え */
}
*[vab] {
  vertical-align: baseline; /* ベースライン揃え */
}
*[va15] {
  vertical-align: 1.5em; /* 上のラインを中央に合わせる */
}
*[va-1] {
  vertical-align: calc(1.2em - 1.6px); /* 上のラインを中央に合わせる */
}
*[vah] {
  vertical-align: calc(-0.2em - 1px); /* 一番下のラインを中央に合わせる */
}
*[va04] {
  vertical-align: calc(-0.4em - 1px); /*  */
}
*[va1] {
  vertical-align: calc(-0.8em); /* 一番下のラインを中央に合わせる */
}
*[va1h] {
  vertical-align: calc(-0.9em - 1.6px); /* 一番下と下から2番目のラインの中間を中央に合わせる */
}
*[va2] {
  vertical-align: calc(-1.2em - 1.6px); /* 下から2番目のラインを中央に合わせる */
}
*[va2h] {
  vertical-align: calc(-1.5em - 1.6px); /* 下から2番目と下から3番目のラインの中間を中央に合わせる */
}
*[va3] {
  vertical-align: calc(-1.8em - 1.6px * 2); /* 下から3番目のラインを中央に合わせる */
}
*[va3h] {
  vertical-align: -3.5em; /*  */
}
*[va4] {
  vertical-align: -4em; /*  */
}
*[va4h] {
  vertical-align: -4.3em; /*  */
}
*[vam] {
  vertical-align: middle;
}
/* horizontal fraction */
mfh {
  display: inline-block;
  margin-left: 0.2em;
  margin-right: 0.2em;
  vertical-align: middle;
  text-align: center;
}
mfh>o {
  display: inline-block;
  line-height: 1.2em;
  word-break: break-all;
}
mfh>o:nth-child(1) {
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.0);
  border-image-source: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 preserveAspectRatio=%22none%22 width=%22100%22 height=%22100%22 viewBox=%220 0 100 100%22><text x=%2250%%22 y=%2260%%22 style=%22dominant-baseline:central;text-anchor:middle;font-family:'Georgia Pro Black';font-size:135px;%22>∕</text></svg>");
  border-image-slice: 0 80 0 0;
  border-width: 0px 9px 0px 0px;
}
mfh[dn]>o:nth-child(2) {
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.0);
  border-image-source: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 preserveAspectRatio=%22none%22 width=%22100%22 height=%22100%22 viewBox=%220 0 100 100%22><text x=%2250%%22 y=%2260%%22 style=%22dominant-baseline:central;text-anchor:middle;font-family:'Georgia Pro Black';font-size:135px;%22>∕</text></svg>");
  border-image-slice: 0 0 0 80;
  border-width: 0px 0px 0px 9px;
}
mfh[dn]>o:nth-child(1) {
  border-style: none;
}

/* ルート記号 → border-imageにsvgで文字√を描いて配置 */
mrt {
  display: inline-block;
  margin-left: 0.2em;
  margin-right: 0.2em;
  margin-top: 2px;
  padding-right: 1px;
  text-align: center;
  border-style: solid;
  border-width: 2px 0px 0px 8px;
  border-color: var(--FColor);
  border-image-slice: 8 0 0 25;
  border-image-source: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 preserveAspectRatio=%22none%22 width=%2230%22 height=%2275%22 viewBox=%220 0 100 100%22><text x=%2260%%22 y=%2260%%22 style=%22dominant-baseline:central;text-anchor:middle;font-family: 'HGP創英ﾌﾟﾚｾﾞﾝｽEB';font-size:130px;font-weight:500;%22>√</text></svg>");
  border-image-repeat: stretch;
}

/* ベクトル → befoeのborder-topで箆 afterのborder-rightで矢尻の斜め線 文字では矢尻が伸縮してしまうので無理 */
mvc {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  font-weight: bolder;
}
mvc > mvc {
  margin-top: 0.2em;
}
mvc::before {
  position: absolute;
  content: "";
  font-size: 16px;
  border-top-style: solid;
  border-top-width: 1.5px;
  border-top-color: var(--NColor);
  left: 0em;
  top: 0.25em;
  width: calc(100% - 0em);
}
mvc::after {
  position: absolute;
  font-family: Arial;
  font-size: 16px;
  right: 0.2em;
  top: -0.65em;
  width: 0.4em;
  content: "";
  right: -0.8em;
  top: -0.3em;
  width: 1em;
  height: 1em;
  border-right-style: solid;
  border-right-width: 16px;
  border-right-color: var(--NColor);
  scale: 0.14 0.14;
  transform: skew(60deg);
}

/* インテグラル */
mig {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  height: fit-content;
  margin-left: 0.2em;
  margin-right: 0.2em;
  margin-bottom: 0.55em;
  padding-left: 0.4em;
  padding-top: 0.1em;
  padding-bottom: 0.2em;
  text-align: center;
  border-style: solid;
  border-width: 0px 0px 0px 10px;
  border-color: rgba(0, 0, 0, 0.0);
  border-image-slice: 0 0 0 24;
  border-image-source: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 preserveAspectRatio=%22none%22 width=%2230%22 height=%2275%22 viewBox=%220 0 100 100%22><text x=%2250%%22 y=%2245%%22 style=%22dominant-baseline:central;text-anchor:middle;font-family: 'Noto Serif JP ExtraBold';font-size:100px;font-weight:500;%22>∫</text></svg>");
  border-image-repeat: stretch;
  background: none;
}
mig::before {
  content: "​"; /* ZERO WIDTH SPACE */
}
mig>o {
  display: inline-block;
}
mig>o:first-child {
  position: absolute;
  left: 0em;
  bottom: -0.8em;
  font-size: 0.75em;
  background: none;
}
mig>o:nth-child(2) {
  position: absolute;
  font-size: 0.75em;
  left: 0.2em;
  top: -1.1em;
  background: none;
}
mig o, mig mfr {
  background: none;
}

/* 総和 */
msg {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  height: fit-content;
  margin-left: 0.2em;
  margin-right: 0.1em;
  margin-bottom: 0.55em;
  padding-left: 0em;
  padding-top: 0em;
  padding-bottom: 0.4em;
  text-align: center;
  border-style: solid;
  border-width: 0px 0px 0px 20px;
  border-color: rgba(0, 0, 0, 0.0);
  border-image-slice: 0 0 0 24;
  border-image-source: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 preserveAspectRatio=%22none%22 width=%2230%22 height=%2275%22 viewBox=%220 0 100 100%22><text x=%2250%%22 y=%2245%%22 style=%22dominant-baseline:central;text-anchor:middle;font-family: 'ＤＨＰ平成明朝体W7';font-size:80px;font-weight:500;%22>∑</text></svg>");
  border-image-repeat: stretch;
}
msg::before {
  content: "​"; /* ZERO WIDTH SPACE */
}
msg>o {
  display: inline-block;
}
msg>o:first-child {
  position: absolute;
  left: -1.2em;
  bottom: -0.75em;
  font-size: 0.75em;
  background: none;
}
msg>o:nth-child(2) {
  position: absolute;
  font-size: 0.75em;
  left: -1.2em;
  top: -1.25em;
  background: none;
}

/* 総積 */
mpi {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  height: fit-content;
  margin-left: 0.2em;
  margin-right: 0.1em;
  margin-bottom: 0.55em;
  margin-top: 0.55em;
  padding-left: 0em;
  padding-top: 0em;
  padding-bottom: 0.2em;
  text-align: center;
  border-style: solid;
  border-width: 0px 0px 0px 20px;
  border-color: rgba(0, 0, 0, 0.0);
  border-image-slice: 0 0 0 24;
  border-image-source: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 preserveAspectRatio=%22none%22 width=%2230%22 height=%2275%22 viewBox=%220 0 100 100%22><text x=%2250%%22 y=%2245%%22 style=%22dominant-baseline:central;text-anchor:middle;font-family: 'Noto Serif JP SemiBold';font-size:80px;font-weight:500;%22>∏</text></svg>");
  border-image-repeat: stretch;
}
mpi::before {
  content: "​"; /* ZERO WIDTH SPACE */
}
mpi>o {
  display: inline-block;
}
mpi>o:first-child {
  position: absolute;
  left: -1.5em;
  bottom: -1.2em;
  font-size: 0.75em;
  background: none;
}
mpi>o:nth-child(2) {
  position: absolute;
  font-size: 0.75em;
  left: -1.5em;
  top: -1.2em;
  background: none;
}

/* 括弧 囲み記号 */
mbr {
  display: inline-block;
  white-space: pre-wrap;
  margin-left: 0em;
  margin-right: 0em;
  vertical-align: base-line;
  text-align: center;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.0);
  border-image-source: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 preserveAspectRatio=%22none%22 width=%22100%22 height=%22100%22 viewBox=%220 0 100 100%22><text x=%2250%%22 y=%2240%%22 style=%22dominant-baseline:central;text-anchor:middle;font-family: NLd, NMath, NGMath, NNMath, NASerif, NJSerif;font-size:77px;%22>( )</text></svg>");
  border-image-slice: 0 50 0 50;
  border-width: 0px 12px 0px 12px;
  border-image-repeat: stretch;
}
mbr[pa] {
  border-image-source: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 preserveAspectRatio=%22none%22 width=%22100%22 height=%22100%22 viewBox=%220 0 100 100%22><text x=%2250%%22 y=%2250%%22 style=%22dominant-baseline:central;text-anchor:middle;font-family:'Georgia Pro';font-size:100px;%22>( )</text></svg>");
  border-image-slice: 0 40 0 40;
  border-width: 0px 6px 0px 6px;
  margin-left: 0.2em;
  margin-right: 0.2em;
}
mbr[cu] {
  border-image-source: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 preserveAspectRatio=%22none%22 width=%22100%22 height=%22100%22 viewBox=%220 0 110 100%22><text x=%2250%%22 y=%2250%%22 style=%22dominant-baseline:central;text-anchor:middle;font-family:'Georgia Pro';font-size:100px;%22>{ }</text></svg>");
  border-image-slice: 0 50 0 50;
  border-width: 0px 6px 0px 6px;
  margin-left: 0.2em;
  margin-right: 0.2em;
}
mbr[sq] {
  border-image-source: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 preserveAspectRatio=%22none%22 width=%22100%22 height=%22100%22 viewBox=%220 0 100 100%22><text x=%2250%%22 y=%2250%%22 style=%22dominant-baseline:central;text-anchor:middle;font-family:'Georgia Pro';font-size:100px;%22>[ ]</text></svg>");
  border-image-slice: 0 50 0 50;
  border-width: 0px 6px 0px 6px;
  margin-left: 0.2em;
  margin-right: 0.2em;
}
mbr[an] {
  border-image-source: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 preserveAspectRatio=%22none%22 width=%22140%22 height=%22100%22 viewBox=%220 0 250 100%22><text x=%2250%%22 y=%2230%%22 style=%22dominant-baseline:central;text-anchor:middle;font-family:'Georgia Pro';font-size:250px;%22>‹ ›</text></svg>");
  border-image-slice: 0 100 0 100;
  border-width: 0px 6px 0px 6px;
  border-image-slice: 0 55 0 55;
  margin-left: 0.2em;
  margin-right: 0.2em;
}
mbr[ab] {
  border-image-source: url("data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 preserveAspectRatio=%22none%22 width=%22100%22 height=%22100%22 viewBox=%220 0 100 100%22><text x=%2250%%22 y=%2250%%22 style=%22dominant-baseline:central;text-anchor:middle;font-family:'Georgia Pro Black';font-size:100px;%22>| |</text></svg>");
  border-image-slice: 0 50 0 50;
  border-width: 0px 5px 0px 5px;
  margin-left: 0.2em;
  margin-right: 0.2em;
}

mbr[pa][af] {
  border-width: 0px 6px 0px 0px;
}
mbr[cu][af] {
  border-width: 0px 6px 0px 0px;
}
mbr[sq][af] {
  border-width: 0px 6px 0px 0px;
}
mbr[an][af] {
  border-width: 0px 6px 0px 0px;
}
mbr[ab][af] {
  border-width: 0px 5px 0px 0px;
}

mbr[pa][bf] {
  border-width: 0px 0px 0px 6px;
}
mbr[cu][bf] {
  border-width: 0px 0px 0px 6px;
}
mbr[sq][bf] {
  border-width: 0px 0px 0px 6px;
}
mbr[an][bf] {
  border-width: 0px 0px 0px 6px;
}
mbr[ab][bf] {
  border-width: 0px 0px 0px 5px;
}





















