/* 記事ページ全体 start */
main:not(.main-top).main-article {
  background: #efebe1;
  margin: 0 -15px;
}

.article-contain {
  position: relative;
}

.article-sp-logo {
  margin: 30px 0 25px;
}
.article-sp-logo a {
  max-width: 245px;
  width: 68%;
  margin-inline: auto;
  display: block;
}

.article-pc-logo,
.main-article .search-pc {
  margin-bottom: 35px;
}
.article-pc-logo {
  margin-top: 0;
}

.breadcrumb {
  margin-top: 0;
  font-size: 1.2rem;
  background: transparent;
  padding: 0;
  line-height: 1.5;
}
.breadcrumb>li+li:before{
  color: #333;
  padding: 0 8px;
}
.breadcrumb a {
  color: inherit;
  text-decoration: underline;
}
.breadcrumb a:hover {
  text-decoration: none;
}

.s3-box {
  margin-top: max(4em, min(6vw, 5em));
  margin-bottom: max(2em, min(4vw, 3em));
  font-weight: 700;
}
.s3 {
  color: #e92c16;
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  margin-bottom: 0.6em;
  margin-left: -30px;
  margin-right: -30px;
}
.s3:before,
.s3:after {
  content: "";
  flex-grow: 1;
  border-top: 1px dashed #e92c16;
  display: block;
}
.s3:before {
  margin-right: 0.4em;
}
.s3:after {
  margin-left: 0.4em;
}
.s3-supplement {
  display: grid;
  justify-content: center;
  font-weight: 400;
}
.s3-box a{
  color: inherit;
  text-decoration: underline;
}
.s3-box a:hover{
  text-decoration: none;
}

.main-article .purchase-box {
  max-width: 465px;
}

.share-btn {
  background: transparent;
  border: none;
  padding: 0;
}

.main-article #fav-list-area.list-head>span {
  padding: 0 6px 0 5px;
}
.main-article .list-head img {
  height: 18px;
}
.main-article #fav-list-area.list-head img {
  margin-right: 6px;
}
.main-article .accordion-inner ul li {
  padding: 0 10px;
}
.main-article .accordion-inner ul li a {
  font-size: 1.4rem;
}
.main-article .accordion-inner ul li:not(:last-of-type) a {
  border-bottom: #d0d0d0 solid 1px;
}
.main-article .accordion-inner ul li a::before {
  border-color: #666 #666 transparent transparent;
}
.main-article .accordion-inner ul li a:hover::before {
  border-color: var(--color-yodosha) var(--color-yodosha) transparent
    transparent;
}
.main-article .accordion-inner ul li a.pageActive {
  font-weight: 700;
  padding-right: 0;
}
.main-article .accordion-inner ul li a.pageActive .free {
  font-weight: 400;
}
.main-article .accordion-inner ul li a.pageActive::before {
  border: none;
}

.main-article .favorite-list-wrap {
  margin-bottom: 50px;
}
#fav-list-area + .favorite-list-wrap ul li a{
  padding-top: .8em;
  padding-bottom: .8em;
}
.favorite-list-wrap span[class*="fav-"]{
  color: #000;
  font-size: 85%;
  width: fit-content;
  display: block;
  margin-bottom: 0.4em;
  height: 15px;
  line-height: 14px;
  text-align: center;
  padding: 0 1px;
}
/*胸部X線*/
.fav-5087{
  background-color: #d3ecc4;
}
/*抗菌薬*/
.fav-5573{
  background-color: #cdd0f6;
}
/*血液ガス*/
.fav-5631{
  background-color: #f6c6c6;
}
/*皮膚診療 */
.fav-5665{
  background-color: #efe0b6;
}
/*輸液*/
.fav-6555{
  background-color: #c6d7f8;
}
/*循環器薬*/
.fav-6747{
  background-color: #f6c5dd;
}
/*心電図*/
.fav-6759{
  background-color: #e0c2ed;
}
/*病棟指示*/
.fav-6801{
  background-color: #c6e2f6;
}
/*画像診断*/
.fav-6829{
  background-color: #e0e0e2;
}
/*発熱*/
.fav-6855{
  background-color: #f8dcbb;
}
/*利尿薬*/
.fav-6875{
  background-color: #f5eeae;
}
/*論文の読み方*/
.fav-6919{
  background-color: #bce4c8;
}

