@charset "UTF-8";
/*
  manualページ・manual下層ページ用CSS（header.php で読み込み条件を指定）
  管理画面から追加するコンテンツ（p-manual-* / p-manual-sub-*）のスタイル
*/

/*
  レイアウト
  page-col1.php の .col-1（style_base.css で width: 1100px）を全幅にする
  下層の既存記事ページに影響しないよう、新コンテンツ（l-common-section）を含む場合のみ適用
*/
#main-inner.col-1:has(.l-common-section) {
  width: 100%;
}

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

/*
  見出し
*/
.p-manual-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-manual-lead {
  margin: 0 0 30px;
  &:last-child {
    margin: 0 0 30px;
  }
}

/*
  テキストリンク（青）
*/
.p-manual-textlink {
  padding: 0 0 0 24px;
  color: var(--rmailmarketing-dark);
  &::before {
    background-color: var(--rmailmarketing-dark);
  }
}

/*
  アンカーリンク
*/
.p-manual-anchor {
  padding: 0 0 50px;
  @media screen and (max-width: 840px) {
    padding: 0 0 40px;
  }
}
.p-manual-anchor-box__link {
  flex: 1;
  width: auto;
  height: 62px;
  padding: 15px 15px 25px;
  font-size: 18px;
  color: var(--black);
  background: var(--gray-bg-02);
  &::after {
    bottom: 6px;
  }
  .c-anchorlink-box-link__text {
    top: 0;
    line-height: 1.2;
  }
  @media screen and (max-width: 1024px) {
    flex: 0 0 calc((100% - 10px) / 2);
  }
  @media screen and (max-width: 600px) {
    flex-basis: auto;
    width: 100%;
    font-size: 16px;
  }
}

/*
  目的別に探す
*/
.p-manual-purpose-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 30px;
  @media screen and (max-width: 1024px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media screen and (max-width: 600px) {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.p-manual-purpose-item__link {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 15px 30px 15px 15px;
  border-radius: 10px;
  transition: opacity ease 0.3s;
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--rmailmarketing-dark);
    border-right: 2px solid var(--rmailmarketing-dark);
    transform: translateY(-50%) rotate(45deg);
    transition: right ease 0.3s;
  }
  &:hover {
    opacity: 0.8;
    &::after {
      right: 10px;
    }
  }
}
.p-manual-purpose-item__icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}
.p-manual-purpose-item__text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.p-manual-more {
  margin: 30px 0 0;
  text-align: center;
}

/*
  機能別に探す
*/
.p-manual-function-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  @media screen and (max-width: 1024px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media screen and (max-width: 600px) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.p-manual-function-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px;
  border-radius: 10px;
  @media screen and (max-width: 600px) {
    padding: 20px;
  }
}
.p-manual-function-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.p-manual-function-card__title-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 0;
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--rmailmarketing-dark);
    border-right: 2px solid var(--rmailmarketing-dark);
    transform: translateY(-50%) rotate(45deg);
  }
  &:hover {
    text-decoration: underline;
  }
}
.p-manual-function-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.p-manual-function-card__item {
  border-bottom: 1px solid var(--gray-bg-01);
}
.p-manual-function-card__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--black);
  &::before {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 1px;
    background-color: var(--rmailmarketing-bg-main);
  }
  &:hover {
    color: var(--rmailmarketing-dark);
  }
}
.p-manual-function-card__note {
  padding: 5px 0 0;
  font-size: 10px;
  line-height: 1.3;
  text-align: right;
}

/*
  動画マニュアル
*/
.p-manual-movie-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  @media screen and (max-width: 840px) {
    grid-template-columns: 1fr;
  }
}
.p-manual-movie-item__link {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px;
  border-radius: 10px;
  transition: opacity ease 0.3s;
  &:hover {
    opacity: 0.8;
  }
  @media screen and (max-width: 600px) {
    gap: 15px;
    padding: 15px;
  }
}
.p-manual-movie-item__thumb {
  position: relative;
  flex-shrink: 0;
  width: 170px;
  height: 120px;
  /* 暗幕 */
  &::before {
    content: "";
    position: absolute;
    inset: 0;
  }
  /* 再生アイコン */
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 20px solid var(--white);
    transform: translate(-40%, -50%);
  }
  @media screen and (max-width: 600px) {
    width: 120px;
    height: 85px;
  }
}
.p-manual-movie-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-manual-movie-item__text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

