/*
Theme Name: qa
Theme URI:
Description: よくあるご質問
Author: carttles
Version: 1.0.0
Tags:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blank
*/
.qatitle{
  background-color: #FFE1E1;
  width: 100%;
  padding: 8px;
  margin-top: 24px;
}
.qaBox {
  width: 100%;
  margin-bottom: 5px;
  border-bottom: 1px solid #d6dde3;
}

.qaBox summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1em 2em 1em 3em;
  color: #333333;
  font-weight: 600;
  cursor: pointer;
}

.qaBox summary::before,
.qaBox p::before {
  position: absolute;
  left: 1em;
  font-weight: 600;
  font-size: 1.3em;
}

.qaBox summary::before {
  color: #FFE1E1;
  content: "Q";
}

.qaBox summary::after {
  transform: translateY(-25%) rotate(45deg);
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-bottom: 3px solid #FFE1E1;
  border-right: 3px solid #FFE1E1;
  content: '';
  transition: transform .5s;
}

.qaBox[open] summary::after {
  transform: rotate(225deg);
}

.qaBox p {
  position: relative;
  transform: translateY(-10px);
  opacity: 0;
  margin: 0;
  padding: .3em 3em 1.5em;
  color: #000;
  transition: transform .5s, opacity .5s;
}

.qaBox[open] p  {
  transform: none;
  opacity: 1;
}

.qaBox p::before {
  color: #CC1D29;
  line-height: 1.2;
  content: "A";
}

.qaBox summary::-webkit-details-marker {
  /* Safariで表示されるデフォルトの三角形アイコンを消します */
  display: none;
}