@charset "utf-8";

/*=================================================================
   一覧
=================================================================*/
/* モデルケース
-------------------------------------*/
@media screen and (max-width: 767px) {
   .model{
      padding: 30px 20px 0;
   }
   .model__list{
      margin-bottom: 0;
   }
}

/* ターム一覧
-------------------------------------*/
.under-case__head {
   display: flex;
   align-items: center;
}
.under-case__tag-title {
   font-size: 1.6rem;
   margin-right: 2.5rem;
}
.under-case__tag-items {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 1.2rem;
   list-style: none;
   margin: 0;
   padding: 0;
}
.under-case__tag-link {
   display: block;
   color: var(--color-blue);
   text-decoration: none;
   font-size: 1.6rem;
   font-weight: 600;
   border-radius: 50px;
   padding: 4px 12px;
   border: 1px solid var(--color-blue);
   background: #fff;
}
.under-case__tag-link:hover {
   background: var(--color-blue);
   color: #fff;
}

/* 事例一覧
-------------------------------------*/
@media screen and (max-width: 767px) {
   .under-case{
      padding: 0 20px;
   }
   /* ターム一覧
   -------------------------------------*/
   .under-case__head {
      display: block;
   }
   .under-case__tag-title {
      text-align: center;
      font-weight: 700;
      margin-right: initial;
   }
   .under-case__tag-items {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      row-gap: 0.7rem;
      column-gap: 1rem;
      margin-top: 1.4rem;
   }
   .under-case__tag-link{
      text-align: center;
      
   }
}

/*=================================================================
   詳細
=================================================================*/
.case-single {
   max-width: 850px;
   margin-top: 6.7rem;
   margin-bottom: 10rem;
}
.case-single__title {
   font-size: 3.2rem;
   font-weight: bold;
   margin-top: 2rem;
   line-height: calc(44/32);
}
.case-single__company {
   font-size: 1.8rem;
}
.case-single__image {
   margin-top: 3.6rem;
   aspect-ratio: 863/400;
   margin-inline: auto;
}
.case-single__image img {
   object-fit: cover;
   height: 100%;
}
.case-single__tag-items {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 1.2rem;
   list-style: none;
   margin-top: 2.5rem;
   padding: 0;
}
.case-single__tag-item {
   text-align: center;
}
.case-single__tag-item a {
   display: block;
   color: var(--color-blue);
   text-decoration: none;
   font-size: 1.6rem;
   font-weight: 600;
   border-radius: 50px;
   padding: 4px 17px;
   border: 1px solid var(--color-blue);
   background: #fff;
}
.case-single__tag-item a:hover {
   background: var(--color-blue);
   color: #fff;
}
.case-single__info {
   margin-top: 4.7rem;
}
.company-info__row {
   border-bottom: 1px solid #cccccc;
   display: flex;
   align-items: flex-start;
   background: linear-gradient(
      to right,
      var(--color-lightblue) calc(174 / 850 * 100%),
      transparent calc(174 / 850 * 100%)
   );
}
.company-info__row:first-child{
   border-top: 1px solid #cccccc;
}
.company-info__row dt,
.company-info__row dd {
   display: grid;
   place-content: center;
   justify-content: start;
   padding-block: 1.8rem;
   font-size: 1.8rem;
   line-height: 1.5;
   padding-left: 3.5rem;
   margin: 0;
}
.company-info__row dt {
   width: calc(174 / 850 * 100%);
   font-weight: 700;
}
.company-info__row dd {
   width: calc((850 - 174) / 850 * 100%);
}

@media screen and (max-width: 767px) {
   .case-single{
      padding: 0 20px;
      margin-top: 25px;
      margin-bottom: 70px;
   }
   .case-single__company {
      font-size: 1.2rem;
   }
   .case-single__title {
      font-size: 2rem;
      margin-top: 10px;
      line-height: calc(28/20);
   }
   .case-single__tag-items{
      margin-top: 15px;
   }
   .case-single__tag-item a {
      font-size: 1.2rem;
   }
   .case-single__image {
      margin-top: 1.8rem;
      aspect-ratio: 345/205;
   }
   .case-single__info {
      margin-top: 3rem;
   }
   .company-info__row {
      background: linear-gradient(
         to right,
         var(--color-lightblue) calc(214 / 676 * 100%),
         transparent calc(214 / 676 * 100%)
      );
   }
   .company-info__row dt,
   .company-info__row dd {
      font-size: 1.4rem;
      padding-block: 1.2rem;
      padding-left: 1.5rem;
   }
   .company-info__row dt {
      width: calc(214 / 676 * 100%);
      font-weight: 700;
   }
   .company-info__row dd {
      width: calc((676 - 214) / 676 * 100%);
   }
}

/* 本文部分
-------------------------------------*/
.case-article {
   margin-top: 7rem;
   line-height: calc(36 / 17);
}
.case-article h2 {
   position: relative;
   color: var(--color-blue);
   font-size: 1.6em;
   line-height: 1.6;
   padding: 0 0 2rem;
   margin: 2em 0 1.4em;
   border-bottom: 3px solid var(--color-blue);
}
.case-article h2:before {
   position: absolute;
   top: 100%;
   left: 50px;
   transform: skew(40deg);
   height: 18px;
   width: 15px;
   border-left: 4px solid var(--color-blue);
   background-color: white;
   content: "";
}
.case-article h3{
   position: relative;
   margin: 1.5em 0 .8em;
   font-size: 1.3em;
   line-height: 1.5;
   padding: .5em 0 .5em .8em;
}
.case-article h3::before{
   position: absolute;
   left: 0;
   top: 0;
   display: block;
   content: "";
   background: rgba(var(--color-blue-rgb) ,.6);
   width: 4px;
   height: 100%;
   border-radius: 4px;
}
.case-article h4{
   position: relative;
   font-size: 1.15em;
   margin: 1.5em 0 1em;
   padding-bottom: 1em;
   border-bottom: 3px solid #ddd;
}
.case-article h4::before {
   display: block;
   content: "";
   width: 20%;
   border-bottom: solid 3px rgba(var(--color-blue-rgb) ,.4);
   position: absolute;
   bottom: -3px;
   left: 0;
   z-index: 1;
}
.case-single__btn {
   margin-top: 8.6rem;
}

@media screen and (max-width: 767px) {
   .case-article{
      margin-top: 4rem;
      line-height: calc(23 / 14);
   }
   .case-article h2 {
      font-size: 1.45em;
      border-width: 2px;
   }
   .case-article h2::before {
      height: 15px;
      border-width: 2px;
   }
   .case-article h3::before{
      width: 3px;
   }
   .case-single__btn {
      margin-top: 40px;
   }
}

/* 関連記事
-------------------------------------*/
.case-footer {
   padding: 0px 0 50px;
}
.case-footer__heading {
   font-size: 2.6rem;
   font-weight: bold;
   text-align: center;
}
@media print, screen and (min-width: 768px) {
   .case-footer .case-study{
      width: 31.5%!important;
   }
}
@media screen and (max-width: 767px) {
   .case-footer {
      overflow: hidden;
      padding: 0px 0 50px;
   }
   .case-footer__heading {
      font-size: 1.6rem;
   }
   .case-footer .case-studies{
      position: relative;
      margin: 0 20px;
      padding-top: 2.6rem;
   }
   .swiper-pagination {
      bottom: -20px;
   }
}
