@charset "utf-8";

.inner {
  max-width: 1130px;
}
#case_detail .inner {
  max-width: 1170px;
}

/* case */
main{
  background: url("../img/mainttl_img.jpg") no-repeat center center;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1920px;
  height: 240px;
  margin: 0 auto;
  text-align: center;
}
main h1{
  color: #FFF;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  position: relative;
  text-shadow: #000 1px 0 10px;
}
main h1:before {
  position: absolute;
  bottom: -10px;
  left: calc(50% - 40px);
  width: 80px;
  height: 3px;
  content: '';
  background: #cf0027;
}
#case{}
.case_entrylist{
  margin-bottom: 80px;
}
.case_entry{
  margin-top: 40px;
}
.case_entry a{
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.2);
  background: #FFF;
  display: flex;
}
.case_entry a:hover{
  text-decoration: none !important;
}
.ce_img{
  background: #DBDBDB;
  position: relative;
  width: 35%;
  max-width: 385px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ce_img img{
  object-fit: cover;
  height: 100%;
  width: auto;
}
.ce_img img.noimg{
  object-fit:none;
  height: auto;
  width: auto;
}
.ce_img span{
  background: #3e3a39;
  color: #FFF;
  padding: 10px 15px;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
}
.ce_info{
  padding: 40px 40px 80px 40px;
  flex: 1;
  position: relative;
}
.ce_head{
  margin-bottom: 30px;
}
.ce_info h3{
  border-bottom: 1px solid #dcdddd;
  font-size: 22px;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.ce_head p{
  text-align: right;
}
.ce_tag{
  background: url("../../common/img/ico_tag.svg") no-repeat left center;
  background-size: 25px auto;
  margin-top: 50px;
  font-size: 0;
  padding-left: 40px;
  text-align: left;
}
.ce_tag span{
  border-left: 1px solid #000;
  color: #2885ed;
  font-size: 16px;
  margin-left:8px;
  padding-left:8px;
}
.ce_tag span:first-child{
  border-left: none;
}
#case .arwlink{
  margin: 40px 0 80px;
}

/* case detail */

.case_detailhead{
  background: #FFF;
  display: flex;
  margin:0 auto 60px;
  max-width: 1170px;
  padding-top: 80px;
}
.case_detailhead .ce_img {
  position: relative;
  width: 48.5%;
  max-width: 565px;
}
.case_detailhead .ce_info h1{
  border-bottom: 1px solid #dcdddd;
  font-size: 22px;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.case_detailhead .ce_tag a{
  border-right: 1px solid #000;
  color: #2885ed;
  display: inline-block;
  font-size: 16px;
  margin-right:8px;
  padding-right:8px;
}
.case_detailhead .ce_tag a:first-child{
  border-left: none;
}
.case_detailhead .ce_tag {
  bottom: 0;
}
.case_information{
  max-width: 1130px;
  margin: 10px auto;
}
.case_information h2{
  font-size: 22px;
}
.ce_infocontents{
  border: 1px solid #dcdddd;
  border-radius: 10px;
  margin-top: 10px;
  padding: 20px 20px 20px 0;
}
.ce_infoinner{
  display: flex;
  align-items: center;
}
.ce_infoimg{
  border-right: 1px solid #9fa0a0;
  margin-right: 30px;
  padding: 0 60px 0 60px;
  text-align: center;
}
.ce_infoimg p{
  margin-bottom: 10px;
}
.ce_infodetail p{
  line-height: 180%;
}
.ce_infodetail p a{
  color: #2885ed;
}

.entryarea{}
.entryarea.kadai{
  background: url("../../common/img/kadai_arw.svg") no-repeat bottom center;
  padding-bottom: 57px;
}
#case_detail .entryarea .inner{
  max-width: 970px;
}
#case_detail .entryarea .inner.contentswap{
  padding-top: 40px;
}
#case_detail .entryarea.kaiketsu .inner.contentswap{
  padding-bottom: 40px;
}
.entryarea h2,.entryarea h3,.entryarea h4,.entryarea p,.entryarea img,.case_layout{
  margin-top: 40px;
}
.case_layout{
  border: 1px solid #dcdddd;
  display: flex;
  align-items: center;
}
.case_layout p{
  margin-top: 0;
}
.case_layoutttl{
  width: 120px;
  padding: 20px;
  text-align: center;
}
.case_layouttext{
  color: #000;
  background: #FFF;
  flex: 1;
  padding: 20px;
  text-align: left;
}
.lbcb{
  color: #FFF;
  background: #3e3a39;
  height: 100%;
  text-align: center;
}
.lbcr{
  color: #FFF;
  background: #cf0027;
  height: 100%;
  text-align: center;
}
#case_detail .entrybottom .inner{
  max-width: 970px;
}
.entrybottom{
  padding-bottom: 80px;
}
.relation .contentswap {
  padding: 0 0 80px;
}
.relation h2{
  border-left: 8px solid #cf0027;
  font-size: 22px;
  padding: 0px 0px 0px 20px;
  margin-top: 40px;
}
.relation_ttl{
  margin-top: 10px;
  font-size: 22px;
}
.relation_ttl strong{
  color: #cf0027;
  font-family: "Lato", sans-serif;
  font-size: 30px;
  font-weight: bold;
}
.relation_item{
  border: 1px solid #9fa0a0;
  display: flex;
  align-items: center;
  margin-top: 40px;
}
.relation_img{
  width: 30%;
  max-width: 290px;
  display: block;
}
.relation_info{
  padding: 30px 40px;
  flex: 1;
}

