img:is([sizes="auto" i], [sizes^="auto," i]) {
  contain-intrinsic-size: 3000px 1500px
}

/* AIマッチングボタンのプレミアムスタイル */
.ai-matching-section {
  /* margin-bottom: 4rem; */
  background: transparent;
  border-radius: 12px;
  padding: 3rem;
  /* box-shadow: 0 10px 30px rgba(0, 64, 140, 0.08); */
  /* border: 1px solid #e0e6ed; */
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: -20px;
}

/* .ai-matching-section::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
  animation: shine 8s infinite linear;
} */

@keyframes shine {
  0% {
    transform: translate(-30%, -30%) rotate(0deg);
  }

  100% {
    transform: translate(30%, 30%) rotate(360deg);
  }
}

.ai-matching-section .ai-label {
  display: inline-block;
  background: linear-gradient(135deg, #00408c 0%, #006dd9 100%);
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.ai-matching-btn {
  display: block;
  max-width: 380px;
  margin: 0 auto;
  padding: 1rem 2.2rem;
  background: linear-gradient(135deg, #00408c 0%, #02325a 100%);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 32, 64, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-matching-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 32, 64, 0.4);
  opacity: 0.95;
}

.ai-matching-desc {
  margin-top: 1.8rem;
  font-size: 1.6rem;
  color: #00408c;
  font-weight: 700;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .ai-matching-section {
    padding: 2rem;
    margin-bottom: 3rem;
  }

  .ai-matching-btn {
    font-size: 1.8rem;
    padding: 1.5rem 2rem;
  }

  .ai-matching-desc {
    font-size: 1.4rem;
  }
}

/* 検索・クリアボタンの統合と最下部への配置に伴うスタイルの追加 */

.form-submit-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
}

/* メイン検索ボタン */
.main-search-btn {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  background-color: #00408c !important;
  border: none !important;
  border-radius: 100px !important;
  display: inline-flex !important;
  gap: 1.2rem !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 1.6rem 6rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(0, 64, 140, 0.2) !important;
  transition: all 0.3s ease !important;
  min-width: 24rem;
}

.main-search-btn:hover {
  opacity: 0.9 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 64, 140, 0.3) !important;
}

.main-search-btn::before {
  content: "" !important;
  width: 2.2rem !important;
  height: 2.2rem !important;
  background-image: url('../img/icon_search.svg') !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  display: block !important;
  filter: brightness(0) invert(1); /* 虫眼鏡アイコンを白くする */
}

/* サブクリアボタン */
.sub-clear-btn {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: #00408c !important;
  background-color: #fff !important;
  border: 1px solid #00408c !important;
  border-radius: 100px !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 1.6rem 4rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  min-width: 20rem;
  box-sizing: border-box !important;
}

.sub-clear-btn:hover {
  background-color: #eff5fc !important;
  transform: translateY(-2px);
}

/* 既存のフリーワード横ボタンの枠（SP版などでの余白調整）の補正 */
@media screen and (max-width: 768px) {
  body.exhibitor section.search form .word .input {
    width: 100% !important; /* ボタンが消えたため、入力欄を横いっぱいに広げる */
  }
}

/* スマホ表示時の挙動調整 */
@media screen and (max-width: 768px) {
  .form-submit-btns {
    flex-direction: column-reverse; /* スマホでは縦並び：上が検索、下がクリア */
    gap: 1.5rem;
    margin-top: 3rem;
  }
  
  .main-search-btn, .sub-clear-btn {
    width: 100% !important;
    max-width: 320px !important;
    min-width: unset !important;
    font-size: 1.6rem !important;
    padding: 1.4rem 4rem !important;
  }
}


/* AI}b`O[_̃X^CݒiCCڍsj */
#aiMatchingModal {
  z-index: 9998;
}

#aiMatchingModal .exModal-scroll-body {
  padding: 0;
  overflow: hidden;
}

#aiMatchingFrame {
  width: 100%;
  height: 100%;
  border: none;
}
