/*=============================================
 * 導入事例 (works) — DeepEditor deepeditor_theme より移植
 * 下記の「土台ユーティリティ」は元 common.css 側にあった依存分を
 * works ページで自己完結させるために内包したもの。
 *=============================================*/

/* ----- 土台ユーティリティ (元 common.css より) ----- */
.cl-blue {
   color: #0f58d5;
}

.fnt-satoshi {
   font-family: "Satoshi", sans-serif;
}

.h-20 {
   font-weight: 700;
   font-size: 20px;
   line-height: 32px;
   letter-spacing: 0.025em;
}

#key {
   padding: 70px 0;
}

#key .page-title {
   font-weight: 700;
   font-size: 46px;
   letter-spacing: 0.05em;
   line-height: 66px;
   text-align: center;
}

#key .page-title span {
   display: block;
   font-size: 18px;
   letter-spacing: 0.025em;
   line-height: 32px;
   text-transform: uppercase;
}

.button a {
   display: inline-block;
   width: 100%;
   max-width: 306px;
   background-color: #fff;
   border: 2px solid #3174e7;
   color: #3174e7;
   font-weight: 700;
   font-size: 18px;
   line-height: 30px;
   letter-spacing: 0;
   text-align: center;
   border-radius: 50px;
   padding: 11px 0 16px 0;
   box-sizing: border-box;
   transition: all 0.3s;
   position: relative;
}

.button a:after {
   content: "";
   display: inline-block;
   background: #3174e7;
   -webkit-mask: url("../images/common/arrow-right-grey.png") no-repeat center/cover;
   mask: url("../images/common/arrow-right-grey.png") no-repeat center/cover;
   width: 10px;
   height: 18px;
   position: absolute;
   top: 50%;
   right: 20px;
   transform: translateY(-50%);
}

.button a:hover {
   background-color: #3174e7;
   color: #fff;
   opacity: 1;
}

.button a:hover:after {
   background-color: #fff;
}

@media screen and (max-width: 767px) {
   .h-20 {
      font-size: 16px;
      line-height: 29px;
   }

   #key {
      padding: 50px 0;
   }

   #key .page-title {
      font-size: 32px;
      line-height: 48px;
   }

   #key .page-title span {
      font-size: 15px;
   }

   .button a {
      font-size: 15px;
      padding: 10px 0 13px 0;
   }
}

/*=============================================
 * 導入事例 (ここから DeepEditor case-study.css 本体)
 *=============================================*/
.wp-pagenavi {
   display: flex;
   justify-content: center;
   align-items: center;
   gap: 15px;
   padding-top: 50px;
}

.wp-pagenavi .pages {
   display: none;
}

.wp-pagenavi a,
.wp-pagenavi span {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 50px;
   height: 50px;
   background-color: #fff;
   border: 1px solid #3174e7;
   color: #3174e7;
   text-align: center;
   border-radius: 50%;
   transition: all 0.3s;
}

.wp-pagenavi a:hover,
.wp-pagenavi a.current,
.wp-pagenavi span:hover,
.wp-pagenavi span.current {
   background-color: #3174e7;
   color: #fff;
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
   font-size: 0;
   position: relative;
}

.wp-pagenavi .previouspostslink:before,
.wp-pagenavi .nextpostslink:before {
   content: "";
   display: inline-block;
   background: #3174e7;
   -webkit-mask: url(../images/common/arrow-right-grey.png) no-repeat center/cover;
   mask: url(../images/common/arrow-right-grey.png) no-repeat center/cover;
   width: 6px;
   height: 11px;
}

.wp-pagenavi .previouspostslink:hover:before,
.wp-pagenavi .nextpostslink:hover:before {
   background-color: #fff;
}

.wp-pagenavi .previouspostslink:before {
   transform: rotate(-180deg);
}

@media screen and (max-width: 767px) {
   .wp-pagenavi {
      gap: 10px;
      padding-top: 30px;
   }

   .wp-pagenavi a,
   .wp-pagenavi span {
      width: 30px;
      height: 30px;
   }
}

/* -- -- */
#case-studies {
   padding-bottom: 150px;
}

#case-studies .desc {
   text-align: center;
   padding-bottom: 50px;
}

#case-studies .box {
   display: grid;
   grid-template-columns: 1fr 1fr 1fr;
   gap: 60px 50px;
}

#case-studies .box .col {
   background-color: #fff;
   border-radius: 12px;
   box-shadow: 0px 0px 26px 1.89px rgba(0, 0, 0, 0.05);
   position: relative;
}

#case-studies .box .col a {
   display: block;
}

#case-studies .box .col:hover figure img {
   transform: scale(1.05);
}

#case-studies .box figure {
   overflow: hidden;
   position: relative;
   padding-top: 66.5%;
   border-radius: 12px 12px 0 0;
}

#case-studies .box figure img {
   height: 100%;
   position: absolute;
   top: 0;
   left: 0;
   object-fit: cover;
   transition: transform 0.3s;
}

#case-studies .box .text {
   padding: 20px 20px;
}

#case-studies .box .cat {
   font-size: 14px;
}

#case-studies .box .cat span {
   display: inline-block;
   background-color: #0087e5;
   color: #fff;
   border-radius: 12px;
   padding: 2px 15px;
}

