.col-xs-12.col-sm-10.col-md-9.pull-right {
  background: #e8f3d9;
}
.hidden-xs.col-sm-2.col-md-3 {
  padding-right: 30px;
}

.contents-wrap {
  max-width: 1000px;
  background: #fff;
  padding: 0 50px 20px;
  margin-inline: auto;
}

.contents-wrap .breadcrumb{
  background: #fff;
  padding: 0;
  padding-top: 20px;
  font-size: 12px;
}
.contents-wrap .breadcrumb a{
  color: inherit;
  text-decoration: underline;
}

.contents-wrap ul,
.contents-wrap ol{
  padding-left: 20px;
}

.contents-wrap h1 {
  padding: 0px;
  margin: 0 -50px 40px;
}

article.webarticle {
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", "verdana", sans-serif;
}

article.webarticle p {
  font-size: max(14px, min(2vw, 16px));
  font-family: "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", "verdana", sans-serif;
}

.intro {
  padding: 0 max(0em, min(5vw, 5em));
}

.date:not(:root){
  font-size: small;
  text-align: right;
  color: #999;
}

article.webarticle .category-head {
  text-align: center;
  width: fit-content;
  margin: 3em auto 0;
  font-size: 20px;
  font-weight: 700;
  position: relative;
  padding: 0 0.5em 0.2em;
  background-image: linear-gradient(0deg, transparent 0 10px, #fff 10px),
    repeating-linear-gradient(135deg, #e3ec7e 0 3px, transparent 3px 6px);
}

.qa-box {
  background-color: #f5f2ec;
  border: 3px solid #3bb149;
  border-radius: 15px;
  padding: 0;
  margin-top: max(2em, min(3vw, 3em));
}
.box-icon {
  width: 10.5%;
  top: -20px;
  left: 10px;
}
.qa-text {
  padding-left: 0;
  width: auto;
}
.q-head {
  background: #3bb149;
  color: #fff;
  border-radius: 12px 12px 0 0;
  padding: 10px 10px 10px 14%;
  margin-inline: auto;
  min-height: 80px;
  display: grid;
  align-items: center;
}
.q-head a {
  color: inherit;
  text-decoration: underline;
}
.q-head a:hover {
  text-decoration: none;
}
article .qa-box h2 {
  font-weight: bold;
  font-family: sans-serif;
  line-height: 1.5;
  margin: 0;
  font-size: max(20px, min(2.5vw, 30px));
}
article .qa-box h2 .sub{
  display: block;
  font-size: 70%;
}
.qa-box p:not(:root){
  margin-left: 0;
}
.q-detail {
  padding: 3em 10px;
  width: 80%;
  margin-inline: auto;
}
.case-box {
  margin: 0;
  font-size: max(14px, min(2vw, 16px));
  line-height: 1.7;
}

.case-head:not(:root){
  border: none;
  margin: 0 0 10px;
  font-size: max(16px, min(2.5vw, 22px));
}

.q-txt {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 1em;
}
.q-num {
  color: #fff;
  padding: 0 5px 0px 20px;
  background: linear-gradient(transparent 75%, #dae7ce 75%);
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 180%;
  display: inline-block;
  margin: 0 0 0 -10px;
  text-shadow: 3px 3px 0px #3bb149, -3px 3px 0px #3bb149, 3px -3px 0px #3bb149,
    -3px -3px 0px #3bb149, 3px 0px 0px #3bb149, 0px 3px 0px #3bb149,
    -3px 0px 0px #3bb149, 0px -3px 0px #3bb149;
  letter-spacing: 6px;
}

.Q-box {
	margin: max(1em, min(2vw, 2em)) 0 0;
	position: relative;
	font-size: 22px;
	background: #fff;
	padding: 15px 10px;
}
.Q-box-contain{
	display: flex;
	align-items: flex-start;
}
.Q-box .Q-box-question h4{
	font-weight: 700;
	margin: 0 0 1em;
	font-size: max(18px, min(2.5vw, 26px));
	line-height: 1.4;
}
.Q-box img {
	width: 75px;
	margin-right: 10px;
	margin-bottom: 6px;
}
.Q-box ul{
	list-style: none;
	margin-top: 0.2em;
	margin-bottom: 0;
	padding-left: 0;
}
.Q-box ul li {
	font-size: max(14px, min(2vw, 16px));
	font-weight: 700;
  text-indent: -1em;
  margin-left: 1em;
}
.Q-box ul li:not(:last-child) {
	margin-bottom: 0.4em;
}
.Q-box p:not(:root){
	font-weight: 400;
	font-size: 14px;
}


.answer-btn {
  margin: 4em auto 4.5em;
  position: relative;
  width: fit-content;
}

.answer-btn a {
  position: relative;
  padding: 17px 62px 14px 84px;
  font-size: max(18px, min(2.5vw, 20px));
  font-weight: 700;
  background: #ff9e03;
  border: none;
  border-radius: 50px;
  transition: all 0.25s;
  border-bottom: 4px solid #d68400;
	overflow: hidden;
}
.answer-btn a::before {
	content: "";
	background-color: rgba(255,255,255,0.5);
	height: 100%;
	width: 3em;
	display: block;
	position: absolute;
	top: 0;
	left: -4.5em;
	transform: skewX(-45deg) translateX(0);
	transition: none;
}
.answer-btn a:hover {
  background: #ff9e03;
  border-bottom: 4px solid #d68400;
}
.answer-btn a:hover::before {
	transform: skewX(-45deg) translateX(18em);
	transition: all 0.5s ease-in-out;
}
.answer-btn img {
  position: absolute;
  transform: scale(-1, 1);
  left: 25px;
  bottom: 4px;
  width: 46px;
  z-index: 2;
}

.color-dots {
  list-style-type: none;
  padding-left: 20px;
  font-size: max(14px, min(2vw, 16px));
  margin-bottom: 0;
}
.color-dots>li::before {
  content: "";
  border-radius: 100%;
  width: 8px;
  height: 8px;
  background-color: #aeaeae;
  display: inline-block;
  position: relative;
  top: -2px;
  left: -14px;
  margin-right: -7px;
}
.color-dots li {
  line-height: 1.75;
}
.color-dots li:not(:last-child) {
  margin-bottom: 0.6em;
}
.dots-none>li::before{
  content: none;
}
.color-dots ul {
  list-style: none;
  padding-left: 24px;
}
.color-dots ul>li{
  text-indent: 4px;
  margin-left: -4px;
}
.color-dots ul>li::before {
  content: '▶';
  width: 0;
  height: 0;
  color: #9e9f9e;
  font-size: 12px;
  left: -6px;
  position: relative;
  margin-left: -1.4em;
}
.color-dots ol{
  counter-reset: section;
  list-style-type: none;
  margin: 0.4em 0;
  padding-left: 10px;
}
.color-dots ol>li{
  margin-left: 1.4em;
}
.color-dots ol>li::before {
  counter-increment: section;
  content: counter(section) "）";
  margin-left: -1.4em;
}
.color-dots ol ul{
  list-style-type: disc;
  padding-left: 30px;
}
.color-dots ol ul>li::before{
  content: none;
}

#answer{
  padding-top: 70px;
  margin-top: -70px;
}

h2.backnumber{
  margin-bottom: 25px;
  text-align: center;
}
h2.backnumber>span{
  font-size: 20px;
  font-weight: 700;
  padding: 0 0.5em 0.2em;
  background-image: linear-gradient(0deg, transparent 0 10px, #fff 10px), repeating-linear-gradient(135deg, #e3ec7e 0 3px, transparent 3px 6px);
}

h3.resource {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: max(15px, min(2.5vw, 17px));
  border-left: 5px solid #3bb149;
  padding-left: 6px;
  line-height: 1.4;
}
h3.resource small a{
  color: inherit;
  text-decoration: underline;
}
h3.resource small a:hover{
  text-decoration: none;
}

a[rel*="naiyou"]{
  font-weight: 700;
  color: #C81333;
  text-decoration: underline;
}
a[rel*="naiyou"]:hover{
  text-decoration: none;
}

table.drill-list {
  border-bottom: 1px solid #ddd;
  border-top: 2px solid #ddd;
  margin-bottom: 3em;
  position: relative;
}
table.drill-list::before {
  content: "";
  background: #3bb149;
  width: 40px;
  height: 2px;
  top: 0;
  left: 0;
  /* position: absolute; */
}
table.drill-list tbody tr{
  transition: all .25s;
  cursor: pointer;
}
table.drill-list tbody tr > * {
  padding-top: 1em;
  padding-bottom: 1em;
}
table.drill-list tbody tr:hover{
  transform: translateY(-3px);
  -webkit-transform: translateY(-3px);
  -moz-transform: translateY(-3px);
  box-shadow:0 15px 30px rgba(0,0,0,.15),0 10px 8px rgba(0,0,0,.15);
}
table.drill-list tbody tr:hover *{
  border-color: transparent;
}
table.drill-list tbody th {
  font-weight: 400;
  font-size: 85%;
  width: 55px;
  padding-left: 0;
  padding-right: 0;
  position: relative;
}
table.drill-list th span {
  background: #3bb149;
  padding: 2px 6px;
  position: absolute;
  top: 14px;
  line-height: 16px;
  color: #fff;
  border-radius: 2px;
}
table.drill-list tr td:first-of-type {
  font-size: 14px;
}
table.drill-list tr td:last-of-type {
  color: #999;
}

.drill-list .new{
  font-weight: 700;
  font-size: 85%;
  color: #ec6d65;
  margin-left: 10px;
  background: #fbe8e7;
  padding: 1px 10px;
  border-radius: 40px;
}

section.reference{
  margin-top: 4em;
}
.reference ol{
  font-size: max(12px, min(1.5vw, 14px));
  counter-reset: reference;
  list-style-type: none;
  padding-left: 0;
}
.reference ol li{
  text-indent: -1.7em;
  padding-left: 1.7em;
  word-break: break-all;
}
.reference ol li:not(:last-of-type){
  margin-bottom: 0.4em;
}
.reference ol li::before{
  counter-increment: reference;
  content: counter(reference) '）';
}

.reference h4{
  font-size: 16px;
}

.bookshelf-wrap{
  display: flex;
  flex-flow: wrap;
  gap: 20px;
  justify-content: center;
}
.bookshelf{
  width: 140px;
}

@media (min-width: 768px) {
  #contents {
    padding-right: 0;
  }
}
@media (max-width: 767px) {
  .col-xs-12.col-sm-10.col-md-9.pull-right {
    padding: 0;
  }

  .q-detail {
    width: 100%;
    padding: 20px;
  }

  .contents-wrap {
    padding: 0 15px;
  }

  .contents-wrap h1 {
    margin: 0 -20px 30px;
  }

  .intro {
    padding: 0;
  }
  .intro p {
    font-size: 12px;
  }

  article.webarticle .category-head,
  h2.backnumber>span {
    font-size: 16px;
  }

  .box-icon {
    width: 60px;
    left: -10px;
    top: -16px;
  }

  .q-head {
    padding-left: 58px;
    min-height: 75px;
  }

  table.drill-list tbody tr > *{
    display: block;
    border: none;
    padding: 0;
  }
  table.drill-list tbody tr{
    border-top: 1px solid #ddd;
  }
  table.drill-list tbody tr:hover{
  border-color: transparent;
  }
  table.drill-list tbody th{
    padding-top: 1em;
    margin-bottom: 5px;
    font-size: 75%;
  }
  table.drill-list th span{
    position: unset;
    /* padding: 2px 8px; */
  }
  table.drill-list tr td:first-of-type{
    margin-bottom: 2px;
  }
  table.drill-list tbody td:last-child{
    padding-bottom: 1em;
    font-size: 12px;
    text-align: right;
    width: 100% !important;
  }

  .bookshelf{
    width: 20%;
  }

  .Q-box{
    padding-top: 10px;
  }
  .Q-box-contain{
    display: block;
  }
  .Q-box img{
    width: 52px;
  }

}

@media screen and (max-width: 400px) {
  .qa-text {
    margin-top: 0;
    padding-top: 0;
  }
}


/* 解答ページ
---------------------------- */
.answer-arrow{
  text-align: center;
  margin-bottom: max(200px, min(30vw, 300px));
}
.answer-arrow img{
  width: max(134px, min(18vw, 174px));
}

.answer-head{
  position: relative;
  background: #f7810b;
  color: #fff;
  border-radius: 12px 12px 0 0;
  padding: 10px 10px 10px 14%;
  min-height: 80px;
  display: grid;
  align-items: center;
  border: 3px solid #f7810b;
  border-bottom: none;
}

article .answer-head h2{
  color: #fff;
  font-size: max(18px, min(2.5vw, 26px));
  margin: 0;
  font-weight: 700;
  line-height: 1.6;
  display: grid;
  align-items: baseline;
  grid-template-columns: max(55px, min(8vw, 75px)) 1fr;
  gap: 15px;
}

article .answer-head h2 img{
  position: relative;
  top: 7px;
}

h3.head3:not(:root){
  color: #005BAC;
  font-size: max(18px, min(2.5vw, 20px));
  font-family: "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", "verdana", sans-serif;
  border-bottom: 1px solid #009AD9;
  padding-bottom: 4px;
  margin: 0 0 16px;
  line-height: 1.4;
  font-weight: 700;
}
h3.head3::before {
  content: '◆';
  color: #A4BBD3;
  margin-right: 6px;
}

.answer-box{
  border: 3px solid #f7810b;
  border-top: none;
  border-radius: 0 0 12px 12px;
  background: #f5f2ec;
  padding: 2.5em;
  margin-bottom: 1.2em;
}
.answer-box p:not(:root){
  margin: 0 0 10px;
}

.prev-btn{
  margin-top: 30px;
}
.prev-btn a{
  color: inherit;
  font-size: max(16px, min(2.5vw, 18px));
  font-weight: 700;
  border-bottom: 3px solid #e3ec7e;
  padding: 0 6px 4px;
  transition: all .25s;
}
.prev-btn a i{
  margin-right: 10px;
}
.prev-btn a:hover{
  text-decoration: none;
  border-color: #3bb149;
}

@media (max-width: 767px){
  .answer-box{
    padding: 20px;
  }
  .answer-head{
    padding-left: 58px;
    min-height: 75px;
  }

  article .answer-head h2{
    grid-template-columns: auto;
    gap: 5px;
  }
  article .answer-head h2 img{
    width: 50px;
    position: inherit;
  }
}
