@charset "utf-8";

/* 色テーマ */
/* body {
background: #AEF2AC;
background: #C6F2C4;
background: #BF7373;
background: #F2F2F2;
background: #0D0D0D;
} */

/* リセット */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
  overflow-y: visible;
  margin: 0;
}

main {
  display: block;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

p,
table,
blockquote,
address,
pre,
iframe,
form,
figure,
dl {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}

/* スタイル */

* {
    box-sizing: border-box;
}

body {
  background: #C6F2C4;
  letter-spacing: .4px;
  overflow-y: visible;
}

.bl {
  display: block;
}

.red {
  font-weight: 700;
}

.bold {
  font-weight: 600;
}

/* ヘッダー */


#hpheader {
  width: 100%;
  background: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}


header {
  background: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hptitle {
  margin: 0 auto;
  height: 100px;
  width: auto;
}

.headernav {
  padding: 0 32px 0 0;
}

.headernav a {
  color: #0D0D0D;
  padding: 8px;
  transition: .2s;
}

.headernav a:hover {
  color: ghostwhite;
}

.headernav a:active {
  color: #0D0D0D;
}


/* 記事 */

  .wrap {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 24px;
    width: 1140px;
    margin: 0 auto;
    overflow: visible;
  }

  .main-inner {
    flex: 1;
    width: 800px;
  }

  article {
    width: 100%;
    max-width: 800px;
    margin: 32px auto;
    padding: 32px 64px;
    background: #FFF;
    border-radius: 10px;
  }
 
  article header {
    background: #FFF;
  }

  h1 {
    font-size: 1.5em;
    font-weight: 700;
    /* background: pink; */
  }

  .content {
    /* background: skyblue */
  }
  

  .content img {
    margin: 16px 0 64px;
    box-shadow: 0 0 5px #333;
  }
  
  .thumbnail img , .content-step0 .thumbnail img {
    min-width: 100%;
    vertical-align: bottom;
    margin: 0;
    margin-bottom: 2em;
    box-shadow: none;
  }

  .content-step0 img {
    display: block;
    max-width: 200px;
    margin: 116px auto 16px;
    box-shadow: none;
  }

  .step0 img {
    box-shadow: none;
    max-width: 200px;
    max-height: 200px;
  }

  .boxes {
    text-align: center;
    margin: 64px 0;
  }

  .nextbox {
    display: inline-block;
    margin: 64px 32px;
  }

  .nextbox a {
    color: ghostwhite;
    font-size: 0.8em;
    font-weight: 700;
    text-align: center;
    padding: 12px 16px;
    background: green;
    border-radius: 8px;
  }
  
  /* 目次 */

  .mkj {
    background: mintcream;
    border: solid 2px #0D0D0D;
    border-radius: 8px;
    margin: 32px 0;
  }

  .mkj ol {
    border-radius: 3px;
  }

  .mkj h2 {
    padding: 8px 12px;
    margin: -1px;
    background: #0D0D0D;
    border: none;
    font-size: 18px;
    text-align: center;
    color: #fff;
  }

  .mkj a {
    color: #545454;
    padding: 2px 0;
    display: block;
  }

  /* 見出し */

  .headfix h2 {
    background: #f7f7f7;
    border-left: solid #BF7373 5px;
    padding: 14px 12px;
    border-bottom: solid 3px #dadada;
    font-size: 24px;
    margin: 1.8em 0;
    clear: both;
  }

  .content h3 {
    position: relative;
    padding: 10px 0 10px 16px;
    margin-left: -16px;
    font-size: 21px;
    margin: 3em 0 1em;
    font-weight: 700;
    line-height: 1.4;
}

  .content-step0 h3 {
    position: relative;
    padding: 10px 0 10px 16px;
    margin-left: -16px;
    font-size: 21px;
    margin: 3em 0 1em;
    font-weight: 700;
    line-height: 1.4;
}

/* 黒見出し（h3） */

  .content h3:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 3px;
    width: 6px;
    height: 100%;
    background: #0D0D0D;
}

  .content-step0 h3:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 3px;
    width: 6px;
    height: 100%;
    background: #0D0D0D;
}

  /* ふせんボックス */

  .gbox {
    background: #f3f5f6;
    padding: 10px 15px;
    position: relative;
    margin-bottom: 32px;
  }

  .gbox:after {
    position: absolute;
    content: "";
    right: 0;
    top: 0;
    border-width: 0 16px 16px 0;
    border-style: solid;
    border-color: ghostwhite ghostwhite #e7e7e7;
    box-shadow: -1px 1px 1px rgba(0, 0, 0, .15);
  }

