@charset "UTF-8";
/* ----------------------------------------------------------------------
 faq
---------------------------------------------------------------------- */
/*-- common --*/
#qa {
  text-align: center;
  line-height: 1.5;
}

#qa h2 img{
  max-width: 100%;
  width: 382.89px;
  height: auto;
}

/*-- 説明 --*/
.qa_disc {
  margin: 30px auto; /* 上下の余白 */
}

/*-- カテゴリボタン --*/
.qa_btngp {
  margin-bottom: 30px;
}

.row {
  display: flex;
  flex-wrap:wrap;
}

/* 左右の余白 */
.qa_btngp li:not(:last-child)  {
  margin-right: 4px;
}

/* 上下の余白 */
.qa_btngp .top {
  margin-bottom: 4px;
}

/* ボタンの装飾 */
.qa_btngp li {
  flex-grow: 1;
  padding: 7px;
  list-style: none;
  border: solid 1px #9F1D1D;
  border-radius: 5px 5px 0px 0px;
  background:#fff;
  color: #9F1D1D;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
}

/* ボタンの装飾 > ボタン押下時*/
.qa_btn.is-active{
  background:#9F1D1D;
  color:#FFF;
  transition: all 0.2s ease-out;
}

/* ボタン選択時の表示/非表示 */
.qa_list label.qa_item{
  display:none;
}

.qa_list label.qa_item.is-show{
  display:block;
}

/*-- カテゴリタイトル --*/
.qa_title{
  display:none;
  font-size: 20px;
  color: #9F1D1D;
  border-bottom: solid 1px #9F1D1D;
  padding-bottom: 6px;
  margin-bottom: 30px;
}

.qa_title.is-show {
  display: inline-block;
}

/*-- FAQ --*/
.qa_list {
	text-align: left;
}

.qa_list label{
  display: block;
  position: relative;
  width: 100%;
  padding: 0px;
  margin: 0px;
  cursor: pointer;
}

.qa_list label > input {
  display: none;
}

.qa_list label > dt,
.qa_list label > label > dd {
  position: relative;
  padding: 15px 50px 15px 50px;
  font-size: 15px;
  border-bottom: 1px solid #333;
  background-color: #fff;
}

.qa_list label > label > dd {
  background-color: #eee;
  padding: 15px 20px 15px 50px;
}

/*-- 遷移ボタン --*/
.qa_list a {
  display: inline-block;
  background-color: #9F1D1D;
  color: #fff;
  padding: 10px 15px;
  max-width: 100%;
}

/*-- QAアイコン --*/
.qa_list label > dt::before,
.qa_list label > label > dd::before {
  position: absolute;
  top: 0;
  left: 0;
}

.qa_list label > dt {
  z-index: 1;
}

.qa_list label > dt::before {
  content: url(../img/qa/qa_icon_q.png);
  height: 100%;
}

.qa_list label > label > dd::before {
  content: url(../img/qa/qa_icon_a.png);
  height: 100%;
}

/*-- 下向き矢印 --*/
.qa_list label > dt::after {
  display: inline-block;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) rotate(135deg);
  width: 8px;
  height: 8px;
  border-top: 2px solid #9F1D1D;
  border-right: 2px solid #9F1D1D;
  content: "";
}

/* 回答表示/非表示の制御 */
.qa_list label > label > dd {
  position: absolute;
  top: 0px;
  left: 0px;
  transform: translateY(-2em);
  margin: 0px;
  visibility: hidden;
}

.qa_list label > input:checked ~ label > dd {
  position: relative;
  transform: translateY(0px);
  visibility: visible;
  transition: 0.5s;
  cursor: default;
}

@media screen and (max-width:767px){
  #qa h2 img{
    width: 268.02px;
    height: auto;
  }

  /*-- カテゴリボタン --*/
  /* サイズの調整 */
  .qa_btn {
    width: calc( 50% - 20px ); /*-- 50% - [padding + border + margin]  --*/
  }
  .qa_btngp .btn_a {
    width: 100%;
    margin: 0 0 4px 0;
  }

  /* 余白の調整 */
  .qa_btngp li:not(:last-child)  {
    margin-right: 0px;
  }
  .qa_btngp .top li:nth-child(even) {
    margin-right: 4px;
  }
  .qa_btngp .bottom li:nth-child(odd) {
    margin-right: 4px !important;
  }
  .qa_btngp .bottom li:nth-child(1), .qa_btngp .bottom li:nth-child(2) {
    margin-bottom: 4px;
  }

  /*-- カテゴリタイトル --*/
  .qa_title{
    font-size: 18px;
  }  
}
