.contents-wrap {
  background: #fff url(/rnote/course_selection/images/bg.png) no-repeat;
  margin: 0 -20px 0;
  max-width: none;
  font-size: medium;
  line-height: 2;
  background-size: contain;
  font-family: var(--font-notosans);
  font-weight: 400;
  padding: 20px 15px 40px;
  position: relative;
  overflow: hidden;
}

.contents-wrap.index::after {
  content: '';
  background: url(/rnote/course_selection/images/bg-deco-footer.png) no-repeat;
  position: absolute;
  z-index: 0;
  background-size: contain;
  bottom: -105px;
  right: calc(50% - 645px);
  width: max(387px, min(55vw, 550px));
  height: max(200px, min(25vw, 260px));
  right: -70px;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6{
  line-height: 1.4;
}

.contents-wrap ul, .contents-wrap ol{
  margin: 0;
}
.contents-wrap li:not(:last-child) {
  margin-bottom: .4em;
}

.department-wrap section a{
  color: #19B14C;
  font-weight: 700;
  font-family: var(--font-notosans);
}

.contents-wrap p{
  font-family: var(--font-notoserif);
}

.breadcrumb-list:not(:root) {
	list-style: none;
	padding-left: 0;
	margin: 0 auto;
	font-size: 12px;
	line-height: 1.4;
  max-width: 860px;
  position: relative;
  z-index: 1;
}
.breadcrumb-list li {
	position: relative;
	display: inline-block;
}
.breadcrumb-list li:not(:last-child){
  margin-right: 20px;
}
.breadcrumb-list li:not(:last-child)::before {
	content: "";
	position: absolute;
	top: 50%;
	right: -12px;
	width: 6px;
	height: 6px;
	border: 1px solid;
	border-color: #8e8e8e #8e8e8e transparent transparent;
	transform: translateY(-50%)rotate(45deg);
	-moz-transform: translateY(-50%)rotate(45deg);
	-webkit-transform: translateY(-50%)rotate(45deg);
}

.main-contents {
  max-width: 860px;
  margin: max(30px, min(8vw, 80px)) auto 0;
  background: #fff;
  padding: 0 max(15px, min(4vw, 60px)) 40px;
  box-shadow: 0px 3px 10px 1px rgba(0, 0, 0, 0.1);
  position: relative;
}
.main-contents img[src*="bg-deco-head"]{
  position: absolute;
  left: 0;
  width: 80%;
  top: 0;
  transform: translate(-8%, -70%);
  width: 58%;
  transform: translate(-6%, -73%);
}
/* .contents-wrap.index .main-contents::before {
  content: '';
  background: url(/rnote/course_selection/images/bg-deco-head.png) no-repeat;
  position: absolute;
  z-index: 0;
  background-size: contain;
  top: -175px;
  left: calc(50% - 468px);
  width: 660px;
  height: 260px;
} */

.contents-wrap h1{
  position: relative;
  padding-top: 9%;
}
.contents-wrap h1 img[src*="title-sub"]{
  position: absolute;
  width: 30%;
  left: 50%;
  transform: translateX(-50%);
  top: -12%;
}
.contents-wrap h1 img[src*="title-main"]{
}

@media (min-width: 768px){
  #sidemenudata{
    padding-right: 30px;
  }
}
@media (max-width: 767px){
#contents {
  padding: 0;
}
.contents-wrap{
  /* margin: 0px -15px; */
}
}

.main-contents section{
  margin-top: max(2em, min(4vw, 3.2em));
}

.published:not(:root){
  font-family: var(--font-notosans);
  margin: 10px 0 0;
  font-size: 14px;
  /* color: #0089cf; */
  text-align: right;
}
.published i{
  margin-right: 6px;
}

.author-box{
  grid-template-columns: auto auto;
  display: grid;
  gap: max(15px, min(2.5vw, 20px));
  justify-content: center;
  align-items: baseline;
  font-family: var(--font-notoserif);
  line-height: 1.7;
  font-size: max(14px, min(2vw, 16px));
}
.author-box .author-head{
  font-family: var(--font-notosans);
  font-weight: 700;
}

.intro-box{
  margin-top: 2.5em;
  border: 1px solid #BDA632;
  padding: 1.8em max(1em, min(2vw, 1.5em)) .5em;
  position: relative;
  font-family: var(--font-notoserif);
  font-size: max(14px, min(2vw, 16px));
}
.intro-head{
  background: #BDA632;
  width: fit-content;
  color: #fff;
  padding: 0 10px;
  position: absolute;
  left: -1px;
  font-size: max(16px, min(2vw, 18px));
  top: -19px;
  font-family: serif;
}

