.c-list-wrapper{
  .c-list-inner{
    &.c-list-primary{
      border-bottom:1px solid  var(--line-list-primary);
    }
    .c-list-row{
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      padding: 12px 16px;
      &:has(.c-list-caption-sub,.c-list-title-sub){
        padding: 14px 16px;
      }
      &:has(.c-list-accordionBtn){
        padding-right: 36px;
        position: relative;
        cursor: pointer;
      }
    }
    &.-isOpen{
      .c-list-accordionInner-wrapper{
        display: block;
      }
      .c-list-row{
        .c-list-accordionBtn{
          transform: rotate(270deg);
        }
      }
    }
    .c-list-accordionBtn{
      position: absolute;
      top:calc(50% - 24px / 2);
      right:8px;
      transform: rotate(90deg);
      width: 24px;
      height: 24px;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: transform 0.3s ease;
      .svg{
        width: 24px;
        height: 24px;
      }
    }
    .c-list-title,
    .c-list-caption{
      font-weight: 700;
      font-size: 16px;
      line-height: 1.5;
      letter-spacing: 0.64px;
      color: var(--color-text);
    }
    .c-list-title-sub,
    .c-list-caption-sub{
      text-align: end;
      color: var(--color-text3);
      font-weight: 400;
      font-size: 12px;
      line-height: 18px;
      letter-spacing: 0.24px;
    }
    .c-list-title-sub{
      text-align: start;
    }
    .c-list-title-wrapper,
    .c-list-caption-wrapper{
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 2px;
    }
    .c-list-title-wrapper{
      grid-column: 1;
    }
    .c-list-caption-wrapper{
      grid-column: 3;
      .c-list-caption{
        font-weight: 400;
        text-align: end;
      }
    }
  }
  .c-list-primary{
    box-sizing: content-box;
    background-color: var(--color-white);
    position: relative;
    .c-list-accordionInner-wrapper{
      display: none;
      width: 100%;
      grid-column: 1 / 4;
    }
  }
  .c-list-accordionInner{
    background-color: var(--color-bg);
  }
  .c-list-multi{
    .c-list-row{
      display: block;
      padding: 14px 16px;
      &:has(.c-list-accordionBtn){
        padding: 14px 40px 14px 16px;
      }
    }
    .c-list-accordionInner-wrapper{
      .c-list-accordionInner{
        .c-list-row{
          display: grid;
          .c-list-caption-wrapper{
            .c-list-caption{
              text-align: end;
            }
          }
        }
      }
    }
    .c-list-title-wrapper,
    .c-list-caption-wrapper{
      padding: 0;
    }
    .c-list-caption-wrapper{
      margin-top: 4px;
      .c-list-caption{
        text-align: start;
        line-height: 1.7;
      }
    }
  }
}
/* ダークモード */
.dark{
  .c-list-wrapper{
    .c-list-inner{
      .c-list-accordionBtn{
        .svg{
          path{
            stroke: var(--color-icon-normal);
          }
        }
      }
      .c-list-title,
      .c-list-caption{
        color: var( --color-white);
      }
      .c-list-title-sub,
      .c-list-caption-sub{
        color: var(--color-text-gray);
      }
    }
    .c-list-primary{
      background-color: var(--color-black2);
      border-bottom:1px solid  var(--line-button_gray);
    }
    .c-list-accordionInner{
      background-color: var(--color-black);
    }
  }
}
