@charset "UTF-8";

:root {
  --color-main: #042f5f;
  --color-main: #042f5f;
  --gradient-btn: linear-gradient(90deg, #042f5f 0%, #0066cc 70%, #a1ecf1 100%);
}
@keyframes backgroundMove {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-55%, -55%) rotate(90deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
    75% { transform: translate(-45%, -45%) rotate(270deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes blink {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }
}
.nowrap {
  white-space: nowrap;
}
.aiconcierge * {
  font-family: 'Noto Sans JP', sans-serif;
}
/* --- 共通ボタン --- */
.aiconcierge_btn {
  align-items: center;
  background: var(--gradient-btn);
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  transition: opacity 0.2s;
}
.aiconcierge_btn:disabled {
  background: #797979;
}
.aiconcierge_btn-box {
    border-radius: 25px;
    font-size: 16px;
    margin-top: .7em;
    padding: .4em 1.5em
}
.aiconcierge_btn-modal {
  border-radius: 15px;
  font-size: 16px;
  padding: 10px 20px;
  flex-shrink: 0;
}
.aiconcierge_btn svg {
  margin-left: 10px;
  font-size: 1.5rem;
  transition: 0.2s;
  height: 0.5em;
  width: 1.5em;
}
.aiconcierge_btn .cls-1 {
  fill: none;
  stroke: #fff;
  stroke-miterlimit: 10;
  stroke-width: 2px;
}
.aiconcierge_btn:hover {
  opacity: 0.9;
}
.aiconcierge_btn:hover svg {
  margin-left: 15px;
}
/*
AIコンシェルジュボックス
 */
.aiconcierge-box {
  border-radius: 20px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  margin: 20px 0;
  text-align: center;
  padding: 10px;
  position: relative;
  overflow: hidden;
}
.aiconcierge-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 500%;
  transform: translate(-50%, -50%);
  background-image:
  conic-gradient(from 20deg,
  rgba(202, 230, 235, 1) 56deg,
  rgba(145, 193, 232, 1) 90deg,
  rgba(194, 230, 237, 1) 149deg,
  rgba(186, 151, 196, 1) 263deg,
  rgba(202, 230, 235, 1) 321deg);
  opacity: 1;
  animation: backgroundMove 60s linear infinite;
  z-index: -1;
}
.aiconcierge_headtext,
.aiconcierge_title,
.aiconcierge_suggestList,
.aiconcierge_btn {
  position: relative;
  z-index: 1;
}
.aiconcierge_parts {
  position: absolute;
  bottom: -10px;
  right: -10px;
  z-index: 0;
  width: 100px;
}
/* --- ヘッダーテキスト --- */
.aiconcierge_headtext {
  background-image: url(/common/v2/images/ai-concierge/ai-parts-338627a50c5fdd62af88fd40b1f1b024.svg);
  background-repeat: no-repeat;
  background-position: center bottom;
  display: inline-block;
  font-size: 18px;
  margin: 0 auto;
  padding: 0 .35em .8em;
}
.aiconcierge_headtext_text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-main);
  white-space: nowrap;
}
/* --- タイトル --- */
.aiconcierge_title_text {
  color: var(--color-main);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
}
.aiconcierge_title_text img {
  height: .8em;
}
.aiconcierge_title_text span {
  font-size: 12px;
  font-weight: 400;
  margin-left: 10px;
}
/* --- サジェストボックス --- */
.aiconcierge_suggestList {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.aiconcierge_suggestList_item {
  flex: 1;
  font-size: 14px;
  padding: 10px 5px;
  background-color: #fff;
  color: var(--color-main);
  line-height: 1.5;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 0 20px #C4D0DB inset,
              0 5px 15px rgba(0, 0, 0, 0.05);
}
.aiconcierge_suggestList_item:nth-of-type(1) {
  border-radius: 20px 0 0 20px;
}
.aiconcierge_suggestList_item:nth-of-type(3) {
  border-radius: 0 20px 20px 0;
}
.aiconcierge_suggestList_item:hover {
    transform: translateY(-2px);
}
/*
AIコンシェルジュ モーダル
*/
.aiconcierg-modal {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-sizing: border-box;
  display: none;
  height: 70vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  padding: 70px 30px 30px;
  position: fixed;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  width: 800px;
  z-index: 1000000;
}
.aiconcierg-modal.is-open{
  transform: translate(-50%, -50%) scale(1);
}
/* クローズボタン */
.aiconcierg-modal .c-closeBtn {
  background-color: var(--color-main);
  border: none;
  border-radius: 5px;
  color: #fff;
}
.aiconcierg-modal .c-closeBtn i {
  font-family: "Font Awesome 6 Free";
}
/* トークボックス */
.aiconcierge_talkBox {
  height: calc(100% - 65px);
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 10px;
}
@media all and (min-width: 481px) {
  .aiconcierge_talkBox::-webkit-scrollbar { width: 8px; }
  .aiconcierge_talkBox::-webkit-scrollbar-track { background-color: transparent; }
  .aiconcierge_talkBox::-webkit-scrollbar-thumb { background-color: rgba(158, 158, 158, .7); border-radius: 4px; }
}
/* メッセージ(ユーザー側、AI側共通) */
.aiconcierge_msgUser,
.aiconcierge_msgAi {
  margin-top: 20px;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}
.aiconcierge_msgUser:nth-of-type(1),
.aiconcierge_msgAi:nth-of-type(1) {
  margin-top: 0;
}
/* メッセージ(ユーザー側) */
.aiconcierge_msgUser {
  text-align: right;
}
.aiconcierge_msgUser:nth-of-type(1) {
  margin-top: 0;
}
.aiconcierge_msgUser_item {
  background-color: #fff;
  border: 1px solid #bfcfdf;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(221, 228, 235, 0.9) inset;
  display: inline-block;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  max-width: 35%;
  padding: 8px 20px;
  width: fit-content;
}
/* メッセージ(AI側) */
.aiconcierge_msgAi {
  display: flex;
  justify-content: start;
}
.aiconcierge_msgAi::before {
  background-image: url(/common/v2/images/ai-concierge/ai-parts2-69ba80c7642ba0a6b22298d97ed45df3.png);
  background-size: contain;
  background-repeat: no-repeat;
  content: "";
  display: block;
  flex-shrink: 0;
  height: 44px;
  margin-right: 10px;
  width: 40px;
}
.aiconcierge_msgAi_item {
  color: var(--color-main);
  font-size: 14px;
  line-height: 1.5;
}
/* メッセージ(AI側 ローディング中) */
.aiconcierge_msgAi-loading .aiconcierge_msgAi_item {
  align-items: center;
  display: flex;
  padding: 0 15px;
  gap: 25px;
}
.aiconcierge_msgAi-loading .spinner {
  animation: spin 0.8s linear infinite;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color-main);
  border-radius: 50%;
  height: 20px;
  width: 20px;
}
.aiconcierge_msgAi-loading .blinker {
    color: gray;
    animation: blink 3s linear infinite;
}
/* 点滅のアニメーションは光過敏性を持つ人にとって危険なので、ブラウザで動きを減らす設定をしていた場合それに従うようにする */
@media (prefers-reduced-motion: reduce) {
    .aiconcierge_msgAi-loading .blinker {
        animation: none;
        opacity: 1;
    }
}

