@charset "utf-8";
*, ::before, ::after {
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
img {
    vertical-align: top;
    min-width: 100%;
    height: auto;
}
html{
    scroll-behavior: smooth;
    scroll-padding-top:120px;
}
header {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    align-content: center;
    z-index: 1;
    position: fixed;
    width: 100%;
    background-color: #fff;
}
header h1 img  {
    padding-top: 0px;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

ul {
    list-style-type: none;
}
.menu {
    display: flex;
    align-items: center;
}
.menu a {
  display: block;
  padding-top: 50px;
  padding-right: 20px;
  padding-left: 30px;
  padding-bottom: auto;
  color: #333333;
  line-height: 1.4;
  position: relative;
  text-decoration: none;
  text-align: center;
  font-size: medium;
}

.menu a span {
    white-space: nowrap;
}

.menu a:hover {
    text-decoration: none;
    font-weight: bolder;
}
.menu a:hover::before {
    content: "";
    width: 100%;
    height: 3px;
    background-color: #999999;
    text-align: center;
    position: absolute;
    left: 0px;
    bottom: 0px;
}
main {
    background-color: #f5f5f5;
}


.mv {
  position: relative;
  background-image: url(../img/mainimage.jpg);
  background-size: cover;
  background-position: right top;
  padding-top: 350px;
  padding-bottom: 20px;
}
.mv h1  {
  width: 100%;
  padding-left: 50px;
  text-align: left;
  color: #fff;
  font-size: 34px;
}
.mv .description {
  color: #fff;
  font-size: 15px;
  padding-left: 50px;
  padding-right: 50px;
}
section {
  padding-bottom: 80px;
}
section h2 {
    height: 60px;
    line-height: 60px;
    font-size: 24px;
    padding-left: 40px;
    margin-bottom: 10px;
    padding-right: 40px;
    margin-top: 30px;
    text-align: center;
}
.inner   {
    margin: 0 auto;
    padding-top: 0;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 0;
    max-width: 1220px;
}

.box-area  {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-left: 20px;
    padding-right: 20px;
}
.omoi figure   {
    width: 43%;
    height: auto;
    width: 35%;
}
.omoi figure img {
    width: 100%;
    height: auto;
}
.omoi .text {
    width: 35%;
    display: block;
}

.gakubuchi  {
  width: 80%;
  background-image: url(../img/gakubuchi.jpg);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  max-height: none;
  /* [disabled]padding-left: auto; */
  align-content: center;
  margin-left: auto;
  margin-right: auto;
}

.news dl {
  overflow: auto;
  height: 400px;
  padding-left: auto;
  padding-right: auto;
  background-color: #f0f8ff;
}

.news .info dt {
  float: left;
  width: 3em;
  padding-left: 5%;
  padding-top: 1em;
}
.news .info dd {
  padding-left: 20%;
  text-align: left;
  padding-top: 1em;
  padding-right: 5%;
}
.news figure   {
    width: 43%;
    height: auto;


    width: 45%;
}
.ninki .box  {
    width: 23%;
    margin-top: 10px;
    height: auto;
}
.ninki figure img  {
    width: 100%;
    height: auto;
}
.slide {
  margin: 0 auto;
  width: 400px;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 0px;
}
.slide p img {
  width: 100%;
  height: 100%;
  aspect-ratio: 640/426;
  object-fit: cover;
}

.gotop {
  position: fixed;
  bottom: 10px;
  right: 20px;
  opacity: 0.7;
  display: none;
}
.gotop:hover {
    opacity: 1;
}
footer {
  padding: 30px 0;
  background-color: #696969;
  text-align: center;
}
footer p a {
  color: #ffffff;
  font-size: medium;
  text-decoration: none;
}
footer p a:hover {
  font-weight: bolder;
  color: #030386;
}


.copyright {
    font-size: 14px;
    margin-top: 50px;
}



@media (max-width:800px){
.mv h1 {
    font-size: 30px;
}
.mv .description {
    font-size: small;
}
section {
    padding-bottom: 30px;
    font-size: small;

}
nav {
  position: fixed;
  top: 0px;
  left: 100%;
  width: 100%;
  height: 100vh;
  padding-top: 100px;
  background-color: #ffc0cb;
  transition: 0.5s;
}
.menu-open nav {
  padding-left: 0px;
  left: 0px;
}






header h1 {
    z-index: 1;
}
.menu-open .nav-button span:nth-child(1) {
  top: 23px;
  transform: rotate(315deg);
  transition: 0.5s;
}
.menu-open .nav-button span:nth-child(2) {
  width: 0px;
  padding-left: 0px;
  left: 50%;
  transition: 0.5s;
}
.menu-open .nav-button span:nth-child(3) {
  top: 23px;
  transform: rotate(-315deg);
  transition: 0.5s;
}



nav .menu  {
    display: block;
    height: 100%;
    padding-bottom: 50px;
    overflow: auto;
}
nav .menu a {
    padding: 30px 0;
    font-size: 30px;
}
.nav-button {
  width: 70px;
  height: 50px;
  margin-left: auto;
  position: relative;
  z-index: 9999;
}
.nav-button span {
  width: 30px;
  height: 2px;
  background-color: #a9a9a9;
  position: absolute;
  left: 20px;
}
.nav-button span:nth-child(1) {
  top: 23px;

}
.nav-button span:nth-child(2) {
    top: 34px;
}
.nav-button span:nth-child(3) {
    top: 45px;
}
.ninki .box {
    font-size: x-small;
}
footer p a {
    font-size: small;
}
.menu a:hover::before {
  display: none;
}







}

@media (max-width:600px){
.mv {
  background-image: url(../img/mainimage2.jpg);
  background-size: cover;
  background-position: center center;
  padding-top: 400px;
  padding-bottom: 10px;
}
.mv h1 {
    font-size: 25px;
}
.mv .description {
    font-size: small;
}
section .text  {
    font-size: small;
}
header h1 {
    line-height: 1;
}
header h1 img {
    height: 50px;
    width: auto;
}
.nav-button {
    right: -20px;
}
html {
    scroll-padding-top:70px;
}
section {

}
section {

}

.omoi figure {
    width: 400px;
}
.omoi .text {
    width: 400px;
    padding-top: 0px;
    margin-top: 10px;
}
.ninki .box {
  width: 400px;
  text-align: left;
  font-size: medium;
  margin-top: 0px;
  margin-bottom: 20px;
}
.slide {
  width: 90%;
}

footer p a {
  font-size: 7px;

}









}
