﻿@charset "utf-8";
/* PC向け*/
.cp_qa03 .cp_actab, .cp_qa04 .cp_actab {
  position: relative;
  width: 100%;
  margin: 0 0 1em 0;
  color: #fff;
}
.cp_qa03 .cp_actab input, .cp_qa04 .cp_actab input {
  display: none;
}
/* 質問 */
.cp_qa03 .cp_actab label, .cp_qa04 .cp_actab label {
  line-height: 1.6em;
  position: relative;
  display: grid;
  grid-template-columns: 5% 1fr;
  margin: 0 0 0 0;
  padding: 1em 3em 1em 2.5em;
  cursor: pointer;
  /* text-indent: 1em; */
  border-radius: 0.5em;
  background: #02a58d;
}
.cp_qa04 .cp_actab label {
  line-height: 1.6em;
  position: relative;
  display: grid;
  grid-template-columns: 5% 1fr;
  margin: 0 0 0 0;
  padding: 1em 3em 1em 2.5em;
  cursor: pointer;
  /* text-indent: 1em; */
  border-radius: 0.5em;
  background: #e8bd61;
}
/*
.cp_qa03 .cp_actab label::before {
  content: 'Q';
  font-size: 1.5em;
  margin-left: -1.5em;
  padding-right: 0.5em;
}*/
.cp_qa03 .cp_actab label:hover {
  color: #fff;
  background: #02a58d9d;
  transition: all 0.3s;
}
.cp_qa04 .cp_actab label:hover {
  color: #fff;
  background: #e8bd619d;
  transition: all 0.3s;
}
.qtxt {
  padding: 0 3rem 0 1rem;
}
.question {
  margin: 0;
  font-size: 2rem;
  justify-content: center;
  align-content: center;
}
/* --質問の＋アイコン */
.cp_qa03 .cp_actab label::after, .cp_qa04 .cp_actab label::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  content: '+';
  font-size: 2em;
  font-weight: bold;
  line-height: 2em;
  display: inline-block;
  width: 2em;
  height: 2em;
  transition: transform 0.3s;
}
/* 答え */
.cp_qa03 .cp_actab .cp_actab-content, .cp_qa04 .cp_actab .cp_actab-content {
  position: relative;
  overflow: hidden;
  max-height: 0;
  padding: 0 0 0 3em;
  border-radius: 0 0 0.5em 0.5em;
  transition: max-height 0.2s;
  background: #fff;
}
.cp_qa03 .cp_actab .cp_actab-content::before,.cp_qa04 .cp_actab .cp_actab-content::before {
  position: absolute;
  content: 'A';
  font-size: 1.5em;
  margin: 0.4em 0 0 -1.2em;
  padding: 0;
}
.cp_qa03 .cp_actab .cp_actab-content p,.cp_qa04 .cp_actab .cp_actab-content p {
  margin: 1em 1em 1em 0;
}
/* 質問を開いた時の仕様 */
/* --答えの高さ */
.cp_qa03 .cp_actab input:checked ~ .cp_actab-content {
  max-height: 60em;
  color: #473933;
  /* border: 10px solid rgba(27,37,56,0.1); */
  border: 10px solid #02a58d;
}
.cp_qa04 .cp_actab input:checked ~ .cp_actab-content {
  max-height: 60em;
  color: #473933;
  /* border: 10px solid rgba(27,37,56,0.1); */
  border: 10px solid #e8bd61;
}
/* 質問をクリックした時のアイコンの動き */
.cp_qa03 .cp_actab input:checked ~ label, .cp_qa04 .cp_actab input:checked ~ label {
  color: #fff;
  border-radius: 0.5em 0.5em 0 0;
}
/* 質問をクリックした時の+の動き */
.cp_qa03 .cp_actab input[type=checkbox]:checked + label::after,
.cp_qa04 .cp_actab input[type=checkbox]:checked + label::after {
  transform: rotateZ(45deg);
  transform-origin: 50% 50%;
}
@media only screen and (max-width: 768px) {

}

/* スマホ向け：961px～ */
@media only screen and (max-width: 768px) {
  .cp_qa03 .cp_actab label, .cp_qa04 .cp_actab label {
      padding: .5em;
  }
  .qtxt {
      padding: 0 2em;
  }
  .cp_qa03 .cp_actab label::after, .cp_qa04 .cp_actab label::after {
      width: 1em;
  }
}

