/* AI検索の結果（記事ページなど・トップ以外）。トップは top.css に同じ見た目がある。2026-10-13 社長「記事ページの検索（虫めがね）もAI検索に」
   中身は top.css の「AI検索の結果」をそのまま写し、色の変数だけここで決める。下に SWELL の検索画面（.p-searchModal）用の見た目を足した */
.nabe-ai { --nabe-accent: #c8321e; --nabe-ink: #1c1a19; }
   検索ボタンを押すと、検索欄の下にAIが選んだレシピ3本・ふつうの検索・メルマガ（BOT）案内が出る。assets/ai-search.js */
.nabe-search__btn:disabled { opacity: .6; cursor: wait; }
.nabe-ai { max-width: 680px; margin: 0 auto; }
.nabe-ai:empty { display: none; }
.nabe-ai__wait { display: flex; align-items: center; gap: .6rem; margin: 1.2rem 0 0; color: #6e6357; font-size: .95rem; }
.nabe-ai__dots { display: inline-flex; gap: 4px; }
.nabe-ai__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--nabe-accent); animation: nabeAiBob 1s infinite; }
.nabe-ai__dots i:nth-child(2) { animation-delay: .15s; }
.nabe-ai__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes nabeAiBob { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.nabe-ai__lead { margin: 1.3rem 0 .8rem; font-weight: 700; color: var(--nabe-ink); line-height: 1.7; word-break: auto-phrase; text-wrap: pretty; }
.nabe-ai__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.nabe-ai__card { display: block; background: #fff; border: 1px solid #ece4d8; border-radius: 12px; overflow: hidden; color: var(--nabe-ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.nabe-ai__card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -12px rgba(60, 40, 20, .45); }
.nabe-ai__card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #f1ebe2; }
.nabe-ai__body { display: block; padding: .7rem .8rem .8rem; }
.nabe-ai__title { display: block; font-weight: 700; font-size: .98rem; line-height: 1.5; text-wrap: balance; word-break: auto-phrase; } /* 「…チキン／風」のように1文字だけ次の行に残さない */
.nabe-ai__reason { display: block; margin-top: .25rem; font-size: .82rem; line-height: 1.6; color: #6e6357; text-wrap: pretty; word-break: auto-phrase; }
.nabe-ai__more { margin: .9rem 0 0; text-align: right; font-size: .9rem; }
.nabe-ai__more a { color: #6e6357; text-decoration: underline; text-underline-offset: 3px; }
.nabe-ai__cta { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; padding: 1rem 1.1rem; background: #fbf4e6; border-radius: 12px; }
.nabe-ai__cta p { margin: 0; flex: 1; font-size: .88rem; line-height: 1.7; color: #5a5248; }
.nabe-ai__kun { flex: 0 0 auto; width: 72px; height: 72px; margin: -6px -4px -10px -6px; }
.nabe-ai__cta p > b:first-child { display: block; color: var(--nabe-ink); font-size: .95rem; margin-bottom: .1rem; }
.nabe-ai__bot { color: var(--nabe-accent); white-space: nowrap; } /* 名前の途中で改行しない */
.nabe-ai__em { color: var(--nabe-accent); }
.nabe-ai__cta p { word-break: auto-phrase; }
.nabe-ai__btn { flex: 0 0 auto; display: inline-block; padding: .7rem 1.1rem; border-radius: 999px; background: var(--nabe-accent); color: #fff !important; font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
@media (max-width: 599px) {
	.nabe-ai__list { grid-template-columns: 1fr; gap: .7rem; }
	.nabe-ai__card { display: flex; align-items: stretch; }
	.nabe-ai__card img { width: 42%; flex: 0 0 42%; aspect-ratio: 16 / 9; height: auto; align-self: center; }
	.nabe-ai__body { padding: .55rem .75rem; }
	.nabe-ai__title { font-size: .92rem; }
	.nabe-ai__cta { flex-wrap: wrap; align-items: center; text-align: left; gap: .6rem .8rem; }
	.nabe-ai__cta p { flex: 1 1 0; min-width: 0; }
	.nabe-ai__kun { width: 64px; height: 64px; margin: -4px -2px -4px -6px; }
	.nabe-ai__btn { flex: 1 0 100%; text-align: center; }
}


/* SWELL の検索画面（虫めがね）の中：結果を白い板にのせ、画面の高さを超えたら中でスクロール */
.p-searchModal .nabe-ai:not(:empty) {
	position: relative; z-index: 1; margin: .8rem auto 0; padding: .2rem .9rem 1rem; max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px);
	overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fffdf9; border-radius: 14px; text-align: left; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.p-searchModal .nabe-ai__wait { margin-top: .9rem; }
.p-searchModal .c-searchForm__submit:disabled { opacity: .6; cursor: wait; }
