/* News　*/

.main-trouble-container {
  display: grid;
  gap: 0.5em;
  justify-content: left;
  align-items: center;
  font-size:0.95rem;
}

h3.trouble-category-title {
  margin: 0 0 1rem 0;
}
h3.trouble-category-title:first-child {
margin-top: 1rem;
}

.trouble-row {
  border: 1px solid #dcdcdc;
  border-radius: 5px;
}

.trouble-check{
  display: none;
}
.trouble-label{
  display: flex;
  padding: 0.5rem 0.7rem;
font-weight:500;
user-select:none;
cursor: pointer;
  position: relative;
  text-align: center;
  border-radius: 5px;
  transition: color 0.3s, border-color 0.3s;
  margin:0;
  flex-wrap: nowrap;
  align-items:center;
  column-gap: 0.8em;
  row-gap: 0.5em;
}
.trouble-prefix {
  white-space: nowrap;
  line-height: 1;
  padding: 0.4em 0.6em 0.6em;
  border-radius: 3px;
  background-color: #4d83a4;
  color: #FFFFFF;
  font-size: 0.95em;
}
.trouble-title{
  text-align:left;
}

.trouble-row.active{
border: 1px solid #fe6f49;
margin: 0.5rem 0;
}
.trouble-row.active .trouble-prefix{
background-color: #fe6f49;
}

.trouble-row.active .trouble-label{
  font-weight: 500;
}
.trouble-row.non-active .trouble-label{
  border: none;
}

.trouble-content{
  max-height: 0; 
  opacity: 0;
  padding: 0 20px;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 0.3s; 
  visibility: hidden;
  letter-spacing:0.05em;
  border-radius: 5px;
  line-height:1.8;
  overflow: hidden;
}

.trouble-row.active .trouble-content{
  max-height: 100%;
  opacity: 1;
  padding: 10px 20px;
  visibility: visible;
  border-top: 1px dashed #dcdcdc;
  border-radius: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s;
}



.trouble-answer-title {
  font-weight: 500;
  margin-bottom: 1rem;
  padding-left: 0.7rem;
  position: relative;
}
.trouble-answer-title::before {
  content: "";
  width: 3px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #fe6f49;
  border-radius: 2px;
}

.trouble-answer-sub-title {
  margin-top: 1.5em;
  margin-bottom: 0.5rem;
  padding: 0.3em 0.7em;
  width: fit-content;
  border-radius: 4px;
  background-color: #7c7c7c;
  color: #FFFFFF;
  line-height: 1.5em;
  font-size: 0.95em;
}

.trouble-answer-content {
  padding: 0.5em;
}


.trouble-flex-img{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  align-items: center;
  margin: 1.5rem 1rem;
}
.trouble-flex-img img{
  border-radius: 4px;
  border: 1px solid #e8e8e8;
  width: 100%;
  max-width: 300px;
}

.trouble-answer-content-video{
  max-width:580px;
  margin: 2em 1em;
}
.trouble-answer-content-video-wrap{
  position:relative;
  width:100%;
  height:0;
  padding-top:55%;
}

.trouble-divider{
  border: 0;
  border-top: 2px solid #f4f4f4;
  margin: 3em 0;
}

.trouble-img-caption-wrap{
  position: relative;
  font-size: 0.9em;
}
.trouble-img-caption-top{
  color: #FFFFFF;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 0.5em;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 4px 4px 0 0;
  border: 1px solid #e8e8e8;
  border-bottom: none;
}
.trouble-img-caption-bottom{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5em;
  line-height: 1.5em;
  color: #FFFFFF;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius:  0 0 4px 4px;
  border: 1px solid #e8e8e8;
  border-top: none;
}


.trouble-answer-flex {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1rem;
  column-gap: 2.5rem;
  justify-content: flex-start;
  align-items: center;
}

.trouble-answer-flex-image img {
  border-radius: 4px;
  border: 1px solid #bdbdbd;
  width: 100%;
  max-width: 300px;
}
.trouble-answer-flex-text {
  max-width: 700px;
}

.trouble-answer-flex-wrap {
  margin: 1rem 0;
}

.trouble-answer-flex:not(:last-child) {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dotted #dedede;
}

.trouble-link{
  color: #fe6f49;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .trouble-flex-img{
    margin: 1rem 0.3rem;
  }
  .trouble-answer-content-video{
    margin: 1rem 0;
  }
}

