.contents-wrap {
  background: #fff url(/rnote/rotation/images/department-bg.jpg) no-repeat;
  margin: 0 -20px 0;
  max-width: none;
  font-size: max(15px, min(1.5vw, 16px));
  line-height: 2;
  background-size: 100% max(380px, min(50vw, 425px));
  font-family: var(--font-notosans);
  font-weight: 400;
  padding: 20px 20px 40px;
  position: relative;
  overflow: hidden;
}

.contents-wrap.index {
  /* background: #f8f5ec url(/rnote/rotation/images/department-bg.jpg) no-repeat; */
  background-size: 100% max(450px, min(55vw, 540px));
  padding-left: 15px;
  padding-right: 15px;
}
.contents-wrap.index::before{
  position: absolute;
  inset: 0;
  content: '';
  /* background: rgb(255 255 255 / .25); */
}

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

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

.department-wrap section a{
  font-family: var(--font-notosans);
}
.department-wrap a[href*="modal"]{
  color: #D03A53;
  text-decoration: underline;
  font-weight: 700;
}
.department-wrap section a[href*="modal"]:hover{
  text-decoration: none;
}

.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);
}

.breadcrumb-list a{
  color: inherit;
  text-decoration: underline;
}
.breadcrumb-list a:hover{
  text-decoration: none;
}

.main-contents {
  max-width: 900px;
  margin: max(50px, min(8vw, 70px)) auto 0;
  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%);
}

.title-box{
  border: 6px solid #C93565;
  background: #fff;
  position: relative;
  margin: 0 calc(20% - 13vw);
}
.title-box>img{
  position: absolute;
  height: 320px;
  bottom: -50px;
}
.title-box>img[src*="left"]{
  left: -35px;
}
.title-box>img[src*="right"]{
  right: -35px;
}
.title-box::before,
.title-box::after,
.title-box-inner::before,
.title-box-inner::after{
  content: '';
  position: absolute;
  width: max(20px, min(3.5vw, 25px));
  height: max(20px, min(3.5vw, 25px));
}
.title-box::before{
  background: url(/rnote/rotation/images/title-left-top-i.png) no-repeat;
  background-size: contain;
  top: 3px;
  left: 3px;
}
.title-box::after{
  background: url(/rnote/rotation/images/title-right-top-i.png) no-repeat;
  background-size: contain;
  top: 3px;
  right: 3px;
}
.title-box-inner{
  position: relative;
  padding: 1em;
}
.title-box-inner *{
  text-align: center;
}
.title-box-inner::before{
  background: url(/rnote/rotation/images/title-left-bottom-i.png) no-repeat;
  background-size: contain;
  bottom: 3px;
  left: 3px;
}
.title-box-inner::after{
  background: url(/rnote/rotation/images/title-right-bottom-i.png) no-repeat;
  background-size: contain;
  bottom: 3px;
  right: 3px;
}
.title-box-inner img[src*="specialevent-head"]{
  position: absolute;
  width: 160px;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
}

.contents-wrap h1{
  font-size: 80px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.2;
}
.title-box .title-sub{
  color: #1D2087;
  font-family: var(--font-notosans);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  margin-inline: auto;
}
.title-box .title-sub span{
  background: linear-gradient(transparent 80%, #AADDF7 80%);
  background: -webkit-linear-gradient(transparent 80%, #AADDF7 80%);
}
.title-box .author{
  font-family: var(--font-notosans);
  font-weight: 500;
}

@media (min-width: 768px){
  #sidemenudata{
    padding-right: 30px;
  }
}
@media (max-width: 767px){
#contents {
  padding: 0;
}

.main-contents{
  padding-left: 0;
  padding-right: 0;
}

.title-box-inner img[src*="specialevent-head"]{
  width: max(110px, min(20vw, 160px));
  top: -23px;
}

.contents-wrap h1{
  font-size: max(40px, min(10vw, 80px));
}

.title-box>img{
  height: 250px;
  bottom: -40px;
}
.title-box>img[src*="left"]{
  left: -29px;
}
.title-box>img[src*="right"]{
  right: -29px;
}

.title-box-inner{
  line-height: 1.4;
}

.title-box .title-sub{
  font-size: max(15px, min(3vw, 20px));
  line-height: 1.5;
}

.title-box .author{
  font-size: max(12px, min(2.5vw, 16px));
}
.title-box .author small{
  display: inline-block;
}
}

