
:root {
    --surface-color: #fff;
    --curve: 40;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    /* font-family: 'Noto Sans JP', sans-serif; */
    background-color: #f8fafe;
  }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 5vw;
    padding: 0;
    list-style-type: none;
  }
  
  .card {
    position: relative;
    display: block;
    height: 448px;
    border-radius: calc(var(--curve) * 1px);
    overflow: hidden;
    text-decoration: none;
    padding: 0px;
  }
  
  .card__image {
    width: 80%;
    height: auto;
    margin-top: -15%;
    /* margin-left: auto; */
    /* margin-right: auto; */
    max-width: 140%;
  }
  
  .card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;      
    border-radius: calc(var(--curve) * 1px);    
    background-color: var(--surface-color);      
    transform: translateY(100%);
    transition: .3s ease-in-out;
  }
  
  .card:hover .card__overlay {
    transform: translateY(0%);
    transition: .3s ease-in-out;
    height: 100%;
    margin-bottom: 0px;
    padding-bottom: 0px;
  }

  .card:hover .card__description {
    height: 100%;
    padding-top: auto;
    padding-bottom: auto;
    /* display: flex; */
    /* align-items: center; */ /* vertical */
    /* justify-content: center; */ /* horizontal */
  }

  .card:hover table {
    margin-top: auto;
    margin-bottom: auto;
  }

  .card:hover .card__title {
    /* transform: translateY(0); */
    /* display: none; */
    /* animation: fade_in_show 0.5s */
    /* transition: display 300ms; */
  }
  
  .card__header {
    background-color: var(--color1);
    position: relative;
    display: block;
    align-items: center;
    gap: 2em;
    padding: 2em;
    border-radius: calc(var(--curve) * 1px) 0 0 0;
    transform: translateY(-100%);
    transition: .3s ease-in-out;
    text-align: center;
    border: none;
  }
  
  .card__arc {
    width: 80px;
    height: 80px;
    position: absolute;
    bottom: 98%;
    right: 0;
    z-index: 1;
  }
  
  .card__arc path {
    fill: var(--color1);
    d: path("M 40 80 c 22 0 40 -22 40 -40 v 40 Z");
  }       
  
  .card:hover .card__header {
    transform: translateY(0);
    transition: .3s ease-in-out;
    /* display: none; */
    /* transition: display 300ms; */
  }
  
  .card__thumb {
    flex-shrink: 0;
    width: 50px;
    height: 50px;      
    border-radius: 50%;      
  }
  
  @keyframes fade_in_show {
    0% {
         opacity: 0;
         transform: scale(0)
    }

    100% {
         opacity: 1;
         transform: scale(1)
    }
}

  .card__title {
    font-size: 20px;
    margin: 0 0 .3em;
    color: white;
    font-weight: bold;
    -webkit-transition: .3s;
    transition: .3s;
  }
  
  .card__tagline {
    display: block;
    margin: 1em 0;
    font-family: "MockFlowFont";  
    font-size: .8em; 
    color: #D7BDCA;  
  }
  
  .card__status {
    font-size: .8em;
    color: var(--color1);
  }
  
  .card__description {
    padding: 0px 28px 24px;
    margin: 0;
    color: white;
    /* font-family: "MockFlowFont"; */
    /* display: -webkit-box; */
    /* -webkit-box-orient: vertical; */
    -webkit-line-clamp: 3;
    overflow: hidden;
    background-color: var(--color1);
    font-weight: 100;
    /* text-align: right; */
  }    

  .card__description tr, .card__description th {
    color: white;
  }

  .card-li{
    margin-top: 86px;
    margin-bottom: 20px;
  }

  .card{
    /* pointer-events: none; */
    text-align: center;
  }

  /* @media (max-width: 600px) {
    .card__image{
      width: 140%;
      height: auto;
      margin-top: -86px;
      margin-left: -76px;
      max-width: 140%;  
    }
  } */

  /* @media (max-width: 767) {
    .card__image{
      width: 140%;
      height: auto;
      margin-top: -86px;
      margin-left: -76px;
      max-width: 140%;  
    }
  } */
  @media only screen and (min-width: 452px) and (max-width: 767px) {
    .card__image{
      width: 73%;
      /* height: auto; */
      /* margin-top: -50%; */
      /* margin-left: -22%; */
      max-width: 98%;
      margin-top: -8%;
    }
  }
  

  .table-bordered td, .table-bordered th{
    direction: rtl;
    text-align: right;
  }
