.detail {
  padding: 70px 20px 120px;
}
.detail__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.detail__date {
  font-size: 14px;
  font-family: var(--font-serif);
  font-weight: 500;
  margin-bottom: 10px;
}
.detail__ttl {
  font-size: 26px;
  line-height: 1.5;
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 40px;
}
.detail__cat {
  margin-left: -10px;
  margin-top: -10px;
  margin-bottom: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.detail__cat span {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: #000;
  color: #fff;
  font-size: 15px;
  width: 160px;
  height: 30px;
  border-radius: 9999px;
  margin-left: 10px;
  margin-top: 10px;
}
.detail__thumb {
  margin-bottom: 50px;
}
.detail__thumb img {
  border-radius: 20px;
}
.detail__body a {
  color: #77573C;
  text-decoration: underline;
}
.detail__body a:hover {
  text-decoration: none;
}
.detail__body p {
  font-size: 16px;
  line-height: 2.25;
  margin-bottom: 50px;
}
.detail__body h2 {
  font-size: 22px;
  line-height: 1.6363636364;
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 30px;
  padding: 10px;
  border-left: 6px solid #77573C;
  background: #fff;
}
.detail__body h3 {
  font-size: 20px;
  line-height: 1.5;
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 30px;
  padding: 0 10px 10px 16px;
  border-bottom: 1px solid #C3C3C3;
  position: relative;
}
.detail__body h3:before {
  content: "";
  width: 6px;
  height: calc(100% - 10px);
  background: #77573C;
  position: absolute;
  top: 0;
  left: 0;
}
.detail__body h4 {
  font-size: 18px;
  line-height: 1.5;
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 30px;
  padding: 0 10px;
  border-left: 6px solid #77573C;
}
.detail__body img {
  width: auto;
}
.detail__body strong,
.detail__body b {
  font-weight: 700;
}
.detail__body em,
.detail__body i {
  font-style: italic;
}
.detail__body ul,
.detail__body ol {
  margin: 1.5em 0 1.5em 1.5em;
}
.detail__body ul li,
.detail__body ol li {
  margin-bottom: 0.5em;
  list-style: inherit;
}
.detail__body code {
  background: #f5f5f5;
  padding: 0.2em 0.4em;
  font-size: 0.9em;
}
.detail__body pre {
  background: #f5f5f5;
  padding: 1em;
  overflow-x: auto;
}
.detail__body hr {
  border: none;
  border-top: 1px solid #77573C;
  margin: 2em 0;
}
.detail__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
.detail__body th,
.detail__body td {
  border: 1px solid #77573C;
  padding: 0.5em;
}
.detail__body .photos {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.detail__body .photos div {
  width: calc(50% - 20px);
  margin-bottom: 40px;
}
.detail__body .photos div img {
  width: 100%;
}
.detail__btn {
  margin-top: 80px;
}
.detail__btn a {
  margin: 0 auto;
  width: 320px;
  height: 60px;
  border-radius: 9999px;
  color: #fff;
  background: #77573C;
  font-size: 18px;
  letter-spacing: 0.02em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
}
.detail__btn a:after {
  content: "";
  width: 27px;
  height: 16px;
  background: url(../images/arrow.svg) 0 0 no-repeat;
  background-size: 100% auto;
  position: absolute;
  right: 24px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
.detail__btn a:hover {
  opacity: 0.8;
}

@media screen and (max-width: 767px) {
  .detail {
    padding: 30px 15px 90px;
  }
  .detail__ttl {
    font-size: 22px;
    margin-bottom: 15px;
  }
  .detail__cat {
    margin-bottom: 20px;
  }
  .detail__cat span {
    font-size: 12px;
    width: 140px;
    height: 24px;
  }
  .detail__thumb {
    margin-bottom: 30px;
  }
  .detail__body p {
    font-size: 14px;
    line-height: 1.8571428571;
    margin-bottom: 40px;
  }
  .detail__body h2 {
    font-size: 18px;
    line-height: 1.5555555556;
    margin-bottom: 30px;
  }
  .detail__body .photos div {
    width: calc(50% - 7px);
    margin-bottom: 20px;
  }
  .detail__btn {
    margin-top: 60px;
  }
}
.detail-relate {
  margin-top: 80px;
}
.detail-relate__ttl {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 30px;
}
.detail-relate__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-left: -10px;
}
.detail-relate__item {
  width: calc(33.333% - 10px);
  margin-left: 10px;
}
.detail-relate__item a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
          box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
}
.detail-relate__item-thum {
  width: 100%;
}
.detail-relate__item-thum img {
  -o-object-fit: cover;
     object-fit: cover;
  aspect-ratio: 360/230;
}
.detail-relate__item-body {
  padding: 20px;
  min-height: 130px;
}
.detail-relate__item-meta {
  margin-bottom: 18px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.detail-relate__item-date {
  font-size: 11px;
  font-weight: 500;
  color: #9B9B9B;
}
.detail-relate__item-cat span {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: #E5E5E5;
  padding: 0 20px;
  height: 20px;
  border-radius: 10px;
  margin-left: 10px;
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  color: #6E6E6E;
  font-family: var(--font-serif);
  font-weight: 500;
}
.detail-relate__item-ttl {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.875;
  font-family: var(--font-serif);
}

@media screen and (max-width: 767px) {
  .detail-relate__ttl {
    font-size: 22px;
  }
  .detail-relate__list {
    margin-left: 0;
    margin-top: -30px;
  }
  .detail-relate__item {
    width: 100%;
    margin-left: 0;
    margin-top: 30px;
  }
  .detail-relate__item-thum {
    width: 100%;
  }
  .detail-relate__item-thum img {
    aspect-ratio: 360/230;
  }
  .detail-relate__item-body {
    padding: 10px 15px;
    min-height: 130px;
  }
  .detail-relate__item-meta {
    margin-bottom: 12px;
  }
  .detail-relate__item-date {
    font-size: 10px;
  }
  .detail-relate__item-cat span {
    padding: 0 10px;
    height: 14px;
    border-radius: 7px;
    margin-left: 7px;
    font-size: 8px;
  }
}