/* 症例写真ページ */
.p-page-head {
  margin: 0;
}
.p-page-footer__inner {
  margin: 0;
  background: linear-gradient(
  to right,
  #F4E9DD calc(550 / 1440 * 100%),
  transparent calc(550 / 1440 * 100%));
}

.p-case {
  display: flex;
}
.p-case aside {
  max-width: calc(550 / 1440 * 100%);
  width: 100%;
  padding: 80px 0;
}
.p-case__content {
  max-width: calc(890 / 1440 * 100%);
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 80px 0;
}
.p-case__content__inner {
  max-width: 670px;
  width: 100%;
  padding-left: 40px;
}
.p-case__pagination {
  margin: 80px 0;
}
.p-case__posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 24px;
}
.p-case__post__before {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #414141;
  background-color: #E7C3AC;
  border-radius: 4px 4px 0 0;
  padding: 4px 12px;
}
.p-case__post__image {
  margin-bottom: 12px;
}
.p-case__post__date {
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  color: #E1AF8B;
  margin-bottom: 8px;
}
.p-case__post__category {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-case__post__category span {
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  color: #6C6C6C;
}
.p-case__post__title {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0;
  color: #414141;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-case__post__tag {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.p-case__post__tag > a {
  display: inline-block;
  padding: 5.5px 8px 6.5px;
  border: 1px solid #E7984A;
  border-radius: 2px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  color: #E7984A;
}
.p-case__post__link {
  display: flex;
  justify-content: center;
}
.p-case__post__link > a {
  max-width: 255px;
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #414141;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  color: #414141;
  background-size: 14px auto;
}

.p-case__pagination .screen-reader-text {
  display: none !important;
}
.p-case__pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.p-case__pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  width: 45px;
  height: 45px;
  color: #414141;
  background-color: #fff;
  border: 1px solid #414141;
  border-radius: 2px;
  transition: 0.3s;
}
.p-case__pagination .page-numbers:not(.dots):hover {
	color: var(--white);
  background-color: #E1AF8B;
	opacity: 1;
  border: none;
}
.p-case__pagination .page-numbers.current {
	color: var(--white);
  background-color: #E1AF8B;
  border: none;
}
.p-case__pagination .page-numbers.dots {
  width: fit-content;
	color: #414141;
  background-color: #F9F5F0;
  border: none;
  position: relative;
  bottom: 4px;
}

@media (max-width: 768px) {
  .p-page-footer__inner {
    background: #F9F5F0;
  }
  .p-case {
    flex-flow: column-reverse;
    padding: 0 6.4vw;
  }
  .p-case aside {
    max-width: 100%;
    padding: 0;
    margin-top: 80px;
    margin-bottom: 104px;
  }
  .p-case__content {
    max-width: 100%;
    padding: 0;
    margin-top: 10.666vw;
  }
  .p-case__content__inner {
    max-width: 100%;
    padding-left: 0;
  }
  .p-case__pagination {
    margin: 40px 0 80px;
  }
  .p-case__posts {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 80px;
  }
}

.p-case__detail__date {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  color: #969398;
  margin-bottom: 12px;
}
.p-case__detail__category {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}
.p-case__detail__category > span {
	font-family: "Zen Old Mincho", serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  color: #555555;
}
.p-case__detail__title {
	font-family: "Zen Old Mincho", serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0;
  border-bottom: 1px solid #CAAEA5;
  padding-bottom: 20px;
  margin-bottom: 16px;
}
.p-case__detail__tag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 72px;
}
.p-case__detail__tag > a {
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  color: #e7984a;
  border: 1px solid #e7984a;
  border-radius: 2px;
  padding: 5.5px 8px 6.5px;
}
.p-case__detail__image {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 72px;
}
.p-case__detail__image__before {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #414141;
  background-color: #E7C3AC;
  border-radius: 4px 4px 0 0;
  padding: 4px 12px;
}
.p-case__detail__image__after {
  font-family: "Lato", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
  background-color: #E7984A;
  border-radius: 4px 4px 0 0;
  padding: 4px 12px;
}
.p-case__detail__image div img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .p-case__detail__image {
    display: grid;
    grid-template-columns: repeat(2, 250px);
    overflow-x: auto;
  }

  .p-case__detail__tag {
    margin-bottom: 40px;
  }
}

.p-case__detail__comment {
  background-color: #F4E9DD;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}
.p-case__detail__comment > div {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #E7C3AC;
  padding-left: 3px;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.p-case__detail__comment > div img {
  width: 25px;
  height: auto;
}
.p-case__detail__comment > div p {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #414141;
}
.p-case__detail__comment > p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  color: #414141;
}