
body {
    font-family: 'Questrial', Verdana, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
}
*{margin: 0; padding:0;}
a{
    text-decoration:none;
    color:#000;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}
a:hover,.logoutbutton:hover {color: #436bec;}
.mypageContents02 a {
    color: #436bec;
}

img{vertical-align: middle;}
ul,li{
    list-style: none;
}
table{border-collapse: collapse;}
input[type="submit"],select{cursor: pointer;}
button{border: none;cursor: pointer;}
.hidedn{display: block;}
ul.sphidden {
    display: none;
}
.m10{margin:10px;}
.mt10{margin-top: 10px;}
.mt40{margin-top: 40px;}
.mb10{margin-bottom: 10px;}
.mb20{margin-bottom: 20px;}
.mr10{margin-right: 10px;}
.p10{padding:10px;}
/* ヘッダー */
header  {
    width:100%;
    background:#f2f2f2;
    border-top:5px solid #dadf00;
    border-bottom:1px solid #ddd; 
}
header h1{margin: 15px 0 10px 20px; }
header h1 img{
    width: 30px;
    vertical-align: middle;
    margin-top: -5px;
    margin-right: 5px;
}
h1.sphidden {
    display: none;
}
.searchfield{
    width: 90%;
    height: 30px;
    border-radius: 5px;
    border:1px solid #828282;
    padding: 0 10px;
}

.searchbutton{
    border: 0px;
    width:25px;
    height:25px;
    background: url(../imgs/button_search.png) left top no-repeat;
    background-size: 25px 25px;
    margin-left: -30px;
    margin-top: 4px;
    z-index: 300;
    position: absolute;
}


/* nav */

#menu li {
    border-bottom: 1px solid #828282;
}
#menu li:first-child{
    border-top: 1px solid #828282;
}
#menu li a {
    color: #000;
    display: block;
    padding: 15px;
}
span.drawer-hamburger-icon {
    margin-bottom: 10px;
}
span.drawer-text {
    font-size: 10px;
    color: #828282;
}
ul.drawer-menu {
    margin-top: 70px;
}
ul.drawer-menu form {
    margin: 15px auto;
    text-align: center;
}
ul.drawer-menu li{
    text-align: left;
    border-bottom: 1px solid #828282;
}
ul.drawer-menu li:first-child{
    border-top: 1px solid #828282;
}
ul.drawer-menu li a{
    display: block;
    margin: 0 auto;
    text-align: center;
}
ul.drawer-menu li.p15 a {
    padding: 15px;
}


input#logout {
    border: none;
    background: none;
    display: block;
    margin: 0 auto;
    width: 100%;
}
.logoutbutton{
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;    
}
/* nav end */


/* contents */
#contents{
/*
    width: 90%;
*/
    margin:0 auto;
    display: block;
    clear:both; 
}
#contents02{
    width: 100%;
    margin:0 auto;
    display: block;
    clear:both; 
}
#contents02 .breadcrumb {
    max-width: 960px;
}
.video-wrapper{
    max-width: 960px;
    margin: 0 auto;
}
#contents h2,#contents02 h2{
    margin-bottom: 10px;
}
#contents h2{
    width: 90%;
    margin: 0 auto;
}
.breadcrumb{
    font-size: 0.75em;
    margin: 10px auto;
    width: 90%;
}
#contents02 .breadcrumb{
    width: 90%;
    margin: 10px auto;
}
.categoryList{
    margin-top: 20px;
}
.categoryList li{
    padding: 20px 0;
    border-bottom:1px solid #828282;        
}
.categoryList li:nth-child(even){
    background: #f2f2f2;
}
.categoryList li:first-child{
    border-top:1px solid #828282;        
}
.categoryList li .comment{
    width: 90%;
    margin: 10px auto 0;
}
.categoryList li h3{
    width: 90%;
    margin: 0 auto;
}
img.v-tag-img {
    border-radius: 5px;
}
/* contents end */

