main .width-detail:first-of-type {
  margin-bottom: 124px;
}
.width-detail {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px;
}
.case-list {
  margin-bottom: 12px;
  @media screen and (max-width: 768px) {
    margin-bottom: 0;
  }
}
.case-list h1 + p {
  padding: 40px 20px 20px;
  @media screen and (max-width: 768px) {
    padding: 32px 30px 4px;
  }
}
.case-studies-list-tab-container {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}
.case-studies-list-tab-container .tab {
  width: 100%;
  cursor: pointer;
  border: 1px solid #d9d9d9;
  text-align: center;
  letter-spacing: 0.05em;
  font-weight: bold;
  font-size: 14px;
  transition: 0.3s;
  padding: 11px 5px;
  display: flex;
  align-items: end;
  justify-content: center;
  @media screen and (max-width: 768px) {
    padding: 14px 5px;
  }
}
.case-studies-list-tab-container .tab:hover {
  background-color: #f6fff9;
  @media screen and (max-width: 768px) {
    background-color: initial;
  }
}
.case-studies-list-tab-container .tab.active.active {
  position: relative;
}
.case-studies-list-tab-container .tab.active::before {
  content: "";
  display: inline-block;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-top: 6px solid #3ca062;
}
.case-studies-list-tab-container .tab span.cat {
  display: flex;
  align-items: center;
  font-size: 20px;
  margin-bottom: -1px;
  @media screen and (max-width: 768px) {
    font-size: 16px;
  }
}
.case-studies-list-tab-container .tab span.cat::before {
  content: "";
  display: inline-block;
  height: 29.14px;
  margin-right: 3.5px;
  margin-bottom: 1px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  @media screen and (max-width: 768px) {
    margin-right: 8px;
  }
}
.case-studies-list-tab-container .tab .cat[data-category="課題"]::before {
  width: 17.379310607910156px;
  height: 24px;
  background-image: url(../img/case-studies/list/cat-problems.svg);
  @media screen and (max-width: 768px) {
    width: 14.482758522033691px;
    height: 20px;
  }
}
.case-studies-list-tab-container .tab .cat[data-category="業種"]::before {
  width: 22px;
  height: 26px;
  background-image: url(../img/case-studies/list/cat-jobs.svg);
}
.case-studies-list-tab-container .tab .cat[data-category="製品"]::before {
  width: 24px;
  height: 22px;
  background-image: url(../img/case-studies/list/cat-products.svg);
}
.case-studies-list-content-container {
  border: 1px solid #d9d9d9;
  padding: 16px;
}
.case-studies-list-content-container .content {
  display: none;
}
.case-studies-list-content-container .content.show {
  display: flex;
}
.category-items-wrapper {
  text-align: center;
}
.category-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  @media screen and (max-width: 768px) {
    gap: 6px;
  }
}

.category-items span a {
  display: inline-block;
  color: #333;
  background-color: #ebebeb;
  border-radius: 4px;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  transition: background-color 0.3s, color 0.3s;
  @media screen and (max-width: 768px) {
    font-size: 12px;
    padding: 6.5px 12px;
  }
}
.category-items span a:hover {
  text-decoration: none;
  color: #fff;
  background-color: #3ca062;
}
.category-items span.current a {
  background-color: #3ca062;
  color: #fff;
  font-weight: bold;
  pointer-events: none;
}

.result-list-item .category-items span a {
  @media screen and (max-width: 768px) {
    font-size: 14px;
  }
}
.reload-btn {
  text-align: right;
}
.reload-btn a {
  display: inline-block;
  font-size: 14px;
  line-height: 100%;
  margin-top: 20px;
  color: #727171;
  @media screen and (max-width: 768px) {
    margin-top: 16px;
  }
}
.reload-btn a::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  background-image: url(../img/case-studies/list/icon-reload-gray.svg);
}
.reload-btn.result-page a {
  color: #3ca062;
}
.reload-btn.result-page a::before {
  background-image: url(../img/case-studies/list/icon-reload.svg);
}
.result-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin: 32px 0 0;
  @media screen and (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}
