/* ========================================
  CTA / 申し込みフォーム ここから
======================================== */

/* PC */
.top-contact-form-section {
  padding-top: 7.5rem;
  padding-bottom: 0;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 50%, #E3EFF8 50%, #E3EFF8 100%);
  position: relative;
  overflow: hidden;
}
.top-contact-form-section {
  scroll-margin-top: calc(7.5rem + 5rem);
}
#contact-form {
  scroll-margin-top: -100px;
}
@media screen and (max-width: 1024px) {
  #contact-form {
    scroll-margin-top: -80px;
  }
}

.top-contact-form-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding:1rem 0 ;
  text-align: center;
  padding-bottom: 0;
}

.cta-title,
.top-contact-form-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 24px;
}

.cta-cards {
  display: flex;
  justify-content: center;
  gap: 3.75rem;
  max-width: 1100px;
  margin: 2.5rem auto;
}

.top-contact-form {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem 4rem 3.5rem;
  max-width: 1024px;
  margin: 2.5rem auto 3rem;
  text-align: left;
  box-shadow: 7px 5px 22px rgba(0, 0, 0, 0.2);
}

.cta-card {
  background-color: #fff;
  border-radius: 24px;
  padding: 2.5rem 1.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-foreground);
}

.cta-card-icon {
  width: 3rem;
  height: auto;
  color: var(--color-primary);
}
.cta-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.25rem;
}
.cta-cards .cta-card:nth-child(1) .cta-card-title {
  margin-top: 1.4rem;
}
.cta-card-desc {
  font-size: 1rem;
  color: var(--color-muted-foreground);
  line-height: 1.5;
  margin: 0.75rem 0 1.875rem;
  text-align: left;
}

.anzek-wrapper {
  position: relative;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.anzek-bubble {
  display: flex;
width: 31rem;
background-size: cover;
background-repeat: no-repeat;
height: 4.3rem;
  justify-content: center;
align-items: center;
position: relative;
border: 2px solid #fff;
border-radius: 8px;
padding: 0.75rem 1.5rem;
z-index: 10;
}

.anzek-bubble p {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.5;
}

/* 吹き出し口（SP: 中央） - PCでは非表示 */
.cta-balloon-tail,
.top-contact-form-balloon-tail {
  display: none;
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 26px;
  z-index: 1;
}

/* 吹き出し口（PC: 右寄せ） */
.cta-balloon-tail--pc,
.top-contact-form-balloon-tail--pc {
  display: block;
  position: absolute;
  bottom: -16px;
  right: 125px;
  width: 31px;
  height: 16px;
  z-index: 1;
}

.anzek-appear-img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;

  opacity: 1;
  transform: translateY(100%);
  margin-top: -12.5rem;
}

.cta-character-img.is-visible {
  animation: bounce-up 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}


.anzek-appear {
position: absolute;
left: 50%;
transform: translateX(-50%) translateY(400px);
opacity: 0;
transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
width: 240px;
height: auto;
display: flex;
justify-content: center;
z-index: 20;
}

.anzek-wrapper.active .anzek-appear {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    bottom: -13.5rem;
}

@keyframes superballBounce {

0% {
    transform: translateX(-50%) scale(1, 1) translateY(150px);
}

10% {
    transform: translateX(-50%) scale(1, 1) translateY(150px);
}
20% {
    transform: translateX(-50%) scale(1, 1) translateY(150px);
}
35% {
    transform: translateX(-50%) scale(1.1, 0.9) translateY(150px);
}
40% {
    transform: translateX(-50%) scale(1.15, 0.9) translateY(150px);
}
50% {
    transform: translateX(-50%) scale(0.95, 1.08);
}
60% {
    transform: translateX(-50%) scale(1.05, 0.95) translateY(-60px);
}
70% {
    transform: translateX(-50%) scale(0.98, 1.02) translateY(5px);
}
80% {
    transform: translateX(-50%) scale(1.08, 0.9) translateY(15px);
}
95% {
    transform: translateX(-50%) scale(1, 1) translateY(0);
}
100% {
    transform: translateX(-50%) scale(1, 1) translateY(0);
}
}
@media screen and (max-width: 1024px) {
  .cta-cards {
    gap: 1.25rem;
  }
  /* .cta-card {
    width: 250px;
  } */
  .top-contact-form-inner {
  padding:1rem 7vw;
  margin-bottom: 0;
}

}
/* スマホ */
@media (max-width: 767px) {
  .top-contact-form-section {
    padding-top: 1rem;
  }

  .cta-title,
  .top-contact-form-title {
    font-size: 1.75rem;
  }

  .cta-cards {
    flex-direction: column;
    align-items: center;
  }

  .cta-card {
    width: 100%;
    padding: 40px 16px 32px 16px;
  }
  .cta-balloon p {
    font-size: 0.875rem;
  }

  .cta-balloon-tail,
  .top-contact-form-balloon-tail {
    display: block;
    left: 68%;
    bottom: -22.5px;
    width: 37px;
  }

  .cta-balloon-tail--pc,
  .top-contact-form-balloon-tail--pc {
    display: none;
  }

  .cta-character-wrap {
    height: 10rem;
  }

  .cta-character-img {
    width: 10rem;
  }
  .anzek-bubble {
    width: 90%;
    padding: 2.5rem 1rem;
    border: 1px solid #fff;
  }

  .top-contact-form-inner {
    padding-inline: 1.25rem;
  }

  .top-contact-form {
    padding: 1.5rem 1.25rem 3rem;
    margin: 2.5rem auto 0;
  }
}

