/* overwrite page-header ------------------------ */
@media screen and (min-width: 768px) {
  .page-header .wrapper {
    position: relative;
    z-index: 0;
  }
  .page-header .wrapper:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: 2.5rem;
    width: 13.875rem;
    height: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    background: no-repeat center center/contain;
    /*background-image: url(../img/services/index/logo_ai.png);*/
    z-index: -1;
  }
}

/* header ------------------------ */
@media screen and (min-width: 768px) {
  .ai-header {
    padding: 2.5rem 0 5rem;
  }
  .ai-header .cmn-h1 {
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.5;
  }
}
@media screen and (max-width: 767px) {
  .ai-header {
    padding: 2.5rem 0 5rem;
  }
  .ai-header .cmn-h1 {
    margin-bottom: 2.5rem;
    line-height: 1.5;
  }
}

/* lead ------------------------ */
.ai-lead__header .sub-wrapper {
  border-bottom: 1px solid #A2A2A2;
}
@media screen and (min-width: 768px) {
  .ai-lead {
    padding-bottom: 6.25rem;
  }
  .ai-lead__header {
    text-align: center;
    margin-bottom: 6.25rem;
  }
  .ai-lead__header .sub-wrapper {
    padding-bottom: 5rem;
  }
  .ai-lead__header .cmn-h2 {
    margin-bottom: 1.875rem;
    font-size: 2.625rem;
  }
  .ai-lead__image {
    margin-bottom: 6.25rem;
  }
  .ai-lead__image img {
    width: 100%;
    height: 26.25rem;
    -o-object-fit: cover;
    object-fit: cover;
  }
}
@media screen and (max-width: 767px) {
  .ai-lead {
    padding-bottom: 3.75rem;
  }
  .ai-lead__header {
    margin-bottom: 3.75rem;
  }
  .ai-lead__header .sub-wrapper {
    padding-bottom: 1.875rem;
  }
  .ai-lead__header .cmn-h2 {
    margin-bottom: 1.875rem;
  }
  .ai-lead__image {
    margin-bottom: 3.75rem;
  }
  .ai-lead__image img {
    width: 100%;
    height: auto;
  }
}

/* sub ------------------------ */
.ai-sub {
  background: #F7F7F7;
}
.ai-sub__header {
  position: relative;
  z-index: 0;
}
.ai-sub__header:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: -1;
}
@media screen and (min-width: 768px) {
  .ai-sub {
    padding-bottom: 6.25rem;
  }
  .ai-sub__header {
    margin-bottom: 6.25rem;
  }
  .ai-sub__header:before {
    height: 20rem;
  }
  .ai-sub__image img {
    width: 100%;
    height: 26.25rem;
    -o-object-fit: cover;
    object-fit: cover;
  }
  .ai-sub__ttl {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
    color: #fff;
  }
}
@media screen and (max-width: 767px) {
  .ai-sub {
    padding-bottom: 3.75rem;
  }
  .ai-sub__header {
    margin-bottom: 1.875rem;
  }
  .ai-sub__header:before {
    height: 6.25rem;
  }
  .ai-sub__image {
    margin-bottom: 3.75rem;
  }
  .ai-sub__image img {
    width: 100%;
    height: auto;
  }
}

/* process ------------------------ */
.ai-process-list {
  list-style: none;
  padding: 0;
  counter-reset: number 0;
}
.ai-process-list-item {
  padding: 1.25rem 0 1.25rem 2.5rem;
  border-bottom: 1px solid #CECECE;
}
.ai-process-list-item .cmn-h4 {
  text-indent: -2.5rem;
}
.ai-process-list-item .cmn-h4:before {
  counter-increment: number;
  content: counter(number, decimal-leading-zero);
  display: inline-block;
  width: 2.5rem;
  text-indent: 0;
}
.ai-process-list-item__content {
  display: block;
}
@media screen and (min-width: 768px) {
  .ai-process .cmn-h2 {
    margin-bottom: 3.75rem;
  }
  .ai-process__image {
    margin-top: 1.25rem;
  }
  .ai-process-list {
    margin-top: 2.5rem;
  }
  .ai-process-list-item__content img {
    width: auto;
    height: 3rem;
  }
}
@media screen and (min-width: 1200px) {
  .ai-process-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
@media screen and (max-width: 767px) {
  .ai-process .cmn-h2 {
    margin-bottom: 3.125rem;
  }
  .ai-process__image {
/*    margin: 1.25rem 2.5rem 0;*/
  }
  .ai-process-list {
    margin-top: 2.5rem;
  }
  .ai-process-list-item__content {
    margin: 1.25rem 0 0 -2.5rem;
  }
}

/* case ------------------------ */
.ai-case-list {
  list-style: none;
  padding: 0;
}
.ai-case-list-item__num {
  display: block;
  margin-bottom: 0.5em;
  font-size: 1.125rem;
  font-weight: bold;
  font-style: normal;
}
.ai-case-list-item .cmn-h3 {
  margin-bottom: 0.5rem;
}
h4::before {
	content: "";
  display: inline-block;
  width: 25px;
  height: 25px;
  background: url(../img/services/ai/img_case_before.png) no-repeat;
  background-size: contain;
  margin-right: 8px;
}
@media screen and (min-width: 768px) {
  .ai-case-list-item__image {
    width: 33.125rem;
  }
  .ai-case-list-item:nth-child(n+2) {
    margin-top: 3.125rem;
  }
}
@media screen and (min-width: 1200px) {
  .ai-case-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .ai-case-list-item__image {
    max-width: 50%;
  }
  .ai-case-list-item__inner {
    width: 29.6875rem;
  }
  .ai-case-list-item:nth-child(odd) .ai-case-list-item__inner {
    margin-right: 2.5rem;
  }
  .ai-case-list-item:nth-child(even) {
    flex-direction: row-reverse;
  }
  .ai-case-list-item:nth-child(even) .ai-case-list-item__inner {
    margin-left: 2.5rem;
  }
}
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .ai-case-list-item__image {
   /* margin: 2.5rem auto 0;*/
  }
}
@media screen and (max-width: 767px) {
  .ai-case-list-item:nth-child(n+2) {
    margin-top: 2.5rem;
  }
}

/* leadership ------------------------ */
.ai-leadership .cmn-h3 {
  margin-bottom: 1em;
}
@media screen and (min-width: 768px) {
  .ai-leadership {
    padding: 6.25rem 0;
  }
  .ai-leadership .cmn-h2 {
    margin-bottom: 3.75rem;
    text-align: center;
  }
  .ai-leadership__image {
    width: 33.125rem;
  }
}
@media screen and (min-width: 1200px) {
  .ai-leadership__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .ai-leadership__image {
    max-width: 50%;
  }
  .ai-leadership__textbox {
    width: 29.6875rem;
    margin-left: 2.5rem;
  }
}
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .ai-leadership__image {
    margin: 0 auto 3.75rem;
  }
}
@media screen and (max-width: 767px) {
  .ai-leadership {
    padding: 3.75rem 0;
  }
  .ai-leadership .cmn-h2 {
    margin-bottom: 1.875rem;
  }
  .ai-leadership__image {
    margin-bottom: 3.75rem;
  }
}