.contents-box.lineup{
  position: relative;
  padding: 1.8em max(1em, min(3vw, 2em)) 0.6em;
}
.lineup-head:not(:root){
  font-family: var(--font-notosans);
  width: fit-content;
  font-weight: 700;
  background: #333;
  color: #fff;
  padding: 2px 14px;
  line-height: 1.6;
  font-size: 21px;
  position: absolute;
  top: -21px;
  left: 50%;
  transform: translateX(-50%);
}

.toLineup{
  text-align: center;
  margin: 0.6em 0 0;
  font-size: 14px;
  font-weight: 500;
}

.main-contents section{
  margin-top: 3.2em;
}

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

.intro-box{
  margin-top: 30px;
  padding: 1.5em max(1em, min(3vw, 2.5em));
  background: #fbedee;
  font-family: var(--font-notoserif);
  font-size: max(14px, min(2vw, 16px));
  border-radius: 20px;
}
.intro-box p{
  text-indent: 1em;
  margin: 0;
  font-size: 14px;
}

.section-bottom,
.contents-box{
  background: #fff;
  border-radius: 20px;
  padding: 1.6em max(1em, min(3vw, 2em));
  margin-top: 30px;
  box-shadow: 0 2px 14px rgb(0 0 0/14%);
}

.explanation-box{
  margin-top: 0;
}
.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;
  line-height: 1.7;
}
.contents-wrap mark{
  background: linear-gradient(transparent 70%, #aaddf7 70%);
}

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

.contents-wrap .panel .panel-heading{
  line-height: 1.5;
  font-size: max(17px, min(2.5vw, 18px));
}
.contents-wrap .panel-body a{
  font-weight: 400;
}
.department-wrap .panel-body a.btn-warning{
  color: #fff;
}
.department-wrap .panel-body a.btn-default{
  color: inherit;
}

.panel-heading-txt{
  text-align: center;
  display: block;
  font-weight: 700;
}
.panel-heading-txt>span{
  display: inline-block;
}
.panel-heading-small{
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  margin-top: 10px;
  font-size: 80%;
}

.main-contents section>p:not([class]){
  font-family: var(--font-notoserif);
  margin-left: 52px;
  text-indent: 1em;
}

@media (max-width: 767px){
.lineup-head:not(:root){
  top: -16px;
  padding: 1px 11px;
  font-size: 18px;
}
}


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

.department-head{
  padding: 34px max(15px, min(2.5vw, 20px)) 20px;
  background: #fff;
  position: relative;
  z-index: 2;
  min-height: 155px;
  display: grid;
  align-items: center;
  box-shadow: 0 8px 20px rgba(192, 92, 148, 0.8);
  border-radius: 15px;
}
.department-head::before{
  content: '';
  background: url(/rnote/rotation/images/rotation-title-head.png) no-repeat;
  position: absolute;
  z-index: -10;
  background-size: contain;
  top: -38px;
  width: 300px;
  height: 90px;
  left: -17px;
}
.department-wrap h1{
  padding: 0;
  margin: 0;
  font-weight: 700;
  font-size: max(32px, min(6vw, 50px));
  text-align: center;
  margin-bottom: 6px;
}
/* .department-head img[src*="title-num"]{
  width: 80px;
  position: absolute;
  top: -34px;
  transform: translateX(-50%);
  left: 50%;
} */
.department-head p{
  text-align: center;
}
.department-head .department-head-sub{
  font-family: var(--font-notosans);
  font-size: max(16px, min(3vw, 24px));
  font-weight: 500;
  margin-bottom: max(20px, min(4vw, 30px));
  line-height: 1.5;
}
.department-head .author{
  font-weight: 500;
  font-size: max(13px, min(2vw, 17px));
  line-height: 1.4;
}
.department-head .author small{
  font-size: 76%;
}

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

.department-scedule{
  border-radius: 15px;
  margin-top: 10px;
  background: #F3EBD3;
  padding: 1em 1.4em;
  max-width: 420px;
  margin-inline: auto;
}
.scedule-head:not(:root){
  font-family: var(--font-notosans);
  text-align: center;
  font-size: max(16px, min(2.5vw, 20px));
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 12px;
}
.scedule-head::before,
.scedule-head::after{
  content: '';
  background: #CA5085;
  border-radius: 50px;
  width: max(16px, min(2.5vw, 20px));
  height: max(16px, min(2.5vw, 20px));
  display: inline-block;
  position: relative;
  top: max(2px, min(.5vw, 3px));
}
.scedule-head::before{
  margin-right: 6px;
}
.scedule-head::after{
  margin-left: 6px;
}
.scedule-box{
  border: none;
  margin-bottom: 0;
}

.scedule-box table{
  font-size: max(14px, min(1.5vw, 16px));
  width: 100%;
  line-height: 1.5;
  border: none;
}
.scedule-box table .table-inner{
  display: grid;
  grid-auto-rows: auto;
}
.scedule-box .head th{
  font-weight: 500;
  padding: 2px 15px;
  background: #CA5085;
  color: #fff;
  border-radius: 25px;
}
.scedule-box table tr{
  border-bottom: none;
}

.scedule-box table td{
  vertical-align: text-top;
  padding: 0.2em;
}
.scedule-box table td>div{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2em;
}
.scedule-box .head+tr>td{
  padding-top: .4em;
}
.department-scedule ul{
  line-height: 1.5;
  margin-top: .2em;
}
.department-scedule ul li:not(:last-child){
  margin-bottom: .2em;
}

.head2{
  position: relative;
  font-weight: 900;
  font-size: max(20px, min(2.5vw, 24px));
  margin-bottom: 1em;
  padding-bottom: 6px;
  display: grid;
  grid-template-columns: auto 1fr;
  border-bottom: 1px solid #C70267;
  clear: both;
}
.head2::before{
  content: '\25C6';
  color: #E098AD;
  margin-right: 5px;
}
.head2:not(:first-of-type){
  margin-top: 2.2em;
}

.head3:not(:root){
  color: #1D2087;
  font-weight: 900;
  font-size: max(18px, min(2.5vw, 20px));
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  margin: 1.5em 0 .5em;
}
.head3 .num{
  color: #fff;
  background: #1D2087;
  margin-right: 8px;
  height:max(18px, min(2.5vw, 20px));
  width: max(18px, min(2.5vw, 20px));
  line-height: max(17px, min(2.5vw, 20px));
  display: inline-block;
  text-align: center;
  font-weight: 700;
}

.head4:not(:root){
  font-size: max(16px, min(2.5vw, 17px));
  font-weight: 600;
  margin: 1em 0 .5em;
}

.head2 small, .head3 small, .head4 small{
  font-size: max(15px, min(2vw, 16px));
  color: #333;
}

.reference-head{
  position: relative;
  font-weight: 700;
  font-size: max(16px, min(2.5vw, 18px));
  margin-bottom: 1em;
  display: grid;
  grid-template-columns: auto 1fr;
  margin-top: 2em;
}
.reference-head::before{
  content: '\25C6';
  color: #E098AD;
  margin-right: 5px;
}
.reference-list:not(:root) {
  counter-reset: reference;
  list-style-type: none;
  padding-left: 0;
  line-height: 1.5;
  font-weight: 300;
  font-size: 14px;
}
.reference-list li{
  text-indent: -1.6em;
  margin-left: 1.6em;
}
.reference-list li:before {
  counter-increment: reference;
  content: counter(reference) '）';
}

.gray-box{
  background: #E9EDF0;
  padding: 1em;
  margin-bottom: 3.5em;
}
.gray-box p{
  font-family: var(--font-notosans);
  line-height: 1.75;
  text-indent: 0;
}
.gray-box p:last-of-type{
  margin-bottom: 0;
}
.gray-box .color-dots{
  line-height: 1.6;
}

.ad-box{
  display: grid;
  /* justify-content: center; */
  margin: 2em 0;
  border: #e5e5e5 solid 1px;
  /* padding: 1em; */
  max-width: 550px;
  margin-inline: auto;
  position: relative;
  background: #f7f7f7;
  max-width: fit-content;
  max-width: -moz-fit-content;
}
.ad-box::before{
  content: '\5E83\544A';
  top: 0;
  right: 0;
  font-size: 11px;
  color: #ababab;
  background: #ffffff;
  font-weight: 400;
  position: absolute;
  line-height: 1.4;
  padding: 0 4px;
  border-bottom: #e5e5e5 solid 1px;
  border-left: #e5e5e5 solid 1px;
  border-radius: 0 0 0 5px;
}
.ad-box a{
  text-decoration: underline;
  font-size: 85%;
  color: #666;
  line-height: 1.5;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
}
.ad-box-img{
  padding: 10px 10px 0 15px;
  transition: .3s ease-in-out;
  -moz-transition: .3s ease-in-out;
  -webkit-transition: .3s ease-in-out;
  overflow: hidden;
  max-height: 70px;
  display: grid;
  justify-content: center;
}
.ad-box-img img{
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  width: 60px;
  border: 1px solid #eee;
}
.ad-box-txt{
  font-weight: 700;
  padding: 10px 20px 10px 0;
  display: grid;
  align-items: center;
  height: 100%;
}
.ad-box-txt p{
  font-size: 85%;
  font-weight: 500;
  color: #666;
  line-height: 1.5;
  text-indent: 0;
  margin: 0;
  font-family: var(--font-notosans);
}
.ad-box a:hover img{
  scale: 1.1;
  rotate: 10deg;
}
.ad-box a:hover{
  text-decoration: none;
}

.border-strong{
  text-align: center;
  font-weight: 700;
  margin: 1.5em 0;
}
.border-strong::before{
  content: '';
  width: 100%;
  border-bottom: 1px dashed #ccc;
  display: block;
  position: relative;
  top: 17px;
  z-index: 0;
}
.border-strong span{
  display: inline-block;
  padding: 0 12px;
  margin-top: -10px;
  background: #fff;
  position: relative;
  z-index: 1;
}

.recommend-list p{
  text-indent: 0;
  margin: 0;
}
.recommend-list .recommend-head{
  margin: 0 0 .2em;
  font-size: max(16px, min(2.5vw, 18px));
}
.recommend-list ul{
  list-style: disc;
}

.color-dots:not(:root){
  font-family: var(--font-notosans);
  list-style-type: none;
  padding-left: 20px;
}
.color-dots li{
  text-indent: -.2em;
}
.color-dots>li::before{
  content: "";
  border-radius: 100%;
  width: 8px;
  height: 8px;
  background-color: #9F9FA0;
  display: inline-block;
  position: relative;
  top: -2px;
  left: -11px;
  margin-right: -4px;
}

.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);
}

