@charset "UTF-8";

.p-sub-case-wrap{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.p-sub-case-wrap__main {
    width:calc((100% - 60px)/3);
    margin-right:30px;
    margin-bottom: 30px;
}
.p-sub-case-wrap__main a {
    width: 100%;
    box-shadow: 0 0 15px 0 rgba(177, 177, 188, 0.75);
    display: flex;
    flex-direction: column;
    transition: 0.3s ease-in-out;
}
.p-sub-case-wrap__main:nth-child(3n){ margin-right: 0px;}
.p-sub-case-wrap__main a:hover {
    transform: translate3d(0, -10px, 0)
}
.p-sub-case-wrap__main .p-sub-case-wrap__main-imgbox {
    width:100%;
    position: relative;
    background: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.p-sub-case-wrap__main-imgbox::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    content: '';
    background-image: -webkit-gradient(linear, left top, right top, from(#dd122b), to(#0e1336));
    background-image: -webkit-linear-gradient(left, #dd122b 0%, #0e1336 100%);
    background-image: linear-gradient(to right, #dd122b 0%, #0e1336 100%);
}
.p-sub-case-wrap__main .p-sub-case-wrap__main-imgbox figure {
    width: 100%;
    margin: 0 auto;
    transition: all .3s ease-out;
}
.p-sub-case-wrap__main a:hover .p-sub-case-wrap__main-imgbox figure {
    -moz-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
}
.p-sub-case-wrap__main .p-sub-case-wrap__main-textbox {
    width:100%;
    background: #fff;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.p-sub-case-wrap__main .p-sub-case-wrap__main-textbox p.p-sub-case-wrap__main-textbox-name {
    font-size:15px;
    color: #131313;
    margin-bottom:20px;
    font-weight:bold;
}
.p-sub-case-wrap__main .p-sub-case-wrap__main-textbox p.p-sub-case-wrap__main-textbox-ttl {
    color: #dd122b;
    font-size:20px;
    margin-bottom:10px;
    font-weight:bold;
}
.p-sub-case-wrap__main-textbox-text{
    font-size: 15px;
    font-weight: bold;
    color: #131313;
    margin-bottom:20px;
}
.p-sub-case-wrap__main-textbox-data{
    font-size: 15px;
    color: #7f7f92;
    border-bottom: 1px solid #7f7f92;
}
.p-sub-case-wrap__main .p-sub-case-wrap__main-textbox ul.p-sub-case-wrap__main-textbox-tag {
    width: 100%;
    margin: 20px auto 0;
    display: flex;
    flex-wrap: wrap;
}
.p-sub-case-wrap__main .p-sub-case-wrap__main-textbox ul.p-sub-case-wrap__main-textbox-tag li {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 5px 10px 4px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    border-radius: 30px;
    color: #7f7f92;
    border: 1px solid #7f7f92;
    font-size:12px;
}
@media (max-width: 599px) {
    .p-sub-case-wrap__main {
      width: 100%;
      margin-right: 0px;
      margin-bottom:30px;
  }
    .p-sub-case-wrap__main a {
        width: 100%;
        display: block;
    }
    .p-sub-case-wrap__main .p-sub-case-wrap__main-imgbox { width: 100%;}
    .p-sub-case-wrap__main .p-sub-case-wrap__main-textbox {
        width: 100%;
        padding: 20px 5%;
    }
    .p-sub-case-wrap__main .p-sub-case-wrap__main-textbox p.p-sub-case-wrap__main-textbox-ttl {
        font-size: 5vw;
        line-height: 1.5;
    }
   .p-sub-case-wrap__main .p-sub-case-wrap__main-textbox p.p-sub-case-wrap__main-textbox-name {
        font-size: 4.5vw;
        margin-bottom: 5px;
    }
    .p-sub-case-wrap__main-textbox-text{font-size: 4.5vw;}
    .p-sub-case-wrap__main-textbox-data{font-size: 3.5vw;}
    .p-sub-case-wrap__main .p-sub-case-wrap__main-textbox ul.p-sub-case-wrap__main-textbox-tag { margin: 15px auto 0;}
    .p-sub-case-wrap__main .p-sub-case-wrap__main-textbox ul.p-sub-case-wrap__main-textbox-tag li {
        margin-right: 5px;
        font-size: 3.5vw;
        border-radius: 100px;
    }
}

.p-sub-case-in-wrap__table{
    width:100%;
    text-align: left;
    font-size:15px;
    border: 1px solid #e7e7e7;
}
.p-sub-case-in-wrap__table tr{
    width:100%;
    border-bottom: 1px solid #e7e7e7;
}
.p-sub-case-in-wrap__table tr:last-of-type{border-bottom:none;}
.p-sub-case-in-wrap__table th{
    font-weight: bold;
    line-height: 60px;
    background: #dd122b;
    color: #fff;
    padding-left:20px;
}
.p-sub-case-in-wrap__table td{
    line-height: 60px;
    padding-left:20px;
}
.p-sub-case-in-wrap__table td:first-of-type{
    font-weight: bold;
    background: #f2f2f2;
    border-right: 1px solid #e7e7e7;
}
.p-sub-case-in-wrap__table td:first-of-type span{
    display: inline-block;
    vertical-align: middle;
    width:25px;
    margin-right:5px;
}
@media (max-width: 599px) {
    .p-sub-case-in-wrap__table th{
        display: none;
    }  
    .p-sub-case-in-wrap__table td{
        display:block; 
        line-height: 30px;
        padding:10px;
    }
}
    