*{
  margin:0;
  padding:0;
}
body{
  background-color: #f8ffee;
  /* background-color: #fdf8f3; */
}
/* ここから下がハンバーガーメニューに関する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: 40px;
  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);
}
/* ハンバーガーメニューここまで */

.sticky {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  padding: 70px 5px 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: #7ac205;
  /* background-color: #f7fbfc; */
  margin: 0px;
  padding-top: 10px;
  padding-bottom: 3px;
  width: 100%;
  /* display: flex; */
  border-bottom: 5px solid #b3d93d;
  z-index: 97;
}
.header-box {
  display: flex;
  /* justify-content: space-between; */
  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-grow: 2;
}
.header-img a {
  text-decoration: none;
  display: inline-block;
}
.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;                /* 親要素を基準 */
}
#title-box {
  flex-grow: 30;
}
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{
  display: inline-block;
	color: #fffcbc;
	/* color: #235578; */
	font-size: 1.2rem;
	/* font-weight: bold; */
  /* vertical-align: top; */
  line-height: 1.0;
}
h1 span {
  font-size: 0.7rem;
}
#logo-img{
  height: 35px;
}

p{
    margin-left: 30px;
}

/* 副見出し */
h2 {
  /* width: 90%; */
  margin-top: 30px;
  /* margin-left: 30px; */
  position: relative;
  background: #e7f7de;
  padding: 5px 5px 5px 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #474747;
  border-radius: 0 10px 10px 0;
  padding-left: 20px;
  font-size: 1.1rem;
}
.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";
}
.practice:before{
  font-family: "Font Awesome 5 Free";
  content: "\f11c";
}
h2:before {
  display: inline-block;
  line-height: 40px;
  position: absolute;
  padding: 0em;
  color: white;
  background: #59a527;
  font-weight: 900;
  width: 40px;
  text-align: center;
  height: 40px;
  line-height: 40px;
  left: -1.35em;
  top: 50%;
  -webkit-transform: translateY(-50%);
  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{
  width: 90%;
  margin: auto;
  margin-top: 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.comics img {
  max-height: 500px;
  padding: 0;
}
.illustrate img.pherf {
  padding: 15px 0;
}

details{
  margin-bottom: 10px;
}

summary {
  display: block;
  list-style: none;
  margin-left: 20px;
}

summary::-webkit-details-marker {
  display:none;
}

summary:hover {
  cursor: pointer;
}

hr{
	width: 95%;
	margin: 20px auto;
}


/*------------------------------
  画像付き吹き出し(会話)
------------------------------*/
.talk{
  width: 80%;
  margin: auto;
  padding-top: 5px;
  border-radius: 20px;
}
.talk-word{
  margin:0 auto;
}
.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;
}

.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;
}

.image-right img {
  width: 50px;
  border-radius: 50%;
} 

.center{
  width: 500px;
  margin:0 auto;
  text-align: center;
}

.center img{
  width: 50%;
}

/*------------------------------
  基本型ブロック
------------------------------*/
#basic-code{
  background-color: #fff9f4;
  width: 80%;
  min-width: 400px;
  margin: 10px auto 20px;
  padding: 20px;
  box-shadow :0px 0px 5px silver;
  border-radius: 15px;
  text-align: center;
  vertical-align: middle;
}
#basic-code img{
  width: 80%;
}
#basic-code p{
  font-size: 2.5em;
}

.basic-table
{
	border-collapse:collapse;
	border:1px solid #0000ff;
	margin: 30px auto;
}

.basic-table th
{
	background-color:#ffffff;
	border:1px solid #0000ff;
	padding:5px;
	text-align:center;
  font-size: 1.0em;
}

.basic-table td
{
	background-color:#ffffff;
	border:1px solid #0000ff;
	padding:5px;
	text-align:center;
  font-size: 1.0em;
}

/*------------------------------
  コードブロック
------------------------------*/
 .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: #7ac205;
  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;
}

.comment{
  margin: auto;
  width: 90%;
}

.answer{
  background-color: #f4f4f4;
  margin: auto;
  width: 85%;
  padding: 10px;
  border-radius: 5px;
  /* font-size: 1.1em; */
  line-height: 1.3em;
  font-family:"Source Han Code JP", monospace, serif;
}

.answer pre {
  font-family: "Fira Code", "Consolas", "Courier New", monospace;
}

#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:#b3d93d;
  /* background-color:#0000cd; */
  width: 10%;
  padding: 25px;
  text-align: left;
  border-radius: 5px;
  position: relative;
}
.prev.none,
.next.none {
  opacity: 0;
}
.next{
  background-color:#b3d93d;
  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 {
  background-color: rgba(179, 217, 61, 0.3);
  /* background-color: #f8ffee; */
  color: #fff;
}
.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;
}