<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>97</ContextCount>
  <ElementCount>226</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>31</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>4</UnitCount>
  <MyReports>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>000 - Document - Document And Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/DocumentAndEntityInformation</Role>
      <ShortName>Document And Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>001 - Statement - Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ConsolidatedBalanceSheet</Role>
      <ShortName>Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>002 - Statement - Balance Sheets (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ConsolidatedBalanceSheet_Parentheticals</Role>
      <ShortName>Balance Sheets (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>003 - Statement - Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ConsolidatedIncomeStatement</Role>
      <ShortName>Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>004 - Statement - Statements Of Changes In Stockholders??? Equity/ (Deficit)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ShareholdersEquityType2or3</Role>
      <ShortName>Statements Of Changes In Stockholders??? Equity/ (Deficit)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>005 - Statement - Statements Of Changes In Stockholders??? Equity/ (Deficit) (Parentheticals)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ShareholdersEquityType2or3_Parentheticals</Role>
      <ShortName>Statements Of Changes In Stockholders??? Equity/ (Deficit) (Parentheticals)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>006 - Statement - Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ConsolidatedCashFlow</Role>
      <ShortName>Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>007 - Disclosure - Description of Organization and Business Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/DescriptionofOrganizationandBusinessOperations</Role>
      <ShortName>Description of Organization and Business Operations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>008 - Disclosure - Termination of Merger Agreement and Plan of Reorganization</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/TerminationofMergerAgreementandPlanofReorganization</Role>
      <ShortName>Termination of Merger Agreement and Plan of Reorganization</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>009 - Disclosure - Summary of Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/SummaryofSignificantAccountingPolicies</Role>
      <ShortName>Summary of Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>010 - Disclosure - Public Offering</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/PublicOffering</Role>
      <ShortName>Public Offering</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>011 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/RelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>012 - Disclosure - Trust Account and Fair Value Measurement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/TrustAccountandFairValueMeasurement</Role>
      <ShortName>Trust Account and Fair Value Measurement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>013 - Disclosure - Restatement of Previously Issued Balance Sheet</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/RestatementofPreviouslyIssuedBalanceSheet</Role>
      <ShortName>Restatement of Previously Issued Balance Sheet</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>014 - Disclosure - Accounting for Warrant Liability, Fair Value Measurement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/AccountingforWarrantLiabilityFairValueMeasurement</Role>
      <ShortName>Accounting for Warrant Liability, Fair Value Measurement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>015 - Disclosure - Stockholders??? Equity (Deficit)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/StockholdersEquityDeficit</Role>
      <ShortName>Stockholders??? Equity (Deficit)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>016 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>017 - Disclosure - Accounting Policies, by Policy (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/AccountingPoliciesByPolicy</Role>
      <ShortName>Accounting Policies, by Policy (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.hcic.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>018 - Disclosure - Summary of Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/SummaryofSignificantAccountingPoliciesTables</Role>
      <ShortName>Summary of Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hcic.com/role/SummaryofSignificantAccountingPolicies</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>019 - Disclosure - Trust Account and Fair Value Measurement (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/TrustAccountandFairValueMeasurementTables</Role>
      <ShortName>Trust Account and Fair Value Measurement (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hcic.com/role/TrustAccountandFairValueMeasurement</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>020 - Disclosure - Restatement of Previously Issued Balance Sheet (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/RestatementofPreviouslyIssuedBalanceSheetTables</Role>
      <ShortName>Restatement of Previously Issued Balance Sheet (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hcic.com/role/RestatementofPreviouslyIssuedBalanceSheet</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>021 - Disclosure - Accounting for Warrant Liability, Fair Value Measurement (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/AccountingforWarrantLiabilityFairValueMeasurementTables</Role>
      <ShortName>Accounting for Warrant Liability, Fair Value Measurement (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.hcic.com/role/AccountingforWarrantLiabilityFairValueMeasurement</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>022 - Disclosure - Description of Organization and Business Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/DescriptionofOrganizationandBusinessOperationsDetails</Role>
      <ShortName>Description of Organization and Business Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/DescriptionofOrganizationandBusinessOperations</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>023 - Disclosure - Summary of Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/SummaryofSignificantAccountingPoliciesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>024 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of earnings per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ScheduleofearningspershareTable</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of earnings per share</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>025 - Disclosure - Summary of Significant Accounting Policies (Details) - Schedule of Class A common stock subject to redemption</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ScheduleofClassAcommonstocksubjecttoredemptionTable</Role>
      <ShortName>Summary of Significant Accounting Policies (Details) - Schedule of Class A common stock subject to redemption</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/SummaryofSignificantAccountingPoliciesTables</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>026 - Disclosure - Public Offering (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/PublicOfferingDetails</Role>
      <ShortName>Public Offering (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/PublicOffering</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>027 - Disclosure - Related Party Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/RelatedPartyTransactionsDetails</Role>
      <ShortName>Related Party Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/RelatedPartyTransactions</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>028 - Disclosure - Trust Account and Fair Value Measurement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/TrustAccountandFairValueMeasurementDetails</Role>
      <ShortName>Trust Account and Fair Value Measurement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/TrustAccountandFairValueMeasurementTables</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>029 - Disclosure - Trust Account and Fair Value Measurement (Details) - Schedule of assets that are measured at fair value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ScheduleofassetsthataremeasuredatfairvalueTable</Role>
      <ShortName>Trust Account and Fair Value Measurement (Details) - Schedule of assets that are measured at fair value</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/TrustAccountandFairValueMeasurementTables</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>030 - Disclosure - Restatement of Previously Issued Balance Sheet (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/RestatementofPreviouslyIssuedBalanceSheetDetails</Role>
      <ShortName>Restatement of Previously Issued Balance Sheet (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/RestatementofPreviouslyIssuedBalanceSheetTables</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>031 - Disclosure - Restatement of Previously Issued Balance Sheet (Details) - Schedule of class common stock shares subject to redemption</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ScheduleofclasscommonstocksharessubjecttoredemptionTable</Role>
      <ShortName>Restatement of Previously Issued Balance Sheet (Details) - Schedule of class common stock shares subject to redemption</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/RestatementofPreviouslyIssuedBalanceSheetTables</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>032 - Disclosure - Accounting for Warrant Liability, Fair Value Measurement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/AccountingforWarrantLiabilityFairValueMeasurementDetails</Role>
      <ShortName>Accounting for Warrant Liability, Fair Value Measurement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/AccountingforWarrantLiabilityFairValueMeasurementTables</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>033 - Disclosure - Accounting for Warrant Liability, Fair Value Measurement (Details) - Schedule of warrant liabilities that are measured at fair value</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ScheduleofwarrantliabilitiesthataremeasuredatfairvalueTable</Role>
      <ShortName>Accounting for Warrant Liability, Fair Value Measurement (Details) - Schedule of warrant liabilities that are measured at fair value</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/AccountingforWarrantLiabilityFairValueMeasurementTables</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>034 - Disclosure - Accounting for Warrant Liability, Fair Value Measurement (Details) - Schedule of qualified hedge accounting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ScheduleofqualifiedhedgeaccountingTable</Role>
      <ShortName>Accounting for Warrant Liability, Fair Value Measurement (Details) - Schedule of qualified hedge accounting</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/AccountingforWarrantLiabilityFairValueMeasurementTables</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>035 - Disclosure - Accounting for Warrant Liability, Fair Value Measurement (Details) - Schedule of fair value of Level 3 warrant liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/ScheduleoffairvalueofLevel3warrantliabilitiesTable</Role>
      <ShortName>Accounting for Warrant Liability, Fair Value Measurement (Details) - Schedule of fair value of Level 3 warrant liabilities</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/AccountingforWarrantLiabilityFairValueMeasurementTables</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="f10k2021_hennessycap5.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>036 - Disclosure - Stockholders??? Equity (Deficit) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.hcic.com/role/StockholdersEquityDeficitDetails</Role>
      <ShortName>Stockholders??? Equity (Deficit) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.hcic.com/role/StockholdersEquityDeficit</ParentRole>
      <Position>37</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" original="f10k2021_hennessycap5.htm">f10k2021_hennessycap5.htm</File>
    <File>f10k2021ex31-1_hennessycap5.htm</File>
    <File>f10k2021ex31-2_hennessycap5.htm</File>
    <File>f10k2021ex32-1_hennessycap5.htm</File>
    <File>f10k2021ex32-2_hennessycap5.htm</File>
    <File>f10k2021ex4-5_hennessycap5.htm</File>
    <File>hcic-20211231.xsd</File>
    <File>hcic-20211231_cal.xml</File>
    <File>hcic-20211231_def.xml</File>
    <File>hcic-20211231_lab.xml</File>
    <File>hcic-20211231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles>
    <File>image_001.jpg</File>
    <File>image_002.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="1">http://fasb.org/srt/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="289">http://fasb.org/us-gaap/2021-01-31</BaseTaxonomy>
    <BaseTaxonomy items="39">http://xbrl.sec.gov/dei/2021q4</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
