.horses-hline-2, .horses-hline-1 {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
  color: var(--color-primary);
  border: 1px solid currentColor;
  line-height: 1.5;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.horses-hline-1 {
  margin-bottom: 5.2rem;
  padding: 0.9rem 3.5rem;
  font-size: 1.6rem;
}
@media (min-width: 768px) {
  .horses-hline-1 {
    margin-bottom: 8rem;
    padding: 1.1rem 5.7rem;
    font-size: 2.4rem;
  }
}

.horses-hline-2 {
  margin-bottom: 2rem;
  padding: 0.8rem 3.8rem;
  font-size: 1.2rem;
}
@media (min-width: 768px) {
  .horses-hline-2 {
    margin-bottom: 3.5rem;
    padding: 1.2rem 5rem;
    font-size: 1.8rem;
  }
}

.p-horses {
  padding-top: 3.8rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .p-horses {
    padding-top: 5rem;
    padding-bottom: 12.8rem;
  }
}
.p-horses__inner {
  margin-inline: auto;
  max-width: 81.2rem;
  width: 100%;
  padding-inline: 3rem;
}
.p-horses__sec {
  margin-bottom: 6rem;
}
@media (min-width: 768px) {
  .p-horses__sec {
    margin-bottom: 9rem;
  }
}
.p-horses__list {
  display: flex;
  flex-wrap: wrap;
  -moz-columns: 2rem;
  columns: 2rem;
  row-gap: 3.2rem;
}
@media (min-width: 768px) {
  .p-horses__list {
    gap: 6.4rem;
  }
}
@media (max-width: 767px) {
  .p-horses__list {
    justify-content: space-between;
  }
}

.horse-card {
  position: relative;
  width: calc(50% - 1rem);
  height: 40.4rem;
  padding-right: 2rem;
  color: var(--color-primary);
}
@media (min-width: 768px) {
  .horse-card {
    width: 20.8rem;
    height: 50.9rem;
    padding-right: 3rem;
  }
}
.horse-card::after {
  position: absolute;
  z-index: 0;
  right: 0.9rem;
  top: 0;
  width: 1px;
  height: 100%;
  background-color: var(--color-primary);
  content: "";
}
@media (min-width: 768px) {
  .horse-card::after {
    right: 0.9rem;
  }
}
.horse-card__slug {
  position: absolute;
  z-index: 2;
  right: 0.4rem;
  top: 0;
  background-color: #FFF;
  padding-bottom: 1rem;
  font-family: var(--font-montserrat);
  writing-mode: vertical-lr;
  -webkit-writing-mode: vertical-rl;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.1em;
}
@media (min-width: 768px) {
  .horse-card__slug {
    right: 0;
    padding-bottom: 1.4rem;
    font-size: 2rem;
  }
}
.horse-card__image {
  display: block;
  aspect-ratio: 128/182;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .horse-card__image {
    margin-bottom: 2.3rem;
    aspect-ratio: 178/274;
  }
}
.horse-card__name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .horse-card__name {
    gap: 1.5rem;
    margin-bottom: 1.4rem;
    font-size: 2.4rem;
  }
}
.horse-card__name .kana {
  font-size: 1rem;
}
@media (min-width: 768px) {
  .horse-card__name .kana {
    font-size: 1.2rem;
  }
}
.horse-card__tag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-third);
  font-size: 1rem;
  font-weight: 500;
  background-color: var(--color-primary);
  color: #FFF;
  line-height: 1;
}
@media (min-width: 768px) {
  .horse-card__tag {
    margin-bottom: 1.1rem;
    padding: 0.7rem 2.1rem;
    font-size: 1.2rem;
  }
}
.horse-card__birth {
  margin-bottom: 0.9rem;
  font-family: var(--font-third);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
@media (min-width: 768px) {
  .horse-card__birth {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
  }
}
.horse-card__txt {
  font-family: var(--font-third);
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 1rem;
  line-height: 1.8;
}
@media (min-width: 768px) {
  .horse-card__txt {
    font-size: 1.1rem;
    line-height: 1.9090909091;
  }
}

.horse-friend__image-list {
  display: flex;
  -moz-column-gap: 0.6rem;
  column-gap: 0.6rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .horse-friend__image-list {
    -moz-column-gap: 3rem;
    column-gap: 3rem;
    width: 100%;
    max-width: 61rem;
    margin-inline: auto;
    margin-bottom: 2.4rem;
  }
}
@media (max-width: 767px) {
  .horse-friend__image-list {
    margin-inline: -3rem;
  }
}
.horse-friend__image {
  width: calc(50% - 0.3rem);
  aspect-ratio: 185/130;
}
@media (min-width: 768px) {
  .horse-friend__image {
    width: calc(50% - 1.5rem);
    aspect-ratio: 29/21;
  }
}
.horse-friend__content {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .horse-friend__content {
    max-width: 48rem;
    margin-inline: auto;
    padding-inline: 0;
  }
}
.horse-friend__txt {
  font-family: var(--font-third);
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  line-height: 2.2727272727;
  color: var(--color-primary);
}
@media (min-width: 768px) {
  .horse-friend__txt {
    font-size: 1.3rem;
    line-height: 2.1538461538;
  }
}