/* 基本のタグの設定 */
html {
    scroll-behavior: smooth;
}

body{
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 400;
    font-style: normal;
}

a{
    color: black;
}

h1 {
    position: relative;
    background: #dfefff;
    box-shadow: 0px 0px 0px 5px #dfefff;
    border: dashed 2px white;
    padding: 0.2em 0.5em;
    color: #454545;
}

h1:after {
    position: absolute;
    content: '';
    left: -7px;
    top: -7px;
    border-width: 0 0 15px 15px;
    border-style: solid;
    border-color: #fff #fff #a8d4ff;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
}

h2 {
    position: relative;
    padding-left: 25px;
}

h2:before {
    position: absolute;
    content: '';
    bottom: -3px;
    left: 0;
    width: 0;
    height: 0;
    border: none;
    border-left: solid 15px transparent;
    border-bottom: solid 15px rgb(119, 195, 223);
}

h2:after {
    position: absolute;
    content: '';
    bottom: -3px;
    left: 10px;
    width: 100%;
    border-bottom: solid 3px rgb(119, 195, 223);
}

h3 {
    position: relative;
    padding-left: 30px;
    color:#153c6e;
}

h3:before {
    position: absolute;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f121";
    background: #c9e2ff;
    color: #153c6e;
    font-size: 15px;
    border-radius: 50%;
    left: 0;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

h4 {
    padding: 0.25em 0.5em;/*上下 左右の余白*/
    color: #494949;/*文字色*/
    background: transparent;/*背景透明に*/
    border-left: solid 5px #7db4e6;/*左線*/
}

/* pointのCSS */
.point {
    position: relative;
    border-top: solid 2px #80c8d1;
    border-bottom: solid 2px #80c8d1;
    background: #f4f4f4;
    line-height: 1.4;
    padding: 0.4em 0.5em;
    margin: 2em 0 0.5em;
}

.point:after {
    /*タブ*/
    position: absolute;
    font-family: "Font Awesome 5 Free",'Quicksand','Avenir','Arial',sans-serif;
    font-weight: 900;
    content: '\f0a7\ POINT';
    background: #80c8d1;
    color: #fff;
    left: 0px;
    bottom: 100%;
    border-radius: 5px 5px 0 0;
    padding: 5px 7px 3px;
    font-size: 0.7em;
    line-height: 1;
    letter-spacing: 0.05em;
}

/* 画像に関するCSS */
.photo{
    width: 100%;
    height: 100%;
    padding: 2px;
    border: 5px solid #007bff;
    box-shadow: 1px 1px 3px #999;
}

/* まとめのセクションのCSS */
.summary h2 {
    color: #2c3e50;
}

.summary h3 {
    color: #2980b9;
}

.summary p {
    line-height: 1.6;
}

.summary .highlight {
    font-weight: bold;
    color: #e74c3c;
}

/* ミニまとめについて */
.words {
    position: relative;
    border-top: solid 2px #ffa337;
    border-bottom: solid 2px #ffa337;
    background: #fef8ea;
    line-height: 1.4;
    padding: 0.4em 0.5em;
    margin: 2em 0 0.5em;
}

.words:after {
    position: absolute;
    font-family: "Font Awesome 5 Free",'Quicksand','Avenir','Arial',sans-serif;
    font-weight: 900;
    content: '\f0eb\ POINT';
    background: #ffa337;
    color: #fff;
    left: 0px;
    bottom: 100%;
    border-radius: 5px 5px 0 0;
    padding: 5px 7px 3px;
    font-size: 0.7em;
    line-height: 1;
    letter-spacing: 0.05em;
}

/* ソースコード表示用のCSS */
code[class*=language-], pre[class*=language-] {
    color: #ccc;
    background: 0 0;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 1em;
    text-align: left;
    white-space: pre;
    word-spacing: normal;
    word-break: normal;
    word-wrap: normal;
    line-height: 1.5;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

pre[class*=language-] {
    padding: 1em;
    margin: .5em 0;
    overflow: auto;
}

:not(pre) > code[class*=language-], pre[class*=language-] {
    background: #212530;
    border-radius: 8px;
}

:not(pre) > code[class*=language-] {
    padding: .1em;
    border-radius: .3em;
    white-space: normal;
}

.token.comment,
.token.cdata,
.token.prolog {
    color: #75be91;
}

.token.punctuation {
    color: #e45fff;
}


.token.deleted,
.token.namespace{
    color: #e2777a;
}

.token.keyword,
.token.doctype,
.token.tag,
.token.property {
    color: #237ad1;
}

.token.url,
.token.attr-value,
.token.string,
.token.boolean {
    color: #f08d49;
}

.token.function,
.token.class-name,
.token.constant,
.token.selector,
.token.symbol {
    color: #f8c555;
}

.token.atrule,
.token.builtin,
.token.important {
    color: #f9a1fb;
}

.token.number,
.token.char,
.token.regex{
    color: #7ec699; 
}

.token.operator,
.token.function-name,
.token.entity,
.token.variable,
.token.attr-name {
    color: #84c6fc;
}

.token.bold,
.token.important {
    font-weight: 700;
}

.token.italic {
    font-style: italic;
}

.token.entity {
    cursor: help;
}

.token.inserted {
    color: green;
}

.code-container {
    position: relative;
    background-color: #4a4a4a;
    padding: 15px;
    border-radius: 8px;
    overflow: auto;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.code-header span {
    color: white;
    font-size: 1.1em;
}

.copy-button {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.copy-button:active {
    background-color: #0056b3;
}

pre {
    margin: 0;
}

/* ページのトップに戻るCSS */
.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: solid 2px #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: translateY(20%) rotate(-45deg);
}

@keyframes bugfix {
from {
    padding: 0;
}

to {
    padding: 0;
}
}

@-webkit-keyframes bugfix {
from {
    padding: 0;
}

to {
    padding: 0;
}

/* ハンバーガーメニューのCSS */
/* ハンバーガーメニューのボタンのCSS */
}
#overlay-button {
    position: fixed;
    right: 1em;
    top: 1em;
    padding: 26px 11px;
    z-index: 5;
    cursor: pointer;
    user-select: none;
}

#overlay-button span {
    height: 4px;
    width: 35px;
    border-radius: 2px;
    background-color: #494949;
    position: relative;
    display: block;
    transition: all .2s ease-in-out;
}

#overlay-button span:before {
    top: -10px;
    visibility: visible;
}