.favorite-list-wrap.theme a{
  display: flex;
  align-items: center;
}
.favorite-list-wrap.theme img{
  height: 18px;
  margin-right: 6px;
}

.main-article .columns_01 {
	order: 1;
}
.main-article .columns_02 {
	order: 2;
}

.origin h3 {
  font-size: 2rem;
  margin: 0 0 20px;
  border-bottom: 2px solid #fff;
  text-align: center;
  padding-bottom: 6px;
  letter-spacing: 2px;
}
.origin .body>a {
  width: 160px;
  margin-inline: auto;
  box-shadow: 0 1px 4px 0 rgb(0 0 0 / 0%), 0 6px 10px 0 rgb(0 0 0 / 20%),
    0 2px 2px 0 rgb(0 0 0 / 10%);
  margin-bottom: 20px;
  display: block;
}
.origin .book-info{
  display: grid;
  justify-content: center;
}
.origin .book-info .maginfo,
.origin .book-info .authors,
.origin .book-info .price {
  font-size: 1.2rem;
}
.origin .book-info .maginfo {
  margin-bottom: 0.6em;
}
.origin .book-info .maintitle {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.2em;
}
.origin .book-info .subtitle {
  font-size: 1.4rem;
  margin-bottom: 0.6em;
}
.origin .book-info .authors {
  margin-bottom: 0.2em;
}
.origin .book-info .price {
  margin-bottom: 3em;
}

#sp-fixed-menu{
  transition: all .5s;
}
#sp-fixed-menu.slideDown{
  bottom: 0;
}
#sp-fixed-menu.slideUp{
  bottom: -60px;
}

.article-contents-list {
  padding: 0;
  list-style: none;
}
ul[class*="article-contents-list"] {
  position: relative;
}
ul[class*="article-contents-list"]::before {
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 13px;
  width: 1px;
  content: "";
  background: #e5e5e5;
}
ul[class*="article-contents-list"] li>a {
  border-bottom: none !important;
  padding: 0.6em 0 0.6em 1.4em;
}
ul[class*="article-contents-list"] li>a::before {
  right: auto;
  left: 0;
  /* top: 0; */
  top: 50%;
  transform: translateY(190%);
  -moz-transform: translateY(190%);
  -webkit-transform: translateY(190%);
  transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  background: #d0d0d0;
  border-radius: 50px;
  width: 8px;
  height: 8px;
  border: none !important;
  box-shadow: 0 0 0 2px #fff;
}
ul[class*="article-contents-list"] li.active a::before {
  background: var(--color-yodosha);
  box-shadow: 0 0 0 2px rgba(40, 138, 47, 0.3);
}
ul[class*="article-contents-list"] li>a a{
  pointer-events: none;
}
ul[class*="article-contents-list"] li>a *{
  color: inherit;
}

