@charset "utf-8";

/* ===== 検索ボックス（ボタン内包） ===== */
.ai-search-box {
  width: 250px;
  height: 33px;

  z-index: 10;

  display: flex;
  align-items: center;
  gap: 6px;

  padding: 0 6px 0 12px;
  border-radius: 18px;
  border: 1px solid #c0c5cb;
  background: #ffffff;
}

.ai-search-box:focus-within {
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0,119,204,0.15);
}

/* 検索アイコン */
.ai-search-icon {
  width: 16px;
  height: 16px;
  fill: #6b7280;
  flex: 0 0 auto;
}

/* 入力欄 */
.ai-search-input {
  flex: 1 1 auto;
  height: 34px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
}

/* ===== 小型AI検索ボタン（内包） ===== */
.ai-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 1px;

  height: 26px;
  padding: 0 10px;              /* ← かなりコンパクト */
  border-radius: 13px;

  background: linear-gradient(
    180deg,
    #1da1ff 0%,
    #0066cc 100%
  );

  border: 2px solid #ffffff;
  color: #ffffff;

  font-size: 11px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;

  position: relative;
  z-index: 10;
}

.ai-search-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.ai-search-btn:active {
  transform: translateY(1px);
}

.search-wrapper{
  display:flex;
  align-items:center;
  gap:16px;
  margin-left: auto;   /* ← これで右寄せ */
  margin-right: 15px;
  padding-top: 40px;
  width: fit-content;  /* 中身幅に縮める */
}
.logo_catch{ /* 親 */
  position: relative;
}
.flex_right {
  display: flex;
  flex-direction: column;   /* 縦並び */
  align-items: flex-end;    /* 右寄せ */
}
@media (min-width: 641px) {
  .pc-none {
    display: none !important;
  }

  .search-wrapper{
    display:flex;
    align-items:center;
    gap:16px;
    margin-left: auto;   /* ← これで右寄せ */
    margin-right: 200px;
    padding-top: 40px;
    width: fit-content;  /* 中身幅に縮める */
  }
  .ai-search-group {
    margin-top: 7px;
  }

/*
  .detailSrch {
    position: static !important;
    width: auto;
    margin-bottom: 0;
  }
  .detailSrch .searchbtn, .searchbtn_hide {
    margin: 0;
  }
*/
  #chatbot-iframe {
    width: 900px;
  }
  .pt48 {
    padding-top: 48px !important;
  }
  .mr30 {
    margin-right: 30px !important;
  }
}
@media (max-width: 640px) {
  .sp-none {
    display: none !important;
  }
  .ai-search-box {
    width: 265px;
  }
  #chatbot-iframe {
    width: 100%;
  }
  .search-wrapper {
    margin-right: 3px;
    padding-top: 90px;
  }
  .sp_header_menu .sp_header_menu_inner .sp_header_menu_list {
    margin: 40px 0 24px 0;
  }
  .sp_header_menu_inner .detailSrch {
    top: 60px;
    right: 0px;
  }
  .contentsArea {
    margin-top: 50px;
  }
}
/* FireFox固有 */
@supports (-moz-appearance: none) {
  .ai-search-btn {
    margin-left: 21px;
  }
}
/* Chrome等 */
@supports (-webkit-appearance:none) and (not (-moz-appearance:none)) {
  .ai-search-box {
    padding: 0 0 0 12px;
  }
}
