  /* Rest of the previous styles remain unchanged */
  .contact-form-section {
    padding: 5rem 2rem;
    background: #fff;
    width: 85%;
    max-width: 60rem;
    margin: 0 auto;
	  background: white;
	  }
    
    .contact-form-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    position: relative;
    }
    
    .contact-form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #007BFF;
    }
    
    .form-input {
    padding: 0.8rem;
    border: 1px solid #E8ECF2;
    border-radius: 0.45rem;
    font-size: 1rem;
    width: 100%;
    background-color: #F5F9FE;
    box-sizing: border-box;
    }
    
    .form-textarea {
    padding: 0.8rem;
    border: 1px solid #E8ECF2;
    border-radius: 0.75rem;
    height: 150px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    background-color: #F5F9FE;
    box-sizing: border-box;
    }
    
    .required::before {
    content: '必須';
    background: #0061E0;
    color: white;
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5rem;
    letter-spacing: 0.03rem;
    padding: 0.125rem 0.625rem;
    border-radius: 3.125rem;
    margin-right: 0.62rem;
    display: inline-block;
    }
    
    .optional::before {
    content: '任意';
    background: white;
    color: #0061E0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5rem;
    letter-spacing: 0.03rem;
    padding: 0.125rem 0.625rem;
    border-radius: 3.125rem;
    margin-right: 0.62rem;
    display: inline-block;
    border: 1px solid #0061E0;
    }
    
    .form-group {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    gap: 1rem; /* ★変更（本番: 2.5rem） */
    margin-top: 2rem; /* ★変更（本番: 2.5rem） */
    }

  .form-group.column {
      flex-direction: column;
  }
    
    .form-group label {
    font-weight: 700;
    height: 1.5rem;
    letter-spacing: 0.03rem;
    min-width: 8rem;
    padding-top: 0; /* ★変更（本番: 0.8rem） */
    text-align: start;
    }
    
    .form-input-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 70%;
    text-align: start;
    }
    
    .form-hint {
    color: var(--black);
    margin: 0.2rem 0 0 0;
    }
    
    .name-inputs {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
    }
    
    .name-input {
    width: 100%;
    flex: none;
    }
    
    .phone-inputs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    }
    
    .phone-input {
    width: 110px;
    }
    
    .phone-separator {
    color: #666;
    }
    
    .privacy-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    }
    
    /* ★変更ここから（本番はブラウザ標準チェックボックスのスタイルのみで、カスタムUIは無し） */
    .privacy-checkbox {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
    }
    .privacy-required-error {
      width: 100%;
      color: #dc2626;
      font-size: 0.8rem;
      margin-top: 0.4rem;
      padding-left: 2rem;
    }
    .privacy-checkbox input[type="checkbox"] {
      display: none;
    }
    .privacy-checkbox label,
    .privacy-checkbox p {
      position: relative;
      padding-left: 2rem;
      font-weight: 500;
      cursor: pointer;
    }
    .privacy-checkbox label::before,
    .privacy-checkbox p::before {
      content: "";
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 1.2rem;
      height: 1.2rem;
      border: 1px solid #CDD6DD;
      border-radius: .2rem;
      background-color: #fff;
      box-sizing: border-box;
      transition: border-color 0.3s;
    }
    .privacy-checkbox label::after,
    .privacy-checkbox p::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 0.3rem;
      transform: translateY(-50%) rotate(-45deg);
      width: 10px;
      height: 6px;
      border-left: 2.5px solid #fff;
      border-bottom: 2.5px solid #fff;
      opacity: 0;
      transition: opacity 0.2s ease;
    }
    .privacy-checkbox input[type="checkbox"]:checked + label::before,
    .privacy-checkbox input[type="checkbox"]:checked + p::before {
      border-color: #0061E0;
      background-color: #0061E0;
    }
    .privacy-checkbox input[type="checkbox"]:checked + label::after,
    .privacy-checkbox input[type="checkbox"]:checked + p::after {
      opacity: 1;
    }
    /* ★変更ここまで */
    .privacy-text {
    font-size: 1rem;
    margin: 0;
    }
    
    .privacy-text a {
    color: #007BFF;
    text-decoration: none;
    }
    
    @media (max-width: 768px) {
    .contact-form-section {
    width: 100%;
    padding: 5rem 1.25rem;
    }
    .form-group {
    flex-direction: column;
    align-items: normal;
    gap: 0.5rem; /* ★変更（本番: 1.5rem） */
    }
    .form-input-container {
    max-width: 100%;
    }
    
    .form-group label {
    margin-bottom: 0.5rem;
    }
    .name-inputs {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      }
    .name-input {
      width: 100%;
      }
    .phone-inputs {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      width: fit-content;
      }
    .phone-input {
      width: 100%;
      }
    }
      #app {
        max-width: 800px;
        margin: 0 auto;
        width: 100%;
        padding: 2rem 0;
        display: flex;
        align-items: center;
        }
        
        .completion-container {
        text-align: center;
        margin: 3rem 0;
        }
        
        .title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        font-weight: bold;
        position: relative;
        display: inline-block;
        padding: 0 0.5rem;
        }
        
        .title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background-color: #0066cc;
        }
        
        .message {
        text-align: center;
        line-height: 1.8;
        font-size: clamp(0.9rem, 4vw, 1rem);
        padding: 0 1rem;
        margin-top: 3.75rem;
        }
        
        .contact-info {
        margin-top: 3.75rem;
        }
        
        .phone-number {
        font-size: 2rem;
        font-weight: 700;
        color: var(--main-blue, #0061E0);
        margin: 0.62rem 0 0;
        line-height: 1.875rem; /* 93.75% */
        }
        @media only screen and (max-width: 767px) {
        .completion-container {
            margin: 7.5rem 0;
            }
        }
        .form-box {
          margin-top: 3.75rem;
          /* text-align: center; ★変更（本番はtext-align: center;が有効） */
        }
      /* ★変更ここから（.front-page / .is-thanks-page のスコープを追加。本番はスコープ無しで全ページに適用） */
      .front-page .wpcf7-list-item,
      .is-thanks-page .wpcf7-list-item {
        display: flex !important;
        margin: 0 !important;
        align-items: center;
        column-gap: .5rem;
      }

      .front-page .wpcf7-list-item-label,
      .is-thanks-page .wpcf7-list-item-label {
        min-height: 1.2rem;
      }
      .wpcf7-not-valid-tip {
        margin-top: 4px;
      }
      .front-page input[type=checkbox],
      .is-thanks-page input[type=checkbox] {
        -ms-transform: scale(1.3, 1.3);
        -webkit-transform: scale(1.3, 1.3);
        transform: scale(1.3, 1.3);
      }
      /* ★変更ここまで */
      .submit-btn-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 14.6875rem;
        height: 4.1rem;
        border: none;
        border-radius: 3.125rem;
        background: #FF8602;
        position: relative;
        cursor: pointer;
        /* Shadow effect */
        box-shadow: 2px 2px 30px 0px rgba(0, 0, 0, 0.20);
        transition: .3s ease all;
    
        /* Text styling */
        color: white;
        font-weight: bold;
        font-size: 1rem;
        
        /* Positioning */
        align-self: center;
        margin-top: 3.75rem;
        
        /* Transition for hover effect */
      }
  
      .submit-btn-container {
        display: flex;
        justify-content: center;
      }
        /* Inner white border using pseudo-element */
    .submit-btn-wrapper::before {
      content: '';
      position: absolute;
      top: .31rem;
      left: .31rem;
      right: .31rem;
      bottom: .31rem;
      border: 1px solid #FDFAF8;
      border-radius: 3rem;
      pointer-events: none;
    
      }
      
      /* Arrow icon styling */
      .submit-btn-wrapper::after {
      /* ★追加 */
      position: absolute;
      top: 40%;
      right: 30%;
      content: '▶';
      font-size: 0.8rem;
      margin-left: 0.25rem;
      }
      
      .submit-btn-wrapper:hover {
        opacity: .8;
      }
      
  
      .wpcf7-spinner {
        display: none !important;
      }
  
  
  
  
  /* ★変更ここから（.front-page / .is-thanks-page のスコープを追加し、色・位置を微調整。本番はスコープ無し／色は#0297E0） */
  /* ラジオボタンの元のスタイルを非表示にする（TOPページ・thanksページのみ） */
  .front-page .wpcf7-checkbox input[type="checkbox"],
  .is-thanks-page .wpcf7-checkbox input[type="checkbox"] {
    display: none;
  }

  /* ラベルのスタイルをカスタマイズ */
  .front-page .wpcf7-checkbox label,
  .is-thanks-page .wpcf7-checkbox label {
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
  }

  /* カスタムチェックボックスの外枠 */
  .front-page .wpcf7-checkbox label::before,
  .is-thanks-page .wpcf7-checkbox label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid #CDD6DD;
    border-radius: .2rem;
    background-color: #fff;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.3s;
  }

  /* カスタムチェックボックスの選択時のチェック */
  .front-page .wpcf7-checkbox input[type="checkbox"]:checked + span::before,
  .is-thanks-page .wpcf7-checkbox input[type="checkbox"]:checked + span::before {
    border-color: #fff;
  }

  .front-page .wpcf7-checkbox input[type="checkbox"]:checked + span::after,
  .is-thanks-page .wpcf7-checkbox input[type="checkbox"]:checked + span::after {
      content: '';
      position: absolute;
      top: 47%;
      left: 0.28rem;
      transform: translateY(-50%) rotate(-45deg);
      width: 10px;
      height: 6px;
      border-left: 2.5px solid #fff;
      border-bottom: 2.5px solid #fff;
  }

  .front-page .wpcf7-checkbox .wpcf7-list-item.first,
  .front-page .wpcf7-radio .wpcf7-list-item.first,
  .is-thanks-page .wpcf7-checkbox .wpcf7-list-item.first,
  .is-thanks-page .wpcf7-radio .wpcf7-list-item.first {
    margin: 0;
  }

  /* 問い合わせ内容のチェックボックス */
  .front-page .wpcf7-list-item,
  .is-thanks-page .wpcf7-list-item {
      display: block !important;
      margin: 0 0 0 0 !important;
  }

  .front-page .form-group .wpcf7-checkbox label,
  .is-thanks-page .form-group .wpcf7-checkbox label {
      padding-top: 0;
      font-weight:400;
  }

  .front-page .wpcf7-checkbox.radio,
  .is-thanks-page .wpcf7-checkbox.radio {
      display: flex;
      flex-direction: column;
      row-gap: 0.25rem;
  }
  .front-page .wpcf7-checkbox.radio .wpcf7-list-item.first,
  .is-thanks-page .wpcf7-checkbox.radio .wpcf7-list-item.first {
      display: inline-block;
      margin: 0 0 0 1em;
  }
  /* ★変更ここまで */


  /* 資料請求用画像チェックボックス */
  .form-input-container.full-screan {
      max-width:100%;
  }
  .section__content.serviceList {
      padding-top: 1rem;
      display: grid;
      grid-template-columns: repeat(2, 50%);
      justify-content: flex-start;
      row-gap: 5rem;
      cursor: pointer; /* ★追加 */
  }
  
  #service .serviceList__wrapper {
      width:90%;
  }

  
  #service .serviceList__wrapper .inner {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      row-gap: 1rem;
      width: 100%;
      /* リンク入れたら削除する */
      cursor: auto;
      /* ★削除（本番の #service .serviceList__wrapper .inner:hover { opacity:0.7; cursor:pointer; } は撤去済み） */

  }

  #service .serviceList__wrapper.left {
      justify-self: start; /* 左寄せ */
  }
  #service .serviceList__wrapper.right {
      justify-self: end; /* 左寄せ */
  }
  
  #service  .serviceList__wrapper  .serviceList__title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }
  
  
    #service .serviceList__title__inner  .serviceList__title--deco {
      color: #00547D;
      font-family: "Open Sans", sans-serif; /* ★修正（本番は誤字: sans-serif"; ） */
      font-size: 0.875rem;
      font-weight: 600;
      letter-spacing: 0.0175rem;
    }

    #service .serviceList__title__inner h3 {
		color:#002C44;
  font-size: 2rem;
  font-weight: 700;
  line-height: 2rem; /* 100% */
  letter-spacing: 0.08rem;
  margin-top: .5rem;
    }
  
  
  #service .serviceList__title__inner h3 span  {
      margin-left: 0.5rem;
  }
  
  
    #service .serviceList__wrapper .serviceList__img {
      border-radius: 0.5rem;
      width: 100%;
  /*     max-height: 16rem; */
        aspect-ratio: 5 / 3; /* 固定のアスペクト比を設定 */
      overflow: hidden;
      box-shadow: var(--dropShadow--card);
      position: relative; /* ★追加 */
    }

    /* ★追加ここから（チェック時のグレーオーバーレイ表示。本番には無し） */
    #service .serviceList__wrapper .serviceList__img::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(128, 128, 128, 0.5);
      opacity: 0;
      transition: opacity 0.2s ease;
      pointer-events: none;
      z-index: 1;
    }

    #service .serviceList__wrapper .serviceList__img::before {
      display: none;
    }

    #service .serviceList__wrapper:has(input[type="checkbox"]:checked) .serviceList__img::after {
      opacity: 1;
    }
    /* ★追加ここまで */
  
    #service .serviceList__wrapper .serviceList__img .degital::after {
      content: "";
      height: 100%;
      width: 100%;
      position: absolute;
      top: 0;
      left: 0;
      background: linear-gradient(90deg, rgba(0, 84, 125, 0.80) 0%, rgba(0, 84, 125, 0.30) 60.64%, rgba(0, 84, 125, 0.50) 100%);
  
    }
  
  
    #service .serviceList__wrapper .serviceList__img img{
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: .3s ease all;
      /* ★追加ここから（画像のドラッグ・選択防止。本番には無し） */
      pointer-events: none;
      -webkit-user-drag: none;
      user-select: none;
      -webkit-user-select: none;
      /* ★追加ここまで */
    }
    /* #service .serviceList__wrapper .serviceList__img.system img{
          transform: translateY(-16%);
    } */
    #service .serviceList__textContent {
      flex-grow: 1;
    }
    #service .serviceList__textContent--title  {
      font-size: 1.375rem;
      font-weight: 700;
      line-height: 2rem; /* 145.455% */
      letter-spacing: 0.01375rem;
      margin-bottom: .3rem;
    }
    #service .serviceList__textContent--detail {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.625rem; /* 173.333% */
    }
  
  
    /* タブレット用 */
  @media screen and (max-width: 1024px) {
      #service .serviceList__wrapper .inner {
          row-gap: .75rem;
          width: 100%;
      }
  
      #service .serviceList__title__inner {
          min-height: 5rem;
      }
    #service .serviceList__title__inner h3 {
      font-size: 1.75rem;
      margin-top: 0;
        }

        #service .serviceList__title__inner  .serviceList__title--deco {
          font-size: 0.75rem;
        }
  
        #service .serviceList__wrapper .serviceList__img.system img{
          transform: translateY(0);
    }
  }
  /* スマホ用 */
  @media screen and (max-width: 768px) {
  
      #service .section__content.serviceList {
          display: grid;
          grid-template-columns: repeat(1, 100%);
          justify-content: center;
          align-items: flex-start;
          row-gap: 3.75rem;
          column-gap: 5rem;
      
        }
        #service .serviceList__title__inner {
          min-height: auto;
      }
        #service .serviceList__wrapper.left,
        #service .serviceList__wrapper.right {
  
          justify-self: center; /* 左寄せ */
        }
  
        #service .serviceList__wrapper .serviceList__img {
          margin-bottom: .5rem;
        }
  
        #service .serviceList__wrapper {
          width:100%;
      }
  
  
      #service .serviceList__textContent--title  {
          font-size: 1.25rem;
        }
  
  #service .serviceList__title__inner h3 span  {
      margin-left: 0.2rem;
  }
  
  
  }
  
  
  /* カスタムラジオボタンの外枠 */
  
  .circle__button {
      width:1.5rem;
  }
  
  .circle__button .wpcf7-checkbox label::before {
    content: "";
    position: absolute;
    right: 20%;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    border: 1px solid #CDD6DD;
    border-radius: .2rem;
    background-color: transparent; /* ★変更（本番: #fff） */
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s; /* ★変更（本番: border-color 0.3s のみ） */
  }

  /* ★追加ここから（本番には無いルール／挙動の変更） */
  .circle__button .wpcf7-checkbox label:has(input[type="checkbox"]:checked)::before {
    border-color: #0061E0;
    background-color: #0061E0;
  }

  .circle__button .wpcf7-checkbox span::after {
      content: '';
      position: absolute;
      top: 50%;
      right: calc(20% + 0.3rem); /* ★修正（本番は誤字: caclc(...)） */
      transform: translateY(-50%) rotate(-45deg);
      width: 10px;
      height: 6px;
      border-left: 2.5px solid #fff; /* ★変更（本番: #0297E0） */
      border-bottom: 2.5px solid #fff; /* ★変更（本番: #0297E0） */
      opacity: 0;
      transition: opacity 0.2s ease;
  }

  .circle__button .wpcf7-checkbox input[type="checkbox"]:checked + span::after {
      opacity: 1;
  }
  /* ★追加ここまで */
  
  
  /* 関連資料のチェックボックス横のテキストをCSSで非表示に */
  .circle__button .wpcf7-list-item-label {
      font-size:0;
  }