/* 入力フォームエリア */
.aiconcierge_form {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  width: calc(100% - 30px * 2);
}
.aiconcierge_form input[type="text"] {
  border: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  outline: none;
  padding: 10px;
  width: 100%;
}
@media all and (max-width: 480px) {
  .aiconcierge-outer {
    padding: 0 3%;
  }
  .aiconcierge-box {
    width: 100%;
  }
  .aiconcierge_suggestList {
    display: block;
  }
  .aiconcierge_suggestList_item + .aiconcierge_suggestList_item {
    margin-top: 10px;
  }
  .aiconcierge_suggestList_item br {
    display: none;
  }
  .aiconcierge_suggestList_item:nth-of-type(1) {
    border-radius: 10px 10px 0 0;
  }
  .aiconcierge_suggestList_item:nth-of-type(3) {
    border-radius: 0 0 10px 10px;
  }
  .aiconcierg-modal {
    height: 85vh;
    padding: 70px 15px 15px;
    width: 97%;
  }
  .aiconcierg-modal .c-closeBtn {
    display: block;
    top: 15px;
    right: 15px;
  }
  .aiconcierge_msgUser_item {
    max-width: 90%;
  }
  .aiconcierge_talkBox {
    padding-right: 0;
  }
  .aiconcierge_msgAi::before {
    height: 27px;
    margin-right: 5px;
    width: 25px;
  }
  .aiconcierge_form {
    bottom: 15px;
    width: calc(100% - 15px * 2);
  }
}

/* コンシェルジュから在庫検索結果を返されたときの表示 */
.aiconcierge_msgAi_item > p + div {
    margin-top: 10px;
}

/**
 * スクロール用
 */
.aiconcierge .card-scroll {
    width: 670px;
    overflow-x: scroll;
    padding-bottom: 10px;
}
@media all and (max-width: 480px) {
    .aiconcierge .card-scroll {
        width: 295px;
    }
}
@media all and (min-width: 481px) {
  .aiconcierge .card-scroll::-webkit-scrollbar { height: 8px; }
  .aiconcierge .card-scroll::-webkit-scrollbar-track { background-color: transparent; }
  .aiconcierge .card-scroll::-webkit-scrollbar-thumb { background-color: rgba(158, 158, 158, .7); border-radius: 4px; }
}
.aiconcierge .card-wrapper {
    display: flex;
    width: max-content;
}

/**
 * 在庫1件分のカード
 */
.aiconcierge .card {
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px; 
}
.aiconcierge .card + .card {
    margin-left: 10px;
}

/**
 * 在庫の車両タイトル
 */
.aiconcierge .card-header {
    font-size: 16px;
    font-weight: 700;
}

/**
 * 項目名がない場合の表示
 */
.aiconcierge .no-tag {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.aiconcierge .no-tag li {
    font-size: 13px;
    color: #666;
}
.aiconcierge .no-tag li::after {
    content: "/";
    margin: 0 4px;
    color: #9ca3af;
}
.aiconcierge .no-tag li:last-child::after {
    content: "";
}

/**
 * 価格の表示
 */
.aiconcierge .price {
    font-size: 20px;
    font-weight: 800;
}

/**
 * 項目名がある場合の表示
 */
.aiconcierge .tag {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.aiconcierge .tag > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.aiconcierge .tag li {
    font-size: 13px;
}

/**
 * URL系はボタン表示
 */
.aiconcierge .btn {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: auto;
    gap: 6px;
}
.aiconcierge .btn > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.aiconcierge .btn li {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.aiconcierge .btn li > a {
    text-decoration: none;
}
.aiconcierge .btn li:first-child {
    background: #4f46e5;
}
.aiconcierge .btn li:first-child > a {
    color: #fff;
}
.aiconcierge .btn li:nth-child(2) {
    background: #eef2ff;
}
.aiconcierge .btn li:nth-child(2) > a {
    color: #4f46e5;   
}
.aiconcierge .btn li:nth-child(n+3) {
    background-color: #e5e7eb;
}
.aiconcierge .btn li:nth-child(n+3) > a {
    color: #4f46e5;   
}