.contents-wrap {
  background: #d1e3f4;
  margin: 0 -30px 0;
  max-width: none;
  font-size: medium;
  line-height: 2;
  background-size: 15px;
  font-family: var(--font-notosans);
  font-weight: 400;
  background: -moz-linear-gradient(top, #067ac9, #bfd9f2);
  background: -webkit-linear-gradient(top, #067ac9, #bfd9f2);
  background: linear-gradient(to bottom, #63a1d6, #d1e3f4);
  background-attachment: fixed;
}

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

.breadcrumb{
  margin-bottom: 0;
}

.main-contents {
  max-width: 860px;
  margin: auto;
  background: #fff;
  padding: 0 0 40px;
  box-shadow: 0px 3px 10px 1px rgba(0, 0, 0, 0.1);
}

.contents-wrap h1{
  margin: 0;
}

@media (max-width: 767px){
#contents {
  padding: 0;
}
.contents-wrap{
  margin: 0px -15px;
}
}

.main-contents section{
  margin-top: 3.2em;
  padding: 0 40px;
}

.main-contents section .head2{
  font-weight: 700;
  font-family: var(--font-notosans);
  font-size: max(20px, min(4vw, 26px));
  border-bottom: #3C63AE 3px dotted;
  margin-bottom: 16px;
  line-height: 1.4;
  position: relative;
  padding-left: 16px;
  margin-left: 37px;
  padding-bottom: 2px;
}
.main-contents section .head2::before{
  content: '';
  background: url(/webg/contents/rito_iryo1/images/head-i.png) no-repeat;
  width: 46px;
  height: 46px;
  display: inline-block;
  background-size: contain;
  position: absolute;
  left: -37px;
  bottom: -4px;
}

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

.main-contents section a:not(:root),
.modal-body figure a {
  font-family: var(--font-notosans);
  color: #C81333;
  font-weight: 700;
  text-decoration: underline;
}
.main-contents section a:not([data-toggle]):not(:root),
.modal-body figure a{
  color: #333;
}
.main-contents section a:hover:not(:root),
.modal-body figure a:hover {
  text-decoration: none;
}

.profile-box{
  border: 1px solid #3C63AE;
  padding: 15px;
}
.profile-head{
  font-weight: 700;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  color: #3C63AE;
}
.profile-head small{
  color: #3C63AE;
  font-weight: 700;
}
.profile-ttl{
  color: #c7d2e7;
}
.profile-box p{
  font-size: 14px;
  margin-bottom: 0;
  line-height: 1.6;
}

.genepro-box{
  margin-top: 2em;
  border-top: 1px solid;
  padding-top: 1em;
}
.genepro-box p{
  font-family: "Times New Roman",Times,"ヒラギノ明朝 Pro","Hiragino Mincho Pro","游明朝",YuMincho,"HGS明朝E","ＭＳ Ｐ明朝","MS PMincho",serif;
  text-indent: -1em;
  margin-left: 52px;
}
.genepro-box p strong{
  font-family: var(--font-notosans);
}
p strong .asterisk{
  color: #E50713;
}

.ad-box{
  margin-top: 4em;
  padding: 20px 30px;
  background: #DCEBF8;
  font-weight: 700;
  line-height: 1.5;
}
.ad-info p{
  font-family: var(--font-notosans);
}
.ad-info .ad-head{
  margin-left: -8px;
  margin-bottom: 6px;
}
.ad-info .title{
  font-size: 18px;
  text-indent: -1.9em;
  margin-left: 1.9em;
  margin-bottom: 6px;
  margin-top: 20px;
}
.ad-info .title::before{
  content: '▶';
  color: #595757;
  font-size: 80%;
  position: relative;
  top: -1px;
}
.ad-info .txt{
  font-weight: 400;
  font-size: 14px;
  margin-left: 2em;
}
.ad-book{
  padding-top: 20px;
}
.ad-book a{
  display: grid;
  gap: 20px;
  grid-template-columns: 110px auto;
  align-items: center;
  justify-content: center;
  background: #f4f7fa;
  padding: 15px;
  margin: auto;
  border-radius: 6px;
}
.ad-book a p{
  font-size: 18px;
}
.ad-box a p small{
  font-size: 80%;
}

.series-box{
  margin-top: 3em;
  border: #3C63AE 2px solid;
  font-weight: bold;
  border-radius: 5px;
  background: #fff;
}
.series-container{
  position: relative;
}
.series-container::before{
  content: attr(data-text)"";
  position: relative;
  top: -2px;
  left: 0;
  background: #3C63AE;
  padding: 7px 14px 9px;
  font-size: 1.4rem;
  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:not(:root){
  text-decoration: none;
  transition: all .3s;
}
.series-inner p{
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
  margin-bottom: 0;
  font-weight: 400;
}

.pan_navi{
  margin-top: 3em;
  padding-left: 20px;
}

.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%;
}
[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{
  font-size: 16px;
}
figure.table .table-head{
  background: #3C63AE;
  color: #fff;
  padding: 5px 15px;
  font-weight: 700;
  line-height: 1.4;
}
figure.table .table-inner{
  border: 1px solid #7D7D7D;
  border-top: none;
  padding: 10px 15px;
  line-height: 1.5;
}
figure.table .table-inner ol{
  padding-left: 20px;
  margin-bottom: 0;
}
figure.table .table-inner ol li:not(:last-child){
  margin-bottom: .4em;
}
figure.table .fig-txt{
  font-size: 14px;
  margin-top: 1em;
  line-height: 1.4;
}

.clear{
  clear: both;
}
@media (min-width:641px){
.fig-right{
  float: right;
  width: 47%;
  margin: 15px 0 15px 22px;
}
.table-right {
  margin: 0 0 15px 22px;
}
.fig-center {
  margin: 2.5em auto;
  width: 80%;
}
.fig-center.w70{
  max-width: 70%;
}
}

.clamp{
  display: inline-block;
}

@media (max-width: 767px){
  .main-contents section{
    margin-top: 2.4em;
    padding: 0 20px;
  }

  .main-contents section>p:not([class]){
    margin-left: 0;
  }

  .main-contents section .head2{
    margin-left: 26px;
  }
  .main-contents section .head2::before{
    width: 38px;
    height: 38px;
    left: -32px;
  }

  .genepro-box p{
    margin-left: 1em;
  }

  .ad-box{
    margin-top: 3em;
    padding: 20px 15px;
  }
}

@media (max-width: 640px){
  .series-box {
    margin-top: 3em;
  }
  .series-inner{
    padding: 30px 15px 30px;
    grid-template-columns: repeat(2, 120px);
    gap: 20px;
  }

  .ad-book a{
    gap: 15px;
  }

  .series-container::before{
    display: block;
    border-radius: 0;
    top: 0px;
  }

}
