/*------共通部品------*/
@import url('https://fonts.googleapis.com/css?family=Noto+Sans+JP');
#title {
    width: 100%;
    font-size: 50px;
    color: #6cb4e4;
    text-align: center;
    border-top: solid 2px #6cb4e4;
    border-bottom: solid 2px #6cb4e4;
    background: -webkit-repeating-linear-gradient(-45deg, #f0f8ff, #f0f8ff 3px,#e9f4ff 3px, #e9f4ff 7px);
    background: repeating-linear-gradient(-45deg, #f0f8ff, #f0f8ff 3px,#e9f4ff 3px, #e9f4ff 7px);
}

h2 {
    color: #505050;/*文字色*/
    padding: 0.5em;/*文字周りの余白*/
    display: inline-block;/*おまじない*/
    line-height: 1.3;/*行高*/
    background: #dbebf8;/*背景色*/
    vertical-align: middle;
    border-radius: 25px 0px 0px 25px;/*左側の角を丸く*/
    margin-right: 30px;
  }
  
h2:before {
    content: '●';
    color: white;
    margin-right: 8px;
}

h3 {
    position: relative;
    padding: 5px 26px 5px 42px;
    background: #f0f8ff;;
    font-size: 20px;
    color: #2d2d2d;
    margin-left: -10px;
    margin-right: 30px;
    line-height: 1.3;
    border-bottom: solid 3px #6969ff;
  }
  
  h3:before {
    position: absolute;
    content: '';
    left: -2px;
    top: -2px;
    width: 0;
    height: 0;
    border: none;
    border-left: solid 40px white;
    border-bottom: solid 79px transparent;
  }
  

a {
    color: #000dc5;
    text-decoration: none;
}

a:hover {
    color: #1784cc;
}

.redstring{
    color: red;
    font-weight: bold;
}
.bluestring{
    color: blue;
    font-weight: bold;
}

.redwaveline{
    color: red;
    font-weight: bold;      
    text-decoration:underline;
    text-decoration-style:wavy;
}
.bluewaveline{
    color: blue;
    font-weight: bold;      
    text-decoration:underline;
    text-decoration-style:wavy;
}

div.kokuban {
    position: relative;
    margin: 2em auto;
    padding: 1em;
    width: calc(100% - 42px);
    min-width: 260px;
    background: #202020;;; /* ボックス背景色 */
    color: #fff; /* 文章色 */
    border: 5px solid #C0C0C0; /* 枠線 */
    border-radius: 2px; /* 角の丸み */
    box-shadow: 0 0 5px #333, 0 0 5px #555 inset;
}
.kokuban::before, .kokuban::after {
    position: absolute;
    content: ''; bottom: 0;
}
.kokuban::before {
    width: 20px;
    right: 10px;
    border: solid 3px #ff42a0; /*チョークピンク */
    border-radius: 3px 2px 0 2px;
}
.kokuban::after {
    width: 15px;
    right: 45px;
    border: solid 3px #fff; /*チョーク白 */
    border-radius: 8px 5px 2px 5px;
}

.kokuban > ol {
    padding-left: 40px;
    counter-reset: section;
    list-style-type: none;
}
.kokuban > ol > li{
    margin-bottom: 8px;
}
.kokuban > ol > li:before{
    counter-increment: section;
    content: counters(section, ".") ".";
}   
.kokuban > ol > li > a{
    border-bottom: 1px solid white;
}
.KokubanTitle{
    margin: 0px auto;
    padding-left: calc(50% - 21px);
}

.speak-bubble {
    margin: 0px auto;
    position: relative;
    padding: 10px;
    margin-bottom: 20px;
    background: #51b3ff;
    color: #FFF;
    font-weight: bold;
    width: fit-content;
    min-width: 300px;
}
.speak-bubble:after {
    position: absolute;
    content: '';
    top: 100%;
    left: 30px;
    border: 15px solid transparent;
    border-top: 15px solid #51b3ff;
    width: 0;
    height: 0;
}
.speak-bubble p {
    margin: 0; 
    padding: 0;
}

.point-box {
    margin: 0px auto 100px auto;
    position: relative;
    padding: 25px 10px 7px;
    border: solid 2px #FFC107;
    width: calc(100% - 24px);
    min-width: 280px;
    overflow-wrap: break-word;
}
.point-box .point-box-title {
    position: absolute;
    display: inline-block;
    top: -2px;
    left: -2px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #FFC107;
    color: black;
    font-weight: bold;
}
.point-box p {
    margin: 0; 
    padding: 0;
    color: red;
}

.point-box > img{
    position: absolute;
    width: 100px;
    left: 15px;
}

.warning-box {
    margin: 0px auto;
    background: #ffdbdb;
    width: fit-content;
    min-width: 300px;
    position: relative;
}
.warning-box .warning-box-title {
    font-size: 20px;
    background: red;
    padding: 4px;
    text-align: center;
    color: #FFF;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.warning-box p {
    padding: 15px 20px;
    margin: 0;
}

.warning-box-title > img{
    width: 30px;
    position: absolute;
    top: 5px;
    left: calc(50% - 65px);
}

.quote-box {
    margin: 0px auto;
    width: fit-content;
    min-width: 300px;
    padding: 10px;
    border-left: 4px solid #8c8c8c;
    background: #dfdfdf;
    color: #333333;
}

.quote-box:has(cite) {
    padding-bottom: 0.5px;
}

.quote-box p {
    margin-top: 0;
}

.quote-box cite {
    display: block;
    color: #737373;
    font-size: 11px;
    text-align: right;
}

.balloon-left {
    position: relative;
    display: inline-block;
    margin: 1.5em 0 1.5em 15px;
    padding: 7px 10px;
    max-width: 500px;
    color: #555;
    font-size: 16px;
    background: #FFF;
    border: solid 3px #555;
    box-sizing: border-box;
  }
  
  .balloon-left:before {
    content: "";
    position: absolute;
    top: 50%;
    left: -24px;
    margin-top: -12px;
    border: 12px solid transparent;
    border-right: 12px solid #FFF;
    z-index: 2;
  }
  
  .balloon-left:after {
    content: "";
    position: absolute;
    top: 50%;
    left: -30px;
    margin-top: -14px;
    border: 14px solid transparent;
    border-right: 14px solid #555;
    z-index: 1;
  }
  
  .balloon-left p {
    margin: 0;
    padding: 0;
  }


.yellowmark{
    background: linear-gradient(transparent 60%, yellow 80%);
}
.redmark{
    background: linear-gradient(transparent 60%, red 80%);
}

.circleNumberList {
    counter-reset:number; /*数字をリセット*/
    list-style-type: none!important; /*数字を一旦消す*/
    padding:0.5em;
}
.circleNumberList li {
    position: relative;
    padding-left: 30px;
    line-height: 1.5em;
    padding: 0.5em 0.5em 0.5em 28px;
}
  
.circleNumberList li:before{
    position: absolute;
    counter-increment: number;
    content: counter(number);
    display:inline-block;
    background: #5c9ee7;
    color: white;
    font-family: 'Avenir','Arial Black','Arial',sans-serif;
    font-weight:bold;
    font-size: 15px;
    border-radius: 50%;
    left: 0;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    top: 22px;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

code {
    display: inline-block;
    padding: 0.1em 0.2em;
    background-color: #e7edf3;
    border-radius: 3px;
}

/*------サイドバー------*/
#sideIcon{
    border: 0px
}


/*------ヘッダー------*/
#top-menu {
    background-color: #242F3E;
    display: flex;
    flex-flow: column;
    position: sticky;
    top: 0;
    z-index: 10;
}