.pagination-box{
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 3.5em;
  justify-content: space-between;
}
.pagination-box>div:first-child{
  border-right: 1px solid #eee;
}
.pagination-box a:not(:root){
  color: inherit;
  position: relative;
  display: block;
  text-decoration: none;
}
.pagination-box a::before{
  content: '';
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 1px solid;
  border-color: #9c9c9c #9c9c9c transparent transparent;
  z-index: 2;
  transition: all 0.25s;
}
.pagination-box a:hover {
  text-decoration: none;
}
.pagination-box a:hover span[class*="contents-title"] {
  text-decoration: underline;
}
.pagination-box a[class*="prev-item"]{
  padding-left: 30px;
  padding-right: 20px;
}
.pagination-box a[class*="prev-item"]::before{
  transform: translateY(-50%) rotate(-135deg);
  -moz-transform: translateY(-50%) rotate(-135deg);
  -webkit-transform: translateY(-50%) rotate(-135deg);
  left: 2px;
}
.pagination-box a[class*="next-item"]{
  padding-right: 30px;
  padding-left: 20px;
  text-align: right;
}
.pagination-box a[class*="next-item"]::before{
  transform: translateY(-50%) rotate(45deg);
  -moz-transform: translateY(-50%) rotate(45deg);
  -webkit-transform: translateY(-50%) rotate(45deg);
  right: 2px;
}
.pagination-box span{
  display: block;
}
.pagination-box span[class*="-txt"]{
  margin-bottom: 0.2em;
  color: #999;
  font-weight: 300;
  font-size: 1.2rem;
}
.pagination-box span[class*="contents-title"]{
  font-size: 1.8rem;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  text-overflow: ellipsis;
  white-space: normal;
  overflow: hidden;
}

@media (min-width: 1000px) {
  .main-article .columns_01 {
    background: #fff;
    padding: 25px 30px 60px;
  }

  .article-contain {
    margin-top: 60px;
  }

  .main-article .list-head>span {
    font-size: 1.4rem;
    height: 26px;
    line-height: 26px;
  }
}