.pagination-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 3.5em;
  justify-content: space-between;
  line-height: 1.4;
  border-top: #ddd solid 1px;
  padding: 1.2em 0;
  border-bottom: #ddd solid 1px;
}
.pagination-box>div:first-child {
  border-right: 1px solid #eee;
}
.pagination-box a[class*="prev-item"] {
  padding-left: 30px;
  padding-right: 30px;
}
.pagination-box a[class*="next-item"] {
  padding-right: 30px;
  padding-left: 30px;
  text-align: right;
}
.pagination-box a:not(:root) {
  color: inherit;
  position: relative;
  display: block;
  text-decoration: none;
}
.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"]::before {
  transform: translateY(-50%) rotate(45deg);
  -moz-transform: translateY(-50%) rotate(45deg);
  -webkit-transform: translateY(-50%) rotate(45deg);
  right: 2px;
}
.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 span[class*="-txt"] {
  margin-bottom: 0.4em;
  color: #999;
  font-weight: 300;
  font-size: 1.2rem;
  display: block;
}
.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;
  transition: all 0.25s;
}
.pagination-box span[class*="contents-title"] small{
  display: block;
  font-weight: 500;
  font-size: 80%;
}
.pagination-box a:hover span[class*="contents-title"]{
  color: #428bca;
}