/* video.php */
.categoryText{
    width: 90%;
    margin: 10px auto 20px;
}
.videoList ul li{
    clear: both;
    overflow: hidden;
    border-bottom:1px solid #828282;
    padding: 10px 0;     
}
.videoList li:first-child{
    border-top:1px solid #828282;        
}
.videoList li:nth-child(even){
    background: #f2f2f2;
}
.videoInner{
    width: 90%;
    margin: 0 auto;
}
.videoThumb{
    float: left;
    width: 40%;
}
.videotext{
    float: left;
    word-wrap: break-word;
    word-break: break-all;
    width: 58%;
    margin-left: 2%;
}
.tagicon {
    margin: 10px 0;
}
.tagicon ul li{
    clear: none;
    border: none;
    float: left;
    margin-left: 5px;
    padding-top: 0;
}
.tagicon ul li:first-child{
    margin-left: 0;
    border: none;
}
.tagicon ul li:nth-child(even){
    background: none;
}

.v-comment{
    clear: left;
}
.pager {
    margin: 20px auto;
    text-align: center;
}
.pager ul{
    margin: 0 auto;
}
.pager ul li {
    border: none;
    display: inline-block;
    margin: 0 5px;
}
.pager ul li:first-child{
    border: none;    
}
.pager ul li:nth-child(even){
    background: none;
}

.pager ul li a {
    color: #fff;
    padding: 10px 15px;
    border: 1px solid #828282;
    display: inline-block;
    background: #828282;
    border-radius: 5px;
}
.pager ul li a:hover {
    background: #fff;
    color: #828282;
}
.pager ul li.select span{
    color: #000;
    padding: 10px 15px;
    border: 1px solid #828282;
    display: inline-block;
    background: #fff;
    border-radius: 5px;
}
.videoThumb img {
    width: 100%;
}
/* video.php end */


/* watch.php */
.video-wrapper {
    position: relative;
    width: 100%;
}
.video-wrapper:before {
    content:"";
    display: block;
    padding-top: 56.25%;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.watchText{
    margin-top: 10px;    
}
.watchText h2,ul.iconList{
    width: 90%;
    margin: 10px auto;
    overflow: hidden;
}
#p_btns{
    width: 90%;
    margin: 10px auto 30px;
    clear: both;
    overflow: hidden;
}
.watchDescription,.relatedVideos{
    background: #eee;
    overflow: hidden;
    border-top: 1px solid #828282;
}
.watchDescription{
    position: relative;
    z-index: 10;
    margin-top: -2px;
}
ul.tab,.tab-content{
    width: 90%;
    margin: 20px auto 0;
}

