/* 
 * custom.css
 * サイト固有のスタイルを定義するファイル
 * 
 * 更新履歴:
 * 2024-03-21: ファイル作成
 */

/* サイト全体の基本スタイル */

/* 
 * wordpres ブロックプラグインのスタイルリセット
 * -------------------------------
 */
 /* ブロックカラムのパディングをリセット */
 .has-border,
div.has-background,
p.has-background {
  padding: 0 !important;
}

/* 目的: ランディングページ用コンテナスタイリング
 * 対象: .lpbody
 * 更新日: 2024-03-21
 */
.lpbody {
  box-sizing: border-box; /* パディングやボーダーを含めた幅計算 */
  max-width: 940px;       /* 最大幅940px */
  width: 100%;            /* 画面幅に合わせて縮小 */
  margin: 0 auto;         /* 左右中央寄せ */
}

/*CVボタン*/
/* コンテナ: デスクトップは最大50vw、モバイルは画面幅の90% */
/* コンテナ: デスクトップは最大50vw、モバイルは画面幅90% */
.lp-cta-cover {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  background-size: cover;
  background-position: center;
  color: inherit;
  padding: 2rem;
}

/* オーバーレイ: 背景を暗くする */
.lp-cta-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* 内包リンク: CTA として機能 */
.lp-cta-cover a {
  display: inline-block;          /* テキスト幅に合わせてフィット */
  position: relative;             /* 矢印の絶対位置基準 */
  margin: 0 auto;                 /* 横中央寄せ */
  box-sizing: border-box;
  padding: 1rem 3.5rem 1rem 1rem;  /* 右側に矢印用スペース */
  text-align: center;
  transition: background-color .3s ease;
  color: inherit;                 /* フォント色は GUI で制御 */
  text-decoration: none;          /* 下線は不要なら外す */
}

/* 矢印アイコン: リンク右端に表示 */
.lp-cta-cover a::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: #fff !important;   /* 確実に白く */
  font-size: 2rem;          /* 矢印サイズ */
  line-height: 1;
  pointer-events: none;
}

/* モバイル調整 */
@media screen and (max-width: 600px) {
  .lp-cta-cover {
      max-width: none;
      width: 90%;
      padding: 1.5rem;
  }
  .lp-cta-cover a {
      padding: 0.75rem 2.5rem 0.75rem 1rem;
      font-size: 1rem;
  }
  .lp-cta-cover a::after {
      font-size: 1.5rem;
      right: 0.75rem;
  }
}

/*******************/