@charset "utf-8";
/* CSS Document */
@media all {
	
	#firstview{
		width: 100%;
		position: relative;
	}
	#firstview .image{
		width: 100%;
	}
	#firstview .titlebox{
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		color: #fff;
		text-align: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
		background-color: rgba(0,0,0,.4);
	}
	#firstview .titlebox .h2sub{
		font-size: 1.2rem;
		margin-bottom: 0.5em;
	}
	#firstview .titlebox h2{
		font-size: 3.2rem;
	}
	
	#contents{
		padding: 0 40px;
	}
	#contents h3{
		display: block;
		width: 100%;
		font-size: 2.5rem;
		padding-bottom: 10px;
		border-bottom: solid 1px #ccc;
		margin-bottom: 40px;
	}
	#message,
	#philosophy,
	#mission,
	#profile,
	#history{
		width: 100%;
		max-width: 1100px;
		margin: 0 auto;
		padding: 40px 0;
	}
	#message .box{
		width: 100%;
		display: flex;
	}
	#message .box .textbox{
		width: 62%;
		display: flex;
		flex-direction: column;
		justify-content: center;
		text-align: justify;
	}
	#message .box .textbox .detail{
		font-size: 1.7rem;
		line-height: 1.8;
		margin-bottom: 1em;
	}
	#message .box .textbox .text{
		font-size: 1.1rem;
		line-height: 1.7;
	}
	#message .box .imagebox{
		width: 38%;
		padding-left: 80px;
	}
	#message .box .imagebox .image{
		width: 100%;
	}
	#philosophy ul.list{
		width: 100%;
	}
	#philosophy ul.list li{
		font-size: 1.5rem;
		line-height: 1.7;
		padding: 1em;
		border: solid 1px #ccc;
		margin-bottom: 20px;
	}
	#philosophy ul.list li:last-child{
		margin-bottom: 0;
	}
	#mission .text{
		font-size: 4rem;
		padding: 0.7em 2em;
		border: solid 1px #ccc;
		width: fit-content;
		margin: 0 auto;
	}
	#profile ul.list{
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
	}
	#profile ul.list li{
		width: calc(50% - 40px);
	}
	#profile ul.list li dl{
		width: 100%;
		font-size: 1.1rem;
		line-height: 1.7;
		display: flex;
		flex-wrap: wrap;
	}
	#profile ul.list li dl dt{
		width: 6em;
		padding: 1.5em 1em;
		display: flex;
		align-items: center;
		text-align: justify-all;
	}
	#profile ul.list li dl dd{
		width: calc(100% - 6em);
		padding: 1.5em 1em;
		position: relative;
	}
	#profile ul.list li dl dd::after{
		content: "";
		position: absolute;
		bottom: 0;
		right: 0;
		width: calc(100% + 6em);
		height: 1px;
		background: #ccc;
	}
	#history dl.list{
		width: 100%;
		font-size: 1.1rem;
		line-height: 1.7;
		display: flex;
		flex-wrap: wrap;
	}
	#history dl.list dt{
		width: 6em;
		padding: 1.5em 1em;
		display: flex;
		align-items: center;
		text-align: justify-all;
	}
	#history dl.list dd{
		width: calc(100% - 6em);
		padding: 1.5em 1em;
		position: relative;
	}
	#history dl.list dd::after{
		content: "";
		position: absolute;
		bottom: 0;
		right: 0;
		width: calc(100% + 6em);
		height: 1px;
		background: #ccc;
	}
	
	#pagetabs ul.list li span{
		border-left: solid #aaa 1px;
	}
	#pagetabs ul.list li:last-child a{
		border-left: solid #000 0;
	}
	
}

@media screen and (max-width: 768px){

	#firstview .titlebox .h2sub{
		font-size: 1.1rem;
		margin-bottom: 0.3em;
	}
	#firstview .titlebox h2{
		font-size: 2.5rem;
	}
	
	#contents{
		padding: 0 20px;
	}
	#contents h3{
		font-size: 2rem;
		margin-bottom: 20px;
	}
	#message,
	#philosophy,
	#mission,
	#profile,
	#history{
		padding: 20px 0;
	}
	#message .box{
		flex-direction: column;
	}
	#message .box .textbox{
		width: 100%;
	}
	#message .box .textbox .detail{
		font-size: 1.4rem;
		line-height: 1.5;
	}
	#message .box .imagebox{
		width: 100%;
		padding: 40px 40px 0;
	}
	#message .box .imagebox .image{
		max-width: 260px;
		margin: 0 auto;
	}
	#philosophy ul.list li{
		font-size: 1.3rem;
		line-height: 1.5;
		text-align: justify;
	}
	#mission .text{
		font-size: 3rem;
		padding: 0.7em 1em;
	}
	#profile ul.list li{
		width: 100%;
	}
	#profile ul.list li dl dd{
		padding: 1.5em 0 1.5em 1em;
	}
	#history{
		padding: 20px 0;
	}
	#history dl.list dd{
		padding: 1.5em 0 1.5em 1em;
	}
	
}

@media screen and (min-width: 769px) and (max-width: 1024px){

}

@media screen and (min-width: 1025px), print{

}