ul.tab{
    overflow: hidden;
    border-bottom: 1px solid #828282;
    background: #eee;
}
ul.tab li{
    float: left;
    display: inline-block;
    padding: 10px;
    width: 33%;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    border: 1px solid #828282;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}
ul.tab li:nth-child(2){
    width: 34%;
}
ul.tab li.select {
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 100;
}

.tab-content{
    clear: both;
    padding: 0 0 20px;
}
ul.tab-content li{
    width: 100%;
    border: none;
    text-align: left;
    cursor: pointer;
}
li.hide {
    display: none;
}
.movieTag{
    clear: both;
    border-top: 1px solid #828282;
    padding-top: 10px;
}
.movieTag h3{
    width: 90%;
    margin: 10px auto 0;
}
.movieTagList{
    width: 90%;
    margin: 10px auto 20px;
}
.movieTagList a{
    color: #436bec;
    padding-top: 10px;
}
.relatedVideos{
    padding-top: 20px;
}
.relatedVideos h3{
    width: 90%;
    margin: 0 auto;
}
.relatedVideos ul{
    width: 90%;
    margin: 10px auto;
}
.relatedVideos ul li{
    clear: both;
    padding-bottom: 10px;
    overflow: hidden;
}
.relatedVideos ul li .v-item-min{
    float:left;
    max-width: 100%;
}
.v-img-min {
    float: left;
    width: 160px;
}
.relatedVideos ul li .v-text-min{
    float: left;
    overflow: hidden;
    height: 160px;
    margin-left: 10px;
    max-width: 80%;
}
.v-text-min a {
    vertical-align: top;
    display: block;
    height: 87px;
    }
.comp_select{
    width: 100px;
    height: 24px;
    background: none;
    background-image: url(../imgs/button_comp.gif);
    background-size: 100px 24px;
    background-repeat: no-repeat;
    border: none;
}
.comp_select:hover,.comp_non_select:hover {
    background-image: url(../imgs/button_comp_on.gif);
 }
.comp_non_select{
    width: 100px;
    height: 24px;
    background: none;
    background-image: url(../imgs/button_comp.gif);
    background-size: 100px 24px;
    background-repeat: no-repeat;
    border: none;
}

.study_select{
    width: 100px;
    height: 24px;
    background-image: url(../imgs/button_study.gif);
    background-size: 100px 24px;
    background-repeat: no-repeat;
    border: none;
}
.study_select:hover {
    background-image: url(../imgs/button_study_on.gif);
 }
.study_non_select{
    width: 100px;
    height: 24px;
    background-image: url(../imgs/button_study_off.gif);
    background-size: 100px 24px;
    background-repeat: no-repeat;
    border: none;
}
.unlearn_select{
    width: 100px;
    height: 24px;
    background: none;
    background-image: url(../imgs/button_unlearn.gif);
    background-size: 100px 24px;
    background-repeat: no-repeat;
    border: none;
}
.unlearn_select:hover,.unlearn_non_select:hover {
    background-image: url(../imgs/button_unlearn_on.gif);
 }
.unlearn_non_select{
    width: 100px;
    height: 24px;
    background: none;
    background-image: url(../imgs/button_unlearn.gif);
    background-size: 100px 24px;
    background-repeat: no-repeat;
    border: none;
}


#p_btns button {
    margin-right: 5px;
}
ul.iconList li {
    float: left;
    margin-right: 5px;
}
.select-box01 {
    float: right;
    overflow: hidden;
}
.select-box01 select {
    width: 100px;
    padding: 3px 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #999;
    background: #eee;
    background: url(../imgs/arrow01.png) right 50% no-repeat, -webkit-linear-gradient(top, #fff 0%,#f2f2f2 100%);
    background: url(../imgs/arrow01.png) right 50% no-repeat, linear-gradient(to bottom, #fff 0%,#f2f2f2 100%);
    background-size: 20px, 100%;
}
/* watch.php end */


/* mypage周り */
.mypage{
    background: #f2f2f2;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #dddddd;
    border-radius: 5px;
    margin-bottom: 20px;
}
.mypage .tab ul li{
    width: 50%;
    text-align: center;
    float: left;
    background: #fff;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
    cursor: pointer;
}
.mypage .tab ul li.select{
    background: #f2f2f2;
}
.mypage .tab ul li:nth-child(even){
    border: none;
    border-bottom: 1px solid #ddd;
}
.mypage .tab ul li h2,
.mypage .tab ul li h3{
    font-size: 1em;
}
#contents .mypage h2{
    margin-bottom: 0;
}
.mypage .tab ul li a,
.mypage .tab ul li a:active{
    display: block;
    padding: 15px 0;
}
.mypageContents{
    padding: 10px;
    clear: both;
}

.mypageContents table{
    margin: 10px;
    table-layout: fixed;
    width: 100%;
}
.mypageContents table tr{
    vertical-align: top;
}
.mypageContents table tr th{
    width: 40%;
    text-align: left;
    padding-bottom: 10px;
}
.mypageContents table tr td{
    width: 60%;
    text-align: left;
    word-break:break-all;
    padding-bottom: 10px;
}

/*
#show_list {
    border-top: 1px dotted #000;
    padding-top: 20px;
}
#show_list button.select{
    border-bottom: 2px solid #436bec;
}
#show_list ul{
    padding-bottom: 10px;
}
#show_list ul li {
    padding-top: 20px;
    clear: both;
    overflow: hidden;
}
#show_list ul li .videoText {
    margin-top: -5px;
    margin-left: 10px;
    float: left;
}
#show_list ul li .videoText p{
    font-weight: bold;
    margin-top: 10px;
}
*/
.mypageContents form{
    margin: 10px;
}
.mypageContents input[type="email"],
.mypageContents input[type="text"],
.mypageContents input[type="password"]{
    width: 95%;
    height: 40px;
    border: 1px solid #828282;
    padding: 0 10px;
    display: block;
}
.mypageContents form p{
    margin-bottom: 20px;
}
.mypagebutton {
    width: 75%;
    border: none;
    border-radius: 5px;
    color: #fff;
    background: #e08e00;
    box-shadow: 0 3px #ab7820;
    position: relative;
    display: block;
    top: -2px;
    padding: 15px 20px;
    margin: 0 auto;
}
.mypagebutton02{
    width: 75%;
    border: none;
    border-radius: 5px;
    color: #fff;
    background: #e08e00;
    box-shadow: 0 3px #ab7820;
    position: relative;
    display: block;
    top: -2px;
    padding: 15px 0;
    text-align: center;
    margin: 20px auto 0;
}
.mypagebutton:hover,
.mypagebutton02:hover {
  box-shadow: 0 1px #ab7820;
  top: 1px;
}
.send-msg{
    color: red;
    padding-bottom: 20px;
}

.mypageContents textarea{
    width: 95%;
    height: 100px;
    padding: 10px;
}

#show_list {
}
#show_list button{
    width: 50%;
    background: #eee;
    padding: 10px;
    box-sizing: border-box;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    float: left;
    border: 1px solid #ddd;

}
#show_list button.select {
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 100;
}