/* ========================================
  CTA / 申し込みフォーム ここまで
======================================== */

/* ============================
   Floating Popup check card
 ============================ */

/* ---------- 親ラッパー ---------- */
.service-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
	width:100%;
}
 
/* ---------- チェックボックス非表示 ---------- */
.service-card-wrap input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
 
/* ---------- カード1枚（label全体がクリック対象） ---------- */
.service-card-item {
  display: block;
  cursor: pointer;
}
 
.service-card-item > label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 24px 13px 13px;
  background: #ffffff;
  border: 1.5px solid #c0cad4;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
	height:100% !important;
}

.service-card-item.wpcf7-checkbox label {
	border:none;
	padding:none;
}

@media (hover: hover) {  
.service-card-item > label:hover {
  box-shadow: 0 2px 10px rgba(0, 119, 200, 0.10);
}
}

/* ---------- ポップアップフォームの調整 ---------- */

.service-card-item .wpcf7-list-item-label {
	font-size:0;
}
.service-card-item .wpcf7-list-item {
	display: none !important;
}
.popup-card .ttl_txt {
	font-size:1.6rem;
}

.popup-card .contact_detail {
	font-size: 1.1rem;
  color: #000;
}

.popup-card .contact-badge {
	font-size: 0.9rem;
	width: 8.4rem;
	padding: 0.15rem 0 0.25rem;
}
.popup-card .service-detail {
	text-align: left;
  padding: 0;
}
#popupContainer .form-group label {
  width: 100%;
}
#popupContainer .form-box {
  margin-top: 0;
}

/* ---------- トップページフォーム ---------- */
.top-contact-form-section .ttl_txt {
  font-size: 1.6rem;
}

.top-contact-form-section .contact_detail {
  color: #000;
  font-size: 1rem;
  text-align: center;
  margin-top: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
}

.top-contact-form-section .contact-badge {
  font-size: 0.9rem;
  width: 8.4rem;
  padding: 0.15rem 0 0.25rem;
}

.top-contact-form-section .service-detail {
  text-align: left;
}
/* 
.top-contact-form .form-group label {
  width: 100%;
} */

.top-contact-form .form-box {
  margin-top: 0;
}

/* ---------- 選択中スタイル ---------- */
.service-card-item > label:has(input:checked) {
  background: color-mix(in srgb, var(--color-hero-bg) 10%, transparent);
  border-color: var(--color-hero-bg);
  box-shadow: 0 3px 14px rgba(77, 77, 77, 0.14);
}
 
/* ---------- 選択中チェックアイコン（右端） ---------- */
.service-card-item > label::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  opacity: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
 
.service-card-item > label:has(input:checked)::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}
 
/* ---------- アイコンエリア ---------- */
.service-card-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

}
 
 
.service-card-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}
 
/* ---------- テキストエリア ---------- */
.service-card-label {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2a3a;
  line-height: 1.4;
  padding-right: 30px;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}
 
.service-card-label .card-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-muted-foreground);
  margin-top: 2px;
}

/* ---------- グリッド版（ポップアップ） ---------- */
.service-card-wrap--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-card-wrap--grid .service-card-item label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.service-card-wrap--grid .service-card-item label::after {
  right: 10px;
  top: 20px;
  z-index: 1;
}
.service-card-wrap--grid .service-card-icon {
  flex-shrink: 0;
  width: 100%;
  height: 120px;
  border-radius: 0;
}

