@charset "UTF-8";
/* メニューボタン */
.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.button-container {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.button-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.label-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 200px;
  background-color: #fff;
  border-radius: 10px;
  padding: 0.8em;
}

.button-container:hover .bg-img {
  transform: scale(1.1);
}

main {
  padding-top: 3em;
}

/* バナー======================================== */
.list-grid1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}

.banner-box {
  flex: 1 1 250px;
  max-width: 300px;
}

.banner-box a {
  display: block;
  text-decoration: none;
}

.banner-bg {
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  padding: 2rem 1rem;
  color: white;
  font-weight: bold;
  text-align: center;
  position: relative;
  box-shadow: 0 0 0 5px white, 0 2px 6px rgba(0, 0, 0, 0.2);
  aspect-ratio: 2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.6;
}

.list-grid1 .list p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}