@media (max-width: 999px) {
  .main-article .contents-wrap {
    padding-top: 0;
    display: grid;
    grid-template-columns: auto;
  }

  .article-header,
  .article-contain {
    margin: 0 calc(50% - 50vw) 0;
    padding: 20px max(20px, min(5.5vw, 60px));
  }
  .article-header {
    background: var(--color-main);
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .article-contain {
    background: #fff;
    padding-top: 30px;
    padding-bottom: 40px;
  }

  .main-article .columns_02 {
    padding: 40px max(20px, min(5.5vw, 60px)) 60px;
    margin: 0 calc(50% - 50vw) 0;
  }

  .article-contain .favorite {
    right: max(20px, min(5vw, 50px));
    top: 20px;
  }

  .s3 {
    margin-left: -60px;
    margin-right: -60px;
  }

  .main-article .accordion-inner ul li {
    padding: 0 15px;
  }
    .article-contents .contents-item {
    padding: 0 20px;
  }
  ul[class*="article-contents-list"]::before {
    left: 23px;
    /* top: 20px; */
    /* bottom: 20px; */
  }
}


@media (max-width: 767px) {
  .pagination-box span[class*="contents-title"]{
    font-size: 1.5rem;
  }
  .pagination-box a[class*="prev-item"]{
    padding-right: 10px;
    margin-left: 0;
    padding-left: 20px;
  }
  .pagination-box a[class*="next-item"]{
    padding-right: 20px;
    margin-right: 0px;
    padding-left: 10px;
  }
}
/* 記事ページ全体 end */

/* 目次 start */
.contents-list-area + .article-contents {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  max-width: 85vw;
  transition: all 0.4s;
  visibility: hidden;
  opacity: 0;
  z-index: 1;
  box-shadow: 0 5px 15px rgb(52 52 53 / 23%);
  border-radius: 10px;
  background: #fff;
}
.contents-list-area + .article-contents.panelactive {
  visibility: visible;
  opacity: 1;
  display: block !important;
}
.sp-menu .article-contents .favorite-list-wrap {
  margin-bottom: 0;
}
.article-contents .contents-item {
  text-align: left;
}
.article-contents .contents-item.active a {
  font-weight: 700;
}

@media (min-width: 1000px) {
  .article-sticky {
    overflow-y: scroll;
    position: sticky;
    top: 20px;
    max-height: 100vh;
    padding-right: 15px;
    margin-bottom: 60px;
  }
  .article-sticky::-webkit-scrollbar {
    width: 10px;
  }
  .article-sticky::-webkit-scrollbar-track {
    background-color: #dcd8ce;
  }
  .article-sticky::-webkit-scrollbar-thumb {
    background-color: #9c988c;
    border-radius: 50px;
  }
}
@media (max-width: 999px) {
  .article-contents .accordion-inner {
    padding: 10px 0;
    border-radius: 10px;
  }
}
/* 目次 end */

/* お気に入り_start */
.favoriteButton-wrap {
  position: absolute;
  right: 0;
  top: -10px;
  z-index: 1;
  cursor: pointer;
  width: fit-content;
  transition: all 0.2s;
}
svg.favoriteButton{
  width: max(42px, min(6vw, 50px));
  height: max(42px, min(6vw, 50px));
}
.favoriteButton.disabled:hover::before,
.favoriteButton.fav.action::before,
.favoriteButton.no-fav.action::before {
  content: "\8CFC\5165/\30ED\30B0\30A4\30F3\3059\308B\3068\304A\6C17\306B\5165\308A\6A5F\80FD\304C\4F7F\7528\3067\304D\307E\3059";
  position: absolute;
  z-index: 2;
  width: 140px;
  font-size: 1.1rem;
  left: -153px;
  top: 0;
  background: rgb(0, 0, 0, 70%);
  color: #fff;
  padding: 10px 12px;
  line-height: 1.5;
  border-radius: 5px;
}
.favoriteButton.fav.action::before,
.favoriteButton.no-fav.action::before {
  content: "\304A\6C17\306B\5165\308A\306B\767B\9332\3057\307E\3057\305F";
  animation: favTips-open 3s ease-out forwards;
  opacity: 0;
  visibility: hidden;
  animation-delay: 0.2;
  width: 165px;
  left: -178px;
  top: 50%;
}
.favoriteButton.no-fav.action::before {
  content: "\304A\6C17\306B\5165\308A\304B\3089\524A\9664\3057\307E\3057\305F";
  width: 175px;
  left: -188px;
}
.favoriteButton.disabled:hover::after,
.favoriteButton.fav.action::after,
.favoriteButton.no-fav.action::after {
  content: "";
  position: absolute;
  display: inline-block;
  left: -13px;
  top: max(15px, min(2.5vw, 20px));
  border-left: 8px solid rgb(0, 0, 0, 70%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  background: transparent;
}
.favoriteButton.fav.action::after,
.favoriteButton.no-fav.action::after {
  animation: favTips-open 3s ease-out forwards;
  opacity: 0;
  visibility: hidden;
  animation-delay: 0.2;
  top: 50%;
}

.favoriteButton svg {
  border: 1px solid #ccc;
}

.favoriteButton .heart {
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transform-origin: 250px 250px;
  transform-origin: 250px 250px;
  transition: all 0.2s;
  stroke-width: 10px;
  stroke: #000;
  fill: none;
  position: relative;
}
.favoriteButton.action .heart {
  visibility: hidden;
  opacity: 0;
}

.favoriteButton.no-fav:hover .heart {
  stroke: #999;
}
.favoriteButton.fav .heart {
  fill: #e2264d;
  transition: all 0.2s;
  -webkit-transform-origin: 250px 250px;
  transform-origin: 250px 250px;
  stroke: none;
}
.favoriteButton.fav:hover .heart {
  fill: #f46f8a;
}

@keyframes favTips-open {
  0% {
    opacity: 0;
    transform: scale(0)translateY(-50%);
  }
  5% {
    transform: scale(1.2)translateY(-50%);
    opacity: 1;
    visibility: visible;
  }
  10% {
    transform: scale(1)translateY(-50%);
    opacity: 1;
    visibility: visible;
  }
  98% {
    transform: scale(1)translateY(-50%);
    opacity: 1;
    visibility: visible;
  }
  100% {
    transform: scale(0)translateY(-50%);
    opacity: 0;
    visibility: hidden;
  }
}

@-webkit-keyframes favTips-open {
  0% {
    opacity: 0;
    transform: scale(0)translateY(-50%);
  }
  5% {
    transform: scale(1.2)translateY(-50%);
    opacity: 1;
    visibility: visible;
  }
  10% {
    transform: scale(1)translateY(-50%);
    opacity: 1;
    visibility: visible;
  }
  98% {
    transform: scale(1)translateY(-50%);
    opacity: 1;
    visibility: visible;
  }
  100% {
    transform: scale(0)translateY(-50%);
    opacity: 0;
    visibility: hidden;
  }
}
.favoriteButton.fav.action .heart {
  -webkit-animation: heartAnime 800ms;
  animation: heartAnime 800ms;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}
.favoriteButton.no-fav.action .heart {
  -webkit-animation: heartAnime_cancel 800ms;
  animation: heartAnime_cancel 800ms;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

@-webkit-keyframes heartAnime {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
    fill: #e2264d;
    stroke: none;
    opacity: 1;
    visibility: visible;
  }
  15% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  30% {
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
  }
  40% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
  }
  100% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    fill: #e2264d;
    stroke: none;
    opacity: 1;
    visibility: visible;
  }
}