.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;
}

.figure-table{
  margin: 2.5em auto;
}
.figure-table .figcaption{
  font-family:var(--font-notosans);
  line-height: 1.4;
  text-indent: 0;
  margin-bottom: 6px;
  font-weight: 700;
  text-indent: -2.3em;
  margin-left: 2.3em;
}
.figcaption .title{
  color: #C81333;
}
.figcaption .deco{
  color: #F29B93;
  margin: 0 2px;
}
.figure-table .table-list{
  background: #F7F0E8;
  border: 1px solid #595757;
  list-style: none;
  line-height: 1.4;
  padding: 1em;
  font-size: max(14px, min(2vw, 15px));
}
.table-list li{
  text-indent: -1.2em;
  margin-left: 1.2em;
}

.figure-table table{
  line-height: 1.4;
  font-size: max(14px, min(2vw, 15px));
  border-left: #595757 solid 1px;
  border-top: #595757 solid 1px;
}
.figure-table table th, .figure-table table td{
  border-right: #595757 solid 1px;
  border-bottom: #595757 solid 1px;
  padding: .5em;
}
.figure-table table thead{
  background: #CE638E;
  color: #fff;
}
.figure-table table th{
  text-align: center;
  font-weight: 500;
}
.figure-table table tbody tr td:first-child{
  background: #F7F0E8;
  width: 35%;
}

.watermark:not(:root){
  margin-bottom: 0;
  text-align: right;
  font-family: var(--font-notosans);
  color: #aaa;
  font-size: max(13px, min(1.5vw, 14px));
  font-weight: 300;
  margin-top: 4px;
}