.result-list .result-list-item {
  border: 1px solid #d9d9d9;
  padding: 16px;
}
.result-list .result-list-item.is-hidden {
  display: none;
}
.result-list .result-list-item a {
  text-decoration: none;
}
.result-list .result-list-item a img,
.result-list .result-list-item a h2 {
  opacity: 1;
  transition: opacity 0.3s;
}
.result-list .result-list-item a:hover img,
.result-list .result-list-item a:hover h2 {
  opacity: 0.8;
}
.result-list .result-list-item img {
  width: 100%;
}
.result-list .result-list-item h2 {
  font-size: 16px;
  line-height: 140%;
  font-weight: 700;
  text-align: left;
}
.result-list .result-list-item h2::after {
  display: none;
}
.result-list .result-list-item .category-items {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #f1f1f1;
}
.result-list-btn {
  margin-top: 40px;
  @media screen and (max-width: 768px) {
    margin-top: 32px;
  }
}
.result-list-btn.is-btn-hidden {
  display: none;
}
.result-list-btn button {
  width: 100%;
  height: initial;
  font-size: 16px;
  border: 1px solid #3ca062;
  color: #3ca062;
  border-radius: initial;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
}
.result-list-btn button:hover {
  background-color: #f6fff9;
  color: #3ca062;
  @media screen and (max-width: 768px) {
    background-color: initial;
  }
}
.result-list-btn button::before {
  display: none;
}
.result-list-btn button:after {
  content: "";
  display: inline-block;
  width: 6.6px;
  height: 31px;
  background-image: url(../img/case-studies/list/icon-underarrow.svg);
  background-size: 6.6px 11.3px;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: 8px;
}

/* 製品活用事例 詳細 */

.case-studies-detail-heading {
  margin-bottom: 24px;
}
section.case-studies-detail-container {
  margin-bottom: 132px;
  @media screen and (max-width: 768px) {
    margin-bottom: 80.11px;
  }
}
.case-studies-detail-container .category-items {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0 0 24px;
}
.case-studies-detail-container h2 {
  font-size: 170%;
  text-align: center;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  margin-top: 60px;
  margin-bottom: 24px;
  @media screen and (max-width: 768px) {
    margin-top: 40px;
    margin-bottom: 24px;
  }
}
/* .ccm-page:not(.page-template-case-studies-detail) h2 {
  text-align: center;
  font-size: 135%;
  color: #4d4d4d;
  margin-block-start: 0;
  margin-block-end: 1.5em;
  @media screen and (max-width: 768px) {
    font-size: 100%;
  }
} */
.case-studies-detail-container h2 + h3 {
  margin-top: 18px;
  @media screen and (max-width: 768px) {
    margin-top: 15px;
  }
}
.case-studies-detail-container h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  border-bottom: 2px solid #808080;
  margin: 0.25em auto 1em;
  padding-bottom: 12px;
  @media screen and (max-width: 768px) {
    margin: 0 auto 1em;
  }
}
.case-studies-detail-container h3 {
  font-size: 190%;
  font-weight: 500;
  color: #4d4d4d;
  border-left: 4px solid #3ca062;
  text-align: left;
  margin-bottom: 15px;
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 12px;
  @media screen and (max-width: 768px) {
    padding-top: 6.5px;
    padding-bottom: 6.5px;
    padding-left: 15px;
  }
}
.case-studies-detail-container h3 + ul {
  margin: 15px 0;
}
.case-studies-detail-container ul {
  @media screen and (max-width: 768px) {
    margin: 24px 0;
  }
}
.case-studies-detail-container ul li {
  position: relative;
  padding-left: 10px;
}
.case-studies-detail-container ul li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 100%;
  background-color: #333;
  position: absolute;
  left: 0;
  top: 0.5em;
  transform: translateY(50%);
}

