@charset 'utf-8';

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a{
  display: block;
  text-decoration: none;
  color: inherit;
}
ul li {
  list-style: none;
}
header {
  width: 1340px;
  height: 100px;
  margin: 0 auto;
  display: flex;
}
.logo {
  width: 240px;
  height: 100px;
}
.logo img {
  width: 100%;
  margin-top: 20px;
  object-fit: cover;
  object-position: center;
}
nav {
  width: 1100px;
}
.menu {
  width: 800px;
  height: 50px;
  display: flex;
  margin-top: 40px;
  float: right;
  text-align: center;
}
.menu>li {
  width: 20%;
  height: 50px;
  font-size: 14px;
}
.menu>li>a {
  width: 100%;
  height: 50px;
  line-height: 50px;
}

.submenu {
  width: 200px;
  height: 350px;
  position: relative;
  text-align: center;
  z-index: 4;
  display: none;
}
.submenu>li {
  width: 100%;
  height: 50px;
  background-color: black;
  color: #fff;
}
.submenu>li>a {
  width: 100%;
  height: 50px;
  line-height: 50px;
}
.submenu>li>a:hover {
  background-color: cadetblue;
  color: #fff;
}

@media screen and (max-width: 768px) {
  header{
    width: 100%;
  }
  .logo{width: 30%;}
  nav {
    width: 70%;
  }
  .menu{
    width: 100%;
    justify-content: space-between;
  }
  .submenu{width: 100px;}

}

#slide {
  width: 100%;
  height: 700px;
  background-color: aqua;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.slidelist {
  position: absolute;
  display: flex;
  width: 300%;
  height: 100%;
}
.slidelist>a {
  width: 100%;
  height: 100%;
}
.slidelist img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media screen and (max-width: 768px) {
  #slide {
    width: 100%;
    height: 400px;
  }
  .slidelist {
    width: 300%;
  }
  .slidelist > a {
    width: 100%;
    height: 100%;
  }
  .slidelist img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

@media screen and (max-width: 480px) {
  #slide {
    height: 300px;
  }
}








#contents {
  width: 1340px;
  height: 500px;
  margin: 0 auto;
  display: flex;
}


.gallery {
  width: 450px;
  height: 430px;
  margin-top: 50px;
}
.gallery>h2 {
  padding-left: 20px;
  font-size: 14px;
}
.gallery hr {
  margin: 20px;
}
.gallery-inner {
  width: 100%;
}
.gallery-inner>a {
  width: 75%;
  position: relative;
}
.gallery-inner img {
  width: 100%;
  margin-left: 50px;
  object-fit: cover;
  object-position: center;
}
.gallery-inner p {
  position: absolute;
  font-size: 20px;
  left: 32%;
  top: 95%;
  transform: translate(-30%, -95%);
}


.banner{
  width: 445px;
  height: 430px;
  margin-top: 50px;
}
.banner>h2 {
  padding-left: 20px;
  font-size: 14px;
}
.banner hr {
  margin: 20px;
}
.banner-inner {
  width: 100%;
}
.banner-inner>a {
  width: 76%;
}
.banner-inner img {
  width: 100%;
  margin-left: 50px;
}


.link {
  width: 445px;
  height: 430px;
  margin-top: 50px;
}
.link>h2 {
  font-size: 14px;
  padding-left: 20px;
}
.link hr {
  margin: 20px;
}
.sto {
  display: flex;
  padding: 15px;
  line-height: 40px;
}
.sto p {
  padding-left: 10px;
  font-size: 16px;
}

