/*
Theme Name: swell_child_datagl
Template:   swell
Version:    1.0.0
Description: data.goodluck7.com 用 SWELL 子テーマ（CTA・お客様の声等のショートコード基盤）
*/

/* ============================================================
   data.goodluck7.com 子テーマ ショートコード用スタイル
   移植元: D:\dev-sy\themes\camdata\style.css
   camdata固有の #CONTENTS / .cam-content スコープは外し、
   素直なクラスセレクタに整理。アクセントは SWELL の
   var(--color_main) を併用しつつ、CTA は緑系を踏襲。
   ============================================================ */


/* ============================================================
   記事下 2連 CTA ボタン（[pageButtonBody] / [ctaBtn]）
   ============================================================ */
.page-cta-buttons {
  max-width: 680px;
  margin: 28px auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 12px;
}

.page-cta-btn,
.page-cta-buttons a.page-cta-btn,
.page-cta-buttons a.page-cta-btn:link,
.page-cta-buttons a.page-cta-btn:visited,
.page-cta-buttons a.page-cta-btn:hover,
.page-cta-buttons a.page-cta-btn:active,
.page-cta-buttons a.page-cta-btn:focus {
  position: relative;
  display: block;
  text-align: center;
  background: linear-gradient(#5cb85c, #3e9c3e);
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 22px 56px 22px 24px;  /* 右側は矢印スペース確保 */
  border: 2px solid #2e7d32;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 0 #2e7d32;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);  /* 白文字を読みやすく */
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.05s ease;
}

.page-cta-btn:hover,
.page-cta-buttons a.page-cta-btn:hover {
  background: linear-gradient(#66c266, #4aaa4a);
  color: #fff;
}

.page-cta-btn:active,
.page-cta-buttons a.page-cta-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 #2e7d32;
}

/* 内部の span に色・下線・枠を継承させない */
.page-cta-btn .page-cta-btn__label,
.page-cta-btn .page-cta-btn__arrow {
  color: #fff;
  text-decoration: none;
  border: 0;
  background: transparent;
}

.page-cta-btn__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  line-height: 1;
}

/* スマホ */
@media (max-width: 767px) {
  .page-cta-btn,
  .page-cta-buttons a.page-cta-btn,
  .page-cta-buttons a.page-cta-btn:link,
  .page-cta-buttons a.page-cta-btn:visited {
    font-size: 1.1rem;
    padding: 18px 48px 18px 16px;
  }
  .page-cta-btn__arrow {
    right: 14px;
    font-size: 1.3rem;
  }
}

/* 単体ボタン版（[ctaBtn]）: 1ボタン分の幅で中央寄せ */
.page-cta-buttons--single {
  max-width: 480px;
  margin-top: 20px;
  margin-bottom: 20px;
}


/* ============================================================
   記事中の中間CTA（mini版）（[datagl_cta_mini]）
   ============================================================ */
.cta-mini {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #fff8ec 0%, #ffe8c8 100%);
  border: 2px solid #f5a623;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 32px 0;
  box-shadow: 0 3px 10px rgba(240, 111, 24, 0.12);
}

.cta-mini .cta-mini-text {
  flex: 1;
  min-width: 0;
}

.cta-mini .cta-mini-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f06f18;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.cta-mini .cta-mini-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.9);
  animation: ctaDotPulse 1.8s ease-out infinite;
}

@keyframes ctaDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.9); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.cta-mini .cta-mini-headline {
  font-size: 16px;
  font-weight: 700;
  color: #6d3f0c;
  margin: 0;
  line-height: 1.4;
  padding: 0;
  background: transparent;
  border: none;
}

.cta-mini .cta-mini-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.cta-mini .cta-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.cta-mini .cta-mini-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* リンクの下線は常に除去 */
.cta-mini a,
.cta-mini a:hover,
.cta-mini a:visited {
  text-decoration: none;
}

