@charset "UTF-8";

/* 業態別の資料（焼肉店向け・高級店向け）への横断導線。
   導入事例ページ・機能ページの本文末に置く。
   main.css はビルド成果物なので、このブロック専用に切り出している。

   課題別ページの .p-checkLead と役割は同じだが、あちらは
   challenge-checklist.css が「課題別ページ専用」として切られているため、
   ファイルをまたいで使い回さず別コンポーネントとして持つ。
   同一ページに両方が出ることはない前提で、見た目は揃えている。 */

.p-docLead {
  position: relative;
  margin: 4rem auto 0;
  max-width: 88rem;
  padding: 2.4rem;
  border: 0.1rem solid #cfe9e3;
  border-radius: 0.6rem;
  background: #f4fbf9;
  text-align: center;
  overflow: hidden;
}

/* 左のアクセントは擬似要素で描く。border-left にすると
   その分だけコンテンツ領域が右にずれ、中央揃えが左右非対称になるため */
.p-docLead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.4rem;
  height: 100%;
  background: #29baa2;
}

.p-docLead__hdg {
  margin: 0 0 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  color: #123b5e;
}

.p-docLead__txt {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.8;
  color: #333;
}

/* ページ本来のCTA（資料請求・お問い合わせ）と競合しないよう、
   グラデーションのオレンジではなくブランドグリーンの単色にしている。 */
.p-docLead__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin-top: 2rem;
  padding: 1.6rem 2rem;
  border-radius: 0.6rem;
  background: #29baa2;
  box-shadow: 0 0.2rem 0.6rem rgba(18, 59, 94, 0.15);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* 矢印はCSSで描く。白い矢印のSVGが用意されていないため */
.p-docLead__link::after {
  content: "";
  flex-shrink: 0;
  width: 0.8rem;
  height: 0.8rem;
  border-top: 0.2rem solid currentColor;
  border-right: 0.2rem solid currentColor;
  transform: rotate(45deg);
}

.p-docLead__link:hover {
  background: #219e8a;
  box-shadow: 0 0.4rem 1rem rgba(18, 59, 94, 0.2);
}

.p-docLead__note {
  margin: 0.8rem 0 0;
  font-size: 1.3rem;
  line-height: 1.6;
  color: #6b7a86;
}

/* 2本目の導線。ボタンをもう1つ置くとブロックが重くなるため、
   本文と同じ見た目の1文にとどめている */
.p-docLead__more {
  margin: 1.6rem 0 0;
  padding-top: 1.4rem;
  border-top: 0.1rem solid #dcece8;
  font-size: 1.3rem;
  line-height: 1.8;
  text-align: left;
  color: #3c3c3c;
}

.p-docLead__moreLink {
  font-weight: 700;
  color: #17806f;
  text-decoration: underline;
}

@media screen and (min-width: 768px) {
  .p-docLead {
    margin-top: 6.4rem;
    padding: 3.2rem 3.6rem;
  }

  .p-docLead__hdg {
    font-size: 2.2rem;
  }

  .p-docLead__txt {
    font-size: 1.6rem;
  }

  /* PCは文字数ぶんの幅に収める。全幅にすると
     セクション全体のCTAに見えてしまい、本来のCTAと競合する */
  .p-docLead__link {
    display: inline-flex;
    width: auto;
    padding: 1.8rem 3.2rem;
    font-size: 1.7rem;
  }

  .p-docLead__more {
    font-size: 1.4rem;
    text-align: center;
  }
}

/* 導入事例一覧・機能ページでは前後のセクションと詰まって見えるため、
   ブロック単体で左右の余白を持たせる */
.l-section-docLead {
  padding: 0 20px;
}

@media screen and (min-width: 768px) {
  .l-section-docLead {
    padding: 0 40px;
  }
}
