

nav{
 position: absolute;
 position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 7%;
  z-index: 5;
}
nav ul{
display: table;
z-index: 100;
margin: 0 auto;
padding: 0;
width: 80%;
text-align: center;
}
nav ul li{
display: table-cell;
min-width: 50px;
border-right: 1px solid #FFFFFF;
}
nav ul li:first-child{
border-left: 1px solid #FFFFFF;
}
nav ul li a{
display: block;
width: 100%;
padding: 10px 0;
text-decoration: none;
color: #FFFFFF;
}
nav ul li a:hover{
background-color:#456990;
border-bottom: 5px solid #456990;
}
nav ul li.current{
font-weight: bold;
}
nav ul li.current a{
border-bottom: 5px solid #00B0F0;
color: #00B0F0;
}

.main-image {
  position: relative;
  width: 100%;
 height: 100%;
}

.main-image img {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}

.main-image p {
   position: absolute;
z-index: 4;
   display: flex;
  width: 100%;
  height: 50%;
  justify-content: center;
  font-weight: bold; /*太字に*/
  font-size: 100px;
  font-family :Quicksand, sans-serif;/*Google Font*/
  top: 50%;
  text-align: center;
  -ms-transform: translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  overflow: hidden;
  margin: auto;
  color: #FFFFFF;
  padding: 0;
   opacity: 0;
   animation-name: fadein-bottom;
   animation-duration: 1.5s;
   animation-timing-function: ease-out;
   animation-fill-mode: forwards;
  }

@keyframes fadein-bottom {
   0% {
      opacity: 0;
      transform: translateY(20px);
   }

   100% {
      opacity: 1;
      transform: translateY(0);
   }
}

@media screen and (max-width: 1280px) {
.main-image p {
   position: absolute;
z-index: 4;
   display: flex;
  width: 100%;
  height: 50%;
  justify-content: center;
  font-weight: bold; /*太字に*/
  font-size: 40px;
  font-family :Quicksand, sans-serif;/*Google Font*/
  top: 50%;
  text-align: center;
  -ms-transform: translate(-50%,-50%);
  -webkit-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  overflow: hidden;
  margin: auto;
  color: #FFFFFF;
  padding: 0;
   opacity: 0;
   animation-name: fadein-bottom;
   animation-duration: 1.5s;
   animation-timing-function: ease-out;
   animation-fill-mode: forwards;
  }
}

.box1 {
margin: auto;
width: 80%;
font-size: 20px;
text-align: center;
margin-top: 3%;
}

h1 {
  color: #364e96;/*文字色*/
  padding: 0.5em 0;/*上下の余白*/
  border-top: solid 3px #364e96;/*上線*/
  border-bottom: solid 3px #364e96;/*下線*/
}

.box-007 {
    max-width: 90%;
    margin: 0 auto;
    border: 2px solid #3a6ea6;
    border-radius: 5px;
    color: #333333;
}

.box-007 div {
    display: inline-flex;
    align-items: center;
    position: relative;
    top: -13px;
    left: 10px;
    margin: 0 7px;
    padding: 0 8px;
    background: #fff;
    color: #3a6ea6;
    font-weight: 60;
    vertical-align: top;
}

.box-007 svg {
    padding-right: 4px;
}

.box-007 p {
    margin: 0;
    padding: 0 1.5em 1em;
}

.image2 {
display: flex;
margin: 2% auto;
display: flex;
width: 80%;

}

.image2 .sa {
  opacity: 0;
  transition: all 1.5s ease;
  width: 45%;
margin:  auto;
text-align: center;
font-size: 25px;
}
 

.box11{
    padding: 0.5em 1em;
    margin: 2em 0;
    color: #5d627b;
    background: white;
    border-top: solid 5px #5d627b;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
}
.box11 p {
    margin: 0; 
    padding: 0;
}

.sa {
  opacity: 0;
  transition: all 1.5s ease;
}

@media screen and (max-width: 1280px) {
.image2 .sa {
  opacity: 0;
  transition: all 1.5s ease;
  width: 95%;
margin:5% auto;
text-align: center;
font-size: 20px;
}
}

.image2 .show {
  opacity: 1;
  transform: none;
}

.image2 img{
margin-top: 2%;
width: 45%;
object-fit: cover;
}

@media screen and (max-width: 1280px) {
.image2 {
margin: auto;
width: 80%;
display: block;
}
}

@media screen and (max-width: 1280px) {
.image2 img{
margin: 5% auto;
width: 100%;
display: block;
}
}

div.slide-show {
width: 100%; /* スライドショーの幅 */
position: relative;
}

.slide-show img {
animation: show 12s infinite; /* 12秒のスライドショーを繰り返し */
width: 100%;
height: 700px;
margin:auto;
object-fit: cover;
opacity: 0;
position: absolute; 
left: 0;
top: -8px;
}

@keyframes show {
0% {opacity: 0}
17% {opacity: 1}
33% {opacity: 1}
50% {opacity: 0}
}

.slide-show img:nth-of-type(1) {
position: relative;
}

.slide-show img:nth-of-type(2) {
animation-delay: 0s;
}

.slide-show img:nth-of-type(3) {
animation-delay: 4s;
}

.slide-show img:nth-of-type(4) {
animation-delay: 8s;
}

footer {
   width: 100%;
  height: 60px; 
  text-align: center;
margin-top: 2%;
  padding: 50px 0;
  background-color: #456990;
  color: #FFFFFF;
}

