@charset "UTF-8";
/*全体設定ここから*/
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-size: 100%;
    letter-spacing: 0.05em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.html {
    color: #333;
    line-height: 2;
    font-family: 'BIZ UDPGothic', sans-serif;
}

/* 欧文フォント */
.roman {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
}

img {
    max-width: 100%;
}

.img-container {
    display: flex;
    justify-content: center;
}

.img-container img {
    max-width: 50%;
}

.contents-wrapper {
    background-color: #f0f0f0;
    padding: 0.5rem;
}

.container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* box-shadow: 0 0px 20px rgba(0,0,0,0.2); */
    /* background-color: white; */
    /* padding: 2rem; */
}

.section {
    box-shadow: 0 0px 20px rgba(0,0,0,0.2);
    margin-bottom: 0.5rem;
    padding: 2rem;
    background-color: white;
    /* min-height: 100vh; */
}

.overflow {
    overflow-x: scroll;
}

.overflow::-webkit-scrollbar {
    display: none;
}

/*liの番号を要素内にするコード（実験中）*/
.ul, .ol {
    list-style: none;
}

.ol {
    counter-reset: number 0;
}

.ul > .li, .ol > .li {
    padding-left: 1.67em;
	position:relative;
}

.ul > .li::before, .ol > .li::before {
    position:absolute;
	left:0;
	top:0;
    font-weight: bold;
    color: #333;
}

.ul > .li::before {
    content: "●  ";
}
  
.ol > .li::before {
    counter-increment: number 1;
    content: counter(number)". ";
}

.ol_ul .li:last-child {
    margin-bottom: 2.5em; 
}

.ol_ul + .li {
    margin-top: 0;
}

.section > .ul, .section > .ol {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

/* 表の設定 */
.table {
    border-collapse: collapse;
    /* display: block; */
    overflow-x: scroll;
}

.section__table {
    min-width: calc(100% - 3rem);
    margin: 1rem 1.5rem;
}

.th, .td {
    padding: 1rem;
    border: solid 1px #333;
}

.diagonal {
    background-image: linear-gradient(to right top, transparent calc(50% - 0.5px), #333 50%, #333 calc(50% + 0.5px), transparent calc(50% + 1px))
}
/*全体設定ここまで*/

/*ヘッダー・フッターここから*/
header, footer {
    height: 60px;
    line-height: 60px;
    width: 100%;
    color: white;
    background-color: rgba(70, 125, 250, 0.8);
    text-align: center;
}
/*ヘッダー・フッターここまで*/

/*変更済*/


/*メイン記事全体ここから*/
.main {
    width: 74%;
}

/*ナビゲーションここから（調整中）*/
nav {
    position: fixed;
    top: -100%;
    left: 0;
    height: 10vh;
    width: 100%;
    color: white;
    background-color: rgba(70, 125, 250, 0.8);
    transition: all 0.2s;
    z-index: 2;
}

.nav {
    top: 0;
}

nav ul {
    list-style: none;
    /* 大きさをnavタグに合わせる */
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul li, nav ul li a, nav ul li button {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
}

nav ul li {
    cursor: pointer;
    width: 25%;
    height: 100%;
}

nav ul li span {
    font-size: 1rem;
    line-height: 1;
}

nav ul li a, nav ul li button {
    /* 大きさをliタグに合わせる */
    height: 100%;
    width: 100%;
}

nav ul li a {
    text-decoration: none;
}

nav ul li button .fa-solid {
    color: #FFD43B;
    display: none;
}

nav ul li .bookmarked .fa-regular {
    color: #FFD43B;
    display: none;
}

nav ul li .bookmarked .fa-solid {
    display: inline;
}

nav ul li::before {
    display: none;
}

.shade {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: #000;
    opacity: 0.5;
    z-index: 1;
}

/* 画面タップ時のフッター設定 */
#manabitaizen {
    position: fixed;
    bottom: -100%;
    left: 0;
    height: 10vh;
    min-height: 50px;
    line-height: 10vh;
    width: 100%;
    font-weight: bold;
    background-color: rgba(70, 125, 250, 0.8);
    text-align: center;
    transition: all 0.2s;
    z-index: 2;
}

#manabitaizen a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    color: white;
    text-decoration: none;
}

.manabitaizen {
    bottom: 0 !important;
}

.functions {
    display: block;
    width: 30vw;
    height: 100vh;
    overflow-y: scroll;
    position: fixed;
    top: 0;
    right: -120%;
    color: white;
    background-color: rgba(70, 125, 250, 0.9);/*opacityの値要検討*/
    transition: all 0.5s;
}

.functions::-webkit-scrollbar {
    display: none; 
}

/*jsによるクラス付与後の処理*/
.open-functions {
    right: 0;
}

.functions input[type="checkbox"] {
    display: none;
}

.functions .parent {
    height: 16vh;
    position: relative;
    cursor :pointer;
    border-bottom: 1px solid #fff;
    justify-content: space-between;
}

.child-container {
    width: 90%;
    margin: 0 auto;
}

.functions .child {
    padding: 0 20px;
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.functions label {
    cursor: pointer;
    display: block;
}

.functions .parent p {
    margin-left: 20px;
    line-height: 16vh;
}

.functions a {
    display: block;
    color: white;
    text-decoration: none;
}


.functions .btn {
    position: absolute;
    top: 8vh;
    right: 20px;
}

.functions .btn span {
    background: white;
    display: block;
    width: 20px;
    height: 2px;
    transition: all 0.5s;
}

.functions .btn span:nth-child(2) {
    position: relative;
    top: -2px;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

#menu_bar01:checked + div span:first-child,
#menu_bar02:checked + div span:first-child {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

#menu_bar01:checked + div span:nth-child(2),
#menu_bar02:checked + div span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

#menu_bar01:checked ~ .child-container1 .child,
#menu_bar02:checked ~ .child-container2 .child {
    border-top: 1px solid white;
    height: 16vh;
    opacity: 1;
    visibility: visible;
}

#menu_bar01:checked ~ .parent2,
#menu_bar02:checked ~ .parent3 {
    border-top: 1px solid white;
}

#menu_bar01:checked ~ .parent1,
#menu_bar02:checked ~ .parent2 {
    border-bottom: none;
}





