/**
 * ここの使い方ブロック 共通スタイル
 * Template-part: template-parts/lp-howto.php
 * 複数テンプレートで共用可能
 */

/* ============================================================
   ブロック全体
   ============================================================ */
.lp-howto {
  background-color: #ecfaf6;
  font-family: 'Noto Sans JP', 'Roboto', sans-serif;
  padding-bottom: 60px;
}

/* ============================================================
   ヘッダー帯
   ============================================================ */
.lp-howto__header {
  background-color: #239979;
  padding: 28px 0;
  width: 100%;
}

.lp-howto__header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

/* 左側：タイトルブロック */
.lp-howto__header-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 480px;
  flex-shrink: 0;
}

/* 細ライン（#73c0ab） */
.lp-howto__header-line {
  width: 100%;
  height: 4px;
  background-color: #73c0ab;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ラベル＋タイトルグループ */
.lp-howto__header-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ラベルバッジ */
.lp-howto__header-label-wrap {
  position: relative;
  display: inline-block;
}

.lp-howto__header-label {
  display: inline-block;
  background-color: #222222;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ラベル下の矢印 */
.lp-howto__header-label-arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #222222;
  margin: 0 auto;
  margin-top: -1px;
}

/* メインタイトル */
.lp-howto__header-title {
  font-size: 44px;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  line-height: 1.28;
  white-space: nowrap;
}

/* 右側：リード文 */
.lp-howto__header-lead {
  width: 480px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.8;
  color: #ffffff;
}

/* ============================================================
   コンテンツエリア
   ============================================================ */
.lp-howto__body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 20px 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ============================================================
   導入テキスト
   ============================================================ */
.lp-howto__intro {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: #222222;
  text-align: center;
}

.lp-howto__intro p {
  margin: 0 0 0.5em;
}

.lp-howto__intro p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   セクションタイトル（左ボーダー付き）
   ============================================================ */
.lp-howto__section-heading {
  border-left: 12px solid #239979;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-howto__section-sub {
  font-size: 16px;
  font-weight: 500;
  color: #222222;
  line-height: 1.6;
}

.lp-howto__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #222222;
  line-height: 1.2;
}

/* ============================================================
   ステップリスト
   ============================================================ */
.lp-howto__steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 2列グリッド行 */
.lp-howto__steps-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  justify-content: center;
}

/* 全幅行（ステップ9など） */
.lp-howto__steps-row--full {
  grid-template-columns: 1fr;
}

/* ステップカード */
.lp-howto__step {
  background-color: #ffffff;
  border-radius: 4px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ステップ番号バッジ */
.lp-howto__step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #239979;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-howto__step-number span {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

/* ステップ画像エリア */
.lp-howto__step-images {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

/* 画像（1枚 or 複数枚） */
.lp-howto__step-image {
  border: 2px solid #73c0ab;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  width: 100%;
}

/* 1枚の時は中央寄せ */
.lp-howto__step-images--single .lp-howto__step-image {
  width: 340px;
  max-width: 100%;
  margin: 0 auto;
}

/* 複数枚は等幅 */
.lp-howto__step-images--multi .lp-howto__step-image {
  flex: 1;
  min-width: 0;
  height: auto;
}

/* プレースホルダー */
.lp-howto__step-image-placeholder {
  border: 2px solid #73c0ab;
  border-radius: 8px;
  background-color: #f0faf7;
  height: 131px;
  width: 340px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #73c0ab;
}

/* ステップキャプション */
.lp-howto__step-caption {
  font-size: 18px;
  font-weight: 700;
  color: #222222;
  line-height: 1.2;
}

/* ============================================================
   注釈テキスト
   ============================================================ */
.lp-howto__note {
  font-size: 18px;
  font-weight: 400;
  color: #222222;
  line-height: 1.6;
}

.lp-howto__note p {
  margin: 0 0 0.5em;
}

.lp-howto__note p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   フッターCTAカード
   ============================================================ */
.lp-howto__cta-card {
  background-color: #ffffff;
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lp-howto__cta-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.lp-howto__cta-label {
  font-size: 20px;
  font-weight: 700;
  color: #222222;
  line-height: 1.6;
}

.lp-howto__cta-sublabel {
  font-size: 18px;
  font-weight: 400;
  color: #222222;
  line-height: 1.6;
}

/* 「詳しくはこちら」ボタン */
.lp-howto__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #239979;
  border-radius: 50px;
  padding: 12px 60px;
  background-color: #ffffff;
  color: #239979;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.9;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.lp-howto__cta-btn:hover {
  background-color: #239979;
  color: #ffffff;
}

.lp-howto__cta-btn:hover .lp-howto__cta-btn-icon {
  filter: brightness(0) invert(1);
}

.lp-howto__cta-btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
  .lp-howto__header-inner {
    flex-direction: column;
    gap: 20px;
    padding: 0 16px;
  }

  .lp-howto__header-left {
    width: 100%;
  }

  .lp-howto__header-title {
    font-size: 28px;
    white-space: normal;
    text-align: center;
  }

  .lp-howto__header-lead {
    width: 100%;
    font-size: 16px;
  }

  .lp-howto__body {
    padding: 32px 16px 0;
    gap: 32px;
  }

  .lp-howto__intro {
    font-size: 16px;
    text-align: left;
  }

  .lp-howto__section-heading {
    border-left-width: 6px;
    padding-left: 16px;
  }

  .lp-howto__section-title {
    font-size: 24px;
  }

  .lp-howto__steps-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lp-howto__step-images--single .lp-howto__step-image {
    width: 100%;
  }

  /* 複数画像: SP時は縦並び */
  .lp-howto__step-images--multi {
    flex-direction: column;
  }
  .lp-howto__step-images--multi .lp-howto__step-image {
    flex: none;
    width: 100%;
  }

  .lp-howto__step-caption {
    font-size: 16px;
  }

  .lp-howto__cta-btn {
    font-size: 18px;
    padding: 12px 32px;
  }

  .lp-howto__note {
    font-size: 14px;
  }
}
