/* Vertex AI Search UI（東京医大入試サイト） */

/* 結果ページの大きなMV見出し帯を非表示（シンプル化）。
   このCSSはショートコードのあるページ限定で読み込まれるため、素の指定で結果ページのみに効く。 */
.l-sub-img {
  display: none;
}

/* 全体を中央寄せ＋検索窓と同じ幅に統一（要約・結果も同幅） */
.vsearch-widget {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 0 60px;
}
/* PC：見出し上に付与していた余白（widgetのpadding-top）のみナシ。
   親 .results-archive__inner のテーマ既定paddingはそのまま残す。 */
@media all and (min-width: 768px) {
  .vsearch-widget {
    padding-top: 0;
  }
}

/* 見出し RESULTS / 検索結果（既存サイトの c-head02 に準拠：センター＋Cormorant serif） */
.vsearch-heading {
  margin: 0 0 40px;
  text-align: center;
}
.vsearch-heading__en {
  display: block;
  font-family: "Cormorant", serif;
  font-weight: 700;
  font-size: 4rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}
.vsearch-heading__ja {
  margin: 10px 0 0;
  font-size: 1.8rem;
  font-weight: var(--font_normal, 400);
  letter-spacing: 0.06em;
  color: #1a1a1a; /* 黒字 */
}
@media all and (min-width: 768px) {
  .vsearch-heading {
    margin-bottom: 50px;
  }
  .vsearch-heading__en {
    font-size: 5.6rem;
  }
  .vsearch-heading__ja {
    font-size: 2.2rem; /* 件数表示：少し級数を上げる */
  }
}

/* 検索フォームはテーマの .c-search01 に準拠（デザインを既存サイトに一致させる）。
   ここではフォーム独自の装飾は行わず、下方向の余白のみ付与。 */
.vsearch-widget .results-archive__search {
  margin: 0 0 24px;
}

.vsearch-loading,
.vsearch-error,
.vsearch-no-results {
  padding: 24px 0;
  color: #555;
}
.vsearch-error {
  color: #c00;
}

.vsearch-total {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
}

.vsearch-ai-summary {
  background: #f3f7fc;
  border: 1px solid #d6e4f5;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 0 0 28px;
}
.vsearch-summary-label {
  font-weight: bold;
  font-size: 14px;
  color: #00468b;
  margin: 0 0 8px;
}
.vsearch-summary-text {
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  white-space: pre-wrap;
}

.vsearch-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vsearch-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}
.vsearch-title {
  font-size: 17px;
  font-weight: bold;
  color: #00468b;
  text-decoration: none;
}
.vsearch-title:hover {
  text-decoration: underline;
}
.vsearch-url {
  font-size: 12px;
  color: #0a8a3a;
  margin: 4px 0;
  /* 長いURLは1行に省略（…） */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.vsearch-snippet {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  margin: 0;
  /* 最大2行で表示し、あふれたら末尾に「…」（PC/SP共通） */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* ===== 要約 生成中アニメ（酪農学園大UI風） ===== */
.vsearch-generating {
  background: #f2f2fb;
  border-color: #e3e3f5;
}
.vsearch-gen-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.vsearch-gen-spark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #4d7cfe 0%, #b26cf0 55%, #f38fb6 100%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: vsearch-spark 1.5s ease-in-out infinite;
}
@keyframes vsearch-spark {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.18) rotate(25deg); }
}
.vsearch-gen-text {
  font-size: 14px;
  color: #8a8a99;
}
.vsearch-gen-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vsearch-gen-bar {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, #bcd0ff 0%, #cdbaf3 38%, #f4c2da 68%, #bcd0ff 100%);
  background-size: 200% 100%;
  animation: vsearch-flow 1.8s linear infinite;
}
.vsearch-gen-bar--short {
  width: 45%;
}
@keyframes vsearch-flow {
  0%   { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vsearch-gen-spark,
  .vsearch-gen-bar { animation: none; }
}

/* 無限スクロールのセンチネル／追加読み込み表示 */
.vsearch-sentinel { min-height: 1px; }
.vsearch-more {
  text-align: center;
  color: #777;
  font-size: 14px;
  padding: 16px 0;
  margin: 0;
}

/* AI要約の注記（誤りを含む場合がある旨） */
.vsearch-summary-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #8a8a99;
}