.case-studies-detail-container h3 + ul + h3 {
  margin-top: 64px;
  @media screen and (max-width: 768px) {
    margin-top: 24px;
  }
}
.case-studies-detail-container .img-text {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 56px 0 0;
  @media screen and (max-width: 768px) {
    margin: 24px 0 0;
  }
}
.case-studies-detail-container .img-text + .img-text {
  margin-top: 16px;
  @media screen and (max-width: 768px) {
    margin-top: 32px;
  }
}
.case-studies-detail-container .img-text figure {
  display: flex;
}
.case-studies-detail-container .img-text.text-top_image-bottom figure {
  flex-direction: column;
}

.case-studies-detail-container .img-text.text-top_image-bottom + .text-top_image-bottom {
  margin-bottom: 98px;
  @media screen and (max-width: 768px) {
    margin-bottom: 32px;
  }
}
.case-studies-detail-container .img-text.text-bottom_image-top figure {
  flex-direction: column-reverse;
}
.case-studies-detail-container .text-top_image-bottom figure .figure-flex {
  display: flex;
  gap: 16px;
  transition: opacity 0.3s;
  @media screen and (max-width: 768px) {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }
}
.case-studies-detail-container .text-top_image-bottom figure .figure-flex img a:hover {
  opacity: 0.8;
}
.case-studies-detail-container .text-top_image-bottom figure {
  margin: 0;
}
.case-studies-detail-container .img-text.text-top_image-bottom figcaption {
  margin-bottom: 16px;
  @media screen and (max-width: 768px) {
    margin-bottom: 8px;
    text-align: center;
  }
}
.case-studies-detail-container .img-text.text-bottom_image-top figcaption {
  margin-top: 16px;
  @media screen and (max-width: 768px) {
    margin-top: 8px;
    text-align: center;
  }
}
.case-studies-detail-container .text-bottom_image-top figure .figure-flex {
  display: flex;
  gap: 16px;
  transition: opacity 0.3s;
  @media screen and (max-width: 768px) {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }
}
.case-studies-detail-container .text-right_image-left figure {
  gap: 16px;
  flex-direction: row-reverse;
  @media screen and (max-width: 768px) {
    flex-direction: column-reverse;
    align-items: center;
  }
}
.case-studies-detail-container .text-left_image-right figure {
  gap: 16px;
  @media screen and (max-width: 768px) {
    flex-direction: column;
    align-items: center;
  }
}
.case-studies-detail-container .text-left_image-right figure .figure-flex,
.case-studies-detail-container .text-right_image-left figure .figure-flex {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-studies-detail-container .section-point {
  background-color: #d9ebf8;
  margin: 64px 0;
  padding: 20px;
  @media screen and (max-width: 768px) {
    margin: 32px calc(50% - 50vw);
    padding: 20px calc(50vw - 50%);
  }
}

.case-studies-detail-container .section-point strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: #333;
  margin-bottom: 8px;
}
.case-studies-detail-container .section-point ul {
  margin: 0;
}
.case-studies-detail-container .section-point ul li {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #333;
}
.case-studies-detail-container .border-green-area {
  border: 2px solid #3ca062;
  padding: 32px;
  position: relative;
  border-radius: 5px;
  @media screen and (max-width: 768px) {
    border: 3px solid #3ca062;
    padding: 16px;
  }
}
.case-studies-detail-container .border-green-area::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 26px;
  background: #fff;
  position: absolute;
  bottom: 2px;
  border-radius: 5px;
  border-left: 2px solid #3ca062;
  border-bottom: 2px solid #3ca062;
  left: 30px;
  border-radius: 0 0 0 8px;
  -webkit-transform: translateY(67%) skewY(-40deg);
  transform: translateY(67%) skewY(-40deg);
  @media screen and (max-width: 768px) {
    border-left: 3px solid #3ca062;
    border-bottom: 3px solid #3ca062;
  }
}
.case-studies-detail-container .border-green-area ul {
  margin: 0;
}
.case-studies-detail-container .border-green-area ul li {
  padding-left: 28px;
}
.case-studies-detail-container .border-green-area ul li::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #333;
  border-radius: 100%;
  font-size: 14px;
  position: absolute;
  left: 0;
  top: 0.5em;
  transform: translateY(-7px);
}