/* ============================================================
   ★新規追加ここから（本番未反映）: 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;
}

.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,
.top-contact-form-section .ttl_txt {
  font-size: 1.6rem;
}

/* ★注意: contact.css の .contact_detail（font-size: 1rem）を font-size だけ上書きしています */
.popup-card .contact_detail,
.top-contact-form-section .contact_detail {
  font-size: 1.1rem;
  color: #000;
}

/* ★注意: contact.css の .contact-badge を width / font-size / padding だけ上書きしています */
.popup-card .contact-badge,
.top-contact-form-section .contact-badge {
  font-size: 0.9rem;
  width: 8.4rem;
  padding: 0.15rem 0 0.25rem;
}
.popup-card .service-detail,
.top-contact-form-section .service-detail {
  text-align: left;
}
#popupContainer .form-group label,
.top-contact-form .form-group label {
  width: 100%;
}
#popupContainer .form-box,
.top-contact-form .form-box {
  margin-top: 0;
}

/* ---------- 選択中スタイル ---------- */
.service-card-item > label:has(input:checked) {
  background: rgba(128, 128, 128, 0.1);
  border-color: #9ca3af;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
}

/* ---------- 選択中チェックアイコン（右端） ---------- */
.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(--main-blue, #0061E0);
  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 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2a3a;
  line-height: 1.5;
  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: #666;
  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 {
  object-position: center;
}
.service-card-wrap--grid .service-card-item:nth-child(4) .service-card-icon img {
  object-position: 0 27%;
}
.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;
}

