/* 全体の構成 */

/* 動画タイトル */
.videoTitle{
    font-size: 24px;
    padding: 1rem 0 1rem 1.5rem;
    border-left: 1.5rem solid deepskyblue;
    margin-bottom: 1rem;
}


#video-wrapper{
    max-width: 90vw;
    /* max-height: 100vh; */
}

.VideoWrapper div.field--name-body{
    overflow-y: scroll;
    -ms-overflow-style: none;    /* IE, Edge 対応 */
    scrollbar-width: none;       /* Firefox 対応 */

    max-height: 780px;
    margin-bottom: 4rem;
}

.VideoWrapper div.field--name-body img{
    margin-right: 2rem;
}

div.VideoWrapper div.field--name-body::-webkit-scrollbar{
    width: 8px;
}

div.VideoWrapper div.field--name-body::-webkit-scrollbar-track{
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: inset 0 0 2px #777; 
}

div.VideoWrapper div.field--name-body::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 10px;
    box-shadow: none;
}

#video-wrapper.premium{
    display: none;
}

iframe{
    width: 100%;
    height: 420px;
    max-height: 100vh;
    background-color: #000;
    margin-bottom: 4rem;
}

.forbidden{
    width: 100%;
    height: 380px;
    background: skyblue;
    display: none;
    margin-top: 12px;
    padding-top: 140px;
}


.forbidden a:hover {
    background: white;
    color: deepskyblue;
}

.forbidden a{
    display: block;
    margin: 10px auto;
    padding: 2rem 4rem;
    width: 400px;
    color: #fff;
    background:deepskyblue;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.2s;
    text-align: center;
}

.forbidden a:before{
    font-family: 'Font Awesome 5 Free';
    content: '\f023';
    font-weight: 700;
    margin-right: 2rem;
}

.forbidden.premium{
    display: block;
}

.content{
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: auto 300px;
    width: 100%;
}


/* 動画とページャー */
.video-content{
    grid-row: 1;
    grid-column: 1;
    /* text-align: center; */
}


.pager{
    display: flex;
    font-size: 16px;
    margin-top: 12px;
}

.pager img{
    vertical-align: middle;
}
.prev a:before{
    font-family: 'Font Awesome 5 Free';
    content: '\f0a8';
    font-weight: 700;

}

.next a:after{
    font-family: 'Font Awesome 5 Free';
    content: '\f0a9';
    font-weight: 700;
}

.prev{
    flex: 1;
    text-align: left;
    color: #000;
}

a.button{
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 8px 12px;
    color: #333;
    background: -webkit-gradient(linear, left top, left bottom, from(#fdfbfb), to(#ebedee));
    background: -webkit-linear-gradient(top, #fdfbfb 0%, #ebedee 100%);
    background: linear-gradient(to bottom, #fdfbfb 0%, #ebedee 100%);
    -webkit-box-shadow: inset 1px 1px 1px #fff;
    box-shadow: inset 1px 1px 1px #fff;
    text-decoration: none;
    transition: background-color 0.1s;
}
a.button:hover{
    text-decoration: none;
    background: -webkit-gradient(linear, left bottom, left top, from(#fdfbfb), to(#ebedee));
    background: -webkit-linear-gradient(bottom, #fdfbfb 0%, #ebedee 100%);
    background: linear-gradient(to top, #fdfbfb 0%, #ebedee 100%);

}

.next{
    flex: 1;
    text-align: right;
}

.firstvideo, .lastvideo{
    display: none;
}


/* サイドバー */

.sidebar{
    grid-row: 1/4;
    grid-column: 2;
    margin-left: 20px;
}

.sidebar-content{
    margin-bottom: 1rem;
}

.sidebar-content > *{
    padding-left: 16px;
    line-height: 2rem;
}

.sidebar-content h2{
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.sidebar-content .chapter{
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 3px;
}


.sidebar-content .views-row{
    font-size: 12px;
}

.sidebar-content ul li{
    font-size: 12px;
}


.sectionList{
    font-size: 14px;
}

.sectionList a{
    text-decoration: none;
}

.sectionList a:hover{
    text-decoration: underline;
}

.roman{
    display: inline-block;
    width: 25px;
    text-align: right;
}

.sectionList img{
    vertical-align: text-bottom;
}

.keywords{
    padding-left: 0px;
}



/*アコーディオン関係*/
.ac-title{
    font-size: 20px;
}

.ac-title img{
    vertical-align: top;
}

/* メモ帳 */
.memo{
    grid-row: 3;
    grid-column: 1;
    width: 100%;
}

.webform-submission-information{
    display: none;
};

#edit-memo{
    padding: 0;
    margin-right: 1em;
    width: 100%;
}

.alert.alert-success.alert-dismissible {
    display: none;
}


/* 要点まとめ */
.abstract{
    grid-row: 2;
    grid-column: 1;
    width: 100%;
    margin-top: -1px;
}


.abstract-content li{
    font-size: 16px;
    padding: 8px 0;
}

.abstract .formula{
    padding-top: 0.5em;
    padding-bottom: 0.2em;
    padding-left: 1em;
}

.abstract .two-formula{
    padding-top: 0.5em;
    padding-bottom: 0.2em;
    padding-left: 2em;
}


.field--name-field-subtext img{
    width: 100%;
}


/* メカトロサブテキスト */

.field--name-field-subtext{
    margin-bottom: 6rem;
}

.field--name-field-subtext h4 {
    border: 2px solid deepskyblue;
    border-radius: 3px;
    margin: 2rem auto;
    padding: 1rem;
    color: deepskyblue;
    font-weight: 700;
}

.field--name-field-subtext p {
    letter-spacing: 0.3rem;
    line-height: 2.3rem;
    text-align: justify;
    margin: 2rem 0;
}

.field--name-field-subtext table {
    width: 100%;
    margin-bottom: 1rem;
}

.field--name-field-subtext td {
    padding: 1rem;
}


.field--name-field-subtext dl {
    margin-top: 0;
    margin-bottom: 20px;
    margin-left: 1rem;
    letter-spacing: 0.1rem;
}

.field--name-field-subtext dt {
    font-weight: 700;
    margin-bottom: 1rem;
}

.field--name-field-subtext dd {
    margin: 0 2rem 1rem 2rem;
    text-align: justify;
    letter-spacing: 0.1rem;
    line-height: 2rem;
}

.field--name-field-subtext ol {
    margin-left: 1rem;
    letter-spacing: 0.1rem;
    line-height: 2rem;
}

.field--name-field-subtext ul {
    margin-left: 1rem;
    letter-spacing: 0.1rem;
}


/* コメント関係 */

.comments{
    margin-bottom: 4rem;
}



.comment_list .views-row {
    border-bottom: 1px solid #ccc;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 2;
    grid-template-rows: 2;
}

.comment_list .views-field.views-field-uid {
    grid-row: 1;
    grid-column: 1;
    font-size: 18px;
}

.comment_list .views-field.views-field-completed {
    grid-row: 1;
    grid-column: 2;
    text-align: right;
}

.comment_list .views-field.views-field-webform-submission-value {
    grid-row: 2;
    grid-column: 1/3;
    padding: 1rem;
}

.comments p{
    font-size: 18px;
}

.comments p::before {
    font-family: "Font Awesome 5 Free";
    content: "\f086";
    font-weight: 700;
    margin-right: 1rem;
}


.comments h4{
    font-size: 24px;
    margin-bottom: 5rem;
}

.comments h4::before {
    font-family: "Font Awesome 5 Free";
    content: "\f086";
    font-weight: 700;
    margin-right: 1rem;
}




