/* 全体の設定 */
body {
    margin: 0;
    font-family: ' メイリオ ','Hiragino Kaku Gothic Pro', sans-serif;
  }

/* サイト名 */
.site h1 {
    margin: 0;
    padding: 15px;
    font-size: 50px;
}

.site {
    position: relative;
}

.site a {
    text-decoration: none;
    color: #000000;
}

.site h1 img {
    position: absolute;
    left: 160px;
    bottom: 10px;
    width: 100px;
}

/* ########### 599px以下 ########## */
@media (max-width: 599px) {
.site h1 {
    font-size: 30px;
    padding: 0;
}
    
.site h1 img {
    left: 85px;
    bottom: 0;
    width: 60px;
}
}

/* ナビゲーション */
/* ########### 767px以下 ########## */
@media (max-width: 767px) {
/* トグルボタン */
#menubtn {
    padding: 6px 12px;
    border: solid 1px #aaaaaa;
    border-radius: 5px;
    background-color: #ffffff;
    position: absolute;
    top: 20px;
    right: 15px;
    cursor: pointer;
}

#menubtn:hover {
    background-color: #dddddd;
}

#menubtn:focus {outline: none;}

#menubtn span {
    display: inline-block;
    text-indent: -9999px;
}

#menubtn {
    color: #888888;
    font-size: 18px;
}

/* ナビゲーションメニュー（縦並び） */
#menu {
    display: none;
}

.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu li a {
    display: block;
    padding: 5px;
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.menu li a:hover {
    font-weight: bold;
    color: #ffffff;
    background-color: #ffe564;
}
}

/* ########### 768px以上 ########## */
@media (min-width: 768px) {
#menubtn {
    display: none;
}

#menu {
    display: block !important;
}

.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu li a {
    display: block;
    padding: 10px 15px;
    color: #000000;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;  

}

.menu li a:hover {
    font-weight: bold;
    color: #ffffff;
    background-color: #ffe564;
}

.menu ul::after {
    display: block;
    content: "";
    clear: both;
}

.menu li {
    float: left;
    width: auto;
}
}

/* ヘッダー画像 */
.box3 .message {
    margin: 0;
    padding: 10px 0;
    color: #eeeeee;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    background-color: #2143cc;
}

