@charset "utf-8";
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero {
  margin-bottom: 30px;
  position: relative;
}

.hero img {
  display: block;
  width: 100vw;
  height: auto;
}

main {
  margin-left: 10%;
  margin-right: 10%;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.buy-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  max-width: 1476px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.buy-box {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
}

.buy-box img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.grid-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 50px;
  justify-content: center;
}

.grid-item {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.buy-box:hover {
  transform: scale(1.03);
}

.grid-item:hover {
  transform: scale(1.03);
}

.grid-item a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.grid-item img {
  display: block;
  max-width: 85%;
  height: auto;
  border-radius: 10px;
}

.grid-item.empty {
  background-color: transparent;
  border: none;
  cursor: default;
  pointer-events: none;
  transform: none;
}

.grid-item.empty:hover {
  transform: none;
}

footer {
  padding: 30px 0;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  display: block;
  margin: 0 auto 20px auto;
  width: 56px;
  height: 38px;
}

.copyright {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #666;
  margin: 0;
}

.sns-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
  margin: 80px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.sns-box {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}


.sns-box:hover {
  transform: scale(1.1);
}

.sns-box a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.sns-box img {
  display: flex;
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 50%;
  min-width: 36px;
  min-height: 36px;
  max-width: 100%;
  max-height: 100%;
}


@media (max-width: 600px) {
  .sns-section {
    gap: 2.5px;
    width: calc(100% - 20px);
    padding: 0 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px auto;
    min-width: unset;
    max-width: unset;
  }

  .sns-box {
    width: calc((100% - 5px) / 3);
    height: auto;
    aspect-ratio: 1 / 1;
    position: relative;
    flex-shrink: 1;
    min-width: unset;
    min-height: unset;
    display: block;
    border-radius: 50%;
    max-width: 60px;
    max-height: 60px;
  }

  .sns-box img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    object-fit: cover;
    border-radius: 50%;
  }
}

@media (max-width: 450px) {
  .sns-section {
    gap: 2px;
  }
  .sns-box {
    width: calc((100% - 2px) / 2);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    max-width: 50px;
    max-height: 50px;
  }

  .sns-box img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 50%;
  }

@media (max-width: 768px) {
  .buy-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .buy-box {
    width: 100%;
    max-width: 440px;
  }
}
}