:root {
  --font-family-jp: "Noto Sans JP", sans-serif;
  --category-doctor: rgba(206, 228, 255);
  --category-aps: rgba(253, 224, 232);
  --category-birecipe: rgba(218, 244, 224);
  --category-advice: rgba(253, 242, 210);
  --category-kampo: rgba(240, 230, 255);
  --category-biqa: rgba(255, 232, 217);
}

.c-detail-inner {
  width: 100%;
}
.c-detail-inner > *:first-child {
  margin-top: 0 !important;
}
.c-detail-inner > p,
.c-detail-inner > ul,
.c-detail-inner > ol {
  margin-top: 20px;
  font-size: 16px;
}
@media screen and (max-width: 768px) {
  .c-detail-inner > p,
  .c-detail-inner > ul,
  .c-detail-inner > ol {
    font-size: 14px;
  }
}

.category-doctor span {
  background-color: var(--category-doctor) !important;
}
.category-aps span {
  background-color: var(--category-aps) !important;
}
.category-birecipe span {
  background-color: var(--category-birecipe) !important;
}
.category-advice span {
  background-color: var(--category-advice) !important;
}
.category-kampo span {
  background-color: var(--category-kampo) !important;
}
.category-biqa span {
  background-color: var(--category-biqa) !important;
}

.c-detail-inner > h2 {
  color: #000;
  font-family: var(--Font-family-jp, "Noto Sans JP");
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.c-detail-inner h3 {
  color: #1e445b;
  font-size: 20px;
  font-weight: 600;
  margin-top: 24px;
}

@media screen and (max-width: 768px) {
  .c-detail-inner > h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
  }
  .c-detail-inner h3 {
    font-size: 18px;
    margin-top: 16px;
  }
}
.c-detail-inner > h2::before {
  content: "";
  display: block;
  width: 4px;
  height: auto;
  align-self: stretch;
  background-color: #1e445b;
  flex-shrink: 0;
}

.c-detail__image {
  display: block;
  width: 80%;
  margin: 40px auto 0;
}
@media screen and (max-width: 768px) {
  .c-detail__image {
    margin-top: 30px;
    width: 100%;
  }
}