.toping {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* ########### 599px以下 ########## */
@media (max-width: 599px) {
.box3 p {
    padding: 5px 0;
    font-size: 20px;
}
}

/* ヘッダー画像-キャッチコピー */
.catch {
    font-size: 25px;
    font-family: "Times New Roman" , "游明朝" , "Yu Mincho" , "游明朝体" , "YuMincho" , "ヒラギノ明朝 Pro W3" , "Hiragino Mincho Pro" , "HiraMinProN-W3" , "HGS明朝E" , "ＭＳ Ｐ明朝" , "MS PMincho" , serif;
    font-weight: bold;
    position: absolute;
    background-color: #eeeeeead;
    padding: 5px;
    margin: 0;
    left: 50px;
    top: 80%;
}

.catch .moyamoya {
    font-size: 35px;
    color: #c16033;
}

.catch .sukkiri {
    font-size: 35px;
    color: #3de5ff;
}

.catch p {
    margin: 0;
}

/* ########### 599px以下 ########## */
@media (max-width: 599px) {
.catch {
    font-size: 20px;
    padding: 3px;
    top: 140px;
    left: 30px;
}
    
.catch .moyamoya {
    font-size: 25px;
}
    
.catch .sukkiri {
    font-size: 25px;
}

/* 改行のための設定 */
.catch .sp {
    display: block;
}
}

/* ########### 1190px以上 ########## */
@media (min-width: 1190px) {
.catch {
    font-size: 50px;
    padding: 10px;
    top: 400px;
    left: 60px;
}
    
.catch .moyamoya {
    font-size: 60px;
}
    
.catch .sukkiri {
    font-size: 60px;
}
}

/* ヘッダー画像-小ボックス */
.smallboxes::after {
    display: block;
    content: "";
    clear: both;
}

.smallbox1 {
    float: left;
    width: auto;
}

.smallbox2 {
    float: left;
    width: auto;
}

.smallbox3 {
    /*　苦渋の決断 */
    display: none;
    float: left;
    width: auto;
}


.smallbox1, .smallbox2, .smallbox3 {
    font-size: 6px;
    color: #f73434;
    font-weight: bold;
    margin: 0;
    padding: 3px;
}

.smallbox1 p {
    margin: 0;
}

.smallbox2 p {
    margin: 0;
}

.smallbox3 p {
    margin: 0;
}

.box3 {
    position: relative;
}

.smallbox1 {
    position: absolute;
    left: 20px;
    top: 50px;
}

.smallbox2 {
    position: absolute;
    left: 180px;
    top: 50px;
}

.smallbox3 {
    position: absolute;
    left: 340px;
    top: 80px;
}

/* ########### 768px以上 ########## */
@media (min-width: 768px){
.smallbox1, .smallbox2, .smallbox3 {
    display: inline-block;
    font-size: 18px;
    color: #f73434;
    background-color: #ffc164a5;
    font-weight: bold;
    margin: 0;
    padding: 10px;
}

.smallbox1 p {
    margin: 0;
}

.smallbox2 p {
    margin: 0;
}

.smallbox3 p {
    margin: 0;
}

.box3 {
    position: relative;
}

.smallbox1 {
    position: absolute;
    left: 20px;
    top: 80px;
}

.smallbox2 {
    position: absolute;
    left: 180px;
    top: 80px;
}

.smallbox3 {
    position: absolute;
    left: 340px;
    top: 80px;
}
}

/* アピール1 */
.box4 p {
    margin: 0;
    padding-bottom: 20px;
    font-size: 25px;
    font-weight: normal;
    text-align: center;
    font-weight: bolder;
}

.box4-1 {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.box4-2 {
    width: 600px;
    padding-top: 10px;
    margin-right: auto;
    margin-left: auto;
}

.box4-2 ul {
    margin: 0;
    padding: 0;
}

.box4-2 li {
    font-size: 23px;
    font-weight: bolder;
    color: #129696;
    list-style: none;
}

.photo {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* ########### 599px以下 ########## */
@media (max-width: 599px) {
.box4 li {
    font-size: 18px;
    list-style: none;
}
}

/* ########### 1190px以上 ########## */
@media (min-width: 1190px) {
.box4 p {
    padding-bottom: 20px;
    font-size: 25px;
}
/* BOX4-1,BOX4-2を横に並べる設定 */
.box4::after {
    display: block;
    content: "";
    clear: both;
}

.box4-1 {
    float: left;
    width: 40%;
}

.box4-2 {
    float: right;
    width: 55%;
    padding: 40px;
    box-sizing: border-box;
}

.box4-2 {
    position: relative;
    background: #ffffff;
    border: 10px solid #ffe564;
}

/* BOX4-2を吹き出しにする設定 */
.box4-2:after, .box4-2:before {
    right: 100%;
    top: 50%;
    border: solid transparent;
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.box4-2:after {
    border-color: rgba(255, 255, 255, 0);
    border-right-color: #ffffff;
    border-width: 20px;
    margin-top: -20px;
}

.box4-2:before {
    border-color: rgba(255, 229, 100, 0);
    border-right-color: #ffe564;
    border-width: 34px;
    margin-top: -34px;
}

/* 吹き出し内のフォントサイズ */
.box4-2 li {
    font-size: 27px;
}
}

/* 3つの強み */
.box5 h1 {
    margin-bottom: 10px;
    border-bottom: solid 5px #ffe564;
    color: #000000;
    text-align: center;
}

.box5 h2 {
    margin: 10px;
    border-bottom: solid 3px #6d6767;
    font-size: 16px;
    font-weight: bolder;
    text-align: center;
}

.box5 p {
    margin: 10px;
}


.box5-1 {
    border: solid 5px #ff8f8f;
    margin-bottom: 5px;
}

.box5-2 {
    border: solid 5px #8cff7a;
    margin-bottom: 5px;
}

.box5-3 {
    border: solid 5px #3de5ff;
    margin-bottom: 5px;
}

.box5-1 img {
    max-width: 100%;
}

.box5-2 img {
    display: block;
    max-width: 90%;
    margin: auto;
}

.box5-3 h3 {
    margin-top: 40px;
    text-align: center;
    background-color: #dddddd;
}

.box5-3 .time {
    text-align: center;
    font-size: 20px;
}

/* ########### 599px以下 ########## */
@media (max-width: 599px) {
/* アピール2 */
.box5 h1 {
    font-size: 25px;
}

/* BOX5-2から画像がはみ出さないようにする */
.box5-2 {
    height: 550px;
}
}

/* BOX5-1,BOX5-2,BOX5-3の高さをそろえる */
.box5-1, .box5-2, .box5-3 {
    height: 450px;
}

/* ########### 768px以上 ########## */
@media (min-width: 768px) {
/* BOX5-1,BOX5-2,BOX5-3を横に並べる設定 */
.box5::after {
    display: block;
    content: "";
    clear: both;
}

.box5-1 {
    float: left;
    width: 32%;
    margin-right: 2%;
    box-sizing: border-box;
}

.box5-2 {
    float: left;
    width: 32%;
    margin-right: 2%;
    box-sizing: border-box;
}

.box5-3 {
    float: left;
    width: 32%;
    box-sizing: border-box;
}    
}


/* 電験三種の説明 */
.box6 {
    text-align: center;
}

.box6 h1 {
    margin: 0;
    border-top: solid 5px #ffe564;
    border-bottom: solid 5px #ffe564;
    background-color: #eeeeee;
}

.box6 p {
    margin: 0;
    padding: 10px;
    font-size: 20px;
    background-color: #ffe5648c;
}

.box6 .orange {
    color: #f0a139;
    font-weight: bold;
}

.box6 .kamoku {
    font-weight: bolder;
    font-size: 25px;
}

.box6 .red {
    color: #ff0000;
}

/* ########### 599px以下 ########## */
@media (max-width: 599px) {
/* 4科目の表示が1行で収まるようにする */
.box6 .kamoku {
    font-size: 20px;
}
}

/* 授業スタイル */
.box8 h1 {
    margin-bottom: 10px;
    border-bottom: solid 5px #ffe564;
    color: #000000;
    text-align: center;
}

/* コピーライト */
.box7 {
    background-color: #dddddd;
}

.copyright p {
    margin: 0;
    color: #666666;
    font-size: 17px;
}

/* ブロック単位の構成 */
/* BOXの左右 */
.boxA, .box4, .box5, .box6, .box7, .box8 {
    padding-left: 15px;
    padding-right: 15px;
}

/* BOXの上下 */ 
.boxA {
    padding-top: 20px;
}

.box4 {
    margin-top: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.box6 {
    padding-top: 20px;
}

.box7 {
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ########### 768px以上 ########## */
@media (min-width: 768px) {
/* BOX1とBOX2を横に並べる設定 */
.boxA::after {
    display: block;
    content: "";
    clear: both;
}

.box1 {
    float: left;
    width: auto;
}

.box2 {
    float: right;
    width: auto;
}
}

/* ########### 1190px以上 ########## */
@media (min-width: 1190px) {
/* 全体の横幅を固定 */
.box3, .box4, .box5, .boxA-inner, .box6, .box7-inner, .box8, .box1_ryoukin{
    width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

/* BOXAの下に罫線を挿入 */
.boxA {
    margin-bottom: 10px;
    border-bottom: solid 3px #ffe564;
}
}

/* -----全ページ共通----- */
.title h1 {
    padding: 15px;
    text-align: center;
    background-color: #ffe564;
}

.subtitle h2 {
    padding: 5px;
    color: orange;
    background-color: rgba(255, 166, 0, 0.411);
}

/* -----お問い合わせ・お申し込みページ----- */
.otoiawase {
    text-align: center;
}

.otoiawase p {
    font-size: 30px;
}

.contact-form {
    border: solid 10px #ffac64;
    text-align: center;
}

.contact-form p {
    font-size: 30px;
}

.item {
    font-size: 20px;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.button-area {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* ブロック単位の構成 */
/* BOXの左右 */
.otoiawase, .contact-form {
    margin-left: 15px;
    margin-right: 15px;
}

/* -----料金ページ----- */
.onlinejyugyou p span {
    font-size: 60px;
    color: #e63636;
}

.onlinejyugyou p {
    border: solid 5px #e6363689;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
}

.onlinejyugyou h3 {
    font-size: 20px;
    padding: 0;
    margin: 0;
    font-weight: normal;
}

.onlinejyugyou ul {
    padding: 10px 0 0 0;
    margin-left: 5%;
    margin-top: 0;
    margin-bottom: 0;
}

.shitsumon p span {
    font-size: 60px;
    color: #e63636;
}

.shitsumon p {
    border: solid 5px #e6363689;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
}

.shitsumon h3 {
    font-size: 20px;
    padding: 0;
    margin: 0;
    font-weight: normal;
}

.shitsumon ul {
    padding: 10px 0 0 0;
    margin-left: 5%;
    margin-top: 0;
    margin-bottom: 0;
}

/* ########### 599px以下 ########## */
@media (max-width: 599px) {
.onlinejyugyou p {
    border: solid 5px #e6363689;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.shitsumon p {
    border: solid 5px #e6363689;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}
}
