@charset "UTF-8";
/*
Theme Name: Manabino Academy
Author: まなびの学園
Description: まなびの学園のテーマです。
Version: 2.1
*/

/* 全体のスタイル調整 */
*{
    box-sizing: border-box; 
 }
 
/* bodyの初期スタイル調整 */
body{
    font-size: 16px;
    line-height: 1.5;
    font-family: sans-serif;
    font-weight: 400;
    color: #333;
    background-color: #efeedf;
}

/* 初期スタイル調整 */
h1, h2, h3{
    margin-top: 0;
    line-height: 1.5;
    letter-spacing: 0.2em;
    text-align: center;
}

h3{
    color: #005958;
    font-size: 14px;
    margin-bottom: 20px;
}

p{
    margin-top: 0;
    margin-bottom: 1.5em;
    text-align: justify;
}

a{
    color: #666;
    text-decoration: none;
}

a:hover, a:focus{
    color: #81282d;
    opacity: 0.7;
    text-decoration: none;
}

ul{
    margin: 1em 0;
    padding: 0;
    list-style: none;
}

img{
    width: 100%;
    height: auto;
}

section{
    padding: 60px 0;
}

.color-red{
    color: #81282d;
    text-shadow: 1px 1px 3px #ffffff;
}

.req{
	color: #81282d;
	font-size: 12px;
}

/* テーブルの初期設定 */
table{
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
	margin-bottom: 1.5em;
}

table, th, td{
    border: 1px solid #cccccc;
    padding: 0.5em;
}

th{
    background: #005958;
    color: #ffffff;
}

/* h2-titleへの指定 */
.h2-title{
    position: relative;
    z-index: 100;
}

.h2-title::before{
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    background: rgba(9, 89, 88, 0.4);
    position: absolute;
    left: 50%;
    margin-left: -20px;
    transform: rotate(45deg);
    z-index: -100;
}

/* text関連の指定 */
.txt-center{
    text-align: center;
}

.txt-lead{
    font-weight: 700;
}

/* ボタン共通（ベース）の設定 */
.btn{
    display: block;
    padding: 20px 35px;
    border-radius: 8px;
    margin: 0 auto;
    border: none;
}

.btn:hover, .btn:focus{
    opacity: 0.7;
    cursor: pointer;
}

/* モバイルとPCでの表示の切り替え */
.sp-only{
    display: block;
}

.pc-only{
    display: none;
}

@media screen and (min-width:768px){
    .sp-only{
        display: none;
    }

    .pc-only{
        display: block;
    }
}

/* ヘッダーのスタイル */
.header{
    position: fixed;
    top: 0px;
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 200;
}

.header-inner{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 15px;
    margin: 0 auto;
}

/* サイトロゴの表示 */
.header-logo{
    width: 200px;
    margin: 0;
    text-align: left;
}

.header-logo h1{
    margin: 0;
    text-align: left;
}

@media screen and (min-width:768px){
    .header-logo{
        width: 250px;
    }
}

/* ハンバーガーメニュー */
.gnav-toggle{
    position: relative;
    margin-top: 16px;
}

    /* checkboxを非表示 */
    .gnav-hidden{
        display: none;
    }

    /* アイコンのスペース */
    #gnav-open{
        display: inline-block;
        width: 30px;
        height: 22px;
        vertical-align: middle;
    }

    /* ハンバーガーの3本線 */
    #gnav-open span{
        position: absolute;
        box-sizing: content-box;
        padding: 0;
        outline: none;
        border: none;
        background: none;
        width: 25px;
        height: 16px;
        cursor: pointer;
        color: #555;
    }

    #gnav-open span::before, #gnav-open span::after{
        content: '';
        display: block;
        height: 3px;
        background-color: currentColor;
        transform: translateY(6.5px);
        transition: 0.3s ease-in-out;
    }

    #gnav-open span::before{
        transform: translateY(-6.5px);
        box-shadow: 0 8px currentColor;
    }

/* 薄い幕部分 */
#gnav-close{
    display: none;
    position: fixed;
    z-index: 290;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    opacity: 0;
    transition: 0.3s ease-in-out;
}

/* チェックが入った時のスタイル */
#gnav-input:checked ~ #gnav-open span{
    z-index: 300;
    color: #ffffff;
}

#gnav-input:checked ~ #gnav-open span::before{
    transform: translateY(1.5px) rotate(45deg);
    box-shadow: none;
}

#gnav-input:checked ~ #gnav-open span::after{
    transform: translateY(-1.5px) rotate(-45deg);
}

#gnav-input:checked ~ #gnav-close{
    display: block;
    opacity: 0.5;
}
    
#gnav-input:checked ~ #gnav-contents{
    transform: translateX(0%);
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.15);
}
    