.cta-mini .cta-mini-tel {
  background: linear-gradient(180deg, #f06f18 0%, #d65b0d 100%);
  color: #fff;
}

.cta-mini .cta-mini-tel,
.cta-mini .cta-mini-tel * {
  color: #fff;
  fill: #fff;
}

.cta-mini .cta-mini-tel-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cta-mini .cta-mini-tel-label {
  font-size: 11px;
  opacity: 0.95;
}

.cta-mini .cta-mini-tel-num {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.cta-mini .cta-mini-line {
  background: #06c755;
  color: #fff;
  font-size: 13px;
}

.cta-mini .cta-mini-line,
.cta-mini .cta-mini-line * {
  color: #fff;
  fill: #fff;
}

/* スマホ */
@media screen and (max-width: 600px) {
  .cta-mini {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    text-align: center;
  }
  .cta-mini .cta-mini-text {
    text-align: center;
  }
  .cta-mini .cta-mini-actions {
    flex-direction: row;
    width: 100%;
  }
  .cta-mini .cta-mini-btn {
    flex: 1;
    justify-content: center;
  }
  .cta-mini .cta-mini-line {
    padding: 14px 12px;
  }
}


/* ============================================================
   お客様の声（[PageCustomerVoice] / [PageCustomerVoiceNohead]）
   画像を隙間なく連結表示
   モバイルファースト: 共通ルールはベースで定義し、
   640px以下は差分のみ調整する
   ============================================================ */
.customer-voice-images img {
  margin: 0;
  border-radius: 0;
  display: block;
  max-width: 100%;
  height: auto;
}
.customer-voice-images img:first-child {
  margin-top: 1.5em;
  border-radius: 4px 4px 0 0;
}
.customer-voice-images img:last-child {
  border-radius: 0 0 4px 4px;
}

/* スマホ: 先頭画像の上マージンだけ少し詰める */
@media screen and (max-width: 640px) {
  .customer-voice-images img:first-child {
    margin-top: 1em;
  }
}


/* ============================================================
   内部リンク ブログカード（[nlink]）
   SWELL標準の .blog-card と衝突しないよう .datagl-blog-card 系に改名
   ============================================================ */
.datagl-blog-card {
  max-width: 100%;
  margin: 1.5em 0;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.datagl-blog-card:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #d0d0d0;
}

/* カード内の全リンクから下線除去 */
.datagl-blog-card a,
.datagl-blog-card a:hover,
.datagl-blog-card a:visited {
  text-decoration: none;
  color: inherit;
}

/* カード全体リンク:flexboxレイアウト */
.datagl-blog-card > a {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 16px;
}

/* サムネイル */
.datagl-blog-card-thumbnail {
  float: none;
  padding: 0;
  margin-right: 16px;
  flex-shrink: 0;
  width: 160px;
}
.datagl-blog-card-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 4px;
  object-fit: cover;
  transition: 0.3s ease-in-out;
}

/* コンテンツエリア */
.datagl-blog-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* タイトル:ダークグレー、ホバー時にアクセント色へ */
.datagl-blog-card-title {
  color: #222;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  padding: 0;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.datagl-blog-card:hover .datagl-blog-card-title {
  color: var(--color_main, #f06f18);
}

/* 抜粋 */
.datagl-blog-card-excerpt {
  color: #555;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 「続きを読む」ボタン */
.datagl-blog-card-readmore {
  margin-top: auto;
  padding-top: 0;
  border-top: none;
}
.datagl-blog-card-readmore p {
  display: inline-block;
  margin: 0;
  padding: 6px 16px;
  background: var(--color_main, #f06f18);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  border: none;
  width: auto;
  transition: filter 0.2s ease;
}
.datagl-blog-card:hover .datagl-blog-card-readmore p {
  filter: brightness(0.92);
}

/* 旧floatクリア要素を無効化 */
.datagl-blog-card .clear {
  display: none;
}

/* スマホ:縦積み */
@media screen and (max-width: 600px) {
  .datagl-blog-card > a {
    flex-direction: column;
  }
  .datagl-blog-card-thumbnail {
    width: 100%;
    margin-right: 0;
    margin-bottom: 12px;
  }
}


/* ============================================================
   「もっと読む」リンク（[PageCustomerVoice] 末尾など）
   ============================================================ */
.link-next {
  clear: both;
  text-align: right;
}
.link-next a {
  padding: 3px 0 3px 16px;
  color: var(--color_main, #f06f18);
  text-decoration: none;
  position: relative;
}
.link-next a::before {
  content: "\00bb";  /* » */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}
.link-next a:hover {
  text-decoration: underline;
}

.mt8 {
  margin-top: 8px;
}
