.k-gallery {
  background-color: var(--white);
  border-radius: 15px;
  padding: 48px;
  margin-bottom: 40px;
}

.k-gallery__content {
  color: var(--text-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 180%;
  margin-bottom: 48px;
}

.k-gallery__list {
  display: flex;
  flex-wrap: wrap;
}

.k-gallery__item {
  width: 23%;
  background-color: var(--global-bg-color);
  padding: 12px;
  margin-right: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.k-gallery__item:last-child {
  margin-right: 0;
}

.k-gallery__item_top {
  position: relative;
}

.k-gallery__item_top img {
  max-width: 100%;
  height: 100%;
  border-radius: 10px;
}

.k-gallery__item_label {
  padding: 4px 16px;
  border-radius: 20px;
  background-color: var(--base-color);
  color: var(--white);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 14px;
  font-weight: 500;
  line-height: 100%;
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.k-gallery__item_bottom {
  color: var(--text-color);
  margin: 20px 0 24px 0;
  font-family: var(--font-zen-kaku-new-type);
  line-height: 100%;
  text-align: center;
}

.k-gallery__item_title {
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  margin-bottom: 8px;
}

.k-gallery__item_modelYear {
  font-size: 18px;
  margin-bottom: 16px;
}

.k-gallery__item_basePrice {
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.k-gallery__item_basePrice span {
  font-size: 32px;
  font-weight: 400;
}

.k-gallery__item_priceInfo {
  display: flex;
  justify-content: center;
  color: var(--light-text-color);
  font-size: 14px;
  margin-bottom: 12px;
}

.k-gallery__item_priceInfo-item {
  margin-right: 8px;
}

.k-gallery__item_price {
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 400;
  margin-top: 2px;
}

.k-gallery__item_price .strong {
  font-size: 20px;
}

.k-gallery__item_maintenance {
  display: flex;
  justify-content: center;
  color: var(--text-color);
  font-size: 14px;
}

.k-gallery__item_maintenance .canBe {
  color: var(--blue);
}

.k-gallery__item_maintenance .none {
  color: var(--light-text-color);
}

/* detail */
.k-galleryDetail__info {
  margin: 96px 0 64px 0;
  background-color: var(--white);
  border-radius: 10px;
}

.k-galleryDetail__info .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 48px;
  padding-bottom: 80px;
}

.k-galleryDetail__top {
  margin-bottom: 64px;
}

.k-galleryDetail__category {
  width: 90px;
  color: var(--base-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  padding: 8px 12px;
  margin-bottom: 16px;
  border: 1px solid #D3CBB8;
  border-radius: 3px;
}

.k-galleryDetail__title {
  width: 38%;
  color: var(--text-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 12px;
}

.k-galleryDetail__modelYear {
  color: var(--light-text-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  margin-bottom: 48px;
}

.k-galleryDetail__info_list {
  width: 38%;
}

.k-galleryDetail__info_item {
  display: flex;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dotted #D3CBB8;
}

.k-galleryDetail__info_item:last-child {
  border-bottom: none;
}

.k-galleryDetail__info_item-label {
  width: 30%;
  color: var(--blue);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  margin-right: 32px;
}

.k-galleryDetail__info_item-value {
  color: var(--text-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
}

.k-galleryDetail__info_img {
  position: absolute;
  top: -48px;
  right: 48px;
  width: 590px;
  height: 590px;
  border-radius: 15px;
}

/* コードビルダーで自動生成されるclass名 */
.so-panel {
  width: 347px;
  display: flex;
  flex-direction: column-reverse;
  margin-bottom: 32px;
}

.so-panel img {
  width: 100%;
  height: 231px !important;
  object-fit: cover;
  border-radius: 10px;
}

.panel-grid-cell .widget-title {
  margin-top: 12px !important;
}

.widget-title {
  color: var(--text-color);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 160%; 
}

.k-galleryDetail__button {
  display: flex;
  justify-content: center;
  width: 260px;
  margin: 64px auto 0 auto;
  border-radius: 5px;
  border: 1px solid var(--blue);
  padding: 23px 0;
  position: relative;
}

.k-galleryDetail__button_content {
  color: var(--blue);
  font-family: var(--font-noto-sans-jp);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; 
}

.k-galleryDetail__button_image {
  background-color: var(--blue);
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.k-galleryDetail__button_image img {
  width: 20px;
  height: 20px;
}


.k-galleryDetail__back {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 120px;
}

.k-galleryDetail__back_icon {
  width: 32px;
  height: 32px;
  background-color: var(--blue);
  padding: 6px;
  border-radius: 50%;
}

.k-galleryDetail__back_icon img {
  width: 20px;
  height: 20px;
}

.k-galleryDetail__back_content {
  color: var(--blue);
  font-family: var(--font-zen-kaku-new-type);
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%;
  margin-left: 8px;
}

@media screen and (max-width: 775px) {
  .k-gallery {
    padding: 32px 20px;
  }

  .k-gallery__content {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .k-gallery__list {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .k-gallery__item {
    width: 48%;
    margin-right: 0;
    padding: 8px;
    margin-bottom: 16px;
  }

  .k-gallery__item_top img {
    width: 100%;
  }

  .k-gallery__item_label {
    font-size: 12px;
    padding: 4px 8px;
  }

  .k-gallery__item_bottom {
    margin: 8px 0 8px 0;
  }

  .k-gallery__item_title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .k-gallery__item_modelYear {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .k-gallery__item_basePrice {
    line-height: 160%;
    margin-bottom: 4px;
  }

  .k-gallery__item_priceInfo {
    display: block;
    margin-bottom: 8px;
  }

  .k-gallery__item_priceInfo-item {
    margin-right: 0;
    margin-bottom: 8px;
  }

  .k-gallery__item_maintenance {
    display: block;
    text-align: center;
  }

  /* detail */

  .k-galleryDetail__info .container {
    width: 311px;
    padding: 0;
    padding-bottom: 64px;
  }
  .k-galleryDetail__info {
    margin-top: 159px;
  }

  .k-galleryDetail__info_img {
    top: -135px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 280px;
  }

  .k-galleryDetail__top {
    margin-bottom: 40px;
  }

  .k-galleryDetail__top_info {
    padding-top: 175px;
    margin: 96px 0 48px 0;
  }

  .k-galleryDetail__category {
    font-size: 14px;
    padding: 6px 8px;
    margin-bottom: 8px;
    text-align: center;
  }

  .k-galleryDetail__title {
    width: 100%;
    font-size: 24px;
    margin-bottom: 8px;
  }

  .k-galleryDetail__modelYear {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .k-galleryDetail__info_list {
    width: 100%;
  }

  .k-galleryDetail__info_item-label {
    width: 40%;
  }

  .k-galleryDetail__back {
    margin-bottom: 80px;
  }

  .so-panel {
    width: 100%;
  }

  .panel-grid-cell .widget-title {
    font-size: 14px;
  }
}