ul.mypageTab{
    overflow: hidden;
    border: 1px solid #ddd;
    background: #eee;
    border-top: none;
    clear: both;
    padding: 0 20px;
}
#show_list ul{
    padding-bottom: 10px;
}
#show_list ul li {
    padding-top: 20px;
    clear: both;
    overflow: hidden;
}
#show_list ul li .videoText {
    margin-top: -5px;
    margin-left: 10px;
    float: left;
}
#show_list ul li .videoText p{
    font-weight: bold;
    margin-top: 10px;
}

/* mypage周り end */

/* top.php　*/
.topList {
    margin-top: 20px;
}
.topList li:first-child {
    border-top: 1px solid #828282;
}
.topList li {
    border-bottom: 1px solid #828282;
}
.topList li:nth-child(even) {
    background: #f2f2f2;
}
.topList li a{
    padding: 15px 20px;
    display: block;
}
.topList img {
    margin-right:10px;
    margin-top: -5px;
}
/* top.php　end */

/* admin周り */
.welcome {
    float: right;
    margin-top: 25px;
}
.adminMenu {
    clear: both;
    overflow: hidden;
    padding-bottom: 20px;
}
.adminMenu02{
    float:left;
}
.schoolInfo {
    float: right;
}
table#datas{
    width: 100%;
    margin: 10px auto;
}
table#datas th, table#datas td {
    text-align: center;
    padding: 10px;
    vertical-align: middle;
}
input#sea-text {
    width: 250px;
    float: left;
    margin: 20px 0;
}
button#sea-btn {
    float: left;
    border: 1px solid #828282;
    padding: 6px 10px;
    margin: 20px 0;
}
.clear,.link{
    clear: both;
}
.btn,.link a,.mypageContents02 .link a {
    color: #fff;
    background: #e08e00;
    box-shadow: 0 3px #ab7820;
    position: relative;
    display: inline-block;
    top: -2px;
    padding: 10px 20px;
    border:0;
    border-radius: 5px;
}
a.btn{color: #fff;}
.btn:hover,.link a:hover {
    box-shadow: 0 1px #ab7820;
    top: 1px;
    color: #fff;
}
input[type="submit"].btn{
    width: 50%; 
    color: #fff;
}
.tips {
    margin: 0 auto 10px;
}


.mypageContents02{
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    clear: both;
}
.mypageContents02 table{
    margin: 10px;
    table-layout: fixed;
    width: 80%;
    margin: 10px auto;
}
.mypageContents02 table tr{
    vertical-align: top;
}
.mypageContents02 table tr th{
    width: 30%;
    text-align: left;
    padding-bottom: 10px;
}
.mypageContents02 table tr td{
    width: 70%;
    text-align: left;
    word-break:break-all;
    padding-bottom: 10px;
}
.mypageContents02 input[type="email"],
.mypageContents02 input[type="text"],
.mypageContents02 input[type="password"],
.mypageContents02 input[type="number"]{
    width: 95%;
    height: 30px;
    border: 1px solid #828282;
    padding: 0 10px;
    display: block;
}
.mypageContents02 form p{
    margin-bottom: 20px;
}
.mypageContents02 textarea{
    width: 95%;
    height: 100px;
    padding: 10px;
}
#contents .mypageContents02 h2{
    width: 100%;
    margin-bottom: 10px;
}
.mypageContents02 table tbody th,.mypageContents02 table tbody td{
    vertical-align: top;
}
ul.schoolInfoManage li{
    margin-bottom: 20px;
}
.mypageContents02 form {
    margin: 0 auto;
    text-align: center;
}
.log{
    height: 200px;
    overflow-y:scroll;
    border: 1px solid #828282;
    padding: 10px;
    margin-top: 10px;
    background: #fff;
}
#datas td{
    background: #fff;
}
.red {
    color: red;
}
.red hr {
    border: none;
    border-top: 1px solid;
}