/* relation_case */
.relation_case{
  padding-top: 20px;
}
.relation_case .bimg{
  position: relative;
  display: flex;
  justify-content: center;
  align-content: center;
}
.relation_case .bimg span{
  background: #3e3a39;
  color: #FFF;
  padding: 5px 15px;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
}

/*jichitai*/
.jichitai{
  background: #FFF;
  border-radius: 10px;
  margin: 40px 0 30px;
  padding: 0px 10px;
}
.jichitaiHead{
  text-align: center;
  font-size: 20px;
  margin-bottom: 50px;
}
.jichitaiList{
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.jichitaiBox{
  text-align: center;
  width: 12.5%;
  margin: 0 0 20px;
}
.jichitaiLogo{
  margin-bottom: 10px;
  text-align: center;
}
.jichitaiLogo img{
  height: 100px;
  width: auto;
}

@media screen and (max-width: 767px){
  
  main {
    height: 120px;
  }
  main h1 {
    font-size: 18px;
  }
  main.casedetail_main{
    display: none;
  }
  
  /* case */
  .case_entry a {
    display: block;
  }
  .ce_img {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
  }
  .ce_img img {
    object-fit: cover;
    height: auto;
    width: 100%;
  }
  .ce_head {
    margin-bottom: 10px;
  }
  .ce_info h3 {
    font-size: 18px;
  }
  .ce_info {
    padding: 20px 20px 20px;
  }
  .ce_tag {
    background: url("../../common/img/ico_tag.svg") no-repeat left center;
      background-size: auto;
    background-size: 25px auto;
    font-size: 0;
    margin-top: 20px;
    padding-left: 35px;
    position: unset;
    display: inline-block;
  }
  #case .arwlink {
    margin: 20px 0;
  }
  .case_detailhead {
    display: block;
    margin: 0 auto 30px;
    max-width: 100%;
    padding-top: 0px;
  }
  .case_detailhead .ce_img {
    width: 100%;
    max-width: 100%;
  }
  .ce_img span {
    font-size: 14px;
    padding: 10px 15px;
    top: 20px;
    left: 20px;
  }
  .case_detailhead .ce_info h1 {
    font-size: 18px;
  }
  .case_detailhead .ce_head p{
    font-size: 16px;
  }
  .case_detailhead .ce_text p{
    font-size: 14px;
  }
  .case_information h2{
    font-size: 16px;
    margin-bottom: 20px;
  }
  .ce_infoinner {
    display: block;
  }
  .ce_infoimg {
    border-right: none;
    border-bottom: 1px solid #9fa0a0;
    margin-right: 0px;
    margin-bottom: 30px;
    padding: 10px 60px;
  }
  .ce_infocontents {
    margin-top: 0px;
    padding: 20px;
  }
  .entryarea h2, .entryarea h3, .entryarea h4, .entryarea p, .entryarea img, .case_layout {
    margin-top: 20px;
  }
  .entryarea.kadai {
    background: url("../../common/img/kadai_arw.svg") no-repeat bottom center;
    padding-bottom: 25px;
  }
  .case_layout {
    display: block;
  }
  .case_layoutttl {
    width: 100%;
    padding: 15px 20px;
    text-align: center;
  }
  .case_layouttext {
    padding: 20px;
  }
  .entryarea .case_layouttext p{
    margin-top: 0;
  }
  .relation .contentswap {
    padding: 0 0 40px;
  }
  .relation h2 {
    border-left: 4px solid #cf0027;
    font-size: 16px;
    padding: 0px 0px 0px 20px;
    margin-top: 20px;
  }
  .relation_item {
    display: block;
    margin-top: 20px;
  }
  .relation_img {
    width: 100%;
    max-width: 100%;
    display: block;
  }
  .relation_info {
    padding: 20px;
    flex: 1;
  }
  .relation_ttl {
    font-size: 16px;
  }
  .relation_ttl strong {
    font-size: 22px;
  }
  
  /* jichitai */
  .jichitai {
    margin: 20px 0;
    padding: 20px 10px;
  }
  .sideborderttl {
    font-size: 18px;
    padding: 0 50px;
  }
  .sideborderttl::before, .sideborderttl::after {
    width: 30px;
  }
  .jichitaiHead {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .jichitaiList {
    justify-content: space-between;
  }
  .jichitaiBox {
    width: 23%;
    font-size: 12px;
  }
  .jichitaiList::after,.jichitaiList::before{
    content: "";
    display: block;
    width: 23%;
    height: 0;
    order: 1;
  }

}