.global-config-wrapper button.green-btn {
  color: #3ca062;
  border: 2px #3ca062 solid;
  margin: 40px auto 0;
}
.global-config-wrapper button.green-btn:hover {
  color: #fff;
  background: #3ca062;
}
.global-config-wrapper button.arrow-left::before {
  content: url(../img/case-studies/list/icon-green-left-arrow.svg);
}

.global-config-wrapper button.arrow-left:hover::before {
  content: url(../img/case-studies/list/icon-white-left-arrow.svg);
}

/* box-profile
-------------------------------------------------------- */
.case-studies-detail-container .box-profile {
  background: #f2f2f2;
  margin: 0 calc(50% - 50vw) 1.25em;
  padding: 0 calc(50vw - 50%);
}
.case-studies-detail-container .box-profile > div {
  max-width: 960px;
  margin: auto;
}
.case-studies-detail-container .box-profile > div img {
  height: 100%;
  width: auto;
}
.case-studies-detail-container .box-profile > div table {
  width: 53%;
  margin-left: 1.5em;
}
.case-studies-detail-container .box-profile > div table th {
  text-align: left;
  text-indent: -0.5em;
  padding-bottom: 0.5em;
}
.case-studies-detail-container .box-profile > div table td {
  font-size: 14px;
  vertical-align: top;
  padding-bottom: 0.25em;
}
.case-studies-detail-container .box-profile > div table td:first-child {
  width: 8em;
}

@media screen and (max-width: 768px) {
  .case-studies-detail-container .box-profile > div {
    display: block;
    padding: 3em 2em;
  }
  .case-studies-detail-container .box-profile > div img {
    height: auto;
    width: 100%;
    margin-bottom: 1.5em;
  }
  .case-studies-detail-container .box-profile > div table {
    width: 100%;
    margin: 0;
  }
  .case-studies-detail-container5 .box-profile > div table td:first-child {
    width: 30%;
  }
  .case-studies-detail-container .box-profile > div table td:last-child {
    width: 70%;
  }
}

/* box-before-after
-------------------------------------------------------- */
.case-studies-detail-container .box-before-after {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 3em;
  max-width: 1000px;
}
.case-studies-detail-container .box-before-after dl {
  width: 50%;
  background: #e5e5e5;
  border-right: 3px solid #fff;
  position: relative;
  padding: 0 3em;
}
.case-studies-detail-container .box-before-after dl:first-child::after {
  content: url("../img/arrow_case_study.svg");
  position: absolute;
  margin: auto;
  width: 30px;
  height: 70px;
  right: -29px;
  top: 0px;
  bottom: 0;
  z-index: 1;
}
.case-studies-detail-container .box-before-after dl dt {
  font-size: 120%;
  font-weight: 600;
  color: #333;
  margin: 1em 0;
  text-align: center;
}
.case-studies-detail-container .box-before-after dl dd {
  margin: 0 0 0.25em 1.25em;
  text-indent: -1.25em;
}
.case-studies-detail-container .box-before-after dl dd::before {
  content: "● ";
}
.case-studies-detail-container .box-before-after dl dd:last-child {
  margin-bottom: 1.5em;
}
.case-studies-detail-container .box-before-after dl:last-child {
  background: #d8ece0;
}

@media screen and (max-width: 768px) {
  .case-studies-detail-container .box-before-after {
    display: block;
  }
  .case-studies-detail-container .box-before-after dl {
    width: 100%;
    padding: 1em 2em;
    margin-bottom: 3px;
    border: 0;
  }
  .case-studies-detail-container .box-before-after dl:first-child::after {
    content: url(../img/arrow_case_study.svg);
    width: 27px;
    height: auto;
    left: 0;
    right: 0;
    top: auto;
    bottom: -52px;
    margin: auto;
    transform: rotate(90deg);
  }
  .case-studies-detail-container .box-before-after dl:last-child {
    margin-top: 0;
  }
}
