html {
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-family: "Yusei Magic", sans-serif;
    --theme-color-1: rgb(0, 0, 0);
    --theme-color-2: #fc3;
    --theme-color-3: rgb(27, 214, 180);
    color: #454545;
    scroll-behavior: smooth;
  }
  
  body {
    color: var(--main-foreground);
    line-height: 1.5;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 980px;
    margin: 2em auto;
    padding: 0px 30px;
  }
  
  h1 {
    font-weight: bold;
  padding: 0 3em;
  width: fit-content;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
  h1::before, h1::after {
  content: '';
  background: #4c9ac0;
  width: 2em;
  height: 3px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}
h1::before {
  left: 0;
}
h1::after {
  right: 0;
}

@media screen and (max-width: 750px) {
  h1{
    font-size: 135%;
  }
}
@media screen and (max-width: 540px) {
  h1{
    font-size: 100%;
  }
}
  
  h2 {
    position: relative;
    font-size: 135%;
    letter-spacing: 0.05em;
    font-weight: normal;
    padding: 0 0 0 1.5em;
    border-bottom: 3px solid var(--theme-color-1);
    
  }
  
  h2::before {
    position: absolute;
    left: 0.4em;
    font-weight: bold;
    font-family: "Font Awesome 6 Free";
    content: "\f5ad";
    top: 0.2em;
    font-size: 85%;
    color: var(--theme-color-1);
  }
  
  h3 {
    padding: 0 0.5em;
    margin-left: 0.5em;
    margin-right: 0.5em;
    border-left: 7px dotted #4c9ac0;
    background-color: #fff;
    outline: 3px solid #4c9ac0;
    outline-offset: 0.5em;
    position: relative;
  }

  h3::after {
    content: '';
    position: absolute;
    right: calc(-0.5em - 3px);
    top: calc(-0.5em - 3px);
    border-width: 0 20px 20px 0;
    border-style: solid;
    border-color: #4c9ac0 #fff #4c9ac0;
    box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.15); 
  }

  img {
    border-radius: 10px;
  }
  
  strong {
    font-style: normal;
    font-weight: normal;
    font-size: 125%;
    padding: 0 0.2em;
  }

  str {
    display       : inline-block;        /* ブロック化              */
    border        : 1px solid #d0d0d0;   /* 囲み線                  */
    padding       : 0px 4px;                 /* 囲み線内の余白          */
    margin        : 0 4px;               /* 囲み線のの外左右余白    */
    color         : #0a0a0a;             /* 文字色                  */
    background    : #d0d0d0;             /* 背景色                  */
    border-radius: 5px;
  }

  str2 {
    display       : inline-block;        /* ブロック化              */
    border        : 1px solid #140056;   /* 囲み線                  */
    padding       : 0 4px;                 /* 囲み線内の余白          */
    margin        : 0 4px;               /* 囲み線のの外左右余白    */
    color         : #ffffff;             /* 文字色                  */
    background    : #140056;             /* 背景色                  */
    border-radius: 5px;
  }
  
  a {
    text-decoration: none;
    color: black;
    cursor: pointer;
  }

  a:hover {
    text-decoration: none;
    color:  var(--theme-color-2);
    border-radius: 4px;
    border-bottom: none;
  }

  p {
    font-family: "Kiwi Maru", serif;
  }

  .url {
    text-decoration: none;
    color: skyblue;
    cursor: pointer;
    border-bottom: 1.5px dashed;
    transition: background-color 0.5s;
  }

  .url:hover {
    color: white;
    background-color: var(--theme-color-2);
    border-radius: 4px;
    border-bottom: none;
  }
  
  ul {
    list-style: none;
    padding: 0;
    margin-block-start: 0.7em;
    margin-block-end: 0.7em;
  }
  
  .list-design {
    list-style: none;
    padding: 0;
  }

  .list-design li {
    background: #ebf4f8;
    border-bottom: 2px solid #ededed;
    border-left: 12px solid #99bdde;
    margin-bottom: 5px;
    padding: .5em;
  }
  
  .list-design li:nth-child(even) {
    background: #ebf8f0;
    border-left: 12px solid #99ded9;
  }
  
  table{
    margin:auto;
  }


  .box1{
    padding: 0.5em 1em;
    margin: 2em 0;
    color: #ff7d6e;
    background: #ffebe9;
    border-top: solid 10px #ff7d6e;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.32);/*影*/
  }
  .box1 p {
    margin: 0; 
    padding: 0;
  }

  .box2{
    padding: 0.5em 1em;
    margin: 1em 0;
    background: #f4f4f4;
    border-left: solid 6px #5bb7ae;
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.33);
  }
  .box2 p{
    margin: 0; 
    padding: 0;
  }

  .box3{
    padding: 0.5em 1em;
    margin: 1em 0;
    color:#ffffff;
    background: #140056;
    border-radius: 5px;
  }
  .box3 p{
    margin: 0; 
    padding: 0;
  }

  pre{
    overflow-x: scroll;
  }

  .kaisetu{
    font-family: "Kiwi Maru", serif;
  }

  .inline{
    display: inline
  }

  .left_top{
    position:absolute;
		left:0px;
  }

  .right_top{
    position:absolute;
		right:40px;
  }

  .code_box{
    margin: 0;
    padding: 0;
    color         : #ffffff;
    background: #140056;
  }

  .code{
    padding: 0;
    font-family: "Source Code Pro", monospace;
    font-optical-sizing: auto;
    font-style: normal;
  }
  .code_string{
    padding: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
  }

  canvas {
    background: #eee;
    display: block;
    margin: 0 auto;
  }
  @media screen and (max-width: 610px) {
    /* 480px以下に適用されるCSS（スマホ用） */
    canvas{
      width: 100%;
      height: 100%;
    }
  }