/*------パンくずリスト------*/
#breadcrumbs{
    padding-top: 10px;
}

/*------コンテンツ------*/
body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    background-color: rgb(211, 211, 211);
}

#main {
    display: flex;
}

#contents {
    background-color: white;
    width: 1000px;
    padding: 0px 25px 20px 25px;
    margin: 20px 0px 30px 0px;
    margin-left: 10px;
    display: flex;
    flex-flow: column;
    border-radius: 30px;
}

#thumbnail{
    width: 100%;
    max-width: 900px;
    margin: 0px auto;
}

.explanation {
    width: calc(100% - 10px);
    margin-left: 10px;
    overflow-wrap: break-word;
}
.explanation > img {
    display: block;
    margin: 0px auto;

}

#TOC{
    background-color: rgb(245, 245, 245);
    margin: 20px auto;
    width: fit-content;
    min-width: 300px;
    display:  flex;
    flex-direction: column;
}

#TOC > div {
    position: relative;
    font-size: 25px;
    background: #242F3E;
    color: white;
    margin: 0px;
    text-align: center;
}

#TOC > div > img{
    width: 25px;
    position: absolute;
    top: 2px;
    left: 100px;
}

#tableOfContents{
    width: fit-content;
    margin: 0px auto;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 5px;
}


/*------リンクカード------*/
#related_articles{
    display: flex;
    flex-wrap: wrap;
    position: relative;
    height: 400px;
    margin-top: 150px;
}

.grid-line{
    width: 100%;
    height: 0px;
    border: 3px dashed black;
    margin: 10px 0px;
    
}
.link-card{
    width: 250px;
    height: 300px;
    margin-top: 20px;
}

#link-card-right{
    position: absolute;
    top: 20px;
    right: 0px
}

#link-card-left{
    position: absolute;
    top: 20px;
    left: 0px
}

.link-card > a > p {
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: center;
    font-weight: bold;
    font-size: 25px;
    
}

.link-card > a > p  > img{
    width: 20px;
    padding: 0px 5px;
    vertical-align: bottom;
}

