*{
  margin:0;
  padding:0;
}
body{
  background-color: #f4f4fb;
}
/* ここから下がハンバーガーメニューに関するCSS */
/* チェックボックスを非表示にする */
.nav{
  position: fixed;
  top: 0;
  right: 7px;
  z-index: 100;
  font-size: 0.9rem;
}
.nav::after {
  right: 0;
}
.drawer_hidden {
  display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer_open {
  display: flex;
  height: 60px;
  width: 60px;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 99;/* 重なり順を一番上にする */
  cursor: pointer;
}

/* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: '';
  display: block;
  height: 3.2px;
  width: 30px;
  border-radius: 3px;
  background: #fff;
  transition: 0.5s;
  position: absolute;
}

/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
  bottom: 9px;
}

/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
  top: 9px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer_input:checked ~ .drawer_open span {
  background: rgba(255, 255, 255, 0);
}

/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer_input:checked ~ .drawer_open span::before {
  bottom: 0;
  transform: rotate(45deg);
  background: #333;
}

#drawer_input:checked ~ .drawer_open span::after {
  top: 0;
  transform: rotate(-45deg);
  background: #333;

}
  
/* メニューのデザイン*/
.nav_content {
  /* width: 350px; */
  height: 94%;
  position: fixed;
  top: 0;
  left: 100%; /* メニューを画面の外に飛ばす */
  z-index: 98;
  background: #ffffff;
  transition: .5s;
  text-align: left;
  padding-top: 50px;
  padding-left: 10px;
  border: 1px solid #d6d6d6;
  box-shadow: 3px 0px 3px #d6d6d6 inset;
  overflow-y: scroll;
}
.nav_content::-webkit-scrollbar {
  background: #eee;
  width: 7px;
  height: 7px;
}
.nav_content::-webkit-scrollbar-thumb {
  background-color: #7ac205;
}
.nav_list {
  list-style: none;
  padding-bottom: 15px;
}
.nav_list a {
  text-decoration: none;
}
.nav_list a:link {
  color: #818181;
}
.nav_list a:visited {
  color: #595590;
}
.nav_list li{
  margin-left: 30px;
  padding: 5px;
}

/* アイコンがクリックされたらメニューを表示 */
#drawer_input:checked ~ .nav_content {
  left: calc(100vw - 350px);
}
.current {
  background-color: rgba(22, 161, 194, 0.3);
  /* background-color: #f8ffee; */
  color: #fff;
}
/* ハンバーガーメニューここまで */

.sticky {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  padding: 5px;
  border: 3px solid #d6d6d6;
  text-align: center;
  z-index: 10;
}
.sticky img{
  width: 80%;
  margin: auto;
  display: block;
}
#accordionBtn{
  max-width: 985px;
  margin-top: 10px;
  border: none;
  background-color: inherit;
  color: #000000;
  text-align: center;
  font-size:1em;
}

#container{
  /* max-width: 1000px; */
  min-width: 600px;
  margin: auto;
}
header{
  position: fixed;
  background-color: #16a1c2;
  margin: 0px;
  padding-top: 10px;
  padding-bottom: 3px;
  width: 100%;
  border-bottom: 5px solid #F19049;
  z-index: 97;
}
.header-box {
  display: flex;
  align-items: baseline;
  margin: 0 auto;
  max-width: 1000px;
}
header >:last-of-type{
  margin-left: auto;
}
#lesson-title {
  margin-left: 20px;
  margin-top: auto;
  margin-bottom: auto;
	font-size: 1.5em;
  color: #fff;
  font-weight: bold;
}

.header-img{
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 0;
  position: relative;
  flex-basis: 10%;
}
.header-img a {
  text-decoration: none;
  display: inline-block;
}
#logo-img{
  vertical-align: bottom;
  height: 45px;
}
.header-img a:hover {
  opacity: 0.5;
}
.header-img:hover .balloon {
  display: inline;                /* インライン要素として表示 */
}
.balloon {
  position   : absolute;                /* 親要素を基準 */
  display: none;                        /* 要素を非表示 */
  padding: 2px;                         /* テキストの前後の余白 */
  background-color: rgba(102, 102, 255, 0.50);       /* 背景色（透明度） */
  width:180px;                          /* 吹き出し全体の幅 */
  left : -3%;                           /* 表示位置 */
  top : 85%;                           /* 表示位置 */
  margin-top : 12px;                    /* 表示位置 */
  font-size: 80%;                       /* 文字サイズ */
  text-align: center;
  z-index: 999;
}
.balloon:after{
  border-bottom: 12px solid rgba(102, 102, 255, 0.50); /* 吹き出し口の高さ・色 */
  border-left: 10px solid transparent;    /* 吹き出し口の幅１／２ */
  border-right: 10px solid transparent;   /* 吹き出し口の幅１／２ */
  top: -12px;                             /* 吹き出し口の位置調整 */
  left : 8%;                              /* 吹き出し口の横位置 */
  content: "";                       /* コンテンツの挿入 */
  position: absolute;                /* 親要素を基準 */
}