@-webkit-keyframes heartAnime {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
    fill: #e2264d;
    stroke: none;
    opacity: 1;
    visibility: visible;
  }
  15% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  30% {
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
  }
  40% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
  }
  100% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    fill: #e2264d;
    stroke: none;
    opacity: 1;
    visibility: visible;
  }
}

@keyframes heartAnime_cancel {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
    stroke-width: 10px;
    stroke: #000;
    fill: none;
    opacity: 1;
    visibility: visible;
  }
  15% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  30% {
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
  }
  40% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
  }
  100% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    stroke-width: 10px;
    stroke: #000;
    fill: none;
    opacity: 1;
    visibility: visible;
  }
}

@-webkit-keyframes heartAnime_cancel {
  0% {
    -webkit-transform: scale(0);
    transform: scale(0);
    stroke-width: 10px;
    stroke: #000;
    fill: none;
    opacity: 1;
    visibility: visible;
  }
  15% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  30% {
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
  }
  40% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
  }
  100% {
    -webkit-transform: scale(1, 1);
    transform: scale(1, 1);
    stroke-width: 10px;
    stroke: #000;
    fill: none;
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 999px) {
  .favoriteButton-wrap {
    right: max(20px, min(5vw, 50px));
    top: 15px;
  }
  .favoriteButton.fav.action::before,
  .favoriteButton.no-fav.action::before {
    /* top: 5%; */
  }
}

/* お気に入り_end */

/* 記事中身 start */
.abstract h1,
.main-article article h2,
.main-article article h3,
.main-article article h4,
.main-article article h5,
.main-article article h6 {
  line-height: 1.5;
  font-weight: 700;
}

.main-article article,
.abstract {
  line-height: 1.85;
  font-size: max(1.4rem, min(1.6vw, 1.6rem));
  counter-reset: head2 head3 head4 head5 0;
  word-break: break-word;
  line-break: strict;
}

.main-article article ul,
.main-article article ol,
.abstract ul,
.abstract ol {
  padding-left: 20px;
}

.main-article article {
  margin-top: 4em;
}

.main-article img {
  max-width: 100%;
}

.main-article article a,
.abstract a {
  text-decoration: underline;
}
.main-article article a:hover,
.abstract a:hover {
  text-decoration: none;
}

/*.abstract.rn_special::before {
  content: "\7279\96C6";
  background: #4db848;
  letter-spacing: 6px;
  color: #fff;
  font-weight: 400;
  font-size: max(1.3rem, min(2vw, 1.8rem));
  border-radius: 50px;
  position: relative;
  top: 0;
  left: 0;
  padding: 0.1em 0.9em 0.2em 1.4em;
  padding: 2px 16px 3px 22px;
}*/