/*
  よく見られているマニュアル
*/
.p-manual-popular-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  @media screen and (max-width: 1024px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media screen and (max-width: 600px) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.p-manual-popular-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 50px 30px 30px;
  border-radius: 10px;
  overflow: hidden;
  @media screen and (max-width: 600px) {
    padding: 50px 20px 30px;
  }
}
.p-manual-popular-card__label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--white);
  background-color: var(--rmailmarketing-bg-main);
  &.p-manual-popular-card__label--option {
    color: var(--black);
    background-color: var(--rmailmarketing-accent);
  }
}
.p-manual-popular-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.p-manual-popular-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}
.p-manual-popular-card__icon {
  width: 80px;
  height: 80px;
}
.p-manual-popular-card__text {
  width: 100%;
  font-size: 16px;
  line-height: 1.7;
  strong {
    font-weight: 700;
  }
}
.p-manual-popular-card__text-link {
  color: var(--link);
  text-decoration: underline;
  &:hover {
    text-decoration: none;
  }
}
.p-manual-popular-card__text:has(+ .p-manual-popular-card__link) {
  margin: 0 0 10px;
}
.p-manual-popular-card__link {
  margin: auto 0 0;
}

/*
  旧スタイル（asset/css/style_base.css）の打ち消し
*/
/* p { padding-top: 10px !important; } */
.p-manual-lead,
.p-manual-popular-card__text {
  padding-top: 0 !important;
}
.p-manual-popular-card__label {
  padding-top: 6px !important;
}
.p-manual-function-card__note {
  padding-top: 5px !important;
}
/* h3 { background; padding; margin; letter-spacing; } */
.p-manual-function-card__title,
.p-manual-popular-card__title {
  background: none;
  padding: 0;
  margin: 0;
  letter-spacing: normal;
}

/* ==========================================================================
  manual下層ページ（p-manual-sub-*）
========================================================================== */

/*
  セクション余白
*/
.l-common-section.p-manual-sub-section {
  padding: 0 0 60px;
  @media screen and (max-width: 840px) {
    padding: 0 0 50px;
  }
}

/*
  カード
*/
.p-manual-sub-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  @media screen and (max-width: 840px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  @media screen and (max-width: 600px) {
    grid-template-columns: 1fr;
  }
}
.p-manual-sub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px;
  border-radius: 10px;
  @media screen and (max-width: 600px) {
    padding: 20px;
  }
}
.p-manual-sub-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.p-manual-sub-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}
.p-manual-sub-card__icon {
  width: 80px;
  height: 80px;
  &.p-manual-sub-card__icon--small {
    width: 70px;
    height: 70px;
  }
}
.p-manual-sub-card__text {
  width: 100%;
  font-size: 16px;
  line-height: 1.7;
}
.p-manual-sub-card__link {
  margin: auto 0 0;
  padding: 0 0 0 24px;
  color: var(--rmailmarketing-dark);
  &::before {
    background-color: var(--rmailmarketing-dark);
  }
}

/*
  操作マニュアル一覧
*/
.p-manual-sub-manual {
  margin: 60px 0 0;
  @media screen and (max-width: 840px) {
    margin: 50px 0 0;
  }
}
.p-manual-sub-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-manual-sub-manual-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 6px;
  @media screen and (max-width: 1024px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media screen and (max-width: 600px) {
    grid-template-columns: 1fr;
  }
}
.p-manual-sub-manual-item__link {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 26px 6px 10px;
  border: 1px solid var(--gray-bg-01);
  border-radius: 6px;
  transition: border-color ease 0.3s;
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 13px;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--rmailmarketing-dark);
    border-right: 2px solid var(--rmailmarketing-dark);
    transform: translateY(-50%) rotate(45deg);
    transition: right ease 0.3s;
  }
  &:hover {
    border-color: var(--rmailmarketing-dark);
    &::after {
      right: 10px;
    }
  }
}
.p-manual-sub-manual-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.p-manual-sub-manual-item__text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

/*
  旧スタイル（asset/css/style_base.css）の打ち消し
*/
/* p { padding-top: 10px !important; } */
.p-manual-sub-card__text {
  padding-top: 0 !important;
}
/* h2 { background; border-left; padding; margin; letter-spacing; }
   h2:first-of-type（詳細度0,1,1）に勝つため :first-of-type も併記 */
.p-manual-sub-card__title,
.p-manual-sub-card__title:first-of-type {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  letter-spacing: normal;
}
/* h2 { color; letter-spacing; } */
.p-manual-sub-heading-h2-type01 {
  color: inherit;
  letter-spacing: normal;
}

.p-manual-sub-item__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 30px;
  border-radius: 10px;
  color: var(--black);
  word-break: normal;
  @media screen and (max-width: 600px) {
    padding: 20px;
  }
  /* カード全体ホバー時に「詳しく見る」の矢印を動かす */
  &:hover .c-textlink {
    &::before {
      left: -3px;
    }
    &::after {
      left: 5px;
    }
  }
}
.p-manual-sub-item__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
.p-manual-sub-item__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}
.p-manual-sub-item__icon {
  width: 80px;
  height: 80px;
  &.p-manual-sub-item__icon--small {
    width: 70px;
    height: 70px;
  }
}
.p-manual-sub-item__text {
  width: 100%;
  font-size: 16px;
  line-height: 1.7;
}
.p-manual-sub-item__more {
  padding: 0 0 0 24px;
  color: var(--rmailmarketing-dark);
  &::before {
    background-color: var(--rmailmarketing-dark);
  }
}
