* {
box-sizing: border-box;
/* overflow: hidden; */
}

a {
  text-decoration: none;
  color: white;
}

li {
  list-style: none;
}

.button {
  padding: 20px;
  background:linear-gradient(#9ECFEF, #0073BA);
  text-align: center;
  width: 300px;
  margin: 0 auto;
}

.button:hover{
  opacity: .5;
  transition: 1s;
}

body {
margin: auto;
max-width: 1366px;
height: 100vh;
}

/* .top {
  width: 1366px;
  height: 640px;
  background-image: url(img/1.jpg);
  background-position: center;
  position: relative;
} */

.container {
	position: relative;
	width: 13660px;
	max-width: 100%;
	height: 640px;
}

.image {
	position: absolute;
	width: 100%;
	opacity: 0;
	animation: change-img-anim 30s infinite;
  height: 640px;
  object-fit: cover;
}

.image:nth-of-type(1) {
	animation-delay: 0s;
}
.image:nth-of-type(2) {
	animation-delay: 10s;
}
.image:nth-of-type(3) {
	animation-delay: 20s;
}

@keyframes change-img-anim {
	0%{ opacity: 0;}
	10%{ opacity: 1;}
	90%{ opacity: 1;}
	100%{ opacity: 0;}
}

.logo {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}

.logo h2{
  color: white;
  line-height: 20px;
  font-size: 20px;
  letter-spacing: 2px;
  text-shadow: 2px 2px 6px black;
}

.menu-btn {
  display: none;
}

.nav {
  display: flex;
  justify-content: center;
  margin: 0;
}

.nav li{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 80px;
  background:linear-gradient(#9ECFEF, #0073BA);
  outline: 2px solid white;
  outline-offset: -8px;
  margin: 0 1px;
}

.nav li:hover{
    opacity: .5;
    transition: 1s;
  }

.ABOUT {
  display: flex;
  max-width: 1366px;
  background-color: #FAFAFA;
  margin: 100px;
  padding-bottom: 50px;
}

.about-left {
  position: relative;
  width: 600px;
}

.about-left img{
  width: 350px;
  height: 230px;
}

.about-img1 {
  position: absolute;
  top: 150px;
  left: 200px;
  z-index: 1;
}

.about-img2 {
  position: absolute;
  top: 80px;
  left: 100px;
}

.about-right img{
  width: 500px;
  height: 50px;
  margin: 20px 0;
}

.about-right h3{
 text-align: center;
 font-size: 24px;
 margin-bottom: 30px;
}


.about-right p{
width: 400px;
line-height: 30px;
margin: auto;
padding-bottom: 30px;
}

.example {
  margin: auto;
  background-color: #FAFAFA;
  margin: 100px;
  padding-bottom: 50px;
}

.exa-title {
 text-align: center;
 padding-top: 50px;
}

.title {
  width: 800px;
  margin-bottom: 50px;
}

.exa-flex {
  display: flex;
  justify-content: space-around;
  margin-bottom: 30px;
}

.exa-flex img{
  width: 300px;
  height: 200px;
}

.exa-flex p{
  width: 300px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.inquiry {
  background-color: #FAFAFA;
  max-width: 1366px;
  margin: auto;
  margin: 100px;
  padding: 50px 0;
  text-align: center;
}

.inq-flex {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 60px;

}

.inq-flex1 img{
  width: 536px;
  height: 370px;
}

.inq-flex2 img{
  width: 536px;
  height: 370px;
}

.inq-flex img:hover{
opacity: .7;
transition: 1s;
transform: scale(0.95,0.95);
}

.blog {
  background-color: #FAFAFA;
  max-width: 1366px;
  margin: auto;
  margin: 100px;
  padding: 50px 0;
  text-align: center;
}

.blog-flex {
  display: flex;
  justify-content: space-around;
  text-align: left;
  margin-bottom: 30px;
}

.blog-flex p{
  width: 300px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.blog-flex img{
  width: 300px;
  height: 200px;
  object-fit: cover;
}

.blog-flex1 {
  width: 330px;
}

.footer-nav {
  background-color: #545454;
}

.sns {
  display: flex;
  justify-content: center;
}

.sns img{
width: 70px;
height: 70px;
margin: 20px;
}

.site-map {
  display: flex;
  justify-content: space-evenly;
  padding-bottom: 20px;
}

.site-map ul{
  line-height: 35px;
}

.c-right {
  display: flex;
  justify-content: space-evenly;
}

#page_top{
  width: 50px;
  height: 50px;
  position: fixed;
  right: 0;
  bottom: 0;
  background: #3f98ef;
  opacity: 0.6;
  border-radius: 50%;
}
#page_top a{
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
}
#page_top a::before{
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f102';
  font-size: 25px;
  color: #fff;
  position: absolute;
  width: 25px;
  height: 25px;
  top: -5px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}

/* fadeInのCSS */
.element {
  /* 最初は非表示 */
  transform: translateY(30px);
  opacity: 0;
  visibility: hidden;
  transition: transform 2s, opacity 2s, visibility 2s;
}

/* フェードイン時に入るクラス */
.is-fadein {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

/* レスポンシブデザイン */

/* ---------- Responsive for Smartphones ---------- */
@media screen and (max-width: 599px) {
  body {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .container,
  .ABOUT,
  .example,
  .inquiry,
  .blog {
    margin: 0 auto;
    /* padding: 20px; */
    max-width: 100%;
    box-sizing: border-box;
  }

  .header-nav .nav {
    display: none;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(#9ECFEF, #0073BA);
  }

  .header-nav .nav.active {
    display: flex;
  }

  .menu-btn {
    display: block;
    text-align: center;
    background: #0073BA;
    color: white;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
  }

  .about-right {
    width: 100%;
    text-align: center;
  }

  .about-right img {
    width: 80%;
    height: auto;
  }

  .about-right h3 {
font-size: 20px;
  }

  .about-right p {
    width: 90%;
  }

  .about-left {
    display: none;
  }

  .exa-title img {
    width: 100%;
    height: auto;
  }

  .exa-flex {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
  }

  .exa-flex > div {
    margin-bottom: 30px;
    width: 90%;
  }

  .exa-flex img {
    width: 100%;
    height: auto;
  }

  .inquiry img {
    width: 100%;
    height: auto;
  }

  .inq-flex {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .inq-flex1,
  .inq-flex2 {
    margin-bottom: 20px;
  }

  .inq-flex img {
    width: 90%;
    height: auto;
  }

  .blog img {
    width: 100%;
    height: auto;
  }

  .blog-flex {
    flex-direction: column;
    align-items: center;
  }

  .blog-flex > div {
    margin-bottom: 20px;
    width: 90%;
  }

  .blog-flex img {
    width: 100%;
    height: auto;
  }

  .site-map {
    margin: auto;
    margin-left: auto;
    margin-right: auto;
  }

  #sm1 {
    padding: 0%;
  }

  .site-map ul{
    line-height: 25px;
    font-size: 10px;
  }

  .c-right {
    font-size: 10px;
  }
}