/* pc */
@media screen and (min-width: 1024px){
.hidden{
    display: none;
}
ul.sphidden,h1.sphidden {
    display: block;
}
header .inner{
    width: 960px;
    margin: 0 auto;
    display: block;
    overflow: hidden;
}
header h1 {
    margin: 25px 0 10px;
        float: left;
        font-size: 1.75em;
}
header h1 img {
    width: 50px;
    vertical-align: middle;
    margin-right: 5px;
    margin-top: -5px;
}
#menuList{float:right;}
#menuList ul li{
        margin-bottom: 10px;
        text-align: right;
        overflow: hidden;
}
button.drawer-toggle.drawer-hamburger {
    display: none;
}

.searchfield{
    width: 220px;
    height: 30px;
    margin: 20px;
    border-radius: 5px;
    border:1px solid #828282;
}

.searchbutton{
    border: 0px;
    width:25px;
    height:25px;
    background: url(../imgs/button_search.png) left top no-repeat;
    background-size: 25px 25px;
    margin-left: 210px;
    margin-top: -49px;
    z-index: 300;
    position: absolute;
}

input#logout {
    border: none;

    display: inline;
    width: 80px;
}
li.second a, li.second form{
    float: right;
    margin-left: 10px;    
}
.breadcrumb {
    width: 100%;
}
/*
.logoutbutton{
    border: 0px;
    width:20px;
    height:20px;
    background: url(../imgs/button_logout.png) left top no-repeat;
    background-size: 20px 20px;
    cursor: pointer;
    vertical-align: text-top;
}
*/
.searchfield{
    height: 24px;
    border-radius: 5px;
    margin-right: -29px;
    padding:0 5px;
    margin:0;
}

.searchbutton{
    border: 0px;
    width:18px;
    height:18px;
    background: url(../imgs/button_search.png) 0 top no-repeat;
    background-size: 20px 20px;
    vertical-align: sub;
    margin-top: -22px;
    margin-left: -25px;
}
@-moz-document url-prefix(){
.searchbutton {
    margin-top: 4px;
}
}
/* contents */
#contents{
    width: 960px;
    margin:0 auto;
    display: block; 
}

/* contents end */

.watchText h2,ul.iconList,#p_btns, .watchDescription .tab, .watchDescription .tab-content,
.movieTag h3, .relatedVideos ul, .relatedVideos h3{
    max-width: 960px;    
}
.movieTagList{
    max-width: 960px;
    margin: 10px auto 20px;
}

.mypage{
    border: 1px solid #dddddd;
}
ul.tab{
    max-width: 960px;
    margin: 0 auto;
    clear: both;
}

}
/* pc end */




/* MODAL */
#modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 100; 
    text-align: center;
}
#modal-overlay.show{ display: block; }
#modal {
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);

    
    position: fixed;
    top: 50%;
    left: 50%;
    top: 50%; /* 上端を画面中央に移動 */
    left: 50%; /* 左端を画面中央に移動 */
    transform: translate(-50%, -50%); /* 中央揃えに移動 */
    max-width: 95vw;
    padding: 10px;
}