/* メニューの中身 */
#gnav-contents{
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    width: 70%;
    max-width: 300px;
    height: 100%;
    background: rgba(0, 89, 88, 0.8);
    transition: 0.3s ease-in-out;
    transform: translateX(-105%)
}

.gnav-menu{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
}

.menu-item {
    border-bottom: 2px dotted #eeeeee;
    margin: 10px;
    padding-bottom: 20px;
}

.menu-item a{
    color: #ffffff;
    font-size: 12px;
    display: block;
    width: 200px;
    text-align: center;
}

.menu-item a::first-line{
    font-size: 16px;
    font-weight: bold;
}

/* PC用グローバルメニュー */
@media screen and (min-width:768px){
    .gnav-menu{
        flex-direction: row;
        padding-top: 15px;
        margin: 0;
    }

    .menu-item{
        border-bottom: none;
        margin: 0;
        padding-bottom: 0;
    }

    .menu-item a{
        color: #333333;
        width: 100px;
    }

    .menu-item a:hover{
        color: #81282d;
    }
}

/* メインビジュアル */
.main-visual{
    width: 100vw;
    height: 100vh;
    background-image: url(img/blackboard.jpg);
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.main-visual-title{
    color: #ffffff;
    text-shadow: 0px 0px 3px #333333;
    margin-top: 70px;
    margin-bottom: 70px;
    font-size: 1.5em;
}

.main-visual-title .color-red{
	font-size: 1.8em;
}

.main-visual-info{
    display: flex;
    color: #ffffff;
    justify-content: space-between;
    margin-bottom: 100px;
}

.main-visual-info li{
    width: 200px;
	text-align: center;
}

.number{
	font-size: 1.5em;
}

/* 検索フォーム */
.search-form{
    margin-bottom: 20px;	
}

.search-field{
    width: 300px;
    border-radius: 10px;
    padding: 10px 20px;
}

.search-submit{
    display: none;
}

@media screen and (min-width:768px){
    .main-visual{
        width: 100%;
        height: 600px;
    }

    .main-visul-title{
        margin-top: 90px;
    }
}

/* 2段組み表示 */
@media screen and (min-width:768px){
    .main-inner{
        display: flex;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
    }

    .main-contents{
        width: 68%;
    }

    .main-sub{
        width: 28%;
    }
}

/* メインコンテンツ */
.main-contents{
    padding: 0 15px;
    margin: 0 auto;
}

/* 特徴 */
.feature{
    padding-bottom: 10px;
}

.feature-contents{
    display: flex;
    flex-wrap: wrap;
}

.feature-item{
    flex: 40%;
    text-align: center;
    padding: 20px 20px 0;
    margin: 5px;
    border: 3px solid #005958;
    border-radius: 10px;
}

.feature-item img{
    width: 60%;
    margin: 0 auto;
}

@media screen and (min-width:768px){
    .feature-contents{
        justify-content: space-between;
    }

    .feature-item{
        flex: 0 1 31%;
    }

}

/* 学習の進め方 */
.howto-item{
    background-color: #fff;
    margin-bottom: 30px;
    box-shadow: 1px 1px 3px #aaa;
}

.howto-title{
    padding: 10px 20px;
    background-color: #005958;
    color: #fff;
}

.howto-explain{
    padding: 0 15px 15px;
}

.howto-arrow{
    display: block;
    transform: rotate(90deg);
    width: 60px;
    margin: 0 auto;
}

/* サイドバー */

.main-sub aside ul{
    list-style-type: none;
}

aside h2{
    background-color: #005958;
    color: #ffffff;
    font-size: 18px;
}

.postform{
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
}

@media screen and (min-width:768px){
    .main-sub{
        margin-top: 100px;
    }
}

/* フッター */
.footer{
    color: #ffffff;
    text-align: center;
    padding: 25px 15px;
    background-color: #005958;
}

/* タイトルビジュアル */
.header-visual{
    width: 100%;
    height: 300px;
    background-image: url(img/blackboard.jpg);
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
}

.header-visual-title{
    color: #ffffff;
    text-shadow: 0px 0px 3px #333333;
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 1.5em;
}

.header-visual-info{
    display: flex;
    color: #ffffff;
    justify-content: center;
	margin-top: 0;
    margin-bottom: 20px;
}

.header-visual-info li{
	display: block;
    width: 150px;
	text-align: center;
}

/* 講座紹介 */
.course-item{
    background-color: #fff;
    margin-bottom: 30px;
    box-shadow: 1px 1px 3px #aaa;
}

.course-title{
    margin-top: 0;
    text-align: center;
    padding: 10px 20px;
    color: #fff;
    background-color: #005958;
}

.course-info{
    padding: 0 15px 15px;
}

.course-list li::before{
    content: "";
    background: url(img/list-marker.svg) no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px 3px;
}

@media screen and (min-width:768px){
    .course-contents{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .course-item{
        flex: 0 1 45%;
    }
}

/* カテゴリーページ内講座リスト */
.learning-item{
    width: 100%;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 0;
    border: solid 2px #005958;
    border-radius: 5px;
}

.learning-info{
    display: block;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.learning-info:hover{
    background-color: rgba(129, 40, 45, 0.7);
    color: #fff;
}

.learning-title{
    font-size: 1.5em;
}

.learning-info img{
    width: 240px;
    height: 180px;
    margin: 10px auto;
}

@media screen and (min-width:768px){
    .learning-info{
        display: flex;
        flex-direction: row-reverse;
    }

    .learning-txt{
        flex: 2;
        margin-left: 30px;
    }

    .learning-title{
        margin-top: 10px;
    }

    .learning-info img{
        flex: 1;
    }
}

/* お問い合わせフォーム */
.contact-info{
    padding: 0 20px;
}

.wpcf7-form{
    width: 90%;
    max-width: 800px;
    margin: 0 auto 40px;
    background: #fff;
    padding: 20px 0;
}

.contact-dl{
    margin: 0 auto;
    width: 90%;
}

.form-item{
    margin-bottom: 40px;
}

.contact-dt{
    width: 100%;
    margin-bottom: 10px;
}

.contact-dd{
    width: 100%;
    margin-left: 0;
}

input[type="text"], input[type="email"], textarea{
    display: block;
    width: 100%;
    font-size: 16px;
}

.form-submit{
    text-align: center;
}

.contact-dt, .contact-dd, textarea{
    color: #666;
}

.contact-dt::before{
    content: "◆";
    color: #005958;
    padding-right: 6px;
}

input[type="text"], input[type="email"], textarea{
    border: 1px solid #ccc;
    background: #fff;
    padding: 0.3em;
}

input[type="submit"]{
    background: #81282d;
    width: 200px;
    padding: 0.5em;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    padding: 1em;
    border: solid 1px #ccc;
    border-radius: 10px;
}

textarea{
    min-height: 100px;
}

@media screen and (min-width:769px){
    .contact-form{
        padding: 40px 0;
    }
    
    .contact-dl{
        width: 500px;
    }

    .form-item{
        display: flex;
        justify-content: center;
    }

    .contact-dt{
        width: 200px;
    }
    
    .contact-dd{
        width: 300px;
    }

    input[type="submit"]:hover, input[type="submit"]:focus{
        opacity: 0.7;
        cursor: pointer;
    }
}

/* 個別投稿記事 */
.lecture{
    background-color: #fff;
    margin-bottom: 30px;
    box-shadow: 1px 1px 3px #aaa;
    padding: 15px;
}

.lecture .small{
	width: 40%;
	margin: 0 auto;
}

.lecture .medium{
	width: 60%;
	margin: 0 auto;
}

iframe{
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* カッコつき数字リスト */
ol.list_parentheses{
    padding:0 0 0 2em;
    margin-top: 0;
	margin-bottom: 50px;
}

ol.list_parentheses li{
    list-style-type:none;
    list-style-position:inside;
    counter-increment: cnt;
	margin-bottom: 5px;
}

ol.list_parentheses li:before{
    display: marker;
    content: "(" counter(cnt) ") ";
}


/* カタカナリスト */
ol.katakana{
	list-style-type: none;
	list-style-type: katakana;
}

/* 正誤判定 */
.judge{
	color: #005958;
	font-weight: bold;
}

/* 解答投稿フォーム */
.answer-item{
	display: flex;
	margin-bottom: 10px;
}

.answer-dt{
	width: 20px;
}

.answer-dd{
	width: 100px;
}

/* ページ遷移（ナビリンク） */
.navlink{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0;
    margin: 0 auto;
}

/* ページネーション */
.wp-pagenavi{
	margin-bottom: 20px;
}

.navlink a:hover{
    color: #81282d;
}

/* サイドバー */
aside{
	margin-bottom: 5px;
}

.aside-title{
	margin-bottom: 0;
}

.aside-title a{
	color: #ffffff;
}

.aside-list{
	background-color: #ffffff;
	margin-top: 0;
}

.aside-list li{
	padding: 5px;
	border-bottom: 2px solid #eeeeee;
}

/* ページネーション */
.wp-pagenavi {
	clear: both;
}

.wp-pagenavi a, .wp-pagenavi span {
	text-decoration: none;
	font-size: 25px;
	border: 1px solid #BFBFBF;
	padding: 3px 6px;
	margin: 3px;
}

.wp-pagenavi a:hover, .wp-pagenavi span.current {
	border-color: #000;
}

.wp-pagenavi span.current {
	font-weight: bold;
}
