﻿@charset "UTF-8";

body{
	font-family:"メイリオ","Hirahino KaKu Gothic Pro",sans-serif;
}
.cal{
	width:350px;
	margin:2px auto;
	padding:1px;
	border:solid 1px;
	background-color:#ffffff;
}
.weekday:after{
	content:"";
	display:block;
	clear:both;
}
.weekday{
	display:-webkit-flex;
	display:flex;
	-webkit-justify-content:left;
	justify-content:left;
}
.w{
	width:48px;
	margin:0.5px;
	text-align:center;
	border:solid 1px;
}
.w:first-child{
	color:#e00000;
	background-color:#ffeeee;
}
.w:nth-last-child(1){
	color:#0000e0;
	background-color:#eeeeff;
}

.day:after{
	content:"";
	display:block;
	clear:both;
}
.day{
	display:-webkit-flex;
	display:flex;
	-webkit-justify-content:left;
	justify-content:left;
	-webkit-flex-wrap:wrap;
	flex-wrap:wrap;
}
.d{
	width:47px;
	margin:0.5px;
	text-align:center;
	border:solid 1px;
}
.info{
	width:350px;
	margin:2px auto;
}
.i{
	width:80px;
	margin:auto;
	text-align:center;
	border:solid 1px;
	background-color:#ddeedd;
}

/* 調整部 */

	.d:first-child{
		margin-left:50.5px;
	/*
	開始曜日：日=0.5, 月=50.5, 火=100.5, 水=150.5, 木=200.5, 金=250.5, 土=300.5
	※370px以下の場合の調整も忘れずに！
	*/
	}
	/* 土曜日 */
	.d:nth-child(7n-1){ /* 開始曜日：日=-0, 月=-1, 火=-2, 水=-3, 木=-4, 金=-5, 土=-6 */
		color:#0000e0;
		background-color:#eeeeff;
	}
	.d:nth-child(7n-0){ /* 開始曜日：日=-6, 月=-0, 火=-1, 水=-2, 木=-3, 金=-4, 土=-5 */
		color:#e00000;
		background-color:#ffeeee;
	}

	/* 祝日 */
	.d:nth-child(15){
		color:#e00000;
		background-color:#ffeeee;
	}
	.d:nth-child(23){
		color:#e00000;
		background-color:#ffeeee;
	}
	
	/* テンプレート
	.d:nth-child(祝日){
		color:#e00000;
		background-color:#ffeeee;
	}
	*/

	/* 定休日 */
	.d:nth-child(7n-6){ /* 開始曜日：日=-5, 月=-6, 火=-0, 水=-1, 木=-2, 金=-3, 土=-4 */
		background-color:#ddeedd;
	}
	.d:nth-child(2){
		background-color:#ddeedd;
	}
	.d:nth-child(21){
		background-color:#ddeedd;
	}

/*--------370px以下---------*/
@media (max-width: 370px){

.cal{
	width:210px;
}
.w{
	width:28px;
}
.d{
	width:27px;
}
.info{
	width:210px;
}

/* 調整部 */

	.d:first-child{
		margin-left:30.5px;
	/*
	開始曜日：日=0.5, 月=30.5, 火=60.5, 水=90.5, 木=120.5, 金=150.5, 土=180.5
	*/

}