/* サイドバー */

  #sdbar {
    position: sticky;
    top: 20px;
    align-self: start;
  }

  .toc-mobile {
    display: none;
  }

  .sidemkj .mkj {    
    border: none;
    padding-bottom: 6px;
    margin-bottom: 0;
    max-height: 500px;
    overflow-y: auto;
  }

  .sidemkj .mkj p {
    text-align: center;
    background: #BF7373;
    color: #fff;
    font-weight: 700;
    padding: 8px 10px;
    font-size: 18px;
    vertical-align: middle;
  }


/* フッター */

  footer {
    background: #fff;
    padding: 16px 0;
    text-align: center;
    margin-top: 32px;
  }

  small {
    font-size: 0.8em;
    font-weight: 300;
    /* background: pink; */
  }

/* 記事フッター */
/* (メニューリスト) */

.postfooter {
  background: #FFF;
  text-align: center;
}

.postfooter li {
 transition: .2s;
}

.postfooter li:hover {
  box-shadow: 0px 0px 16px #DDD;
}

.postfooter li:active {
  box-shadow: 0 0;
}

.rlpsth3 img {
    vertical-align: -30%;
    padding-right: 6px;
}

.rlpsth3 {
    font-size: 25px;
    font-weight: 700;
    color: #565656;
    border-bottom: solid 3px #f0ebeb;
    margin: 0 0 .5em;
    padding: 5px 0;
    text-align: center;
    white-space: nowrap;
}

.rea {
    background: #fff;
    display: table;
    width: 100%;
    min-width: 200px;
    border: solid 2px #e5e5e5;
    color: #333;
    font-weight: 700;    
}

.rep {
    text-align: left;
    display: table-cell;
    vertical-align: middle;
    padding: 0 1em;
    width: calc(100% - 100px);
    border-left: #e5e5e5 solid 2px;
}

.rlmg {
    display: table-cell;
    width: 90px;
    height: 90px;
    vertical-align: middle;
}

.re {
  /* background: red; */
  display: inline-block;
}

.re ul li {
    display: block;
    position: relative;
    width: 45%;
    margin: 14px 1% 0;
    float: left;
}

.rlmg img {
    width: 100%;
}
a img {
    border: none;
}

span.stepnum {
    padding: 4px 10px;
    top: -6px;
    left: -7px;
    background: #79cbff;
    color: #fff;
    display: inline-block;
    position: absolute;
    font-weight: 700;
    z-index: 20;
    font-size: .83em;
    font-family: Arial, sans-serif;
    line-height: 1;
    box-shadow: 1px 1px 1px gray;
    letter-spacing: .07em;
}

.post-text p {
  /* background: lightcoral; */
}

/* メディアクエリ */

@media (max-width: 700px) {

body{
	font-family: sans-serif ;
}

#hpheader {
  padding: 4px;
}
  
.hptitle {
  margin: 0 auto;
  height: 60px;
  width: auto;
}

  .hajimeni {
  /* background: ghostwhite; */
  display: inline-block; 
  text-align: center;
}

  article {
    width: 95%;
    min-width: 300px;
    padding: 16px 16px;
  }

.bold {
  font-weight: 600;
  font-size: 1.1em;
  margin: 0;
}

ul {
  /* background: goldenrod; */
  padding-inline-start: 0;
  list-style: none;
  margin: 0;
  padding-top: 32px;
  display: inline;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: baseline;
}

li {
  margin-top: 16px;
  margin-bottom: 32px;
}

.nextbox {
  display: inline-block;
  margin: 16px;
}

.ablock {
  background: ghostwhite;
  margin: 0 auto;
  min-width: 400px;
  max-width: 85%;
  height: 140px;
  position: relative;
  transition: .2s;
}

.re ul li {
    display: block;
    position: relative;
    width: 100%;
    float: none;
    margin: 14px 1% 0;
}

.rlpsth3 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* 折り返し許可 */
  white-space: normal; /* テキスト折り返し有効 */
  gap: 0.5rem; /* 画像とテキストの間に余白を追加 */
}


  /* 画像 */
  .step0 img {
    box-shadow: none;
    max-width: 100px;
    max-height: 100px;
  }

  /* サイドバー縦並び */

  .wrap {
    display: block; /* flex解除して縦並び */
    width: 95%;
    max-width: 500px;
  }

  .main-inner {
    margin-right: 0;
    width: 100%;
  }

  #sdbar {
    display: none;
    height: 10000px;
  }

  .toc-mobile {
    display: block;
    margin: 1.5rem 0;
  }

  .mkj {
    margin-top: 32px;
  }

  .mkj ol {
    margin: 8px 0;
  }

  .mkj ol li {
    margin: 0;
  }

}