article{
  background-color: #ffffff;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 0;
  padding-top: 70px;
  padding-bottom: 50px;
  border-radius: 10px;
  box-shadow :0px 0px 2px #d6d6d6;
}
section {
  max-width: 800px;
  margin: 0 auto;
}
h1{
	color: #fff;
	font-size: 1.5em;
  margin-left: 20px;
  margin-top: auto;
  margin-bottom: auto;
  font-weight: bold;
}

.centering {
  text-align: center;
  margin: 30px auto;
}

/* 副見出し */
h2 {
  margin-top: 30px;
  position: relative;
  background: #16a1c2;
  padding: 5px 5px 5px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  border-radius: 0 3px 3px 0;
}
.top-menu {
  margin: 50px auto 40px;
  padding: 20px 40px;
  border-radius: 0;
}
.basic:before{
  font-family: "Font Awesome 5 Free";
  content: "\f5fc";
}
.example:before{
  font-family: "Font Awesome 5 Free";
  content: "\f1c9";
}

.gold {
  font-size: 1.5em;
  font-weight: bold;
  color: #BF9000;
}
h2.issue {
  margin-top: 0;
  border-radius: 3px;
}
.kadai {
  font-weight: bold;
  margin-top: 30px;
}
h2.issue,
h2.keep {
  font-size: 0.9em;
  background: #FFD966;
  color: #333;
  margin-bottom: 30px;
  padding: 8px 30px;
}
.keep:before,
.learn:before {
  font-family: "Font Awesome 5 Free";
  content: "\f0c7";
  font-size: 1.4em;
}
h2.issue span,
h2.keep span {
  background: #fff;
  color: #BF9000;
  font-size: 1.2em;
  margin: 0 20px;
  padding: 2px 20px;
}

h2.practice {
  font-size: 0.9em;
  background: #9CC2E5;
  color: #333;
  margin-top: 0;
  margin-bottom: 30px;
  padding: 8px 30px;
  border-radius: 3px;
}
h2.practice span {
  background: #fff;
  color: #0070C0;
  font-size: 1.2em;
  margin: 0 20px;
  padding: 2px 20px;
}
h2.learn {
  font-size: 0.9em;
  background: #F7CAAC;
  color: #333;
  margin-top: 0;
  margin-bottom: 30px;
  padding: 8px 30px;
  border-radius: 3px;
}
h2.learn span {
  background: #fff;
  color: #BF9000;
  font-size: 1.2em;
  margin: 0 20px;
  padding: 2px 20px;
}

h2.keep:before {
  display: inline-block;
  color: white;
  background: #BF9000;
  width: 42px;
  text-align: center;
  line-height: 42px;
  position: absolute;
  top: 50%;
  left: -1.25em;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  border-radius: 50%;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.29);
}
h2.learn:before {
  display: inline-block;
  color: white;
  background: #C00000;
  width: 42px;
  text-align: center;
  line-height: 42px;
  position: absolute;
  top: 50%;
  left: -1.25em;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  border-radius: 50%;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.29);
}

h3 {
  margin-top: 10px;
  text-align: center;
}
h3.it4 {
  margin-top: 30px;
}

.description {
  margin: 0 auto;
  border: 2px solid #BF9000;
  padding: 30px 20px;

}

.illustrate{
  max-width: 90%;
  margin: auto;
  text-align: center;
}
.illustrate.it4 {
  max-width: 100%;
}
.illustrate img {
  max-width: 100%;
  max-height: 350px;
  margin: auto;
  object-fit: contain;
  padding: 30px 0;
}
.illustrate img.height2 {
  max-height: 700px;
}
.illustrate img.pherf {
  padding: 15px 0;
}

.question .illustrate img {
  padding-top: 0;
}
.question {
  width: 95%;
  margin: 0 auto;
}
.question p {
  line-height: 2;
}

details{
  margin-bottom: 10px;
}

summary {
  display: block;
  list-style: none;
  margin-left: 20px;
  margin-top: 15px;
}

