@import url(https://fonts.googleapis.com/css?family=Open+Sans);


/* PC用の配置 */
@media (min-width: 960px) {
    .inner_index {
        display: flex;
        flex-wrap: wrap;
    }
    .maincol_index {
        width: 99%;
        margin: 25px -340px 10px 10px;
    }
    .sheet_index {
        background: none;
        margin: 0 350px 0 0;
        padding: 0 0 50px 0;
        position: relative;
        text-align: justify;
        z-index: 9999;
    }
    .subcontent-tile {
        display: flex;
        justify-content: space-between;
    }
    .subcontent-tile .graph_paper_target {
        flex: 1;
        margin-right: 2px;
    }
    .subcontent-tile .graph_paper_chart {
        flex: 1.25;
        margin-left: 2px;
    }
}

/* タブレット・スマホ用のカラム配置 */
@media (max-width: 959px) {
    .sheet_index {
        background: none;
        padding: 0 0 25px 0;
        position: relative;
        text-align: justify;
        z-index: 9999;
    }
    .subcontent-tile {
        flex-direction: column;
    }
    .subcontent-tile .graph_paper_chart {
        overflow-x: auto;
    }

}

@media (min-width: 520px) {
    /* studylog を ウインドウ幅 最小520px までは横長のチャート表示 */
    #stackedBarChart {
        width: 100%!important; /* これがないとcanvasがレスポンシブに動かない */
    }
    .chart_container {
        position: relative; 
        height: 50vh;/* ウインドウの縦幅を元にチャートの高さを変更する */
    }
}
@media (max-width: 519px) {
    /* studylog を ウインドウ幅 最大519px までは1:1の正方形のチャート表示 */
    #stackedBarChart {
        width: 85vw!important;/* ウインドウの横幅を元にチャートの高さを変更する */
        height: 85vw!important;/* ウインドウの横幅を元にチャートの高さを変更する */
    }
    .chart_container {
        width: 100%; 
        height: 100%;
    }
}

.display {
    background-color: #333333; 
    padding: 5px 10px 25px; 
    margin: 0; 
    color: #BDC0C3; 
    border-radius: 17px;
    box-shadow:rgba(51, 51, 51, 0.509804) 9px 9px 10px -4px;
    -webkit-box-shadow:rgba(51, 51, 51, 0.509804) 9px 9px 10px -4px;
    -moz-box-shadow:rgba(51, 51, 51, 0.509804) 9px 9px 10px -4px;
}

.display h2 {
    color: rgb(57, 163, 57);
    padding: 0 0 0 10px;
    margin: 0 0 10px;
}

.news_style {
    list-style: none;
    color: rgb(62, 162, 62);
    font-size: 13px;
    padding-left: 13px;
}
.news_style li {
    padding-left: 100px;
    text-indent: -100px;
}

.news_style a {
    color: rgb(62, 162, 62);
    font-size: 13px;
}

.date_unselect {
    user-select: none;
    margin-right: 10px;
}

.graph_paper_target {
    /* 方眼紙模様に必須のスタイル */
    background-image: linear-gradient(0deg, transparent calc(100% - 1px), #eaf7fc calc(100% - 1px)),
    linear-gradient(90deg, transparent calc(100% - 1px), #eaf7fc calc(100% - 1px));
    background-size: 16px 16px;
    background-repeat: repeat;
    background-position: center center;
    margin: 15px 0 0 ;
    background-color: #ffff;
    box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
    -webkit-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
    -moz-box-shadow:rgba(238, 238, 238, 0.509804) 9px 9px 10px -4px;
  
    /* 以下任意のスタイル */
    /*padding: 5px 10px 10px;*/
}
.graph_paper_chart {
    text-align: center; 
    padding: 0 10px 10px; 
    background-color: #ffff;
    margin: 15px 0 0 0px;
}

/*
#stackedBarChart {
    width: 100%!important; /* これがないとcanvasがレスポンシブに動かない 
}
*/
.chk-box {
    list-style: none; margin:0 0 0 24px; padding: 0 0 0 15px;

	input[type="checkbox"] {
		display: none;
		
		+ label {
			display: block;
			padding: 5px 0px 5px 25px;
			position: relative;
			
			&::before {
				display: block;
				width: 17px;
				height: 17px;
				position: absolute;
				top: 50%;
				left: 0px;
				box-sizing: border-box;
				
				content: '';
				background: white;
				border: 2px solid #569f78;
				transform: translateY(-50%);
			}
			&::after {
				display: block;
				width: 7px;
				height: 16px;
				position: absolute;
				top: 14px;
				left: 8px;
				box-sizing: border-box;
				opacity: 0;
				
				content: '';
				border-right: 2px solid #569f78;
				border-bottom: 2px solid #569f78;
				transform: translateY(-50%) rotate(45deg);
				filter:
					drop-shadow(-1px -1px 0px white)
					drop-shadow(-1px  1px 0px white)
					drop-shadow( 1px -1px 0px white)
					drop-shadow( 1px  1px 0px white);
				transition: opacity 0.5s ease;
			}
		}
		
		&:checked + label::after {
			opacity: 1;
		}
	}
}

.dashed {
    margin: 0 0 0 25px;
    font-size: 13px;
}
ul.dashed {
    list-style-type: none;
}
  ul.dashed > li {
    text-indent: -5px;
}
  ul.dashed > li:before {
    content: "- ";
    text-indent: -5px;
    color: #c0c0c0;
}

.graph_paper_target p {
    margin: 5px 0 0 24px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.radio-inline__input {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
}

.radio-inline__label {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-right: 12px;
    border-radius: 3px;
    transition: all .2s;
}

.radio-inline__input:checked + .radio-inline__label {
    background: #333333;
    color: #fff;
    text-shadow: 0 0 1px rgba(0,0,0,.7);
}