.explanation-box{
  margin-top: 1.4em;
}
.explanation-box p{
  font-size: max(13px, min(1.5vw, 14px));
  font-family: var(--font-notosans);
  margin: 0 0 0 1em;
  text-indent: -1em;
  padding-right: 1em;
}
.explanation-box mark{
  background: linear-gradient(transparent 70%, #ffca90 70%);
}

.main-contents section>p:not([class]){
  font-family: "Times New Roman",Times,"ヒラギノ明朝 Pro","Hiragino Mincho Pro","游明朝",YuMincho,"HGS明朝E","ＭＳ Ｐ明朝","MS PMincho",serif;
  margin-left: 52px;
  text-indent: 1em;
}


/* 各科のページ
---------------------------------- */
.department-wrap{
  max-width: 860px;
  margin: auto;
  min-height: 800px;
  margin-top: 80px;
}

.department-wrap h1{
  padding: 0;
  margin: 0;
  font-weight: 700;
  font-size: max(22px, min(4vw, 38px));
}

.department-head{
  padding: 35px max(15px, min(2.5vw, 20px)) 10px;
  background: #fff;
  position: relative;
  z-index: 2;
  min-height: 155px;
  display: grid;
  align-items: center;
}
.department-head::before{
  content: '';
  background: url(/rnote/course_selection/images/department-head-deco.png) no-repeat;
  position: absolute;
  z-index: -10;
  background-size: contain;
  top: -76px;
  left: calc(50% - 511px);
  width: 290px;
  height: 133px;
  left: -81px;
}
.department-head img[src*="subhead"]{
  position: absolute;
  top: -68px;
  left: 0px;
  width: 480px;
  top: 0;
  transform: translateY(-62%);
}

.department-content{
  padding: 20px max(15px, min(2.5vw, 20px));
  background: #fff;
  margin-top: 10px;
}
.department-content p{
  text-indent: 1em;
  font-size: max(15px, min(2vw, 16px));
}
.department-content strong{
  font-family: var(--font-notosans);
}

.department-profile{
  border: max(3px, min(.5vw, 5px)) solid #DCCD90;
  border-radius: 14px;
  margin-top: 10px;
  background: #F6F4E5;
  padding: 1em;
}
.profile-name:not(:root){
  font-family: var(--font-notosans);
  text-align: center;
  font-size: max(16px, min(2.5vw, 20px));
  line-height: 1.4;
}
.career-box{
  /* display: grid; */
  /* grid-template-columns: 1.2fr 1fr; */
  border: 1px solid;
}
.career-box dl{
  margin-bottom: 0;
  justify-content: space-between;
  flex-flow: column;
  background: #fff;
  font-size: 14px;
}
.career-box dl:first-of-type{
  border-right: 1px solid;
}
.career-box dl *{
  padding: 0.5em;
}
.career-box .career-head{
  background: #BDA632;
  color: #fff;
  font-size: 110%;
}
.career-box dt{
  font-weight: 400;
  float: left;
}
.career-box dd{
  padding-left: 6.5em;
  border-bottom: 1px solid;
}
.career-box dd:last-child{
  border: none;
}

.career-box table{
  background: #fff;
  font-size: 14px;
  width: 100%;
  line-height: 1.4;
}
.career-box .career-head th{
  font-weight: 400;
}
.career-box .career-head th:first-child{
  width: 55%;
}
.career-box .career-head th:last-child{
  width: 45%;
}
.career-box table tr:not(:first-child,:last-child){
  border-bottom: 1px solid;
}
.career-box table :is(td, th):last-child:not(:first-child){
  border-left: 1px solid;
}
.career-box table :is(td, th){
  padding: 0.5em;
}
.career-box table td{
  vertical-align: text-top;
}
.career-box table td>div{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2em;
}

.head2{
  position: relative;
  font-weight: 700;
  color: #6B6214;
  font-size: max(20px, min(2.5vw, 24px));
  margin-bottom: 0.5em;
  display: grid;
  grid-template-columns: auto 1fr;
  border-bottom: 4px solid #E7DFB9;
  clear: both;
}
.head2::before{
  content: '';
  background: url(/rnote/course_selection/images/h2-deco.png) no-repeat;
  position: relative;
  display: inline-block;
  width: 25px;
  height: 25px;
  background-size: contain;
  top: max(2px, min(.5vw,7px));
  margin-right: 7px;
}
.head2:not(:first-of-type){
  margin-top: 1.5em;
}

.literature-head{
  font-size: max(16px, min(2.5vw, 18px));
  font-weight: 700;
}
.literature-head::before{
  content: '◆';
  color: #e1d490;
  margin-right: 6px;
}
.literature-list{
  counter-reset: reference;
  list-style-type: none;
  padding-left: .4em;
  font-size: 14px;
  line-height: 1.5;
}
.literature-list li{
  text-indent: -1.6em;
  padding-left: 1.6em;
  word-break: break-all;
  font-family: var(--font-notoserif);
}
.literature-list li::before{
  counter-increment: reference 1;
  content: counter(reference) "）";
}
.literature-list li a{
  font-weight: 400;
  color: #428bca;
  font-family: var(--font-notoserif);
}

.fig-right, .fig-right-small{
  width: 100%;
  margin: 1.5em auto;
}
.table-right{
  margin: 0;
}
.table-right .logic-table [data-label="label01"]{
  text-align: left;
}
.fig-center{
  margin: 1.5em auto;
  width: 100%;
}
.fig-together {
  width: 100% !important;
  display: grid;
  gap: 20px;
  margin: 1.5em 0;
}
[class^="fig-"] img{
  margin: auto;
}
.clear{
  clear:both;
}
figcaption.contents-caption{
  line-height: 1.4;
  margin-top: 1em;
  font-weight: 700;
}
figure.table figcaption.contents-caption{
  margin-top: 0;
  margin-bottom: 1em;
}
figcaption.contents-caption .clamp{
  color: #C81333;
}
.modal-body figure{
  display: grid;
  justify-content: center;
}


@media (min-width:641px){
.fig-right{
  float: right;
  width: 47%;
  margin: 15px 0 15px 22px;
}
.fig-center {
  margin: 2.5em auto;
  width: 80%;
}
.fig-center.w70{
  max-width: 70%;
}
.fig-together{
  grid-template-columns: 1fr 1fr;
}
}

.clamp{
  display: inline-block;
}

@media (min-width: 768px){
  .contents-box .lineup-list a .list-txt{
    display: flex;
    align-items: baseline;
  }
}
@media (max-width: 767px){
  .department-wrap{
    margin-top: 65px;
  }

  .department-head{
    padding-top: 30px;
    padding-bottom: 10px;
    min-height: 110px;
    border: 1px solid #e6ec97;
  }
  .department-head img[src*="subhead"]{
    width: 90%;
    max-width: 330px;
  }
  .department-head::before{
    top: 0;
    left: 0;
    transform: translate(-28%,-41%);
    width: 190px;
  }

  .career-box{
    grid-template-columns: auto;
  }

  .career-box table{
    min-width: 560px;
  }
  .career-box .career-head th:not(:root){
    width: 50%;
  }
}

@media (max-width: 460px){
  .head2{
  margin-top: 0;
  }
}


/* 関連書籍
---------------------------------- */
.series-box {
  margin-top: 3em;
  border: #0089CF 2px solid;
  font-weight: bold;
  border-radius: 5px;
  background: #fff;
  max-width: 860px;
  margin-inline: auto;
}
.series-container {
  position: relative;
}
.series-container::before {
  content: attr(data-text)"";
  position: relative;
  top: 1px;
  left: 0;
  background: #0089CF;
  padding: 7px 14px 9px;
  font-size: 1.5rem;
  font-weight: 400;
  border-radius: 0 0 5px;
  color: #fff;
  line-height: 1.4;
  text-align: center;
  font-weight: 500;
}
.series-inner {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(4, 120px);
  gap: 25px;
  padding: 40px 20px 30px;
}
.series-inner a{
  color: inherit;
}
.series-inner p {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 0;
  font-weight: 400;
  font-family: var(--font-notosans);
  text-indent: 0;
}

@media (max-width: 640px){
  .series-container::before {
    display: block;
    border-radius: 0;
    top: 0px;
  }

  .series-inner {
    padding: 30px 15px 30px;
    grid-template-columns: repeat(2, 120px);
    gap: 20px;
  }
}


/* 診療科リスト
---------------------------------- */
.lineup-box{
  margin-top: 4em;
}
.linup-head{
  color: #6b6214;
  font-size: max(18px, min(2.5vw, 20px));
  margin-bottom: 0.3em;
  font-weight: 700;
  font-family: var(--font-notoserif);
}
.lineup-list{
  list-style: none;
  padding-left: 0;
  font-family: var(--font-notosans);
}
.lineup-list li{
  margin: 0 !important;
  border-bottom: 1px dotted #ababab;
}
.lineup-list li:first-child{
  border-top: 1px dotted #ababab;
}
.lineup-list a{
  display: block;
  padding: .8em 0;
  position: relative;
  transition: ease-in-out .2s;
  line-height: 1.5;
  display: flex;
  /* flex-wrap: wrap; */
  align-items: baseline;
  justify-content: space-between;
}
.lineup-list a::before{
  /* content: ''; */
}
.lineup-list a:not([class]),
.contents-box .lineup-list a:not([class]){
  pointer-events: none;
  color: #9d9d9d;
  font-weight: 400;
  font-size: max(14px, min(2vw, 16px));
  flex-wrap: nowrap;
  gap: 15px;
}
.lineup-list .new{
  font-size: 80%;
  font-family: var(--font-notosans);
  margin-right: 6px;
  color: #e76d12;
  color: #0080cb;
  line-height: 1;
  display: inline-block;
  position: relative;
  top: -1px;
  background: #f9e8db;
  background: #dfecf4;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 700;
}
.lineup-list a small{
  font-weight: 400;
}
.lineup-list a .published{
  margin: 0;
  margin-left: auto;
  font-weight: 400;
  white-space: nowrap;
  font-size: max(11px, min(1.5vw, 13px));
  color: #b5b5b5;
}
.lineup-list a.pointer{
  font-weight: 700;
  color: #6a6a6a;
  pointer-events: all;
}
.lineup-list a.pointer::before{
  content: '';
  width: 11px;
  height: 15px;
  background-color: #e1d490;
  background-color: #0080cb;
  clip-path: polygon(0% 0%, 0% 100%, 100% 50%);
  display: inline-block;
  margin-right: 6px;
  position: relative;
  top: 1px;
  transition: ease-in-out .2s;
}
.lineup-list a.pointer:hover::before{
  background-color: #0089CF;
}
.lineup-list a:hover,
.contents-box .lineup-list a:hover{
  text-decoration: none;
  color: #0089CF;
}
.lineup-list a.active{
  color: #111;
}
.lineup-list a.pointer.active::before{
  background-color: #d3c478;
  background-color: #f28b1b;
}
.contents-box .lineup-list a{
  color: #333;
}

.affiliation-asterisk:not(:root){
  font-family: var(--font-notosans);
  font-size: max(12px, min(2vw, 14px));
  margin: 10px 0 0;
  text-align: right;
}


.contents-wrap .panel{
  margin-bottom: 0;
}

.contents-wrap .panel .panel-heading{
  line-height: 1.5;
  font-size: max(14px, min(2vw, 16px));
}

.department-wrap .panel-body a.btn-warning{
  color: #fff;
}
.department-wrap .panel-body a.btn-default{
  color: inherit;
}

@media (max-width: 767px){
  .lineup-list a{
    display: block;
  }
  .lineup-list a small{
    display: block;
    margin-left: 20px;
  }
  .lineup-list a .published{
    text-align: right;
    display: block;
  }
}


/* 診療科リスト
---------------------------------- */
.about-mm p{
  font-family: var(--font-notosans);
  font-size: 14px;
  text-align: left;
  line-height: 1.6;
}
.about-mm h3{
  font-size: max(16px, min(2.5vw, 17px));
  font-weight: 700;
  margin: max(20px, min(2.5vw, 25px)) 0 1em;
  border-top: 1px solid #dff0d8;
  padding-top: 1.5em;
  display: flex;
  justify-content: center;
  line-height: 1.5;
  align-items: baseline;
  text-align: left;
}
.about-mm h3 i{
  margin-right: 4px;
  color: #5cb85c;
}
.about-mm p .glyphicon{
  display: inline;
}
.about-mm p.howto{
  text-indent: -1.2em;
  margin-left: 1.2em;
}
.about-mm p.howto .num{
  font-weight: 900;
}
.about-mm p.howto i{
  display: initial;
}
.about-mm p.howto:last-of-type{
  margin-bottom: 0;
}
