@charset "utf-8";

@media screen and (max-width: 767px){

/**** 全体 ****/
.outer {
	min-width: auto;
}
.inner{
	width: 100% !important;
}
img {
	max-width: 100%;
	height: auto;
}
*{
	box-sizing:border-box;
}

/**** メニュー ****/
div#menu-button {
    position: fixed;
    top: 5px;
    right: 5px;
    border: 2px solid #2321c2;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    cursor: pointer;
}
div#menu-button>div {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 2px;
    transform: rotate(0deg) translate(-50%, -50%);
    transform-origin: 0%;
    background: #2321c2;
    transition: 0.5s;
}
div#menu-button>div:nth-child(1) {
    top: 24%;
}
div#menu-button>div:nth-child(2) {
    opacity: 1;
}
div#menu-button>div:nth-child(3) {
    top: 76%;
}
.open div#menu-button>div:nth-child(1) {
    top: 50%;
    transform: rotate(45deg) translate(-50%, -50%);
}
.open div#menu-button>div:nth-child(2) {
    opacity: 0;
}
.open div#menu-button>div:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg) translate(-50%, -50%);
}
#menu {
    position: fixed;
    top: 80px;
    right: 0;
    overflow: hidden;
    width: 0%;
    height: calc(100% - 70px);
    overflow: hidden;
    transition: 0.5s;
}
.open #menu {
    width: 90%;
}
#menu-inner {
	position: absolute;
	top: 0px;
	left: 0;
	width: 90vw;
	height: 100%;
	background: #FFFA;
	overflow-y: scroll;	
}
#menu .menuButton,
#menu .menuButton:first-child{
	width: 100%;
}
#menu .menuButton span, #menu .menuButton a {
	padding: 14px 0;
	border-bottom: 2px solid #2321c2;
}
#menu .menuButton>div {
	display:block;
	padding-left: 10px;
}
#menu .menuButton>div.RightMenu-List a {
	border-bottom: 0 none transparent;
	padding:0;
	margin:0;
}

/**** ヘッダー ****/
div#logo-inner {
    text-align: left;
}

div#logo-inner img {
    max-width: calc(100% - 80px);
}
#header-image-bg{
	display: none;
}
#toppage #header-image{
	width:100%;
	aspect-ratio: 1260 / 915;
}
#toppage div#header-image-inner {
    aspect-ratio: 1100 / 915;
    height: auto !important;
}
#toppage div#header-image-inner>img {
    max-width: 100vw !important;
    height: auto !important;
    aspect-ratio: 1100 / 915;
}
#header-image-inner>img{
	height: auto !important;
	width:100% !important	;
	aspect-ratio: 1260 / 915;
	background-size: cover;
}

/**** contents ****/
#main-outer {
	min-height: auto;
	margin-bottom: 0;
}
#toppage #news .Record {
    padding: 10px;
}
#toppage #news .box, 
#toppage #news .news-date, 
#toppage #news .title {
    width: 100%;
    padding: 0 10px;
}
#toppage #towa{
	text-align: left;
}
#toppage #towa-Link{
    max-width: 50%;
    margin: 0px auto;
    text-align: center;
}

#toppage #towa-Link {
    max-width: 60%;
}
#toppage #training-inner {
    margin-left: 20px;
    margin-right: 20px;
}
#toppage #training-inner>a {
    display: inline-block;
    width: 49%;
    margin-bottom: 40px;
}
#toppage #training h2,
#toppage #training img {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    height: auto;
}
#toppage #training br {
    display: none;
}
#banner-inner>a {
    display: inline-block;
    width: 49%;
    text-align: center;
    margin-bottom: 15px;
}
#subpage a.student-box {
    width: 100%;
    height: auto;
    max-width: 160px;
    aspect-ratio: 1;
    padding-top: calc(50% - 10px);
}

body#subpage {
    background: none !important;
}
#subpage #content {
    width: 100%;
    float: none;
    padding: 0 10px;
}
#subpage h2.page-title {
	font-size: 20px;
}

#subpage #RightMenu {
    float: none;
    width: 100%;
    padding: 0 10px;
}
#header-image,
#subpage #header-image-inner{
    width: 100%;
    aspect-ratio: 1100 / 232;
}
#subpage #header-image-inner img{
	margin-top: 50px;
}


}