.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: color-mix(in srgb, #4d4d4d 65%, transparent);
  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-wrap.grid .service-card-label::after {
  content: '';
  position: absolute;
  right: 0px;
  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(--main-blue, #0061E0);
  border-color: var(--main-blue, #0061E0);
  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;
}

/* テキストエリアを上に配置しつつ、チェックボックス(::after)の位置基準にする */
.service-card-wrap.grid .service-card-label {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 14px 40px 12px 0px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  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: 1;
  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(2) .service-card-icon img,
.service-card-wrap.grid .service-card-item:nth-child(4) .service-card-icon img {
  object-position: top;
}

/* 画像下テキスト */
.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;
}

#contact-form .serviceList__textContent {
  flex-grow: 1;
  order: 3;
  margin-top: 1rem;
}
#contact-form .serviceList__textContent--title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 2rem;
  letter-spacing: 0.01375rem;
  margin-bottom: .3rem;
}
#contact-form .serviceList__textContent--detail {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.625rem;
  letter-spacing: 0.03rem;
}
#contact-form .service-card-label {
  font-size: 2rem;
}

@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;
  }
  #contact-form .service-card-label {
    font-size: 1.5rem;
    line-height: 1.5rem;
    padding: 12px 40px 12px 12px;
  }
  
}

@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;
  }
  #contact-form .service-card-label {
    font-size: 1.5rem;
  }
}


