/* デモCTAセクション */
.demo-cta-section {
  width: 100%;
  background: #f6f6f6;
  padding: 0;
  position: relative;
}

.demo-cta-container {
  position: relative;
  max-width: 1440px;
  height: 495px;
  margin: 0 auto;
  background: #ffffff;
  overflow: hidden;
}

/* コンテンツラッパー */
.demo-cta-content {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  overflow: hidden;
}

/* 赤い背景の斜め部分 */
.demo-cta-content::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 100%;
  top: 0;
  right: 0;
  background: #ec191d;
  transform: skewX(-35deg) translateX(-80%);
  z-index: 0;
}

/* 左側（ラップトップ画像） */
.demo-cta-laptop {
  width: 50%;
  min-width: 400px;
  height: auto;
  position: relative;
  z-index: 1;
}

.demo-cta-laptop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 右側（テキストとボタン） */
.demo-cta-text {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* 中央揃えに変更 */
  gap: 30px;
  z-index: 1;
  padding-right: 60px;
}

.demo-cta-logo {
  width: 360px;
  height: 80px;
  margin: 0 auto; /* 中央揃えのために追加 */
}

.demo-cta-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.demo-cta-title {
  font-family: "Noto Sans JP";
  font-weight: 700;
  font-size: 24px;
  line-height: 140%;
  color: #404040;
  width: 100%;
  text-align: center; /* 中央揃えに変更 */
}

.demo-cta-title .highlight {
  color: #ec191d; /* AI校正を赤色に */
}

/* ボタングループ */
.demo-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.demo-cta-button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-family: "Noto Sans JP";
  font-weight: 700;
  font-size: 20px;
  line-height: 140%;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.demo-cta-button.primary {
  width: 100%;
  height: 70px;
  background: #ec191d;
  color: #ffffff;
  padding: 20px 60px;
}

.demo-cta-buttons .outline-buttons {
  display: flex;
  gap: 20px;
  width: 100%;
}

.demo-cta-button.outline {
  flex: 1;
  height: 70px;
  background: transparent;
  color: #ec191d;
  border: 1px solid #ec191d;
  font-size: 16px;
}

/* 象の画像 - PC版 */
.demo-cta-elephant {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 200px; /* 基準となる幅 */
  height: auto; /* 高さを自動調整して縦横比を維持 */
  object-fit: contain; /* 画像の縦横比を維持 */
}

/* 象の画像 - SP版 */
.demo-cta-elephant-sp {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 2;
}

/* レスポンシブ対応 */
@media (max-width: 1439px) {
  .demo-cta-text {
    width: 40%; /* 幅を広げる */
  }

  .demo-cta-elephant {
    width: 180px; /* 象のサイズを少し小さく */
  }

  .demo-cta-button {
    font-size: 18px; /* ボタンのフォントサイズを小さく */
  }
}

@media (max-width: 1279px) {
  .demo-cta-content {
    padding: 0 40px;
  }

  .demo-cta-laptop {
    min-width: 360px;
  }

  .demo-cta-text {
    width: 40%; /* さらに幅を広げる */
    padding-right: 40px;
  }

  .demo-cta-logo {
    width: 320px;
    height: 71px;
  }

  .demo-cta-title {
    font-size: 22px;
  }

  .demo-cta-button {
    font-size: 16px; /* ボタンのフォントサイズをさらに小さく */
  }

  .demo-cta-elephant {
    right: 20px;
    width: 160px; /* 象のサイズをさらに小さく */
  }
}

@media (max-width: 1023px) {
  .demo-cta-content {
    padding: 0 30px;
  }

  .demo-cta-laptop {
    min-width: 320px;
  }

  .demo-cta-text {
    width: 40%; /* 幅をさらに広げる */
    padding-right: 30px;
  }

  .demo-cta-logo {
    width: 280px;
    height: 62px;
  }

  .demo-cta-title {
    font-size: 20px;
  }

  .demo-cta-button {
    font-size: 18px; /* ボタンのフォントサイズをさらに小さく */
  }

  .demo-cta-button.outline {
    font-size: 14px; /* ボタンのフォントサイズをさらに小さく */
  }

  .demo-cta-elephant {
    right: 10px;
    width: 140px; /* 象のサイズをさらに小さく */
  }
}

/* iPadサイズ専用の調整 */
@media (min-width: 768px) and (max-width: 1024px) {
  .demo-cta-text {
    width: 40%; /* 幅をさらに広げる */
    padding-right: 20px;
  }

  /* 赤い背景の斜め部分 */
  .demo-cta-content::before {
    right: 70%;
    background: #ec191d;
    transform: skewX(-25deg) translateX(10%);
    z-index: 0;
  }

  .demo-cta-buttons {
    max-width: 100%;
  }

  .demo-cta-button {
    font-size: 18px; /* ボタンのフォントサイズをさらに小さく */
  }

  .demo-cta-button.outline {
    font-size: 12px; /* ボタンのフォントサイズをさらに小さく */
  }

  .demo-cta-elephant {
    right: 10px;
    width: 120px; /* 象のサイズをさらに小さく */
  }
}

/* SPスタイル */
@media (max-width: 767px) {
  .demo-cta-section {
    padding: 0;

  .demo-cta-container {
    height: auto; /* 高さを自動に変更 */
    background: #ffffff;
  }

  .demo-cta-content {
    flex-direction: column;
    padding: 0;
    width: 100%;
    justify-content: flex-start;
    background: #ffffff;
  }

  /* SP用の赤い背景 - 斜めに修正 */
  .demo-cta-content::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 50%; /* 高さを調整 */
    transform: none;
    left: 0;
    top: 0;
    background: #ec191d; /* 赤色背景 */
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 20%); /* 左上から右下への斜め */
    z-index: 0;
  }

  .demo-cta-laptop {
    width: 100%;
    max-width: 290px;
    min-width: auto;
    margin: 40px auto;
    position: relative;
    z-index: 1;
  }

  .demo-cta-text {
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 0;
    position: relative;
    z-index: 1;
  }

  .demo-cta-logo {
    width: 290px; /* ロゴサイズを調整 */
    height: auto;
    margin: 0;
    padding: 0;
  }

  .demo-cta-title {
    width: 100%;
    font-size: 20px;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .demo-cta-buttons {
    width: 100%;
    padding: 0 20px;
    margin: 0;
    gap: 12px;
  }

  .demo-cta-button.primary {
    height: 48px;
    font-size: 16px;
    padding: 0;
    border-radius: 4px;
    width: 100%;
    background: #ec191d;
  }

  .demo-cta-buttons .outline-buttons {
    gap: 11px;
    width: 100%;
  }

  .demo-cta-button.outline {
    width: 100%;
    height: 48px;
    padding: 0;
    border-radius: 4px;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #ec191d;
  }

  /* PC版の象を非表示 */
  .demo-cta-elephant {
    display: none;
  }

  /* SP版の象を表示 */
  .demo-cta-elephant-sp {
    display: block;
    position: relative;
    margin: 20px auto 0; /* 上下のマージンを追加 */
  }
}