#case-studies .box h3 {
   padding-top: 15px;
}

#case-studies .box h3 span {
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 2;
   display: -webkit-box;
   overflow: hidden;
}

#case-studies .box .txt {
   padding-top: 25px;
}

#case-studies .box .txt span {
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 4;
   display: -webkit-box;
   overflow: hidden;
}

@media screen and (max-width: 1023px) {
   #case-studies .box {
      gap: 50px 20px;
   }
}

@media screen and (max-width: 767px) {
   #case-studies {
      padding-bottom: 50px;
   }

   #case-studies .desc {
      padding-bottom: 30px;
   }

   #case-studies .box {
      grid-template-columns: 1fr;
      gap: 30px;
   }
}

/*=============================================
 * detail
 *=============================================*/
#case-studies-detail {
   padding: 80px 0 150px;
}

#case-studies-detail .block {
   background-color: #fff;
   border-radius: 26px;
   box-shadow: 0px 0px 26px 1.89px rgba(0, 0, 0, 0.05);
   padding: 80px 88px;
}

#case-studies-detail .the_title {
   font-weight: 700;
   font-size: 36px;
   letter-spacing: 0.01em;
   line-height: 46px;
}

#case-studies-detail .thumb {
   padding-top: 45px;
}

#case-studies-detail .thumb img {
   border-radius: 12px;
}

#case-studies-detail .box-info {
   display: flex;
   align-items: flex-start;
   gap: 70px;
   background-color: #fafafa;
   border-radius: 12px;
   margin-top: 56px;
   padding: 40px 40px;
}

#case-studies-detail .box-info .logo {
   flex: 1 0 calc(50% - 70px);
   text-align: center;
}

#case-studies-detail .box-info .txt {
   flex: 1 0 50%;
}

/* akarumi2のnormalize(style.css)が figure に margin:1em 40px を付与するため、worksページでは0に戻す（DeepEditorはnormalize未読込で余白なし） */
#case-studies figure,
#case-studies-detail figure {
   margin: 0;
}

#case-studies-detail .box-info .txt p+p {
   padding-top: 30px;
}

#case-studies-detail .the_content {
   padding-top: 90px;
}

#case-studies-detail .the_content h2 {
   background-color: #fafafa;
   font-weight: 700;
   font-size: 30px;
   line-height: 46px;
   letter-spacing: 0.01em;
   border-radius: 12px;
   margin: 80px 0 50px;
   padding: 15px 30px 14px;
}

#case-studies-detail .the_content h2:first-child {
   margin-top: 0;
}

#case-studies-detail .the_content h3 {
   font-weight: 700;
   font-size: 24px;
   line-height: 46px;
   letter-spacing: 0.01em;
   border-bottom: 1px solid #e5e5e5;
   margin: 50px 0;
   padding: 0 0 20px 65px;
   position: relative;
}

#case-studies-detail .the_content h3:before {
   content: '';
   width: 50px;
   height: 0;
   border-top: 1px solid #333;
   position: absolute;
   top: 23px;
   left: 7px;
}

#case-studies-detail .the_content h3:first-child {
   margin-top: 0;
}

#case-studies-detail .the_content p+p {
   padding-top: 30px;
}

#case-studies-detail .button {
   text-align: center;
   padding-top: 70px;
}

#case-studies-detail .button a {
   max-width: 472px;
   background-color: #fff;
   border-color: #fff;
   box-shadow: 0px 0px 26px 1.89px rgba(0, 0, 0, 0.05);
   font-size: 22px;
   padding: 21px 0 20px;
}

@media screen and (max-width: 1023px) {
   #case-studies-detail .block {
      padding: 80px 40px;
   }
}

@media screen and (max-width: 767px) {
   #case-studies-detail {
      padding: 50px 0;
   }

   #case-studies-detail .block {
      padding: 30px 20px;
   }

   #case-studies-detail .the_title {
      font-size: 26px;
      line-height: 36px;
   }

   #case-studies-detail .thumb {
      padding-top: 30px;
   }

   #case-studies-detail .box-info {
      flex-direction: column;
      align-items: center;
      gap: 30px;
      margin-top: 30px;
      padding: 20px;
   }

   #case-studies-detail .box-info .logo {
      width: 100%;
      flex: inherit;
   }

   #case-studies-detail .box-info .txt {
      width: 100%;
      flex: inherit;
   }

   #case-studies-detail .box-info .txt p+p {
      padding-top: 20px;
   }

   #case-studies-detail .the_content {
      padding-top: 50px;
   }

   #case-studies-detail .the_content h2 {
      font-size: 20px;
      line-height: 32px;
      margin: 40px 0 20px;
      padding: 10px 20px;
   }

   #case-studies-detail .the_content h3 {
      font-size: 18px;
      line-height: 32px;
      margin: 40px 0 20px;
      padding: 0 0 15px 25px;
   }

   #case-studies-detail .the_content h3:before {
      width: 20px;
      top: 17px;
      left: 0;
   }

   #case-studies-detail .the_content h2+h3 {
      margin-top: 20px;
   }

   #case-studies-detail .button {
      padding-top: 30px;
   }

   #case-studies-detail .button a {
      font-size: 18px;
   }
}