#overlay-button span:after {
    top: 10px;
}

#overlay-button span:before, #overlay-button span:after {
    height: 4px;
    width: 35px;
    border-radius: 2px;
    background-color: #494949;
    position: absolute;
    content: "";
    transition: all .2s ease-in-out;
}

#overlay-button:hover span, #overlay-button:hover span:before, #overlay-button:hover span:after {
    background: #494949;
}

input[type=checkbox] {
    display: none; 
}

input[type=checkbox]:checked ~ #overlay {
    visibility: visible; 
}

input[type=checkbox]:checked ~ #overlay-button:hover span, input[type=checkbox]:checked ~ #overlay-button span {
    background: transparent;
}

input[type=checkbox]:checked ~ #overlay-button span:before {
    transform: rotate(45deg) translate(7px, 7px);
}

input[type=checkbox]:checked ~ #overlay-button span:after {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* メニュータブの中身のCSS */
#overlay {
    height: 100%;
    width: 100%;
    background: #c2e1ffe0;
    z-index: 2;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
}

#overlay ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    height: 100vh;
    padding-left: 0;
    list-style-type: none;
    margin-top: 2em; 
}

#overlay ul li {
    padding: 1em;
}

#overlay ul li a {
    color: #494949;
    text-decoration: none;
}

#overlay ul li a:hover {
    color: #494949!important;
}

.no-scroll {
    overflow: hidden; 
}



@media (hover: hover) and (pointer: fine) {
    .pagetop:hover, .pagetop:hover .pagetop__arrow {
        border-color: #3293e7;
    }
}

/* スマートフォン縦 (0-480px) */
@media only screen and (max-width: 480px) {
    body{
        padding-left: 5%;
        padding-right: 5%;
    }
        /* ハンバーガーメニューのサイズを小さくする */
        #overlay-button {
            right: 1em;
            top: 1em;
            padding: 20px 8px; 
        }
    
        #overlay-button span, 
        #overlay-button span:before, 
        #overlay-button span:after {
            height: 3px;
            width: 25px; 
        }
}

/* スマートフォン横 (480-670px) */
@media only screen and (min-width: 481px) and (max-width: 670px) {
    body{
        padding-left: 10%;
        padding-right: 10%;
    }
}

/* タブレット (670-960px) */
@media only screen and (min-width: 671px) and (max-width: 960px){
    body{
        padding-left: 15%;
        padding-right: 15%;
    }
}

/* ノートPC (960-1280px) */
@media only screen and (min-width: 961px) and (max-width: 1280px){
    body{
        padding-left: 15%;
        padding-right: 15%;
    }
}

/* モニター等 (1280px以上) */
@media only screen and (min-width: 1281px){
    body{
        padding-left: 20%;
        padding-right: 15%;
    }
}