.pc_search {
  width: 100%;
  text-align: center;
  border: 0 solid #bcbcbc;
  margin-top: 20px;
}

.mobile_search {
  width: 100%;
  border: 0 solid #bcbcbc;
  text-align: center;
}

.table_content td {
  text-align: center;
}

.table > tbody > tr > td {
  padding: 20px 5px;
}

.first_word_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.first_word_container a {
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  border: none;
  text-align: center;
  transition: all 0.3s ease;
}

.first_word_container a:hover {
  background-color: #e0e0e0;
  color: #000;
  border-color: #aaa;
  border: none;
}

#category_header,
#category_search {
  background-color: #ffabd5;
  border-color: #ffabd5;
}

#category_header {
  margin: 15px auto;
}

#category_search input::placeholder {
  font-weight: 300;
  color: #c7c7c7;
  text-align: center;
}

#category_search input {
  flex: 1 1 auto;
  min-width: 0;
  height: calc(100% - 8px);
  margin: 0;
  padding: 0 18px;
  border: 0;
  background-color: #ffffff;
  color: #666666;
}

#category_search input:focus::placeholder {
  color: transparent;
}

#category_search {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 54px;
  overflow: hidden;
  padding: 1px 1px 1px 12px;
  border-radius: 10px;
}

#category_search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 78px;
  height: calc(100% - 0px);
  padding: 0;
  border: 0;
  background-color: #ffabd5;
  font-size: 25px;
  color: white;
  cursor: pointer;
  border-radius: 0 10px 10px 0;
}

#category_search button:hover {
  background-color: #ea4d98;
}

#category_search button:focus,
#category_search input:focus {
  outline: none;
}

.category_search > input {
  width: 300px;
  margin: 0;
  padding: 0;
}

.ilust_gallery_list {
  display: flex;
  flex-wrap: wrap;
  margin: -18px -20px 0;
  padding: 0;
  list-style: none;
}

.ilust_gallery_item {
  width: 25%;
  padding: 18px 20px;
}

.ilust_gallery_link {
  display: block;
  text-decoration: none;
}

.ilust_gallery_image {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 18px;
  background-color: #f7f4ee;
}

.ilust_gallery_image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

.ilust_gallery_text {
  padding-top: 18px;
}

.ilust_gallery_text .brand_name {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  color: #ee2760;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ilust_gallery_text .cate {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.3;
  color: #4a4a4a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media all and (max-width: 620px) {
  .mobile_search {
    display: block;
  }

  .pc_search {
    display: none !important;
  }

  .table > tbody > tr > td {
    padding: 10px 5px;
  }

  #category_search {
    min-height: 48px;
    padding: 2px 2px 2px 10px;
  }

  #category_search button {
    flex-basis: 64px;
    font-size: 20px;
  }

  .ilust_gallery_list {
    margin: -10px -9px 0;
  }

  .ilust_gallery_item {
    width: 50%;
    padding: 10px 9px;
  }

  .ilust_gallery_text {
    padding-top: 12px;
  }

  .ilust_gallery_text .brand_name {
    font-size: 16px;
  }

  .ilust_gallery_text .cate {
    font-size: 12px;
  }
}

@media all and (max-width: 960px) and (min-width: 621px) {
  .ilust_gallery_item {
    width: 33.3333%;
  }
}

@media only screen and (min-width: 1224px) {
  .pc_search {
    display: table;
  }

  .mobile_search {
    display: none !important;
  }
}