.main-article .columns_01 span[class*="fav-"] {
  /* letter-spacing: 2px; */
  color: #000;
  font-weight: 400;
  font-size: max(1.5rem, min(2.5vw, 2rem));
  /* border-radius: 50px; */
  position: relative;
  top: 0;
  left: 0;
  /* padding: 2px 22px 3px 22px; */
  padding: 2px 2px 3px;
  display: block;
  width: fit-content;
  line-height: 1;
}

.abstract h1 {
  padding: 0.6em 0 0;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  font-size: max(2.6rem, min(4vw, 3.6rem));
  font-weight: 900;
}
.h1sup {
  font-size: max(1.8rem, min(2.5vw, 2.4rem));
  font-size: max(2rem, min(2.5vw, 2.6rem));
  font-weight: 700;
  margin: 1.2em 0 -0.7em;
  margin: 1em 0 -0.6em;
  line-height: 1.5;
}
.h1sub {
  font-size: max(1.7rem, min(2.5vw, 2.4rem));
  font-weight: 500;
  margin: 0.2em 0 0;
  line-height: 1.5;
}

.abstract .author {
  font-size: max(1.4rem, min(2vw, 1.7rem));
  margin-top: 16px;
  text-align: right;
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 400;
}

.abstract .summary {
  background: #fef0d0;
  padding: 1em 1.5em;
  font-size: max(1.5rem, min(1.8vw, 1.7rem));
  font-weight: 500;
  margin: 3em 0 0;
}

article.rn_special {
  counter-reset: reference 0;
}

article > section > h2:not(:first-of-type) {
  margin-top: 3em;
}
article > section > h2 {
  font-size: max(2.2rem, min(3vw, 2.6rem));
  border-bottom: 3px solid #55bb51;
  padding-bottom: 0.3em;
  margin: 2.8em 0 1.2em;
  counter-reset: head3 0;
}
article > section > h2::before {
  content: "　";
  background: #aad59b;
  width: 1.4em;
  height: 1.4em;
  line-height: 1.35em;
  border-radius: 3px;
  display: inline-block;
  margin-right: max(10px, min(1.5vw, 12px));
  flex-shrink: 0;
}
article > section > h2.num::before {
  counter-increment: head2;
  content: counter(head2);
  background: #4db848;
  color: #fff;
  text-align: center;
}

article h3 {
  color: #34409a;
  margin-top: 2em;
  margin-bottom: 1em;
  margin-left: 1.3em;
  font-size: max(1.95rem, min(2.5vw, 2.2rem));
  counter-reset: head4 0;
}
article h3:not([class])::before {
  content: "\25CF";
  margin-right: 0.3em;
  margin-left: -1.3em;
}
article h3.num {
  margin-left: 1.6em;
}
article h3.num::before {
  counter-increment: head3;
  content: counter(head3) "\FF09";
  position: relative;
  margin-left: -1.6em;
}

article h4 {
  font-size: max(1.8rem, min(2vw, 1.9rem));
  counter-reset: head5 0;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
}
article h4:not([class])::before {
  content: "\25CF";
  margin-right: 5px;
}
article h4.num {
  margin-left: 30px;
}
article h4.num::before {
  counter-increment: head4;
  content: counter(head4);
  border-radius: 50px;
  background: #333;
  color: #fff;
  width: 24px;
  height: 24px;
  line-height: 23px;
  text-align: center;
  margin-right: 6px;
  display: inline-block;
  margin-left: -30px;
}

article h5 {
  font-size: max(1.5rem, min(2vw, 1.7rem));
  counter-reset: head6 0;
  margin-top: 1.6em;
  margin-bottom: 0.8em;
}
article h5.num {
  margin-left: 1.7em;
}
article h5.num::before {
  counter-increment: head5;
  content: counter(head5);
  border-radius: 50px;
  border: 1px solid #333;
  width: 21px;
  height: 21px;
  line-height: 18px;
  text-align: center;
  margin-right: 0.3em;
  margin-left: -1.7em;
  display: inline-block;
}