.link-card > a:nth-child(2) {
    position: relative;
    display: block;
    border: 1px solid black;
    width: calc(100% - 22px);
    height: 100%;
    padding: 10px;
    border-radius: 10px;
}
.link-card > a > img{
    width: 100%;
}
.link-card > a > p{
    font-size: 20px;
    color: #333;
    margin: 0px;
    line-height: 1.5;
    font-weight: 700;
}
.link-card > a > p:nth-child(3){
    display: inline-block;
    position: absolute;
    bottom: 10px;
    color: gray;
    font-size: 14px;
    line-height: 1.2;
    padding-right: 3px;
    word-break: break-word;
}

.term {
    margin-bottom: 15px;
  }
  .term-name {
    font-weight: bold;
    color: #16a085;
  }
  .term-description {
    margin-left: 15px;
  }
  .term-example {
    background-color: #f8f9fa;
    border-left: 3px solid #16a085;
    padding: 8px 12px;
    margin-top: 8px;
    margin-left: 15px;
    font-size: 0.95em;
    margin-bottom: 50px;
  }

/*------フッター------*/
#FooterMenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.FooterMenuList {
    width: 200px;
    text-align: left;
}

.FooterMenuList>a {
    color: #fff;
    font-size: 17px;
}

.FooterMenuSubList {
    list-style: none;
    padding-left: 4px;
    margin-top: 10px;
}

.FooterMenuSubList a {
    color: #fff;
}

#CopyRight {
    text-align: center;
}

.footerFixed {
    margin: 0px;
    min-height: 160px;
    position: relative;
    padding-bottom: 80px;
    box-sizing: border-box;
}

footer {
    position: absolute;
    bottom: 0;
    width: -webkit-fill-available;
    width: -moz-available;
    background: #242F3E;
    color: #fff;
}

/*------サイドアイコン------*/
#sideIcon {
    height: 45px;
    padding-right: 5px;
    padding-top: 5px;
}

#sidemenu-left {
    margin-left: 20px;
    height: fit-content;
    width: 315px;
    min-width: 315px;
    margin-top: 20px;
    margin-right: 10px;
}

#sidemenu-right {
    margin-top: 10px;
    margin-left: 20px;
    height: fit-content;
    width: 300px;
    min-width: 300px;
}

.sideBox {
    background-color: #fff;
    padding-bottom: 5px;
}

.sideMenuTitle {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: #242F3E;
    font-size: 25px;
    color: #fff;
    text-align: center;
}

/*------ランキングアイコン------*/
#sideLanking {
    margin-top: 10px;
    margin-right: 10px;
}

#LankingArticle {
    list-style: none;
    padding: 10px;
}

#LankingArticle>li>a {
    display: block;
    width: clac(100% - 20px);
}

#LankingArticle>li>a>img {
    display: block;
    width: 60%;
    margin: 0px auto;
}

/*------1400px------*/
@media screen and (max-width:1400px) {
    #contents {
        margin-left: auto;
        margin-right: auto;
    }

    #sidemenu-right {
        display: none;
    }
}



/*------1200px------*/
@media screen and (max-width:1200px) {
    #sidemenu-left {
        display: none;
    }
}

/*------1023px------*/
@media screen and (max-width:1023px) {
    h2,h3{
        margin-right: 0px;
      }
    #contents {
        width: calc(100% - 20px);
        margin-top: 50px;
        border-radius: 0%;
        padding: 10px;
    }

    #TopContents {
        display: block;
        top: 25px;
        position: absolute;
    }

    #TopMain {
        max-width: 100%;
    }

    #LeftSide,#RightSide{
        width: 100%;
        flex-flow: inherit;
        justify-content: center;
    }

    #pageTitle>h1 {
        font-size: 20px;
    }

    .ServiceBlock>ul>li {
        padding-bottom: 4px;
    }

    #nav li a {
        display: none;
    }

    #top-menu {
        position: fixed;
        right: 10px;
        z-index: 100;
    }

    .kokuban,.speak-bubble,.point-box,.warning-box,.quote-box{
        max-width: -webkit-fill-available;
        max-width: -moz-available;
        line-break: anywhere;
    }
}

/*------655px------*/
@media screen and (max-width:655px) {
    .footerFixed {
        padding-bottom: 80px;
    }
    #related_articles{
        height: 100px;
    }
    .link-card > a:nth-child(2) {
        display: none;
    }
    #link-card-left > a > p{
        text-align: left;
    }
    #link-card-right > a > p{
        text-align: right;
    }


}

/*------500px------*/
@media screen and (max-width:500px) {
    h1 {
        padding: 0px;
    }

    h1:before,
    h1:after {
        display: none;
    }
}

/*------455px------*/
@media screen and (max-width:455px) {
    .footerFixed {
        padding-bottom: 80px;
    }
}