


.details-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  background: #FFF3E0;
  margin-top: 30px;
}


.details {
  color: #FF9800;
  line-height: 2;
  border: none;
  width: 100%;
  margin: 0 auto 20px;
  transition: all 0.4s ease-out;
  
}
.details__summary {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
  padding: 15px 40px 15px 16px;
  font-size: 0.83em;
  font-weight: bold;
}
.details__summary::-webkit-details-marker {
  display: none;
}
.details__summary::before,
.details__summary::after {
  display: block;
  box-sizing: border-box;
  content: "";
  position: absolute;
  top: 50%;
  right: 40px;
  width: 4px; /* 棒の幅（太さ） */
  height: 25px; /* 棒の高さ */
  background: #FF9800;
  border-radius: 2px; /* 棒の四隅の丸み*/
  transition: all 0.4s ease-out;
}

.details__summary::before {
  transform: translate(-50%,-50%) rotate(0deg);
}
 
.details__summary::after {
  transform: translate(-50%,-50%) rotate(-90deg);
}

.details[open] >  .details__summary::before{
  transform: translate(-50%,-50%) rotate(45deg);
  transition: all 0.4s ease-out;
}

.details[open] >  .details__summary::after {
  transform: translate(-50%,-50%) rotate(-45deg);
  transition: all 0.4s ease-out;
}
.details__content {
  overflow: hidden;
  margin: 0;
  padding-left: 16px;
  padding-right: 16px;
}
.details__content > * {
  margin: 0;
  /* padding-top: 5px;
  padding-bottom: 5px; */
}




.details__content > .details {
  background-color: #fff;
  border-radius: 10px;
  line-height: 2;
  border: none;
  width: 100%;
  margin: 10px auto 20px;
  transition: all 0.4s ease-out;
}


.details__content > .details > .details__summary {
  color: #3E2723;
  font-size: 0.67em;
  font-weight: 300;
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
  padding: 10px 40px 10px 16px;
  display: flex;
  align-items: center;
  transition: all 0.4s ease-out;
}


.details__content > .details > .details__content {
  color: #3E2723;
  font-size: 0.67em;
  font-weight: 300;
  display: block;
  cursor: pointer;
  margin: 0;
  transition: all 0.4s ease-out;
}

.details__content > .details > .details__content .qa__content {
  position: relative;
  padding: 20px 40px 10px 0px;
  display: flex;
  align-items: flex-start;
}




.qa-text {
  font-size: .65em;
  flex: 1; 
  padding-right: 3%;
}


.qa-text span{
  color: #EF6C00;
}


.qa-link {
    color: orange;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 0.4em;
}


.qa-q {
  width: 40px;
  height: 40px;
  position: relative;
  background-color: #FFB74D;
  border-radius: 50%;
  display: inline-flex;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  transition: all 0.4s ease-out;
}


.qa-q span {
/* margin: auto; */
font-size: .65em;
margin-top: 8%;
}



.qa-a {
  width: 40px;
  height: 40px;
  position: relative;
  background-color: #FFE0B2;
  color: #FF9800;
  border-radius: 50%;
  margin-right: 10px;
  font-weight: bold;
  flex-basis: 40px;
  display: flex;
  justify-content: center;
  transition: all 0.4s ease-out;
}

.qa-a span {
  /* margin: auto; */
  font-size: .65em;
  margin-top: 8%;
  }
  




.details__content > .details .qa-q {
  background-color: #FFB74D;
  transition: all 0.4s ease-out;
  color:#fff;
  font-weight: bold;
}



.details__content > .details[open] .qa-q {
  background-color: #F57C00;
  transition: all 0.4s ease-out;
}


.details__content > .details[open] > .details__summary {
  background-color: #FFE0B2;
  border-radius: 10px 10px 0 0;
}




.details__content > .details[open] {
  box-shadow: 0px 0px 7px 0 rgba(0, 0, 0, .3);
}



.details__content > .details .details__summary::before,
.details__content > .details .details__summary::after {
  display: block;
  box-sizing: border-box;
  content: "";
  position: absolute;
  top: 50%;
  right: 40px;
  width: 3px; /* 棒の幅（太さ） */
  height: 20px; /* 棒の高さ */
  background: #FF9800;
  border-radius: 2px; /* 棒の四隅の丸み*/
  transition: all 0.4s ease-out;
}



a {
  -webkit-tap-highlight-color:rgba(0,0,0,0);
  cursor:pointer;
}



@media screen and (max-width: 767px) {
  /* スクリーンサイズが767px以下の場合に適用 */

.details__summary {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
  padding: 15px 40px 15px 16px;
  font-size: 1.2em;
  font-weight: bold;
}

.details__content > .details > .details__summary {
  color: #3E2723;
  font-size: 1em;
  font-weight: 300;
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
  padding: 10px 40px 10px 10px;
  display: flex;
  align-items: flex-start;
}


.details__summary::before, .details__summary::after {
  top: 33px;
  right: 26px;
  height: 22px;
}


.details__content > .details .details__summary::before,
.details__content > .details .details__summary::after {
  display: block;
  box-sizing: border-box;
  content: "";
  position: absolute;
  top: 26px;
  right: 20px;
}

.details__content > .details > .details__content {
  color: #3E2723;
  font-size: 1em;
  font-weight: 300;
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
  padding: 10px 30px 10px 10px;
  display: flex;
  align-items: flex-start;
}

.details__content > .details > .details__content .qa__content {
  position: relative;
  padding: 5px 0px 10px 0px;
  display: flex;
  align-items: flex-start;
}


.qa-q {
  width: 30px;
  height: 30px;
  position: relative;
  background-color: #FFB74D;
  border-radius: 50%;
  display: inline-flex;
  transition: all 0.4s ease-out;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.qa-q span {
  /* margin: auto; */
  margin-top: -2.5px;
}

.qa-a {
  width: 30px;
  height: 30px;
  position: relative;
  background-color: #FFE0B2;
  color: #FF9800;
  border-radius: 50%;
  transition: all 0.4s ease-out;
  margin-right: 10px;
  font-weight: bold;
  flex-basis: 30px;
  display: flex;
  justify-content: center;
  margin-top: 2px;
}


.qa-a span {
  /* margin: auto; */
  margin-top: -2.5px;
}


} 