/* ========================================================
   CTAブロック：最終完成版（全指示統合 ＋ 背景アニメーション）
======================================================== */

#classroom .ctaWrapper {
  width: 100%;
  margin: 40px 0;
  clear: both;
  box-sizing: border-box;
}

.ctaFrame {
  position: relative;
  padding: 12px;
  border-radius: 18px;
  background: #18a7b7; /* ベースの青 */
  overflow: hidden;
  box-shadow: 0 0 0 1px #ffffff, 0 6px 16px rgba(0,0,0,0.12);
}

/* --- ① 背景の自動流動（パララックス風） --- */
/* 既存の::before/::afterとは別に、背景自体にアニメーションを設定 */
.ctaFrame {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0,
    rgba(255, 255, 255, 0.1) 10px,
    transparent 10px,
    transparent 20px
  );
  background-size: 28px 28px;
  animation: bgMove 3s linear infinite;
}

@keyframes bgMove {
  0% { background-position: 0 0; }
  100% { background-position: 28px 0; }
}

/* --- 四隅のストライプ装飾：V3の数値を完全固定 --- */
.ctaFrame::before,
.ctaFrame::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  z-index: 1; /* 背景アニメより全面に出す */
  pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.95) 0, rgba(255,255,255,0.95) 6px, rgba(255,255,255,0) 6px, rgba(255,255,255,0) 12px);
}
.ctaFrame::before { left: 0; bottom: 0; }
.ctaFrame::after { right: 0; top: 0; }

.ctaTrialVisual {
  position: relative;
  z-index: 2; /* コンテンツを最前面に */
  background: #fff;
  border-radius: 12px;
  padding: 24px 20px 36px; 
  text-align: center;
}

/* --- 各パーツ共通設定 --- */
.ctaHeaderFlex { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.ctaLogo { width: 55px; height: auto; }
.ctaBadge{
  display: inline-block;
  background: #e70012;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
}
.ctaCampaign{
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #e70012 !important;
  margin: 0.3em 0 0 !important;
  line-height: 1.2 !important;
}
.ctaCampaignTitle { display: block !important; font-size: 1.3em; color: #e70012; font-weight: 900; margin-top: 5px !important; margin-bottom: -3.5px !important; }
#classroom .ctaWrapper strong { color: #e60012 !important; font-size: 1.6em !important; font-weight: 900 !important; display: inline-block !important; margin: 0 0 10px !important; line-height: 1.1 !important; }
.ctaImage { display: block; margin: 10px auto !important; width: 200px !important; height: auto !important; }

/* ② リード文余白削減 */
.ctaLead {
  font-size: 18px;
  font-weight: 900;
  color: #184ea5;
  margin: 15px 0 5px !important;
  line-height: 1.5;
}

/* 説明文：標準（スマホ）は左寄せ */
.ctaText {
  font-size: 14px;
  line-height: 1.6 !important;
  color: #333;
  font-weight: 500 !important;
  text-align: left;
  margin: 10px auto 0 !important;
  display: block;
}

/* 改行クラス：PCでは非表示（1行） */
.spOnly { display: none !important; }

/* --- ③ ボタン設定（1行表示 ＋ アイコン） --- */
.ctaBtn { margin: 15px auto 0 !important; padding: 0 !important; }
.ctaBtn a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  background: linear-gradient(180deg, #3c92f4 0%, #2478df 100%);
  color: #fff;
  white-space: nowrap !important;
  font-size: clamp(10px, 3.8vw, 18px) !important;
  font-weight: 900;
  padding: 16px 8px !important;
  border-radius: 50px;
  box-shadow: 0 6px 0 #155bb3;
  overflow: hidden;
  animation: floating 3s ease-in-out infinite;
  width: 95% !important;
  max-width: 340px;
  margin: 0 auto;
}

.ctaBtn a::after {
  content: "";
  display: inline-block;
  width: 1.2em; height: 1.2em; margin-left: 6px;
  background-color: #fff; border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232478df' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 60%;
  flex-shrink: 0;
}

.ctaBtn a::before {
  content: "";
  position: absolute;
  top: -100%; left: -100%; width: 50%; height: 300%;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
  animation: shine 4s infinite;
}

@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes shine { 0% { left: -100%; } 20%, 100% { left: 200%; } }

/* --- PCレイアウト (768px以上) --- */
@media screen and (min-width: 768px) {
  .ctaHeadingGroup { display: flex; align-items: center; justify-content: center; gap: 30px; text-align: left; margin-bottom: 20px; }
  .ctaHeaderFlex { justify-content: flex-start; }
  .ctaLogo { width: 90px; }
  .ctaCampaignTitle { margin-bottom: -5.5px !important; }
  #classroom .ctaWrapper strong { font-size: 2.4em !important; margin: 0 !important; }
  .ctaImage { width: 220px !important; margin: 0 !important; }
  .ctaLead { font-size: 20px; margin-bottom: 10px !important; }
  .ctaText { text-align: center; margin: 15px auto 0 !important; }
  .ctaBtn a { font-size: 20px !important; padding: 18px 25px !important; }
  .summary .inner p.ctaLead{ font-size: 24px; }
  .summary .inner p.ctaText{ margin-bottom: 2em!important; }
}

/* --- スマホレイアウト (767px以下) --- */
@media screen and (max-width: 767px) {
  .spOnly { display: block !important; } /* スマホのみ改行有効 */
  .ctaFrame { padding: 8px; }
  .ctaTrialVisual { padding: 20px 10px 15px; }
  .ctaHeaderFlex{ flex-wrap: wrap; }
  .ctaLogo{
    display: none!important;
    /*
    width: 80px;
    margin: 0 auto 10px;
    */
  }
  .ctaImage{
    width: 78%!important;
  }
  .summary .inner p.ctaLead{
    font-size: 1.1em;
    line-height: 1.3;
    font-weight: 700;
  }
  .summary .inner p.ctaText{ margin-bottom: 1.5em!important; }
}


#classroom .cpBtnWrap{
  margin-top: 2em;
  padding: 2em 1em;
  background-color: rgba(1,123,207,0.15); 
  border-radius: 8px;
}
#classroom .cpBtnWrap p{ margin: 0 auto; }
#classroom .cpBtnWrap p.head{
  color: #017BCF;
  font-size: 1.25em;
  font-weight: bold;
  text-align: center;
}
#classroom .cpBtnWrap .btn01 a{ margin: 1em auto 0; }
@media screen and (max-width: 767px){
  #classroom .cpBtnWrap{
    padding: 1em 1em 1.5em;
  }
  #classroom .cpBtnWrap p.head{
    font-size: 1.125em;
    line-height: 1.45;
  }
  #classroom .cpBtnWrap .btn01 a{
    width: 100%;
    margin: 0.8em auto 0;
  }

}