@charset "UTF-8";
/*
  basicsページ用CSS（header.php で is_page('basics') の場合のみ読み込み）
  管理画面から追加するコンテンツ（p-basics-*）のスタイル
*/

/*
  レイアウト
  page-col1.php の .col-1（style_base.css で width: 1100px）を全幅にする
*/
.col-1 {
  width: 100%;
}

/*
  セクション余白
*/
.l-common-section.p-basics-step,
.l-common-section.p-basics-section {
  padding: 60px 0;
  @media screen and (max-width: 840px) {
    padding: 50px 0;
  }
}
.p-basics-block {
  & + .p-basics-block {
    margin: 60px 0 0;
    @media screen and (max-width: 840px) {
      margin: 50px 0 0;
    }
  }
}

/*
  見出し
*/
.p-basics-heading-h2 {
  font-size: 30px;
  padding: 0 0 70px;
  &::after {
    bottom: 48px;
  }
  @media screen and (max-width: 600px) {
    font-size: 24px;
    padding: 0 0 60px;
    &::after {
      bottom: 40px;
    }
  }
}
.p-basics-heading-h2-type01 {
  background-color: var(--gray-bg-02);
  border-left: 6px solid var(--rmailmarketing-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  padding: 20px 25px;
  margin: 0 0 20px;
  @media screen and (max-width: 600px) {
    font-size: 18px;
    padding: 15px 20px;
  }
}
.p-basics-lead {
  margin: 0 0 30px;
  &:last-child {
    margin: 0 0 30px;
  }
}
.p-basics-text {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 30px;
}

/*
  カード
*/
.p-basics-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px;
  border-radius: 10px;
}
.p-basics-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.p-basics-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}
.p-basics-card__icon {
  width: 80px;
  height: 80px;
  &.p-basics-card__icon--small {
    width: 70px;
    height: 70px;
  }
}
.p-basics-card__text {
  width: 100%;
  font-size: 16px;
  line-height: 1.7;
}
.p-basics-card__text-link {
  color: var(--link);
  text-decoration: underline;
  &:hover {
    text-decoration: none;
  }
}
.p-basics-card__link {
  margin: auto 0 0;
  padding: 0 0 0 24px;
  color: var(--rmailmarketing-dark);
  &::before {
    background-color: var(--rmailmarketing-dark);
  }
}

/*
  カードリスト（2列・3列）
*/
.p-basics-card-list {
  display: grid;
  gap: 30px;
  &.p-basics-card-list--col3 {
    grid-template-columns: repeat(3, 1fr);
    @media screen and (max-width: 840px) {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }
  &.p-basics-card-list--col2 {
    grid-template-columns: repeat(2, 1fr);
    @media screen and (max-width: 600px) {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }
}

/*
  5つのステップ
*/
.p-basics-step-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px 12.5px;
  @media screen and (max-width: 1024px) {
    grid-template-columns: repeat(3, 1fr);
  }
  @media screen and (max-width: 600px) {
    grid-template-columns: 1fr;
  }
}
.p-basics-step-list__item {
  padding: 40px 18px 20px;
  .c-circle-number {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    top: -23px;
    padding: 0;
    font-family: "Roboto", sans-serif;
    font-size: 24px;
    @media screen and (max-width: 840px) {
      width: 50px;
      height: 50px;
      top: -23px;
      font-size: 24px;
    }
  }
  .c-circle-number__text {
    font-size: 12px;
  }
}

/*
  動画でかんたん！スタートアップガイド
*/
.p-basics-movie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 50px 0 0;
  padding: 50px 100px;
  border-radius: 10px;
  @media screen and (max-width: 1024px) {
    padding: 50px 40px;
  }
  @media screen and (max-width: 840px) {
    flex-direction: column;
    padding: 40px 20px;
  }
}
.p-basics-movie__content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  flex: 1;
  @media screen and (max-width: 840px) {
    gap: 20px;
    width: 100%;
  }
}
.p-basics-movie__title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  @media screen and (max-width: 600px) {
    font-size: 24px;
  }
}
.p-basics-movie__title-sub {
  display: block;
  font-size: 20px;
  @media screen and (max-width: 600px) {
    font-size: 16px;
  }
}
.p-basics-movie__text {
  font-size: 16px;
  line-height: 1.7;
}

/* ノートPCフレーム */
/*
  フレーム画像（image_basic-pc-movie.png 1042×591）の画面パネル：x 104〜943 / y 0〜553
  パネル内側に余白20pxを取り、幅800pxの16:9動画を上下中央に配置
*/
.p-basics-movie__device {
  position: relative;
  flex-shrink: 0;
  width: 600px;
  max-width: 100%;
}
.p-basics-movie__image {
  display: block;
  width: 100%;
  height: auto;
}
.p-basics-movie__iframe {
  position: absolute;
  top: 8.71%; /* (553 - 450) / 2 / 591 */
  left: 11.9%; /* (104 + 20) / 1042 */
  width: 76.78%; /* 800 / 1042 */
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}

/*
  ダウンロードボタン
*/
.p-basics-download {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  max-width: 100%;
  height: 70px;
  padding: 10px 40px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  background-color: var(--rmailmarketing-dark);
  border: 1px solid var(--rmailmarketing-dark);
  border-radius: 5px;
  transition: all ease 0.3s;
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 16px;
    height: 18px;
    transform: translateY(-50%);
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath d='M7 0h2v10.6l3.3-3.3 1.4 1.4L8 14.4 2.3 8.7l1.4-1.4L7 10.6z'/%3E%3Cpath d='M0 12h2v4h12v-4h2v6H0z'/%3E%3C/svg%3E") no-repeat center / contain;
  }
  &:hover {
    color: var(--rmailmarketing-dark);
    background-color: var(--white);
  }
}

/*
  旧スタイル（asset/css/style_base.css）の打ち消し
*/
/* p { padding-top: 10px !important; } */
.p-basics-lead,
.p-basics-text,
.p-basics-card__text,
.p-basics-movie__text {
  padding-top: 0 !important;
}
/* h2 { color; letter-spacing; } */
.p-basics-heading-h2-type01 {
  color: inherit;
  letter-spacing: normal;
}
/* h3 { background; padding; margin; letter-spacing; } */
.p-basics-card__title,
.p-basics-movie__title {
  background: none;
  padding: 0;
  margin: 0;
  letter-spacing: normal;
}