article > section > p:not([class]) {
  text-indent: 1em;
  margin-bottom: 1.6em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.named-box .box-content > *:last-child {
  margin-bottom: 0;
}
[data-boxtype="case"][data-display="症例"],
[data-boxtype="case"][data-display="事例"],
[data-boxtype="case"][data-display=""] {
  border: #d3d1be solid 4px;
  border-radius: 10px;
  position: relative;
  padding: 1.3em 1.5em;
  margin: 3.2em 0 1.5em;
  font-weight: 500;
}
[data-boxtype="case"][data-display="症例"] h2,
[data-boxtype="case"][data-display="事例"] h2,
[data-boxtype="case"][data-display=""] h2 {
  position: relative;
  margin: 0;
  background: #9f9d7c;
  color: #fff;
  font-size: max(1.7rem, min(2vw, 1.8rem));
  padding: 2px 20px;
  left: -1.55em;
  top: -39px;
  width: fit-content;
  margin-bottom: -27px;
}
[data-boxtype="case"][data-display="症例"] h2::before,
[data-boxtype="case"][data-display="事例"] h2::before,
[data-boxtype="case"][data-display=""] h2::before {
  content: "";
  background: url(/smart_rn/resident_pack2024/images/case-head-deco.png)
    no-repeat;
  width: 15px;
  height: 15px;
  position: absolute;
  top: -2px;
  left: -2px;
}
[data-boxtype] p {
  font-size: max(1.4rem, min(1.6vw, 1.6rem)) !important;
  font-family: var(--font-notosans);
}
[data-boxtype] p:last-child {
  margin-bottom: 0;
}

[data-boxtype="case"][data-display="ポイント"] {
  padding: 1em 1.2em;
  margin: 1.5em 0;
  background: #fbf6c2;
}
[data-display="ポイント"] h2 {
  margin: 0 0 0.6em;
  font-size: max(1.6rem, min(2vw, 1.7rem));
}
[data-display="ポイント"] p {
  margin-bottom: 0.4em;
}

[data-boxtype="column"]/*[data-display="STEP UP !!"]*/ {
  border: 4px solid #bcbdc0;
  padding: 1em 1.2em;
  margin: 1.5em 0;
}
[data-boxtype="column"][data-display="コラム"] {
  border-color: #178dce;
}
[data-boxtype="column"] .box-title {
  margin-top: 0;
  font-size: 115%;
}
[data-boxtype="column"] p {
  margin-bottom: 0;
}

[data-boxtype="point"],
[data-boxtype="pitfall"] {
  border: 3px solid #f9b4aa;
  border-radius: 15px;
  padding: .8em 1em 1em 1.5em;
  position: relative;
  margin: 1.5em 0 2em;
}
[data-boxtype="pitfall"] {
  border-color: #83bce6;
}
[data-boxtype="point"][data-display="クリニカルパール"] {
  border-color: #8AC997;
}
[data-boxtype="point"]::before,
[data-boxtype="pitfall"]::before {
  content: "";
  background: url(/smart_rn/resident_pack2024/images/point-head-deco.png)
    no-repeat;
  width: 32px;
  height: 32px;
  position: absolute;
  top: 9px;
  left: -13px;
  background-size: cover;
}
[data-boxtype="pitfall"]::before {
  background: url(/smart_rn/resident_pack2024/images/pitfall-head-deco.png)
    no-repeat;
  background-size: cover;
}
[data-boxtype="point"][data-display="クリニカルパール"]::before {
  background: url(/smart_rn/resident_pack2024/images/cp-head-deco.png)
    no-repeat;
  background-size: cover;
  height: 31px;
}
[data-boxtype="point"] h2,
[data-boxtype="pitfall"] h2 {
  margin: 0 0 6px;
  color: #f27070;
  font-size: max(1.6rem, min(2vw, 1.8rem));
  border-bottom: 2px dotted #f59693;
  padding-bottom: 2px;
}
[data-boxtype="pitfall"] h2 {
  color: #007ec5;
  border-color: #409ed3;
}
[data-boxtype="point"][data-display="クリニカルパール"] h2{
  color: #009A44;
  border-color: #009A44;
}
[data-boxtype="point"] p,
[data-boxtype="pitfall"] p {
  font-family: var(--font-notosans);
  font-weight: 500;
}

[data-boxtype="default"] {
  background: #f0eeea;
  padding: 1em 1.2em;
  margin: 1.5em 0;
}
[data-boxtype="default"] h2 {
  margin: 0 0 0.6em;
  font-size: max(1.6rem, min(2vw, 1.7rem));
}
[data-boxtype="default"] p {
  margin-bottom: 0.4em;
}

section figure {
  margin: 3em auto;
  max-width: 90%;
  display: grid;
  justify-content: center;
}
section figure > img {
  margin-inline: auto;
}

section figcaption {
  font-size: 1.3rem;
  font-weight: 300;
  font-family: var(--font-notosans);
  text-align: left;
  line-height: 1.6;
  margin-top: 0.5em;
}
section figure figcaption strong:first-of-type {
  font-size: max(1.4rem, min(1.6vw, 1.5rem));
  font-weight: 500;
}

article .table::before {
  content: none !important;
}

.figref {
  color: #ed1d23;
}
span.ref {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
  top: -0.5em;
}

.main-article .head2-num{
  background: #4db848;
  color: #fff;
  font-weight: 700;
  width: 18px;
  height: 18px;
  display: inline-block;
  text-align: center;
  line-height: 17px;
  border-radius: 3px;
  margin: 0 2px;
  text-indent: 0;
}

.main-article .step-head-num{
  background: #3f7694;
  color: #fff;
  padding: 0 6px;
  border-radius: 5px;
  font-weight: 500;
  margin: 0 2px;
  font-size: 90%;
}

.main-article .red{
  color: red;
  font-weight: 700;
  font-size: 120%;
}

article .reference {
  text-indent: -2em;
  margin-left: 2em;
  font-size: max(1.2rem, min(1.5vw, 1.4rem));
  font-weight: 300;
}

article .profile {
  max-width: 40em;
  margin-left: auto;
  font-size: max(0.9em, min(1.5vw, 0.9em));
  border: 2px solid #d4d5d7;
  padding: max(1em, min(2vw, 1.2em));
  margin-top: 3em;
}
article .profile::before {
  content: "\8457\8005\30D7\30ED\30D5\30A3\30FC\30EB";
  font-weight: bold;
  display: block;
  line-height: 1.2;
  font-size: 16px;
  border-left: 5px solid #87c778;
  border-bottom: 2px dotted #cae4c0;
  padding: 0 0 5px 8px;
  margin-bottom: 1em;
}

article .table {
  overflow-x: hidden;
}

.terms-box p{
  font-size: 1.2rem;
  margin-top: 2em;
  font-weight: 300;
  text-indent: -1em;
  margin-left: 1em;
}

@media (max-width: 999px) {
  [data-boxtype="case"][data-display="症例"] h2,
  [data-boxtype="case"][data-display="事例"] h2,
  [data-boxtype="case"][data-display=""] h2 {
    left: -1.45em;
  }
}

@media (max-width: 767px) {
  .main {
    border-top: 1px solid #ebe7e1;
    border-bottom: 1px solid #ebe7e1;
  }

  .abstract .author {
    margin: 16px 0 1em;
  }

  section figure {
    max-width: 100%;
  }
  section figure > img {
    width: 100% !important;
  }
}
/* 記事中身 end */