@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){
  .lineup-list a .list-txt{
    display: flex;
    align-items: baseline;
    margin-right: 10px;
    display: grid;
  }
}
@media (max-width: 767px){
  .department-wrap{
    margin-top: 55px;
  }

  .department-content{
    margin: 10px calc(50% - 50vw);
    border-radius: 0;
  }

  .department-head{
    padding-top: 30px;
    min-height: 110px;
  }

  .department-head::before {
    width: 175px;
    top: -22px;
    left: -10px;
  }

  .pagination-box a[class*="next-item"]{
    padding-left: 10px;
    padding-right: 20px;
  }
  .pagination-box a[class*="prev-item"]{
    padding-left: 20px;
    padding-right: 10px;
  }
  .pagination-box span[class*="contents-title"] {
    font-size: 1.5rem;
  }
}

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


/* 関連書籍
---------------------------------- */
.department .series-box{
  max-width: 100%;
}

.series-box {
  margin-top: 0em;
  border: #c93565 3px solid;
  font-weight: bold;
  border-radius: 5px;
  background: #fff;
  max-width: 780px;
  margin-inline: auto;
  position: relative;
}

.series-container::before {
  content: attr(data-text)"";
  position: relative;
  top: 1px;
  left: 0;
  background: #c93565;
  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;
}

.series-box.subscription .series-inner{
  grid-template-columns: auto;
  padding: 10px 20px 30px;
}
.series-box.subscription .series-inner p{
  margin: 0 0 15px;
  font-weight: 700;
  font-size: max(12px, min(1.5vw, 14px));
  text-align: center;
  color: #666;
}
.series-box.subscription .series-inner img{
  max-width: 310px;
}

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

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


/* 診療科リスト
---------------------------------- */
.lineup-box{
  margin-top: max(4.5em, min(5.5vw, 5em));
}
.contents-wrap.index .linup-head{
  margin-top: 3em;
}

.linup-head{
  font-size: max(18px, min(2.5vw, 21px));
  font-family: var(--font-notosans);
  line-height: 1.6;
  margin-bottom: 10px;
  margin-inline: auto;
  text-align: center;
}
.linup-head span{
  font-weight: 700;
  background: #333;
  color: #fff;
  padding: 2px 14px;
  display: inline-block;
}
.lineup-list:not(:root){
  list-style: none;
  padding-left: 0;
  font-family:var(--font-notosans);
}
.lineup-list li{
  margin: 0 !important;
  border-bottom: 1px dotted #e0e0e0;
}
.lineup-list li:first-child{
  border-top: 1px dotted #e0e0e0;
}
.lineup-list a{
  display: block;
  padding: .8em max(.4em, min(1vw, .6em));
  position: relative;
  transition: ease-in-out .2s;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.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,
.lineup-list .free{
  font-size: 80%;
  font-family:var(--font-notosans);
  margin-right: 6px;
  color: #1D2087;
  line-height: 1;
  display: inline-block;
  position: relative;
  top: -1px;
  background: #bce4f9;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 700;
}
.lineup-list .free{
  font-size: 11px;
  letter-spacing: 0;
  background: #fff;
  font-weight: 500;
  background: -webkit-linear-gradient(transparent 70%, #AADDF7 70%);
  border-radius: 0;
  top: -2px;
  padding: 0px 2px 4px;
  margin-right: 8px;
}
.lineup-list a small{
  font-weight: 400;
  font-size: 75%;
}
.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;
  margin-top: auto;
}
.lineup-list a.pointer{
  font-weight: 700;
  color: #555;
  pointer-events: all;
}
.lineup-list a.pointer::before{
  content: '';
  width: 11px;
  height: 15px;
  background-color: #CA5085;
  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;
  background: #fbeff4;
}
.lineup-list a.pointer.active::before{
  background-color: #CA5085;
}
.contents-box .lineup-list a{
  color: #333;
}

.affiliation-asterisk:not(:root){
  font-family: var(--font-notosans);
  font-size: max(11px, min(1.5vw, 13px));
  margin: 12px 0 0;
  text-align: right;
  line-height: 1.5;
}
.affiliation-asterisk>span{
  display: inline-block;
  text-indent: 0;
}

@media (max-width: 767px){
  .lineup-list a{
    display: block;
  }
  .lineup-list a small{
    display: block;
  }
  .lineup-list li a.pointer small{
    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 #ddd;
  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: #428bca;
}
.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;
}
