/*
  /rakurakucloud/mailmarketing/asset/css/page/p-function-ai-html.css
  function/ai-htmlページFV以外用CSS
*/
.p-function-ai-html {
  .m-reason-column-item-title {
    margin: 20px 0 0;
    line-height: 1.4;
    @media screen and (max-width: 840px) {
      margin: 10px 0 0;
    }
  }
  .m-reason-column-item__image-wrap {
    width: 500px;
    margin: 0 auto;
    @media screen and (max-width: 840px) {
      order: 2;
      width: 80%;
    }
    @media screen and (max-width: 600px) {
      width: 100%;
    }
  }
  .m-reason-column-item__column {
    @media screen and (max-width: 1024px) {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
  }
}
/* 一般的な汎用AIツールとの違い */
.p-ai-html-features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.p-ai-html-features__comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  @media (max-width: 840px) {
    grid-template-columns: 1fr;
  }
}
.p-ai-html-features-card {
  background: var(--white);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-bottom: 30px;
}
.p-ai-html-features-card__head {
  border-radius: 10px 10px 0 0;
  padding: 15px;
  text-align: center;
}
.p-ai-html-features-card__head--general {
  background: var(--gray-04);
}
.p-ai-html-features-card__head--rakurakuml {
  background: var(--rmailmarketing-dark);
}
.p-ai-html-features-card__head-title {
  color: var(--white);
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
  @media (max-width: 840px) {
    font-size: 16px;
  }
}
.p-ai-html-features-card__icon-wrap {
  display: flex;
  justify-content: center;
}
.p-ai-html-features-card__icon-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
}
.p-ai-html-features-card__icon-circle--general {
  background: var(--gray-bg-01);
}
.p-ai-html-features-card__icon-circle--rakurakuml {
  background: var(--rmailmarketing-bg-sub-03);
}
.p-ai-html-features-card__icon {
  width: 100px;
  height: 100px;
}
.p-ai-html-features-check-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0 30px;
}
.p-ai-html-features-check-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--gray-bg-01);
  &:first-child {
    padding-top: 0;
  }
  &:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}
.p-ai-html-features-check-item__head {
  position: relative;
  padding-left: 30px;
}
.p-ai-html-features-check-item__icon {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
  }
  &::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 6px;
    border-top: solid 2px;
    border-right: solid 2px;
    transform: rotate(135deg);
  }
}
.p-ai-html-features-card--general .p-ai-html-features-check-item__icon {
  &::before {
    background: var(--gray-04);
  }
  &::after {
    border-color: var(--white);
  }
}
.p-ai-html-features-card--rakurakuml .p-ai-html-features-check-item__icon {
  &::before {
    background: var(--rmailmarketing-dark);
  }
  &::after {
    border-color: var(--white);
  }
}
.p-ai-html-features-check-item__title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
}
.p-ai-html-features-check-item__text {
  font-size: 16px;
  line-height: 1.7;
}
.p-ai-html-features__lead {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p-ai-html-features__lead-text {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.7;
  @media (max-width: 840px) {
    font-size: 18px;
  }
}

/*
  STEPナビ
*/
.p-ai-html-step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  list-style: none;
  padding: 40px 0 0;
  @media (max-width: 840px) {
    display: none;
  }
}
.p-ai-html-step-item {
  position: relative;
  &:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -30px;
    top: 50%;
    width: 30px;
    height: 30px;
    background: url(/rakurakucloud/mailmarketing/asset/image/common/icon/icon_arrow-primary.svg) center / contain no-repeat;
    transform: translateY(-50%) rotate(-90deg);
    @media (max-width: 840px) {
      right: auto;
      left: 50%;
      top: auto;
      bottom: -40px;
      transform: translateX(-50%);
    }
  }
}
.p-ai-html-step-item__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 20px 50px;
  background: var(--gray-bg-02);
  border-radius: 10px;
  position: relative;
  text-decoration: none;
  transition: background 0.2s;
  &::after {
    content: "";
    position: absolute;
    bottom: 18px;
    left: 50%;
    margin-left: -4px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--rmailmarketing-dark);
    border-bottom: 2px solid var(--rmailmarketing-dark);
    transform: rotate(45deg);
  }
  &:hover {
    background: var(--rmailmarketing-bg-sub-03);
  }
}
.p-ai-html-step-item__badge {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.p-ai-html-step-item__badge-label {
  font-size: 12px;
  font-weight: bold;
  color: var(--rmailmarketing-dark);
  line-height: 1;
}
.p-ai-html-step-item__badge-num {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: bold;
  color: var(--rmailmarketing-dark);
  line-height: 0.9;
}
.p-ai-html-step-item__title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  color: var(--black);
}

/*
  設定項目リスト
*/
.p-ai-html-reason {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: 10px;
  padding: 20px;
  margin: 15px 0 0;
  @media (max-width: 840px) {
    order: 4;
    width: 100%;
  }
  @media (max-width: 600px) {
    flex-direction: column;
    align-items: flex-start;
  }
}
.p-ai-html-reason__label {
  flex-shrink: 0;
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.3;
  color: var(--rmailmarketing-dark);
  @media (max-width: 840px) {
    padding: 0;
  }
}
.p-ai-html-reason-list {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px 0 7px 16px;
  border-left: 1px solid var(--gray-bg-01);
  @media (max-width: 600px) {
    padding: 10px 0 0 0;
    border-left: none;
    border-top: 1px solid var(--gray-bg-01);
    width: 100%;
  }
}
.p-ai-html-reason-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.p-ai-html-reason-item__title {
  position: relative;
  padding-left: 25px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
  color: var(--black);
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--rmailmarketing-dark);
    border-radius: 50%;
  }
  &::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: 10px;
    height: 7px;
    border-top: 2px solid var(--white);
    border-right: 2px solid var(--white);
    transform: rotate(135deg);
  }
}
.p-ai-html-reason-item__text {
  font-size: 16px;
  line-height: 1.3;
  color: var(--black);
}

/* 画像拡大ズーム */
.m-reason-column-item__image-wrap--zoom {
  position: relative;
  cursor: zoom-in;
}
.m-reason-column-item__zoom-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  pointer-events: none;
  width: 32px;
  height: 32px;
}
.p-ai-html-image-zoom {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-index-modal);
  align-items: center;
  justify-content: center;
  &.is-open {
    display: flex;
  }
}
.p-ai-html-image-zoom__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}
.p-ai-html-image-zoom__inner {
  position: relative;
  z-index: 10;
  max-width: 90vw;
  max-height: 90vh;
}
.p-ai-html-image-zoom__close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: var(--black);
  }
  &::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  &::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}
.p-ai-html-image-zoom__image {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.is-image-zoom-open {
  overflow: hidden;
}
