@charset "utf-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  color: black;
  
}
img {
  width: 100%;
  vertical-align: bottom;
}
/* header */
header {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
  background-color: rgb(7, 16, 42);
  box-shadow: 1px 1px 2px;
}

h1 img {
  width: 100px;
  height: 90px;
  object-fit: cover;
}
h4 {
  color: white;
  text-align: center;
  width: 100%;
  padding-right: 10px;
  align-items: center;
   font-family: "Rock Salt", cursive;
  font-weight: 400;
  font-style: normal;
}
nav ul li a {
  color: white;
  font-family: "Rock Salt", cursive;
  font-weight: 400;
  font-style: normal;

}
nav ul li {
    margin-right: 30px;

}
nav ul li:hover {
  border-bottom: 1px solid white;
  transition: 0.7s;
}
/*hero  */
.hero {
  background-image: url(../img/sweet/hero.jpg);
  height: 90vh;
  background-position: center;
  object-fit: cover;
  background-size: cover;
  margin-bottom: 30px;
}
/* main */
h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 30px;
  padding-top: 25px;
}
/* menu */
.sweet-box {
  margin-bottom: 30px;
}
.wrap {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  margin: 0 auto;
  justify-content: space-around;
}
.img img {
  width: 150px;
  height: 150px;
}

.text {
  padding-top: 10px;
}
h3 {
  text-align: center;
  font-size: 16px;
}
p {
  text-align: right;
  font-size: 17px;
  font-weight: 500;
  padding-right: 20px;
}
@media (min-width: 787px) {
  
  h2 {
    background-color: rgb(196, 124, 66);
    padding: 40px 0;
    color: white;
  }
  .img img {
    width: 400px;
    height: 400px;
  }
  .hero {
    height: 100vh;
    background-position: center;
    background-image: url(../img/sweet/hero.jpg);
    background-repeat: no-repeat;
    background-size: cover;
  }
  h3 {
    font-size: 24px;
    margin-bottom: 5px;
  }
  p {
    font-size: 20px;
    margin-right: 30px;
  }
  header {
    padding: 10px 30px;
    justify-content: space-around;
    height: 150px;
    background-color: rgba(178, 166, 121, 0.464);
    position: fixed;
  }
  nav ul li {
    font-size: 25px;
    font-weight: 500;
  }
  nav ul li a {
    color: white;
  }
  h1 img {
    width: 150px;
    height: 150px;
  }
  h4 {
    font-size: 50px;
    color: white;
    letter-spacing: 0.2em;
  }
}

/* footer */
footer {
  background-image: url(../img/teras.jpg);
  height: 15vh;
  background-size: cover;
  background-position: top;
  position: relative;
  color: white;
  font-size: 10px;
}
.juu {
  position: absolute;
  top: 20px;
  right: 10px;
  font-size: 8px;
  color: white;
  font-weight: 300;
}
.footer-time {
  position: absolute;
  top: 35px;
  left: 20px;
  font-size: 8px;
  color: white;
}
.copy {
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 300;
  font-size: 8px;
  color: white;
}
.cafe {
  font-size: 12px;
  position: absolute;
  top: 10px;
  left: 20px;
  color: white;
}
.footer-logo {
  opacity: 0;
  width: 100px;
}
@media (min-width: 767px) {
  footer {
    background-size: cover;
    background-position: center;
    padding: 50px 20px;
    height: 30vh;
  }
  .footer-logo {
    opacity: 1;
    position: absolute;
    width: 150px;
    top: 20px;
    left: 130px;
  }
  .footer-time {
    top: 120px;
    left: 300px;
    font-size: 20px;
    color: white;
  }

  .juu {
    font-size: 18px;
    top: 50px;
    right: 200px;
    line-height: 2em;
  }

  .copy {
    font-size: 12px;
    bottom: 10px;
    left: 400px;
    color: white;
  }

  .cafe {
    top: 60px;
    left: 300px;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: 10px;
    color: white;
  }

  footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明オーバーレイ */
    z-index: -1;
  }
}