summary::-webkit-details-marker {
  display:none;
}

summary:hover {
  cursor: pointer;
}

hr{
	margin: 20px auto;
}


/*------------------------------
  画像付き吹き出し(会話)
------------------------------*/
.talk{
  width: 80%;
  margin: auto;
  padding-top: 5px;
  border-radius: 20px;
}
.talk-word{
  margin:0 auto;
}
.indent {
  padding-left: 1.1em;
  text-indent: -1.1em;
}
.rights {
  width: 96%;
  margin-left: auto;
  margin-right: 0;
}
.containerL {
  display: flex;
  align-items: flex-start;
}

.image-left {
  margin-right: 5px;
}

.balloon-left {
  padding: 10px;
  margin: 10px;
  background-color: #edf1ee;
  border-radius: 10px;
  box-shadow: 2px 2px 5px #ccc;
  position: relative;
}

.balloon-left::before {
  content: "";
  border-top: 10px solid transparent;
  border-right: 10px solid #edf1ee;
  border-bottom: 10px solid transparent;
  position: absolute;
  left: -10px;
  top: 10px;
}

.image-left img {
  width: 40px;
  border-radius: 50%;
}

.containerR {
  display: flex;
  justify-content : end; 
  align-items: flex-start;
}
.containerR.bulletpoint {
  justify-content: space-between;
}

.image-right {
  margin-left: 5px;
}

.balloon-right {
  padding: 10px;
  margin: 10px;
  background-color: #f3f3f3;
  color: #000000;
  border-radius: 10px;
  box-shadow: 2px 2px 5px #ccc;
  position: relative;
}

.balloon-right::after {
  content: "";
  border-top: 10px solid transparent;
  border-left: 10px solid #f3f3f3;
  border-bottom: 10px solid transparent;
  position: absolute;
  right: -10px;
  top: 10px;
}
.balloon-right.bullet {
  flex-grow: 1;
}

.image-right img {
  width: 50px;
  border-radius: 50%;
} 

.center{
  width: 500px;
  margin:0 auto;
  text-align: center;
}

.center img{
  width: 50%;
}

.setting {
  display: flex;
  margin: 30px auto;
}

.setting .explanation {
  /* padding-top: 10px; */
  width: 80%;
}
.setting .explanation p {
  margin-left: 15px;
  margin-bottom: 20px;
  font-size: 0.8rem;
}

.setting .illustrate {
  width: 100%;
  margin: 0;
}
.setting .illustrate.flex-left {
  width: 66%;
  padding-top: 10px;
}

.setting .illustrate img {
  padding: 0;
}


ul {
  width: 80%;
  margin: 0 auto;
}
ul li {
  line-height: 2;
}
.explanation.square {
  margin-left: 50px;
}
.square ul li {
  list-style: square;
  line-height: 1;
}
.square ul li::marker {
  font-size: 2.5rem;
  margin-right: 5px;
}
.square ul li span {
  vertical-align: 0.5rem;
}

/*------------------------------
  基本型ブロック
------------------------------*/
#basic-code{
  background-color: #F8DCDC;
  /* width: 80%; */
  /* min-width: 400px; */
  margin: 0 auto 20px;
  padding: 20px;
  box-shadow :0px 0px 5px silver;
  border-radius: 5px;
  /* text-align: center; */
  vertical-align: middle;
}
#basic-code img {
  width: 80%;
}
#basic-code p {
  font-size: 1.2rem;
  font-weight: bold;
  margin-left: 0;
  margin-bottom: 10px;
}
#basic-code p.try {
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  font-weight: normal;
}
.table {
  margin: 20px auto;
}
table {
	border-collapse: collapse;
	margin: 20px auto;
}
table.row1 {
  margin-bottom: 0;
}
table.ronri th:first-child {
  width: 20%;
}
table.ronri th:last-child {
  width: 50%;
}
table.ronri td img {
  width: 66%;
}
table.ronri td:first-child {
  font-weight: bold;
}
table.ronri td:last-child {
  text-align: justify;
}

table.table-list td {
  border: 2px solid #ED7D31;
  font-weight: bold;
}

table caption {
  font-size: 0.9em;
  text-align: left;
}

tr:nth-child(even) {
  background-color:#F8D6CC;
}
tr:nth-child(odd) {
  background-color: #FCECE7;
}

th {
	background-color: #ED7D31;
  border-bottom: 5px solid #fff;
  color: #fff;
  padding: 5px 10px;
  font-size: 1.1em;
}
th {
  border-right: 2px solid #fff;
  border-left: 2px solid #fff;
}

