@charset "UTF-8";

/* =========================================================
   検索メニュー (Search Menu) - Animation Fixed
========================================================= */

:root {
  --menu-bg: #01ABEC;
  --menu-text: #fff;
}

/* 1. トリガーボタン */
.menu-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: rgb(38, 47, 47, .9);
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.15); */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s;
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  color: #fff;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* アイコン切り替えアニメーション */
.menu-toggle[aria-expanded="false"] .icon-search {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.menu-toggle[aria-expanded="false"] .icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.menu-toggle[aria-expanded="true"] .icon-search {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
.menu-toggle[aria-expanded="true"] .icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* 2. オーバーレイ */
.menu-overlay {
  position: fixed;
  inset: 0;

  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.5s;
}

.menu-overlay[data-open="true"] {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* 背景パネル */
.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #c9d0dc 0%, #bac4db 100%);
  color: var(--menu-text);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  clip-path: circle(0% at calc(100% - 48px) 48px);
  transition: clip-path 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  padding: 100px 20px 0;
  box-sizing: border-box;
}

.menu-overlay[data-open="true"] .menu-panel {
  clip-path: circle(150% at calc(100% - 48px) 48px);
}

/* 3. メニュー内部 (検索フォーム) */
.menu-content {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  /* ★修正: transformを削除してopacityのみに */
  transition: opacity 0.3s ease;
  /* ★修正: clip-pathが完全に開いてからフェードイン */
  transition-delay: 0.35s;
}

.menu-overlay[data-open="true"] .menu-content {
  opacity: 1;
}

/* 閉じる時は即座にフェードアウト */
.menu-overlay:not([data-open="true"]) .menu-content {
  opacity: 0;
  transition-delay: 0s;
  transition-duration: 0.15s;
}

/* フォーム下部の余白確保 */
#searchForm {
  /* padding-bottom: 150px; */
}

/* 各セクション */
.filter-section {
  margin-bottom: 50px;
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* チェックボックスデザイン */
.custom-check {
  position: relative;
  display: block;
  cursor: pointer;
  min-height: 54px;
}

.custom-check input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.check-box-design {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.3;
  transition: background 0.2s;
}

.custom-check:hover .check-box-design {
  background: rgba(255, 255, 255, 0.25);
}

.custom-check input:checked + .check-box-design {
  background: #fff;
  color: #ff7aaf;
  font-weight: 700;
  border-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 対話形式チェックボックスの色分け */
.custom-check[data-chatbot-type="hybrid"] input:checked + .check-box-design {
  color: rgb(229,61,160);
}

.custom-check[data-chatbot-type="ai"] input:checked + .check-box-design {
  color: rgb(2,171,237);
}

.custom-check[data-chatbot-type="faq"] input:checked + .check-box-design {
  color: rgb(131,194,63);
}

/* 4. 固定フッター (検索ボタン) */
.search-footer-sticky {
  /* position: fixed; */
  /* bottom: 0; */
  /* left: 0; */
  width: 100%;
  z-index: 10001;
  /* background: linear-gradient(to top, rgba(250, 175, 76, 1) 85%, rgba(250, 175, 76, 0.8)); */
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
  /* ★修正: clip-pathが開いてから表示 */
  transition-delay: 0.3s;
}

.menu-overlay[data-open="true"] .search-footer-sticky {
  transform: translateY(0);
  opacity: 1;
}

/* 閉じる時は即座に */
.menu-overlay:not([data-open="true"]) .search-footer-sticky {
  transition-delay: 0s;
  transition-duration: 0.2s;
}
@media (max-width: 768px) {
  .menu-overlay-inner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    display: block;
    width: 100vw;
  }

  .menu-overlay-inner .menu-panel {
    position: relative;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
  }
}
.execute-search-btn {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  color: #4d4d4d;
  border: none;
  border-radius: 50px;
  padding: 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  /* box-shadow: 0 6px 20px rgba(0,0,0,0.25); */
}

.execute-search-btn:disabled {
  background: #555;
  opacity: 0.8;
  box-shadow: none;
}

.count-badge {
  background: #FE94BF;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 800;
}

.reset-conditions-btn {
  background: transparent;
  border: none;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 5px;
}



/* タブレット・SP: 1199px以下 */
@media (max-width: 1199px) {
/* 1. トリガーボタン */
.menu-toggle {
  position: fixed;
   top: auto;
    bottom: 16px;
    right: 16px;
  z-index: 10000;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: #3d3d3d;
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.15); */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s;
}



  /* アニメーション起点を右下に変更 */
  .menu-panel {
    clip-path: circle(0% at calc(100% - 33px) calc(100% - 33px));
  }

  .menu-overlay[data-open="true"] .menu-panel {
    clip-path: circle(150% at calc(100% - 33px) calc(100% - 33px));
  }

  .menu-panel {
        padding: 30px 20px 0;
  }
}
