/*************************************************
ブランド ページ
*************************************************/
#brand .section_inner .brand_link {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #fff;
  align-items: center;
  margin-bottom: min(10vw, 30px);
}
#brand .section_inner .brand_link li {
  padding: 0 20px;
}
#brand .section_inner .brand_link li:hover {
  background: var(--main-color);
  color: #fff;
}
#brand .section_inner .brand_link a,
#brand .section_inner h3,
#brand .section_inner .brand_grid .brand_item .brand_sns {
  font-family: "M PLUS Rounded 1c", serif;
}
#brand .section_inner .brand_link a {
  font-weight: 700;
  font-size: min(5vw, 16px);
  text-align: center;
  display: flex;
  border: none;
  background: none;
  align-items: center;
  justify-content: center;
  height: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}
#brand .section_inner h3 {
  font-weight: 800;
  text-align: center;
  font-size: min(5vw, 25px);
  color: #000;
  margin-bottom: min(10vw, 30px);
}
#brand .section_inner .brand_grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 50px 14px;
  margin-bottom: min(30vw, 100px);
}
#brand .section_inner .brand_grid .brand_item a {
  display: block;
}
#brand .section_inner .brand_grid .brand_item a:hover {
  opacity: 0.8;
}
#brand .section_inner .brand_grid .brand_item .brand_image {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 3px solid #fff;
  background-color: #fff;
}
#brand .section_inner .brand_grid .brand_item .brand_image img {
  width: 100%;
  object-fit: contain;
  object-position: top;
}
#brand .section_inner .brand_grid .brand_item a img.contain {
  object-fit: contain;
  object-position: center;
}
/* ------------------------------------ */
/* モーダルウィンドウ                      */
/* ------------------------------------ */
.modal__wrap input {
  display: none;
}
.modal__open-label,
.modal__close-label {
  cursor: pointer;
}
.modal__open-label {
  display: flex;
  justify-content: center;
  align-items: center;
  /* width: 250px; */
  margin: 0 auto;
  /* padding: 0.8em 2em; */
  border: none;
  /* border-radius: 5px; */
  /* background-color: #2589d0;
  color: #ffffff; */
  font-weight: 600;
  font-size: 1em;
}
/* .modal__open-label:hover {
  background-color: #fff;
  color: #2589d0;
  outline: 1px solid #2589d0;
} */
.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}
.modal__open-input:checked + label + input + .modal {
  display: block;
  animation: modal-animation 0.6s;
}
.modal__content-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  max-width: 350px;
  background-color: #fefefe;
  z-index: 2;
  border-radius: 5px;
}
.modal__close-label {
  background-color: #777;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 20px;
  width: 36px;
  height: 36px;
  line-height: 1.6;
  text-align: center;
  display: table-cell;
  position: fixed;
  top: -15px;
  right: -2%;
  z-index: 99999;
  font-size: 1.3em;
}
.modal__content {
  max-height: 90vh;
  overflow-y: auto;
  padding: min(3vw, 15px) min(4vw, 20px) min(10vw, 50px);
}
.modal__content .brand_image {
  aspect-ratio: 3 / 2 !important;
}
.modal__content .brand_image img.aspect {
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: center !important;
}
.modal__content .brand_name {
  padding: 0 !important;
  font-size: min(5vw, 20px) !important;
  margin-bottom: 15px;
}
.modal__content .brand_text {
  font-size: min(3vw, 15px);
  line-height: 1.5;
  margin-bottom: 15px;
}
.modal__content .brand_text.center {
  text-align: center;
}
.modal__content .brand_sns {
  padding-top: 0 !important;
}
.modal__background {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
@keyframes modal-animation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@media (max-width: 599px) {
  .modal__close-label {
    top: -17px;
    right: -4%;
  }
  .modal__content-wrap {
    width: 80vw;
  }
  .modal__content {
    max-width: 100%;
  }
}
/* ------------------------------------ */
/* モーダルウィンドウ ここまで              */
/* ------------------------------------ */
#brand .section_inner .brand_grid .brand_item .brand_name {
  color: #000;
  text-align: center;
  font-size: min(2vw, 20px);
  font-weight: bold;
  line-height: 1.3;
  padding-top: min(1vw, 15px);
}
#brand .section_inner .brand_grid .brand_item.name-small .brand_name {
  font-size: min(1.5vw, 15px);
  line-height: 1.1;
  padding-top: min(0.75vw, 12.5px);
}
#brand .section_inner .brand_grid .brand_item .brand_sns {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  padding-top: min(1vw, 15px);
}
#brand .section_inner .brand_grid .brand_item.name-small .brand_sns {
  padding-top: min(0.75vw, 12.5px);
}
#brand .section_inner .brand_grid .brand_item .brand_sns a {
  width: min(8vw, 30px);
  aspect-ratio: 1;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 100%;
  margin: 0 5px;
}
#brand .section_inner .brand_grid .brand_item .brand_sns a.hp {
  font-size: min(2vw, 16px);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
#brand .section_inner .brand_grid .brand_item .brand_sns a.insta img {
  width: 100%;
  height: 100%;
  padding: 5px 5px 5px 6px;
  object-fit: contain;
}
@media (max-width: 599px) {
  #brand {
    padding: 0 min(5vw, 30px);
  }
  #brand .content {
    padding-top: 0 !important;
  }
  #brand .section_inner {
    padding-top: 150px;
  }
  #brand .section_inner .brand_link {
    display: flex;
    align-items: center;
  }
  #brand .section_inner .brand_link li {
    padding: 0 10px;
  }
  #brand .section_inner .brand_link a {
    line-height: 1.2;
    padding: 8px 4px;
    height: auto;
    white-space: pre-wrap;
  }
  #brand .section_inner .brand_link a:last-child {
    padding-top: 4px;
    padding-bottom: 4px;
    line-height: 1;
  }
  #brand .section_inner .brand_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 10px;
  }
  #brand .section_inner .brand_grid .brand_item .brand_name,
  #brand .section_inner .brand_grid .brand_item .brand_sns a.hp {
    font-size: 4vw;
  }
  #brand .section_inner .brand_grid .brand_item .brand_name {
    line-height: 1.5;
  }
  #brand .section_inner .brand_grid .brand_item.name-small .brand_name {
    font-size: 3.5vw;
    line-height: 1.1;
  }
  #brand .section_inner .brand_grid .brand_item.name-small .brand_sns {
    padding-top: min(1vw, 15px);
  }
  #brand .section_inner .brand_grid .brand_item .brand_sns a {
    width: 8vw;
  }
  #brand .section_inner .brand_grid .brand_item .brand_sns a.insta img {
    width: 80%;
    padding: 0 0 0 1.75vw;
  }
}