@media screen and (max-width: 768px) {
  #contents {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
  }

  .gallery, .banner, .link {
    width: 80%;
    height: auto;
    margin-top: 100px;
  }

  .gallery>h2, .banner>h2, .link>h2 {
    font-size: 16px;
    padding-left: 10px;
  }

  .gallery-inner, .banner-inner {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .gallery-inner>a, .banner-inner>a {
    width: 100%;
    display: block;
  }

  .gallery-inner img, .banner-inner img {
    width: 95%;
    margin-left: 10px;
    object-fit: cover;
  }

  .gallery-inner p {
    position: absolute;
    font-size: 16px;
    left: 50%;
    top: 90%;
    transform: translate(-50%, -90%);
  }

  .link hr, .gallery hr, .banner hr {
    margin: 10px;
  }

  .sto {
    display: block;
    text-align: center;
    padding: 10px;
  }

  .sto p {
    padding-left: 0;
    font-size: 14px;
  }
}


#poster {
  width: 1340px;
  height: 1030px;
  margin: 0 auto;
  margin-top: 100px;
}

#poster>h2 {
  font-size: 28px;
  text-align: center;
  padding: 10px;
}
.poster-inner {
  width: 100%;
  display: flex;
  text-align: center;
  margin-top: 20px;
}
.poster-inner>a {
  width: 100%;
}
.poster-inner img {
  width: 75%;
  transition-duration: 0.4s;
}
.poster-inner p {
  font-size: 16px;
}
.poster-inner img:hover {
  transform: translate(-5%, -5%);
  opacity: 0.8;
}

.poster-lis2 {
  width: 100%;
  margin-top: 20px;
  display: flex;
  text-align: center;
}
.poster-lis2>a {
  width: 100%;
}
.poster-lis2 img {
  width: 75%;
  transition-duration: .4s;
}
.poster-lis2 p {
  font-size: 16px;
}
.poster-lis2 img:hover {
  transform: translate(-5%, -5%);
  opacity: 0.8;
}

@media screen and (max-width: 768px) {
  #poster {
    width: 90%;
    height: auto;
    margin-top: 70px;
  }

  #poster > h2 {
    font-size: 22px;
    padding: 8px;
  }

  .poster-lis2 {
    flex-direction: column;
    align-items: center;
  }
  .poster-inner{
    display: none;
  }

  .poster-lis2 > a {
    width: 100%;
  }

  .poster-lis2 img {
    width: 90%;
  }

  .poster-lis2 p {
    font-size: 14px;
    padding: 10px;
  }

  .poster-lis2 img:hover {
    transform: none;
    opacity: 1;
  }
}


footer {
  width: 1340px;
  height: 120px;
  background-color:darkslategray;
  color: #fff;
  margin: 0 auto;
  display: flex;
  margin-top: 70px;
}
.flogo {
  width: 240px;
  height: 120px;
}
.flogo img {
  width: 240px;
  margin-top: 30px;
}
.copy {
  width: 850px;
  height: 120px;
  font-size: 14px;
  padding: 20px 30px;
  color: #fff;
}
#frb {
  width: 250px;
  height: 120px;
  line-height: 20px;
}
.footer-text {
  width: 250px;
  height: 60px;
  padding: 10px 10px;
}
.footer-text>p {
  font-size: 14px;
}
.footer-text>a>P {
  font-size: 14px;
}
.sns {
  width: 50%;
  height: 60px;
}
.sns>a {
  width: 100%;
}
.sns img {
  padding-left: 20px;
  padding-top: 10px;
  width: 50%;
  float: left;
}

@media screen and (max-width: 768px) {
  footer {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
  }

  .flogo {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  
  .flogo img {
    width: 150px;
    margin: 0 auto;
    display: block;
  }

  .copy {
    width: 90%;
    height: auto;
    font-size: 12px;
    padding: 10px;
  }

  #frb {
    width: 90%;
    height: auto;
    line-height: 18px;
    text-align: center;
  }

  .footer-text {
    width: 100%;
    height: auto;
    padding: 5px;
  }

  .footer-text>p,
  .footer-text>a>p {
    font-size: 12px;
  }

  .sns {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
  }

  .sns a {
    width: 40px;
    height: 40px;
    display: inline-block;
  }

  .sns img {
    width: 100%;
    padding: 0;
    float: none;
  }
}






