@charset "UTF-8";

/* -----------------------------------------
   CTAボックス共通スタイル
   ----------------------------------------- */
.cta-box {
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.cta-box a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
}

/* CTAボックス（紫グラデーション） */
.cta-box-tech {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* CTAボックス内のタイトル */
.cta-box-title {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
}

/* CTAボックス内の補足文 */
.cta-box-description {
  color: #f5f5f5;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
  line-height: 1.6;
}

/* CTAボックス内のショートコード配置エリア */
.cta-box-action {
  text-align: center;
  color: #f5f5f5;
}

/* -----------------------------------------
   タイトル直下バナー（軽量版CTA）
   ----------------------------------------- */
.cta-banner {
  padding: 12px 20px;
  margin: 0 0 24px 0;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.cta-banner-tech {
  position: relative;
  /* ダークブルーからディープパープルへのグラデーション */
  background: linear-gradient(135deg, #1a1a2e 0%, #3a2e5d 100%);
  color: #e8e8e8;
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* デスクトップ用メディアクエリを削除し、常時縦積み（カラム）レイアウトにする */

/* 擬似要素は無効化 */
.cta-banner-tech::before {
  content: none !important;
  display: none !important;
}

.cta-banner-message {
  display: flex;
  align-items: center;
  justify-content: center; /* モバイルで中央揃え */
  gap: 8px;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 768px) {
  .cta-banner-message {
    justify-content: flex-start; /* PCでは左揃え */
  }
}

.cta-banner-icon {
  font-size: 1.2em;
  /* marginはgapで代替するため削除 */
  line-height: 1; /* アイコンの高さズレ防止 */
  flex-shrink: 0; /* アイコンが潰れないようにする */
}


.cta-banner-text {
  /* color, font-weightは親(message)に設定したので削除可だが、念のため維持 */
  font-weight: 700;
  color: #fff;
}

.cta-banner-action {
  white-space: normal;
}

.cta-banner-tech a {
  display: inline-block;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.cta-banner-tech a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-banner-tech a:hover {
  text-decoration: underline;
}

/* -----------------------------------------
   中間CTA（インライン形式）
   ----------------------------------------- */
.cta-inline {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 12px;
  align-items: flex-start;
}

.cta-inline-tech {
  /* 冒頭バナーと統一感のあるダークグラデーションに変更 */
  background: linear-gradient(135deg, #1a1a2e 0%, #3a2e5d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #e8e8e8;
}

.cta-inline-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.cta-inline-content {
  flex: 1;
}

.cta-inline-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff; /* ダーク背景に合わせて白文字に変更 */
  margin-bottom: 8px;
}

.cta-inline-description {
  font-size: 14px;
  color: #adb5bd; /* 読みやすいライトグレーに変更 */
  line-height: 1.6;
  margin-bottom: 12px;
}

.cta-inline-action {
  display: inline-block;
}

.cta-inline-action a {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-inline-action a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

/* ダークモード対応（デフォルトでダーク化したため、特段の上書きは不要だが念のため維持） */
@media (prefers-color-scheme: dark) {
  .cta-inline-tech {
    background: linear-gradient(135deg, #1a1a2e 0%, #3a2e5d 100%); /* 一貫性を保つ */
    border-color: rgba(255, 255, 255, 0.1);
  }

  .cta-inline-title {
    color: #fff;
  }

  .cta-inline-description {
    color: #adb5bd;
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .cta-inline {
    flex-direction: column;
    padding: 16px;
  }

  .cta-inline-icon {
    font-size: 28px;
  }

  .cta-banner {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* -----------------------------------------
   吹き出し内アフィリエイトCTAのボタン化（#1505）
   吹き出し（.c-balloon__text）の中の rel="sponsored" リンクだけを対象にし、
   地の文のテキストリンクは文章になじむテキストリンクのまま残す（docs/cta_format.md）。
   ----------------------------------------- */
.c-balloon__text a[rel~="sponsored"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0.75em 0 0.25em;
  padding: 0.7em 2.4em 0.7em 1.2em;
  position: relative;
  background: #c2410c;
  border-radius: 999px;
  box-shadow: 0 3px 0 #7c2d12;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95em;
  line-height: 1.5;
  text-align: center;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.c-balloon__text a[rel~="sponsored"]::after {
  content: "";
  position: absolute;
  right: 1.1em;
  top: 50%;
  width: 0.5em;
  height: 0.5em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.c-balloon__text a[rel~="sponsored"]:hover,
.c-balloon__text a[rel~="sponsored"]:focus-visible {
  background: #9a3412;
  color: #fff !important;
  opacity: 1;
}
.c-balloon__text a[rel~="sponsored"]:focus-visible {
  outline: 3px solid #1c7ed6;
  outline-offset: 2px;
}
.c-balloon__text a[rel~="sponsored"]:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #7c2d12;
}
@media (min-width: 600px) {
  .c-balloon__text a[rel~="sponsored"] {
    width: auto;
    max-width: 100%;
    display: inline-flex;
  }
}

/* -----------------------------------------
   比較セクションへのファーストビュー導線（#1628）
   ----------------------------------------- */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.compare-anchor {
  display: inline-block;
  scroll-margin-top: 96px;
}
.cta-jump-nav {
  margin: 14px 0 22px;
  padding: 12px 16px;
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-left: 4px solid #04384c;
  border-radius: 8px;
  font-size: 0.92em;
  line-height: 1.65;
  color: #333;
}
.cta-jump-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: 6px 4px 2px;
  padding: 8px 16px;
  background: #04384c;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.cta-jump-nav a::after {
  content: "↓";
  font-size: 0.95em;
  line-height: 1;
  flex-shrink: 0;
}
.cta-jump-nav a:hover,
.cta-jump-nav a:focus-visible {
  background: #0369a1;
  color: #fff !important;
  text-decoration: none;
}