.service-card-wrap--grid .service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.service-card-wrap--grid .service-card-item:nth-child(1) .service-card-icon img,
.service-card-wrap--grid .service-card-item:nth-child(2) .service-card-icon img {
  object-position: center;
}
.service-card-wrap--grid .service-card-item:nth-child(4) .service-card-icon img {
  object-position: 50% 30%;
}
.service-card-wrap--grid .service-card-label {
  padding: 10px 12px 12px;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

/* ---------- グリッド版（トップページ） ---------- */
.service-card-wrap.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.service-card-wrap.grid .service-card-item label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

@media (hover: hover) {
.service-card-wrap.grid .service-card-item label:hover {
  border: none;
  box-shadow: none;
}
}
.service-card-wrap.grid .service-card-item label:has(input:checked) {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* オーバーレイ背景 */
.service-card-wrap.grid .service-card-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 1;
}

/* 円形チェック＋選択中テキスト */
.service-card-wrap.grid .service-card-icon::before {
  content: '選択中';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  text-align: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-top: 58px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Ccircle cx='26' cy='26' r='24' fill='white' fill-opacity='0.2' stroke='white' stroke-width='2'/%3E%3Cpolyline points='14 27 22 35 38 17' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center top / 48px 48px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.service-card-wrap.grid .service-card-item label:has(input:checked) .service-card-icon::after,
.service-card-wrap.grid .service-card-item label:has(input:checked) .service-card-icon::before {
  opacity: 1;
}

/* チェックインジケーター: 右上に四角アウトライン（未選択）→ 塗り（選択時） */
/* label::after は grid では無効化 */
.service-card-wrap.grid .service-card-item label::after {
  display: none;
}

/* チェックボックスを service-card-label の右横に配置 */
.service-card-wrap.grid .service-card-label {
  position: relative;
}

.service-card-wrap.grid .service-card-label::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid #c0cad4;
  background-color: transparent;
  flex-shrink: 0;
}

.service-card-wrap.grid .service-card-item label:has(input:checked) .service-card-label::after {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* テキストエリアを上に */
.service-card-wrap.grid .service-card-label {
  order: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 40px 12px 0px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 2rem;
  letter-spacing: 0.08rem;
  margin-top: 0.5rem;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

.service-card-wrap.grid .service-card-label .card-sub {
  order: -1;
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.0175rem;
}

/* 画像エリアを中段に */
.service-card-wrap.grid .service-card-icon {
  order: 2;
  flex-shrink: 0;
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 5 / 3;
}

.service-card-wrap.grid .service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.service-card-wrap.grid .service-card-item:nth-child(4) .service-card-icon img {
  object-position: top;
}

.service-card-wrap.grid .service-card-item:nth-child(3) .service-card-icon img {
  object-position: 30% 30%;
}

/* 画像下テキスト */
.service-card-wrap.grid .service-card-desc {
  order: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 16px;
}

.service-card-wrap.grid .service-card-desc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2a3a;
  line-height: 1.4;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

.service-card-wrap.grid .service-card-desc-text {
  font-size: 0.78rem;
  font-weight: 400;
  color: #555;
  line-height: 1.6;
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
}

@media (max-width: 1023px) {
  .service-card-wrap.grid {
    gap: 20px;
  }
  .service-card-wrap.grid .service-card-label {
    font-size: 1.4rem;
    line-height: 1.4rem;
    padding: 10px 36px 10px 10px;
  }
  .service-card-wrap.grid .service-card-label .card-sub {
    font-size: 0.72rem;
    line-height: 1.5;
    margin-bottom: 6px;
    min-height: calc(0.72rem * 1.5 * 2);
    display: flex;
    align-items: flex-end;
  }
  .service-card-wrap.grid .service-card-desc-title {
    font-size: 0.85rem;
  }
  .service-card-wrap.grid .service-card-desc-text {
    font-size: 0.72rem;
  }
}

@media (max-width: 767px) {
  .service-card-wrap.grid {
    grid-template-columns: 1fr;
  }
  .service-card-wrap.grid .service-card-label {
    font-size: 1.5rem;
    line-height: 1.5rem;
    padding: 12px 40px 12px 12px;
  }
  .service-card-wrap.grid .service-card-label .card-sub {
    font-size: 0.75rem;
  }
  .service-card-wrap--grid {
    grid-template-columns: 1fr;
  }
  .service-card-wrap--grid .service-card-icon {
    height: 190px;
  }
  .service-card-wrap--grid .service-card-label {
    padding: 24px 12px 32px 12px;
  }
}