/* キャンペーン導線セクション専用CSS */

.mt-12{
  margin-top: 3.07692308vw;
}

.campaign-promotion {
  padding: 40px 0;
  position: relative;
  overflow: hidden;
  display: none; /* 初期状態は非表示 */
}

.campaign-promotion.show {
  display: block;
  animation: fadeInUp 0.6s ease-out;
}

.campaign-promotion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  z-index: 1;
}

.campaign-promotion .inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 50px;
}

.campaign-banner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.campaign-content {
  flex: 1;
  background: #35A7D2;
  border-radius: 8px;
  box-shadow: 3px 3px 10px 5px rgba(0, 0, 0, 0.1);
}

.campaign-inner {
  border: 2px solid #0E3982;
  border-radius: 8px;
  background: #fff;
  color: #000;
}

.campaign-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.campaign-description {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  opacity: 0.9;
  border-bottom: 2px dotted #ddd;
}

.campaign-description#campaign-description-1-2 {
  border-bottom: none;
  padding-bottom: 0;
}

.campaign-cta {
  margin-bottom: 0;
}

.campaign-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  background: #E7A042;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.campaign-btn:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%) rotate(45deg);
  border-top: solid 1px #fff;
  border-right: solid 1px #fff;
  display: inline-block;
  width: 7px;
  height: 7px;
}

.campaign-btn:hover {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
  opacity: 1;
}

.campaign-btn svg {
  display: none; /* 既存のSVGアイコンを非表示 */
}

.campaign-visual {
  flex: 0 0 280px;
  background-image: url(../img/bg_02_sp.png);
  border-radius: 8px 8px 0 0;
}

.campaign-visual img {
  width: 100%;
  padding: 5.12820513vw 2.933vw;
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.campaign-content > * {
  animation: fadeInUp 0.6s ease-out;
}

.campaign-content > *:nth-child(1) { animation-delay: 0.1s; }
.campaign-content > *:nth-child(2) { animation-delay: 0.2s; }
.campaign-content > *:nth-child(3) { animation-delay: 0.3s; }
.campaign-content > *:nth-child(4) { animation-delay: 0.4s; }

.campaign-visual {
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* PC版調整 */
@media (min-width: 768px) {
  .mt-12{
    margin-top: 16px;
  }

  .campaign-promotion {
    padding: 60px 0;
    margin: 120px 0;
  }

  .campaign-inner{
    margin: 32px;
    padding: 24px;
    text-align: center;
  }

  .campaign-content {
    border-radius: 16px;
  }
  
  .campaign-banner {
    gap: 60px;
  }

  .campaign-visual img{
    padding: 32px 40px 32px 40px;
  }
  
  .campaign-title {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .campaign-subtitle{
    font-size: 24px;
  }
  
  .campaign-description {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  
  .campaign-btn {
    height: 48px;
    font-size: 18px;
    border-radius: 6px;
  }

  .campaign-visual {
    flex: 0 0 400px;
    background-image: url(../img/bg_02_pc.png);
    border-radius: 16px 16px 0 0;
  }
}

/* モバイル対応 */
@media (max-width: 767px) {
  .campaign-promotion {
    padding-top: 14.35897436vw;
    padding-bottom: 0;
    margin-top: 0;
  }
  
  .campaign-promotion .inner {
    padding: 0 6.1538461538vw 4.1025641vw;
  }
  
  .campaign-banner {
    flex-direction: column;
    gap: 6.1538461538vw;
    text-align: center;
  }

  .campaign-inner {
    margin: 4.1025641vw;
    padding: 4.1025641vw 2.051282vw;
  }

  .campaign-title {
    font-size: 4.61538462vw;
    line-height: 1.5;
  }

  .campaign-title#campaign-title-2 {
    margin-bottom: 3.07692308vw;
  }

  .campaign-subtitle {
    font-size: 4.1025641vw;
  }
  
  .campaign-description {
    font-size: 4.1025641vw;
    line-height: 1.6;
    margin-bottom: 4.1025641vw;
    padding-bottom: 4.1025641vw;
  }

  .campaign-description#campaign-description-1-2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 3.07692308vw;
  }
  
  .campaign-btn {
    height: 10.2564102564vw;
    font-size: 3.5897435897vw;
    border-radius: 1.5384615385vw;
  }

  .campaign-btn:after {
    right: 3.5897435897vw;
    width: 1.7948717949vw;
    height: 1.7948717949vw;
  }

  .campaign-btn:hover {
    box-shadow: 0 0.5128205128vw 3.5897435897vw rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
  }
  
  .campaign-visual {
    flex: none;
    width: 100%;
  }
}

@media (min-width: 768px) {
  #modelcourse .inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  #modelcourse h2 {
    grid-column: 1 / -1;
    margin-bottom: 60px;
  }

  #modelcourse .course-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  #modelcourse .course {
    margin-top: 0;
    background-color: #fff;
    border-radius: 16px;
  }

  #modelcourse .course a {
    border-radius: 16px;
    overflow: hidden;
    display: block;
    height: 100%;
  }

  #modelcourse .course a:hover p {
    text-decoration: none;
  }

  #modelcourse .course .img {
    width: 100%;
    height: 200px;
    overflow: hidden;
  }

  #modelcourse .course .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #modelcourse .course p {
    width: 100%;
    text-align: left;
    padding: 20px;
    position: relative;
    background-color: #fff;
    color: #0E3982;
    line-height: 1.5714285714;
    text-decoration: underline;
    margin: 0;
  }

  #modelcourse .course p:after {
    content: "";
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    margin-top: -8px;
    right: 20px;
    background-image: url("../img/target_bu.png");
    background-size: contain;
  }
}

/* 既存サイトとの調和 */
.campaign-promotion {
  font-family: "Zen Kaku Gothic New", "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", Meiryo, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

/* 波のエフェクト（既存サイトとの統一感） */
.campaign-promotion .wave {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 20;
}

.campaign-promotion .wave.under_wave {
  bottom: -10px;
}

.campaign-promotion .wave.up_wave {
  top: -10px;
}

.campaign-promotion .wave svg {
  width: 100%;
  height: 80px;
}

@media (max-width: 767px) {
  .campaign-promotion .wave.under_wave {
    bottom: -1.7948717949vw;
  }
  
  .campaign-promotion .wave.up_wave {
    top: -1.0256410256vw;
  }
  
  .campaign-promotion .wave svg {
    height: 12.3076923077vw;
  }
}