.c-detail-index {
  padding: 20px 30px 10px;
  border: 1px solid #c5c5c5;
  margin: 40px auto;
  width: 80%;
}
@media screen and (max-width: 768px) {
  .c-detail-index {
    width: 90%;
    padding: 8px 15px 0;
    margin: 20px auto;
  }
}
.c-detail-index__label {
  color: #333;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7em;
  margin-block-start: -0.35em;
  margin-block-end: -0.35em;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .c-detail-index__label {
    font-size: 18px;
  }
}
.c-detail-inner h2 {
  scroll-margin-top: 152px;
}
.c-detail-index__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  margin-bottom: 8px;
}
.c-detail-index__label {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}
.index-opener {
  color: #909090;
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.index-opener.opener {
  display: inline-block;
}
.index-opener.closer {
  display: none;
}
.c-detail-index__list {
  list-style: disc inside;
}
.c-detail-index__list a {
  color: #1e445b;
  font-family: "Zen Kaku Gothic Antique" sans-serif";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 200%;
  text-decoration-line: underline;
}
@media screen and (max-width: 768px) {
  .c-detail-index__list a {
    font-size: 14px;
  }
}
.c-detail-index__list a:hover {
  text-decoration: none;
}

.c-detail-card {
  padding: 30px;
  border: 1px solid #c5c5c5;
  margin: 40px auto 0;
  display: flex;
  max-width: 840px;
  width: 80%;
  gap: 40px;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .c-detail-card {
    padding: 20px;
    margin-top: 30px;
    flex-direction: row;
    gap: 20px;
    width: 100%;
  }
}
.c-detail-card.is-profile {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto;
  grid-template-areas: "left right";
  gap: 0;
}
.c-detail-card.is-profile .c-detail-card__thumbnail {
  width: 176px;
  aspect-ratio: 1/1;
  border-radius: 999px;
  overflow: hidden;
  grid-area: left;
  align-self: start;
  grid-column: 1;
  grid-row: 1 / span 3
}
.c-detail-card.is-profile .c-detail-card__content__label,
.c-detail-card.is-profile .c-detail-card__content__department,
.c-detail-card.is-profile .c-detail-card__content__description {
  grid-area: right;
  display: block;
  width: 100%;
}
.c-detail-card.is-profile .c-detail-card__content__label {
  grid-column: 2;
  grid-row: 1;
}
.c-detail-card.is-profile .c-detail-card__content__department {
  grid-column: 2;
  grid-row: 2;
}
.c-detail-card.is-profile .c-detail-card__content__description {
  grid-column: 2;
  grid-row: 3;
}
@media screen and (max-width: 768px) {
  .c-detail-card.is-profile {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
  }
  .c-detail-card.is-profile .c-detail-card__thumbnail {
    width: 108px;
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .c-detail-card.is-profile .c-detail-card__content__label {
    grid-column: 2;
    grid-row: 1;
  }
  .c-detail-card.is-profile .c-detail-card__content__department {
    grid-column: 2;
    grid-row: 2;
  }
  .c-detail-card.is-profile .c-detail-card__content__description {
    grid-column: 1 / span 2;
    grid-row: 3;
  }
}
.c-detail-card.is-recipe {
  display: block;
  width: fit-content;
}
.c-detail-card__thumbnail > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c-detail-card__content {
  color: #333;
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 400;
  line-height: 1.5em;
  margin-block-start: -0.2em;
  margin-block-end: -0.2em;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.c-detail-card__content__label {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7em;
  margin-block-start: -0.35em;
  margin-block-end: -0.35em;
  display: inline-block;
  width: fit-content;
}
@media screen and (max-width: 768px) {
  .c-detail-card__content__label {
    font-size: 18px;
  }
}
.c-detail-card__content__department {
  font-size: 16px;
}
@media screen and (max-width: 768px) {
  .c-detail-card__content__department {
    font-size: 14px;
  }
}
.c-detail-card__content__description {
  color: #000;
  font-size: 14px;
}
@media screen and (max-width: 768px) {
  .c-detail-card__content__description {
    font-size: 12px;
  }
}
.c-detail-card.is-recipe {
  width: fit-content;
  align-items: start;
  margin-top: 0;
}

.c-detail-card.is-recipe:first-of-type {
  width: 60%;
}

.c-detail-card.is-recipe:last-of-type {
  width: 40%;
}

@media screen and (max-width: 768px) {
  .c-detail-card.is-recipe {
    width: 100%;
  }
}
.c-detail-card__contain {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 16px;
}
@media screen and (max-width: 768px) {
  .c-detail-card__contain {
    flex-direction: column;
    margin-top: 0;
    font-size: 14px;
  }
}
.c-detail-card__nutrient {
  display: block;
  width: fit-content;
}
.c-detail-card__nutrient > li {
  display: flex;
  align-self: stretch;
}
.c-detail-card__nutrient > li > span {
  display: inline-block;
  width: 100px;
  font-size: 16px;
}
@media screen and (max-width: 768px) {
  .c-detail-card__nutrient > li > span {
    font-size: 14px;
  }
}


.c-detail-inner dl,
.c-detail-inner ul.check-list {
  margin-top: 24px;
}

.c-detail-inner dt,
.c-detail-inner ul.check-list li {
  font-weight: 700;
  font-size: 16px;
  line-height: 28px;
  color: #000;
  margin-top: 16px;
}

.c-detail-inner ul.check-list li {
  list-style: inside;
}

.c-detail-inner dd {
  font-weight: 500;
  font-size: 16px;
  text-indent: 1em;
  line-height: 28px;
}






.c-detail-note {
  color: #000;
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
}
@media screen and (max-width: 768px) {
  .c-detail-note {
    font-size: 12px;
  }
}

.c-detail-recipe {
  display: flex;
  gap: 20px;
  max-width: 840px;
  width: 80%;
  margin: 40px auto 0;
}
@media screen and (max-width: 768px) {
  .c-detail-recipe {
    width: 100%;
    margin-top: 30px;
    flex-direction: column;
  }
}

.c-detail-share {
  margin-top: 40px;
  padding-top: 40px;
}
@media screen and (max-width: 768px) {
  .c-detail-share {
    margin-top: 30px;
    padding-top: 20px;
  }
}
.c-detail-share__links {
  display: flex;
  gap: 20px;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .c-detail-share__links {
    gap: 10px;
  }
}
.c-detail-share__links a {
  color: #1e445b;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.c-detail-share__links a:hover {
  text-decoration: underline;
}

.c-detail-share-button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #f1f1f1;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .c-detail-share-button {
    padding: 5px;
  }
}
.c-detail-share-button > img {
  display: block;
  width: 30px;
  height: 30px;
}
@media screen and (max-width: 768px) {
  .c-detail-share-button > img {
    width: 20px;
    height: 20px;
  }
}
.c-detail-share-button > span {
  font-size: 14px;
}
@media screen and (max-width: 768px) {
  .c-detail-share-button > span {
    font-size: 11px;
  }
}
.c-detail-summary {
  padding: 30px;
  border: 1px solid #c5c5c5;
  margin-top: 40px;
  display: flex;
  width: 100%;
  gap: 40px;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .c-detail-summary {
    padding: 20px;
    margin-top: 30px;
    flex-direction: column;
    width: 100%;
  }
}
.c-detail-summary__content {
  color: #333;
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 400;
  line-height: 1.5em;
  margin-block-start: -0.2em;
  margin-block-end: -0.2em;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.c-detail-summary__content__label {
  width: 100%;
  font-size: 18px;
  font-weight: 500;
  line-height: 2em;
  margin-block-start: -0.35em;
  margin-block-end: -0.35em;
  display: inline-block;
  background-color: #cccccc;
  text-indent: 1em;
}
@media screen and (max-width: 768px) {
  .c-detail-summary__content__label {
    font-size: 16px;
  }
}
.c-detail-summary__content__description {
  color: #000;
  font-size: 14px;
}
@media screen and (max-width: 768px) {
  .c-detail-summary__content__description {
    font-size: 12px;
  }
}

.c-detail-summary__content .c-detail-summary__content__image {
  margin: 20px auto;
}

.c-detail-inner .c-detail-float {
  display: flex;
  gap: 30px;
}

.c-detail-inner .c-detail-float > p:first-child {
  width: calc(70% - 15px);
}

.c-detail-inner .c-detail-float > p:last-child {
  width: calc(30% - 15px);
}

@media screen and (max-width: 768px) {
  .c-detail-inner .c-detail-float {
    display: block;
  }

  .c-detail-inner .c-detail-float > p:first-child,
  .c-detail-inner .c-detail-float > p:last-child {
    width: 100%;
  }

  .c-detail-inner .c-detail-float > p img {
    margin: 20px auto;
  }
}
.c-detail-inner .c-detail-faq {
  margin-top: 32px;
}
.c-detail-inner .c-detail-faq dl {
  border-bottom: 1px solid #f1f0e9;
}

.c-detail-inner .c-detail-faq dt {
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  text-align: left;
  color: #000;
  padding: 30px 0 30px 70px;
  position: relative;
  border-top: 1px solid #f1f0e9;
}

.c-detail-inner .c-detail-faq dt::before {
  content: "Q";
  position: absolute;
  left: 18px;
  font-family: Work Sans;
  font-weight: 600;
  font-size: 30px;
  text-align: center;
  color: #1e445b;
  border-top: 1px solid #f1f0e9;
  transition: all .3s;
}

.c-detail-inner .c-detail-faq dd {
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  text-align: left;
  color: #000;
  padding: 30px 80px 30px 70px;
  position: relative;
  border-top: 1px solid #f1f0e9;
  margin-bottom: 20px;
  text-indent: 0;
}

.c-detail-inner .c-detail-faq dd:before {
  content: "A";
  position: absolute;
  left: 18px;
  font-family: Work Sans;
  font-weight: 600;
  font-size: 30px;
  text-align: center;
  color: #58a7eb;
}

@media (max-width: 1024px) {
  .c-detail-inner .c-detail-faq dt,
  .c-detail-inner .c-detail-faq dd {
    font-size: 14px;
    line-height: 22px;
    padding: 20px 0 20px 40px;
  }

  .c-detail-inner .c-detail-faq dt::before,
  .c-detail-inner .c-detail-faq dd:before {
    font-size: 18px;
    left: 10px;
  }
}

.webtomoko {
  padding: 80px 0 0;
}

.webtomoko-articles {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
}

.webtomoko-articles a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    filter: drop-shadow(0 0 10px rgba(30, 68, 91, .2));
    background-color: #fff;
    height: 100%;
    transform: translateZ(0);
}

.webtomoko-articles a {
    transition: opacity .3s;
}

.webtomoko-articles .img {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
    aspect-ratio: 320 / 200;
}

.webtomoko-articles .img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.webtomoko-articles dd {
    background-color: #fff;
    padding: 20px 30px;
}

.webtomoko-articles dd .category-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.webtomoko-articles dd .category {
    background-color: #cee4ff;
    min-width: 100px;
    text-align: center;
    display: inline-block;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    height: 20px;
}

.webtomoko-articles dd .date {
  padding: 10px 0;
  font-weight: 400;
  font-size: 12px;
  line-height: 21px;
  text-align: right;
  color: #000;
}

.webtomoko-articles dd h4.title {
    font-family: Noto Sans JP;
    font-weight: 700;
    font-size: 18px;
    line-height: 31px;
    text-align: left;
    color: #1e445b;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.webtomoko-articles dd .description {
    padding: 10px 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    text-align: left;
    color: #000;
    height: 76px;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.webtomoko .textLink a {
  font-weight: 500;
  font-size: 16px;
  text-align: left;
  color: #1e445b;
}

.pagination {
  margin-top: 60px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.pagination a {
  background-color: #1e445b;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4px;
  font-family: Noto Sans JP;
  font-weight: 700;
  font-size: 14px;
  line-height: 25px;
  color: #fff;
  width: 40px;
  border-radius: 20px;
  height: 40px;
  transition: opacity .3s
}

@media(hover:hover)and (pointer:fine) {
  .pagination a:hover {
    opacity: .7
  }
}

.pagination .end a,
.pagination .first a,
.pagination .next a,
.pagination .prev a {
  width: 85px;
  position: relative
}

@media(max-width:1024px) {

  .pagination .end a,
  .pagination .first a,
  .pagination .next a,
  .pagination .prev a {
    width: 40px
  }
}

.pagination .end span,
.pagination .first span,
.pagination .next span,
.pagination .prev span {
  position: relative
}

@media(max-width:1024px) {

  .pagination .end span,
  .pagination .first span,
  .pagination .next span,
  .pagination .prev span {
    font-size: 0
  }
}

.pagination .end span:after,
.pagination .end span:before,
.pagination .first span:after,
.pagination .first span:before,
.pagination .next span:after,
.pagination .next span:before,
.pagination .prev span:after,
.pagination .prev span:before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  transform: rotate(45deg);
  width: 8px;
  height: 8px;
  display: block
}

.pagination .first span,
.pagination .prev span {
  padding-left: 20px
}

.pagination .first span:before,
.pagination .prev span:before {
  right: auto;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff
}

.pagination .first span:after,
.pagination .prev span:after {
  right: auto;
  left: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff
}

.pagination .end span,
.pagination .next span {
  padding-right: 20px
}

.pagination .end span:before,
.pagination .next span:before {
  left: auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff
}

.pagination .end span:after,
.pagination .next span:after {
  left: auto;
  right: 4px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff
}

.pagination .is-active a {
  pointer-events: none;
  background-color: #f3f5f6;
  color: #000
}

@media(max-width:1024px) {
  .pagination .first span:before {
    left: 0;
    right: 0
  }

  .pagination .first span:after {
    left: 10px;
    right: 0
  }

  .pagination .prev span:before {
    left: 0;
    right: 0
  }

  .pagination .prev span:after {
    content: none
  }

  .pagination .end span:before {
    left: 0;
    right: 0
  }

  .pagination .end span:after {
    left: 10px;
    right: 0
  }

  .pagination .next span:before {
    left: 0;
    right: 0
  }

  .pagination .next span:after {
    content: none
  }

  .pagination>li {
    display: none
  }

  .pagination>li.end,
  .pagination>li.first,
  .pagination>li.is-active,
  .pagination>li.next,
  .pagination>li.prev {
    display: block
  }
}

.webtomoko h2 {
  gap: 10px;
}

.webtomoko h2::before {
  content: "";
  display: block;
  width: 4px;
  height: auto;
  background-color: #1e445b;
  flex-shrink: 0;
  padding: 18px 0;
}

.webtomoko-filter {
  width: 100%;
  display: flex;
  justify-content: center;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  position: fixed;
  z-index: 2;
  background-color: #fff;
}

.webtomoko-filter li {
  width: 200px;
  height: 78px;
  border-right: 1px solid #000;
  text-align: center;
  align-content: center;
}

.webtomoko-filter li:first-child {
  border-left: 1px solid #000;
}

.webtomoko-filter {
  display: flex;
  list-style: none;
}

.webtomoko-filter .filter-icon img {
  margin: auto;
}

.webtomoko-filter .category {
  margin-top: 2px;
  font-size: 14px;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.webtomoko-filter .category::after {
  content: '';
  position: absolute;
  width: 120%;
  left: -10%;
  right: 0;
  bottom: 0%;
  height: 50%;
  background-color: rgba(255, 235, 59, 0.4);
  z-index: -1;
  border-radius: 2px;
}

.webtomoko-filter .category.doctor::after {
  background-color: rgba(206, 228, 255, 0.4);
}
.webtomoko-filter .category.aps::after {
  background-color: rgba(253, 224, 232, 0.4);
}
.webtomoko-filter .category.birecipe::after {
  background-color: rgba(218, 244, 224, 0.4);
}
.webtomoko-filter .category.advice::after {
  background-color: rgba(253, 242, 210, 0.4);
}
.webtomoko-filter .category.kampo::after {
  background-color: rgba(240, 230, 255, 0.4);
}
.webtomoko-filter .category.biqa::after {
  background-color: rgba(255, 232, 217, 0.4);
}

.webtomoko-kv {
  padding-top: 140px
}

@media(max-width:1024px) {
  .webtomoko-filter {
    display: flex;
    flex-wrap: wrap;
    border-bottom: none;
  }

  .webtomoko-filter li {
    width: 50%;
    height: 54px;
    border-right: 1px solid #000;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #000;
  }

  .webtomoko-filter a {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
  }

  .webtomoko-filter li:nth-child(2n) {
    border-left: 1px solid #000;
  }

  .webtomoko-filter li:last-child {
    width: 100%;
  }

  .webtomoko-kv {
    padding-top: 250px
  }

  .webtomoko {
    padding-top: 30px;
  }

  .webtomoko-articles {
    display: block;
    margin-bottom: 30px;
  }

  .webtomoko-articles {
    display: block;
    margin-bottom: 30px;
  }

  .webtomoko-articles dl {
    padding: 0 5px;
  }

  .webtomoko-articles dd {
    padding: 10px 20px;
  }

  .webtomoko-articles dd {
    padding: 5px 10px;
  }

  .webtomoko-articles dd .category-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .webtomoko-articles dd h4.title {
      font-size: 16px;
      line-height: 28px;
  }
  .webtomoko-articles dd .description {
      padding: 8px 0;
      font-size: 12px;
      line-height: 18px;
      height: 56px;
      -webkit-line-clamp: 2;
  }
}