.functions .hover {
    transition: all 0.5s;
}

.functions .hover:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
/*ナビゲーションここまで*/
.main {
    counter-reset: number -1;
}

.h1 {
    /* PCではタイトルのサイズが2倍 */
    font-size: 2rem;
    margin-bottom: 0.5rem;
    padding: 0 1.5rem;
}

.heading-box {
    padding: 0.3rem 1.25rem;
    border-left: 0.25rem solid #467dfa;
    border-right: 0.25rem solid #467dfa;
    background-color: #E3F3FC;
    margin: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.heading-box_theme_aside {
    padding: 0.25rem 0.75rem;
}

.h2 {
    font-size: 1.5rem;
}

/* .main .h2 {
    padding-left: 1.67em;
	position:relative;
} */

/* .main .h2::before {
    content: counter(number)". ";
    counter-increment: number 1;
    position:absolute;
	left:0;
	top:0;
} */

.subheading-box {
    border-bottom: 0.125rem solid #467dfa;
    margin: 2.5rem 0 1.25rem 0;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.main .h3, .subheading-box .ex {
    font-size: 1.25rem;
    font-weight: bold;
}



main section > p {
    font-size: 1rem;
    margin: 1rem 1.5rem;
}

.conclusion {
    margin: 0 1.5rem;
}

main li, .li {
    margin: 0.75em 0;
}

main li:first-child:not(.explanation_link) {
    margin-top: 0rem;
}

main li:last-child:not(.explanation_link) {
    margin-bottom: 0rem;
}
/*メイン記事全体ここまで*/

/* 目次ここから・一部勘でやってるから要確認 */
.heading-box_theme_outline .h2 .fa-list-ul {
    color: #467dfa;
}

.outline {
    padding: 0 1.5rem;
}

.outline_form {
    display: flex;
    align-items: center;
}

/* 詳細・簡易切り替えスイッチのスタイル */
.outline_form .outline_change {
    display: none;
}

input[type="checkbox"] + label.check {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 30px;
    color: #797979;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #797979;
    border-radius: 100px;
}

input[type="checkbox"]:checked + label.check {
    background-color: #467dfa;
    border: 1px solid white;
}

input[type="checkbox"] + label.check::before {
    position: absolute;
    height: 24px;
    /* top: 3px; */
    right: 6px;
    left: auto;
    content: "簡易版";
}

input[type="checkbox"]:checked + label.check::before {
    position: absolute;
    right: auto;
    left: 6px;
    color: white;
    content: "詳細版";
    font-weight: bold;
}

input[type="checkbox"] + label.check div {
    position: absolute;
    top: 3px;
    right: auto;
    left: 2px;
    width: 22px;
    height: 22px;
    background-color: #797979;
    border-radius: 22px;
    transition: all 0.3s;
}

input[type="checkbox"]:checked + label.check div {
    right: 0;
    left: 64px;
    background-color: #fff;
}

input[type="checkbox"] + label .toggle {
    display: none;
}
/* 詳細・簡易切り替えスイッチのスタイルここまで */

.outline a {
    text-decoration: none;
}

.outline .ol_ul {
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.outline .open {
    opacity: 1;
    visibility: visible;
    height: auto;
}

.tips {
    margin: 2em 0;
}
/*目次ここまで*/

/*装飾ここから*/
/*アンダーラインマーカー、サンプル使用*//*調整中*/
.highlight {
    display: inline;
    background-image: linear-gradient(rgba(255, 255, 255, 0) 60%, #ffb500 90%);
    background-size: 0 90%;
    transition: all 2.0s ease-in-out;
}

.highlight.inview {
    background-size: 100% 90%;
}

.underline {
    text-decoration:underline;
}

/*任意の場所を太字にしたい時*/
.bold {
    font-weight: bold;
}

/* ポイントボックス・アコーディオンここから */
.box {
    margin: 1.5rem 0;
    padding: 1.5rem;
    
}

.box::-webkit-scrollbar {
    display: none;
}

.box_theme_point {
    background-color: #E3F3FC;
}

.box_theme_accordion {
    background-color: #E5E5E5;
    cursor: pointer;
}

.title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
  
.title { 
    font-weight: bold;
}

.title-container a {
    min-width: 3em;
    text-align: right;
}

.title_theme_point, .box_theme_point .title {
    font-size: 1.25rem;
    color: #3363CC;
}



.box-contents, .point-contents {
    margin-top: 1rem;
}

.box p, .box .p {
    margin: 1em 0;
}

.box p:first-child {
    margin-top: 0;
}

/*例題の問題文の間隔調整*/
.box .box-contents .questions, .box .point-contents .questions {
    list-style: none;
    counter-reset: number 0;
}

.box .box-contents .questions .question, .box .point-contents .questions .question {
    padding-left: 2.25em;
	position: relative;
}

.box .box-contents .questions .question::before, .box .point-contents .questions .question::before {
    counter-increment: number 1;
    content: "("counter(number)") ";
	position:absolute;
	left:0;
	top: 0;
}

/*.box_theme_accordion .btn {
    position: absolute;
    top: 2em;
    right: 2em;
}*/

.box_theme_accordion .btn span {
    background: black;
    display: block;
    width: 20px;
    height: 2px;
    transition: all 0.5s;
}

.box_theme_accordion .btn span:nth-child(2) {
    position: relative;
    top: -2px;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.box_theme_accordion .accordion-contents {
    height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.box_theme_accordion .open {
    opacity: 1;
    visibility: visible;
    height: auto;
    padding-top: 1em;
}

.rotate  div  div  span:first-child {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.rotate  div div span:nth-child(2) {
    -webkit-transform: rotate(45deg)!important;
    transform: rotate(45deg)!important;
}


/*装飾ここまで*/

/*サイドバーここから*/
.aside {
    width: calc(26% - 0.5rem);
    height: 100vh;
    order: 100;
    overflow-y: scroll;
    position: sticky;
    top: 0;
}

.aside section {
    min-height: 70vh;
}

/* .aside::-webkit-scrollbar {
    display: none;
} */

.section_theme_aside {
    padding: 1rem;
}

.sub-title {
    font-size: 20px;
    padding: 10px 15px 0;
    font-weight: normal;
    border-bottom: 3px solid #467dfa;
}

aside p {
     padding: 0 1rem; 
}

.thumbnails-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: 1em;
}

.thumbnail-container {
    width: 100%;
}

.thumbnail-container .box-shadow {
    box-shadow: 0 0px 7px rgba(0,0,0,0.2);
}
/*サイドバーここまで*/

/* 前提知識・応用記事などアコーディオン中のサムネ */
.thumbnail-container_accordion {
    margin-top: 2em;
}

.thumbnail-container_accordion .box-shadow {
    width: 350px;
}

.thumbnail-container_accordion .p {
    margin: 0;
}

/*以下実験*/
.dictionary {
    color: #467dfa;
    opacity: 0.8;
    cursor: pointer;
}

.dictionary:hover {
    opacity: 1;
}

/* 例題の解答解説リンク */
.explanation_links {
    margin: 1em 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 2em;
    list-style: none;
}

.explanation_links li a {
    color: #3363CC;
    font-weight: bold;
}

/*パンくずリスト*/
.breadcrumb {
    margin-bottom: 1rem;
    padding: 0 1.625rem;
    /* border-bottom: solid 1px #467dfa; */
    list-style: none;
}

.breadcrumb li {
    display: inline;/*横に並ぶように*/
    list-style: none;
    font-weight: bold;/*太字*/
}

.breadcrumb li::before {
    content: none;
}

.breadcrumb li::after {/* >を表示*/
    content: '>';
    /*padding: 0 0.2em;*/
    color: #555;
}

.breadcrumb li:last-child:after {
    content: '';
}

.breadcrumb li a {
    text-decoration: none;
    color: #3363CC;/*色*/
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #3363CC;
}

/* .comment {
    margin-top: 1em;
    margin-bottom: 0 !important; 
} */
/*ここまで*/

/* 数式表示の余白調整 */
.math {
    line-height: 2.5;
    overflow: scroll hidden;
}

.math::-webkit-scrollbar {
    display: none;
}

.MathJax {
    line-height: normal !important;
    display: inline-block;
}

/* ページ遷移・ページトップボタン */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 5rem;
    gap: 1em;
}

.button-container_theme_mobile {
    display: none;
}

.transition-button {
    display: block;
    width: calc((100% - 2em) / 3);
    padding: 1rem 1.5rem;
    background: #E3F3FC;
    color: #3363CC;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 3px 7px rgba(0,0,0,0.5);
}

.transition-button_dummy {
    background-color: white;
    box-shadow: none;
}

.button {
    min-width: 230px;
}

/* 折返し用のダミー要素 */
.spacer {
    width: 100%;
}

/* インライン数式の空白の調整 */
/* .inline {
    margin-right: 0.3em;
} */

/* ルビの大きさ */
rt {
    font-size: 50%;
}

/* スマホ用改行 */
.br-sp {
    display: none;
}

/* スマホ用メッセージ */
.mobile {
    display: none;
}

/* 問題空欄用 */
.enclosed, .blank {
    color: white;
    background: white;
    padding: 0.25em 1em;
    margin: 0 0.25em;
    border: solid 2px #333;
}

.enclosed_numbered, .numbered_blank {
    color: #333;
}

/* 広告 */
.adsense {
    margin: 5rem 0 3rem 0 !important;
}

.aside .adsense {
    margin: 0 !important;
}

.ad-space {
    height: 5rem;
}

.adsense .p {
    margin: 1rem 1.5rem;
}

.aside .adsense .p {
    margin: 1rem 0;
}

.ad-size {
    width: 100%;
    margin: 0 auto;
}

.figure {
    display: block;
    width: 80%;
    margin: 4em auto;
}

.figcaption {
    width: fit-content;
    margin: 0 auto;
}

.caption-type {
    margin-right: 1em;
}