td {
	border: 2px solid #fff;
	padding: 5px 20px;
	text-align:center;
  vertical-align: middle;
}
td.td-left {
  text-align: left;
}
.row-font  {
  font-size: 0.9em;
}

.row1 td:first-child {
	background-color: #ED7D31;
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
}

/*------------------------------
  コードブロック
------------------------------*/
 .code_block {
    width: 90%;
    margin: auto;
    margin-top: 50px;
    position: relative;
    border: 1px solid #ffcc66;
}

.code_block_title {
    position: absolute;
    display: inline-block;
    top: -25px;
    left: -1px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #ffcc66;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}

.control-bar{
    background-color: #ffffff;
    border-bottom: 1px solid #d6d5d5;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 5px;
    font-size: 1.0em;
}

.control-bar button{
    height: 25px;
    width: 25px;
    background-color: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 3px;
}
.control-bar input{
    padding-left: 2px;
    padding-bottom: 2px;
    font-size: 1.0em;
}

/*------------------------------
  ポイント解説ブロック
------------------------------*/
.point_front {
    position: relative;
    margin: 0 auto;
    margin-top: 50px;
    width: 85%;
    padding: 0.5em 1em;
    border: solid 3px #F56500;
}

.point_front .point_front_title {
    position: absolute;
    display: inline-block;
    top: -27px;
    left: -3px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 1.1em;
    background: #F56500;
    color: #ffffff;
    border-radius: 5px 5px 0 0;
}

.point_front ul {
    list-style: none;
    margin: 12px;
    padding: 0;
    font-size: 1em;
    color: #444444;
}

.point_front p i {
    color: #F56500;
}

aside{
  background-color: #ffffff;
    margin-top: 5px;
}

footer{
  /* background-image: url(../img/footer-line.png); */
  background-color: #16a1c2;
  color: #fff;
  height: 25px;
  margin-top: 5px;
  padding-top: 3px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.9em;
}

/*------------------------------
  演習課題ブロック
------------------------------*/
.mondai {
    width: 90%;
    padding: 0 0 5px 0;
    margin: auto;
    margin-top: 5px;
    background: #fffef4;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.22);
}

.mondai_title {
    /* width: 95%;; */
    font-size: 1.3em;
    background-color:#ffae00;
    padding: 6px;
    margin-bottom: 10px;
    text-align: center;
    color: #3c3c3c;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.mondai ul{
    list-style: none;
    padding: 7px 20px;
    margin: 0px;
    font-size: 1.0em;
    font-weight: bold;
    color: #333333;
}

.mondai ul li {
    padding: 2px 0;
    font-size: 0.9rem;
}

.mondai ol li {
    margin-left: 40px;
    padding: 3px 0;
    font-size: 0.8rem;
}

.mondai ol li i{
    color: #f7c6a4;
}



.answer{
  background-color: #e4e4e4;
  margin: auto;
  width: 85%;
  padding: 10px;
  border-radius: 5px;
  font-size: 1.1em;
  line-height: 1.1em;
  font-family:"Source Han Code JP", monospace, serif;
}
#paging {
  width: 100%;
  max-width: 1000px;
  margin: 10px auto;
}
#paging.top {
  margin: 20px auto;
}
.paging{
  margin-top: 5px;
  width: 100%;
  font-size: 1.3em;
  display: flex;
  justify-content: space-between;
}
.prev{
  background-color:#16a1c2;
  width: 10%;
  padding: 25px;
  text-align: left;
  border-radius: 5px;
  position: relative;
}
.prev.none,
.next.none {
  opacity: 0;
}
.next{
  background-color:#16a1c2;
  width: 10%;
  padding: 25px;
  text-align: right;
  border-radius: 5px;
  position: relative;
}
.prev a{
  color: #ffffff;
  text-decoration: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  align-content: center;
}
.next a{
  color: #ffffff;
  text-decoration: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  align-content: center;
}

.text-red {
  color: red;
}
.text-blue {
  color: rgb(87, 143, 238);
  font-weight: bold;
}

.current a {
  pointer-events: none;
}
.current::marker {
  background-color: #000000;
}
li::before {
  content: "";
  display: block;
  width: 3px;
  height: 100%;
  background-color: yellow;
  margin-right: 5px;
}

.komidashi {
  margin: 30px auto;
}

pre {
  white-space: pre-wrap;
}

.m-box {
  margin: 30px auto;
}
figure .illustrate img {
  padding-top: 0;
}
figcaption {
  text-align: center;
}