/* ====================================================================================
   ポップアップ内でTOPショートコードを使用する際のグリッドスタイル調整
   #popupContainer 内では .service-card-wrap.grid をコンパクトなカード型に上書き
 ==================================================================================== */

#popupContainer .service-card-wrap.grid {
  gap: 10px;
}

#popupContainer .service-card-wrap.grid .service-card-item > label {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid #c0cad4;
  box-shadow: none;
}

#popupContainer .service-card-wrap.grid .service-card-item > label:hover {
  border-color: #c0cad4;
  box-shadow: 0 2px 10px rgba(0, 119, 200, 0.10);
}

/* 右上チェックマークを復元 */
#popupContainer .service-card-wrap.grid .service-card-item > label::after {
  display: block;
  right: 10px;
  top: 20px;
  transform: scale(0);
  opacity: 0;
}

#popupContainer .service-card-wrap.grid .service-card-item > label:has(input:checked)::after {
  transform: scale(1);
  opacity: 1;
}

/* 選択オーバーレイ・「選択中」テキスト非表示 */
#popupContainer .service-card-wrap.grid .service-card-icon::after,
#popupContainer .service-card-wrap.grid .service-card-icon::before {
  display: none;
}

/* アイコンエリア：固定高さ・アスペクト比リセット */
#popupContainer .service-card-wrap.grid .service-card-icon {
  order: 0;
  height: 120px;
  border-radius: 0;
  aspect-ratio: unset;
  overflow: hidden;
}

#popupContainer .service-card-wrap.grid .service-card-item:nth-child(1) .service-card-icon img,
#popupContainer .service-card-wrap.grid .service-card-item:nth-child(4) .service-card-icon img {
  object-position: center;
}

/* テキストエリア：コンパクトレイアウト */
#popupContainer .service-card-wrap.grid .service-card-label {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 10px 12px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: normal;
  margin-top: 0;
}

#popupContainer .service-card-wrap.grid .service-card-label .card-sub {
  order: unset;
  margin-bottom: 2px;
  margin-top: 2px;
  min-height: auto;
  font-size: 0.72rem;
  font-weight: 400;
  display: block;
  align-items: unset;
}

/* 右端チェックボックスインジケーター非表示 */
#popupContainer .service-card-wrap.grid .service-card-label::after {
  display: none;
}

@media (max-width: 767px) {
  #popupContainer .service-card-wrap.grid {
    grid-template-columns: 1fr;
  }
  #popupContainer .service-card-wrap.grid .service-card-icon {
    height: 190px;
  }
  #popupContainer .service-card-wrap.grid .service-card-label {
    padding: 24px 12px 32px 12px;
    font-size: 0.95rem;
    line-height: 1.5;
  }
}
/* ★新規追加ここまで */
