/*
 * 深層ヒアリングの相談フォーム。
 *
 * 配色は docs/デザインルール.md v2 に従い、docs/muratsu-lp-design/参考資料/muratsu-design.png から実測した値を使う。
 * 文字を載せる面はコントラスト基準(4.5:1)を満たす値へ調整済み。
 * LP側(ai-consultation-lp.css)と同じ変数名・同じ値で揃えている。
 *
 * UX基準は site/design-toolkit の ui-ux-pro-max に準拠。
 * タッチ領域44px以上／遷移200ms／フォーカス可視／本文16px／絵文字を使わない。
 */

.ai-deep {
	/* 画像から実測した色（そのまま使う） */
	--ai-accent: #3396fd;
	--ai-band: #ebf5fd;
	--ai-band-deep: #e3f1fa;
	--ai-page: #f5fafe;

	/* 文字を載せる面（コントラスト基準を満たす値） */
	--ai-primary: #0273e9;
	--ai-primary-dark: #0161c6;

	/* 文字色 */
	--ai-navy: #1b3554;
	--ai-text: #33404f;
	--ai-text-muted: #5c6a7c;

	--ai-border: #dde5ee;
	--ai-alert-bg: #fdf3e1;
	--ai-alert-border: #e8b64a;
	--ai-alert-text: #7a4b06;

	--ai-radius-lg: 20px;
	--ai-radius-md: 14px;
	--ai-radius-sm: 9px;
	--ai-shadow: 0 4px 16px rgba(27, 53, 84, .08);
	--ai-shadow-hover: 0 10px 28px rgba(27, 53, 84, .16);

	font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
	color: var(--ai-text);
	font-size: 16px;
	line-height: 1.8;
	margin: 0 auto;
	padding: 40px 16px;
}

.ai-deep * {
	box-sizing: border-box;
}

/* 非表示のはずの要素が出るバグを防ぐ。削除しないこと */
.ai-deep [hidden] {
	display: none !important;
}

.ai-deep button:focus-visible,
.ai-deep textarea:focus-visible {
	outline: 3px solid var(--ai-primary);
	outline-offset: 2px;
}

/* ===== 最初の画面 =====
   2026-10-06〜は Dental World(assets/css/dental-world.css)。以前のカード型の最初の画面(.ai-deep__intro-*・
   .ai-deep__title・.ai-deep__lead)の見た目は、画面ごと置き換えたので削除した(git の履歴に残っている)。 */

/* ===== 進捗 ===== */

.ai-deep__progress {
	margin: 0 0 20px;
}

.ai-deep__progress-bar {
	height: 6px;
	background: var(--ai-band);
	border-radius: 999px;
	overflow: hidden;
}

.ai-deep__progress-bar > span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--ai-accent);
	border-radius: 999px;
	transition: width 300ms;
}

/* ===== 前の質問に戻る／はじめから相談し直す ===== */

.ai-deep__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
}

.ai-deep__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	margin: 0 0 16px;
	padding: 6px 10px 6px 4px;
	background: none;
	border: 0;
	border-radius: var(--ai-radius-sm);
	font-family: inherit;
	font-size: .88rem;
	font-weight: 700;
	color: var(--ai-text-muted);
	cursor: pointer;
	transition: color 150ms, background-color 150ms;
}

.ai-deep__back svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.ai-deep__back:hover {
	color: var(--ai-primary);
	background: var(--ai-band);
}

/* ===== 安全確認の案内 ===== */

.ai-deep__alert {
	background: var(--ai-alert-bg);
	border: 1px solid var(--ai-alert-border);
	border-radius: var(--ai-radius-md);
	color: var(--ai-alert-text);
	padding: 16px 18px;
	margin: 0 0 20px;
	font-weight: 700;
}

/* 混み合っている・メンテナンス中の案内に添える電話番号(2026-10-09〜) */
.ai-deep__alert-tel {
	display: block;
	margin-top: 8px;
}

.ai-deep__alert-tel a {
	color: inherit;
	margin-left: 4px;
	white-space: nowrap;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ===== 質問・要約・スケールの共通の器 ===== */

.ai-deep__panel {
	background: #fff;
	border: 1px solid var(--ai-border);
	border-radius: var(--ai-radius-lg);
	padding: 28px 24px;
	box-shadow: var(--ai-shadow);
}

/* AI深掘りの最初の1問の上にだけ出す説明(2026-09-26)。待機画面の案内文と同じ淡い帯。 */
.ai-deep__deep-intro {
	font-size: .88rem;
	line-height: 1.7;
	color: var(--ai-navy);
	margin: 0 0 16px;
	padding: 12px 16px;
	background: var(--ai-band);
	border-radius: var(--ai-radius-md);
	word-break: keep-all;
	overflow-wrap: anywhere;
}

.ai-deep__question {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--ai-navy);
	line-height: 1.7;
	margin: 0 0 10px;
}

.ai-deep__sub {
	font-size: .92rem;
	color: var(--ai-text-muted);
	margin: 0 0 20px;
}

/* 複数選択可能な質問であることを示す小さな目印(2026.09.12)。 */
.ai-deep__multi-hint {
	display: inline-block;
	margin: 0 0 16px;
	padding: 3px 10px;
	background: var(--ai-band);
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 700;
	color: var(--ai-primary);
}

/* ===== 選択肢 ===== */

.ai-deep__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 20px 0 0;
}

.ai-deep__option {
	display: block;
	width: 100%;
	min-height: 56px;
	text-align: left;
	background: var(--ai-page);
	border: 1px solid var(--ai-border);
	border-radius: var(--ai-radius-md);
	padding: 14px 48px 14px 18px;
	font-size: 1rem;
	font-family: inherit;
	color: var(--ai-navy);
	cursor: pointer;
	position: relative;
	transition: background-color 200ms, border-color 200ms, box-shadow 200ms;
}

.ai-deep__option::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 8px;
	height: 8px;
	border-top: 2px solid var(--ai-accent);
	border-right: 2px solid var(--ai-accent);
	transform: translateY(-50%) rotate(45deg);
}

.ai-deep__option:hover {
	background: var(--ai-band);
	border-color: var(--ai-accent);
	box-shadow: var(--ai-shadow);
}

/* ===== 複数選択（当てはまるものをすべて選ぶ） ===== */
/* 単一選択は「押す=次へ進む」矢印だが、複数選択は選択のON/OFFなのでチェックボックスにする。 */

.ai-deep__option--multi::after {
	content: "";
	border: none;
	width: 20px;
	height: 20px;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	border-radius: 5px;
	border: 1.5px solid var(--ai-border);
	background-color: var(--ai-page);
	background-repeat: no-repeat;
	background-position: center;
	transition: background-color 150ms, border-color 150ms;
}

.ai-deep__option--multi.is-selected {
	background: var(--ai-band);
	border-color: var(--ai-accent);
}

.ai-deep__option--multi.is-selected::after {
	background-color: var(--ai-accent);
	border-color: var(--ai-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.75 6 6 9-13.5'/%3E%3C/svg%3E");
	background-size: 13px 13px;
}

/* exclusive(選択肢自体は単一選択。例: 性別)は、押しても即送信しない点は
   複数選択と同じだが、選べるのは1つだけなのでチェックボックスではなく
   ラジオボタンの見た目にする(誤って複数選べると思わせないため)。 */
.ai-deep__option--radio::after {
	border-radius: 999px;
}

.ai-deep__option--radio.is-selected::after {
	background-image: none;
	box-shadow: inset 0 0 0 4px #fff;
}

[data-options] + .ai-deep__btn,
[data-multi-submit] {
	margin-top: 18px;
}

/* 2026.09.15是正: スクロール追従(position: sticky)を試したが、この画面が
   実際に埋め込まれるトップページの.webapp-panel(front-page.css)がoverflow:hiddenを
   持つため、ブラウザの仕様上追従が効かないことが判明(トップページの角丸装飾に
   必要なプロパティのため変更しない判断)。代わりにHTML側の並び順を直し
   (自由記入欄の後に「次へ進む」ボタンを置く)、常にすべての入力欄の後に
   ボタンが来るようにした。
   【2026-10-05追記】LP表示中は front-page.css(2026-09-25〜)が.webapp-panelの
   overflow:hidden と角丸を外しているため、LPの中では position:sticky が効く
   (LocalWPで確認済み)。上の制約は相談フォーム(質問中の画面)にだけ当てはまる。 */

/* グループ分けされた選択肢の見出し(例: 年齢帯・性別。2026.09.11〜)。
   最初のグループの見出しだけ余白を詰め、選択肢群の直前という印象にする。 */
.ai-deep__option-group-label {
	font-size: .85rem;
	font-weight: 700;
	color: var(--ai-text-muted);
	margin: 20px 0 2px;
}

.ai-deep__options .ai-deep__option-group-label:first-child {
	margin-top: 0;
}

/* ===== 自由入力 ===== */

.ai-deep__free {
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--ai-border);
}

.ai-deep__label {
	display: block;
	font-size: .92rem;
	font-weight: 700;
	color: var(--ai-navy);
	margin-bottom: 8px;
}

.ai-deep__textarea {
	width: 100%;
	/* 16px未満にするとiOSで入力時に意図しないズームが起きる */
	font-size: 16px;
	font-family: inherit;
	line-height: 1.7;
	color: var(--ai-text);
	background: var(--ai-page);
	border: 1px solid var(--ai-border);
	border-radius: var(--ai-radius-sm);
	padding: 12px 14px;
	resize: vertical;
	transition: border-color 200ms;
}

.ai-deep__textarea:focus {
	border-color: var(--ai-accent);
}

/* ===== ボタン ===== */

.ai-deep__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	border: 0;
	border-radius: 999px;
	padding: 14px 32px;
	font-size: 1.06rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 200ms, box-shadow 200ms;
}

.ai-deep__btn--primary {
	background: var(--ai-primary);
	color: #fff;
}

.ai-deep__btn--primary:hover {
	background: var(--ai-primary-dark);
	box-shadow: var(--ai-shadow-hover);
}

.ai-deep__free .ai-deep__btn {
	margin-top: 14px;
}

/* ===== 要約の確認 ===== */

.ai-deep__summary-head {
	font-size: .95rem;
	color: var(--ai-text-muted);
	margin: 0 0 14px;
}

.ai-deep__summary {
	background: var(--ai-page);
	border-left: 4px solid var(--ai-accent);
	border-radius: 0 var(--ai-radius-md) var(--ai-radius-md) 0;
	padding: 18px 20px;
	color: var(--ai-navy);
	white-space: pre-line;
}

.ai-deep__summary-confirm-question {
	font-size: 1rem;
	font-weight: 700;
	color: var(--ai-navy);
	margin: 22px 0 0;
}

/* ===== 0〜10スケール ===== */

.ai-deep__scale {
	margin-top: 24px;
}

.ai-deep__scale-labels {
	display: flex;
	justify-content: space-between;
	font-size: .85rem;
	color: var(--ai-text-muted);
	margin-bottom: 10px;
	gap: 12px;
}

.ai-deep__scale-buttons {
	display: grid;
	grid-template-columns: repeat(11, 1fr);
	gap: 6px;
}

.ai-deep__scale-btn {
	/* 11個並べるため幅は狭いが、高さで44px以上のタッチ領域を確保する */
	min-height: 48px;
	background: var(--ai-page);
	border: 1px solid var(--ai-border);
	border-radius: var(--ai-radius-sm);
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	color: var(--ai-navy);
	cursor: pointer;
	transition: background-color 200ms, border-color 200ms;
}

.ai-deep__scale-btn:hover {
	background: var(--ai-accent);
	border-color: var(--ai-accent);
	color: #fff;
}

/* ===== 読み込み中 ===== */

.ai-deep__panel--loading {
	text-align: center;
	padding: 48px 24px;
	background: linear-gradient(180deg, #fff 0%, var(--ai-page) 100%);
}

/*
 * 使い分け:
 *   問診中の短い待ち(質問1問分)   → 従来どおりのスピナー
 *   ご案内ページ生成中の長い待ち   → 前進し続けるバー(ぐるぐるは「足踏みしている」
 *                                    ように見え、実測より長く感じさせるため)
 * どちらを見せるかはJS側で data-spinner / data-loadbar の hidden を切り替える。
 */
.ai-deep__spinner {
	width: 40px;
	height: 40px;
	margin: 0 auto 18px;
	border: 3px solid var(--ai-band);
	border-top-color: var(--ai-accent);
	border-radius: 50%;
	animation: ai-deep-spin 900ms linear infinite;
}

@keyframes ai-deep-spin {
	to { transform: rotate(360deg); }
}

.ai-deep__loadbar {
	width: 220px;
	max-width: 80%;
	height: 6px;
	margin: 0 auto 20px;
	background: var(--ai-band);
	border-radius: 999px;
	overflow: hidden;
}

.ai-deep__loadbar > span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--ai-accent);
	border-radius: 999px;
	transition: width 550ms ease-out;
}

.ai-deep__loading-text {
	margin: 0;
	color: var(--ai-text-muted);
	white-space: pre-line;
}

/* ===== 待機画面の実コンテンツ(院内写真・コラボ動画) ===== */
.ai-deep__waiting-extra {
	max-width: 480px;
	margin: 20px auto 0;
}

/* PCでは480px制限だと.ai-deep__panel--loading自体の横幅(カード幅いっぱい)より
   かなり狭く、左右に大きな余白ができてしまうため広げる(2026.09.15指摘)。
   カードいっぱいまでではなく、白いカードの2/3程度まで(ユーザー指定)。
   スマホは元々480pxより画面が狭く、この制限が効かないため上の基本値のまま。 */
@media (min-width: 601px) {
	.ai-deep__waiting-extra {
		max-width: 66%;
	}
}

.ai-deep__waiting-intro {
	font-size: .82rem;
	line-height: 1.6;
	color: var(--ai-navy);
	text-align: center;
	margin: 0 0 16px;
	padding: 12px 16px;
	background: var(--ai-band);
	border-radius: var(--ai-radius-md);
}

/* 横スクロール(グリッドで折り返すと、少数の写真でも均等割りで間延びして見えるため、
   帯として横に流し、次の写真が少し見える「一覧感」を出す)。
   2026.09.15: 以前はscroll-snap-type(x proximity)を付けていたが、ゆっくり流れ続ける
   自動スクロール(JSでscrollLeftを少しずつ連続的に動かす方式)に変えたところ、
   途中の半端な位置に来るたびブラウザがscroll-snapで最寄りのスナップ位置
   (実質、両端の0か最大値のどちらかしか無い状態だった)へ即座に引き戻してしまい、
   常に両端でしか止まって見えない不具合が実機確認で判明したため外した。 */
.ai-deep__waiting-photos {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 2px;
	margin-bottom: 20px;
}

.ai-deep__waiting-photo-btn {
	flex: 0 0 auto;
	width: 62%;
	max-width: 220px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.ai-deep__waiting-photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: var(--ai-shadow);
}

/* PC/スマホでそれぞれ登録された院内写真を出し分ける
   (.ai-deep__intro-photo--pc/--spと同じ考え方。2026.09.15〜)。 */
.ai-deep__waiting-photos--sp {
	display: none;
}

/* 中央動画(2026.09.15追加)。写真カルーセルの下・コラボ動画一覧の上に置き、
   下のサムネイルを押すとここが差し替わる。自動再生ポリシー上、最初は必ず
   無音で始まるため、音量はスライダーで見てもらう人自身に上げてもらう
   (オンオフの1ボタンにはしない・ユーザー指示)。 */
.ai-deep__waiting-center-video {
	margin: 0 0 20px;
}

.ai-deep__waiting-center-video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--ai-radius-md);
	overflow: hidden;
	background: #000;
	box-shadow: var(--ai-shadow);
}

.ai-deep__waiting-center-video-iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ai-deep__waiting-center-video-caption {
	font-size: .78rem;
	color: var(--ai-text-muted);
	text-align: center;
	margin: 8px 0 0;
}

.ai-deep__waiting-volume {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 6px auto 0;
	max-width: 220px;
}

.ai-deep__waiting-volume-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	color: var(--ai-text-muted);
}

.ai-deep__waiting-volume-slider {
	flex: 1 1 auto;
	accent-color: var(--ai-primary);
}

.ai-deep__waiting-videos {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 10px;
}

.ai-deep__waiting-video {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0;
	background: none;
	border: 0;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.ai-deep__waiting-video-thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ai-band);
}

.ai-deep__waiting-video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ai-deep__waiting-video-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(27, 53, 84, .72);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 150ms;
}

.ai-deep__waiting-video:hover .ai-deep__waiting-video-play,
.ai-deep__waiting-video:focus-visible .ai-deep__waiting-video-play {
	background: var(--ai-primary);
}

/* 今、中央に流れている動画のサムネイルだと分かるようにする。 */
.ai-deep__waiting-video.is-current .ai-deep__waiting-video-thumb {
	outline: 2px solid var(--ai-primary);
	outline-offset: 2px;
}

.ai-deep__waiting-video-label {
	font-size: .74rem;
	line-height: 1.4;
	color: var(--ai-text-muted);
}

/* ===== ライトボックス(写真・動画とも、押したものだけをここへ拡大表示) ===== */

.ai-deep__lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

/* ライトボックスを開いている間、背後のページがスクロールしないようにする(JSがhtml/bodyへ付け外し)。 */
html.ai-deep-scroll-locked,
body.ai-deep-scroll-locked {
	overflow: hidden;
}

.ai-deep__lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 32, 46, .78);
	border: 0;
	cursor: pointer;
}

.ai-deep__lightbox-content {
	position: relative;
	width: 100%;
	max-width: 640px;
}

.ai-deep__lightbox-close {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--ai-navy);
	border: 0;
	box-shadow: var(--ai-shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ai-deep__lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--ai-navy);
	border: 0;
	box-shadow: var(--ai-shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ai-deep__lightbox-nav--prev {
	left: -14px;
}

.ai-deep__lightbox-nav--next {
	right: -14px;
}

.ai-deep__lightbox-photo {
	display: block;
	width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 12px;
	background: #000;
}

@media ( max-width: 600px ) {
	.ai-deep__waiting-videos {
		grid-template-columns: repeat( 3, 1fr );
		gap: 6px;
	}

	.ai-deep__waiting-video-label {
		display: none;
	}
}

/* ===== 生成されたLP ===== */

.ai-deep__lp {
	margin-top: 8px;
}

/* LPは相談フォームより広く使うため、幅の制約だけ外す。
   左右の余白は .ai-lp 側の値をそのまま活かす
   (以前はここで padding-left/right を 0 にしていたが、スマホで
   .ai-deep の 12px しか残らず、カードが画面端に貼り付いて見えていた)。 */
.ai-deep__lp .ai-lp {
	max-width: none;
}

/* LP表示中は背景色を横幅いっぱいに広げる(2026-09-25 ユーザー指示)。.ai-deep自身の左右余白を外し、
   代わりにLP直下の各ブロックの左右余白を「中身が920px幅に収まる分」にする。背景は端まで届き、
   文章は従来と同じ幅で中央に来る。トップページ埋め込み時の外側の枠(テーマのfront-page.css)も
   LP表示中だけ外している。画面が狭いうちは各ブロック本来の余白をそのまま使う。 */
.ai-deep:has(.ai-deep__lp:not([hidden])) {
	padding-left: 0;
	padding-right: 0;
}

/* ===== スマホ ===== */

@media (max-width: 600px) {
	.ai-deep {
		padding: 32px 0;
	}

	/* 2026.09.12訂正: 上のコメント「.ai-deepの8px + ここ8px = 実質16px」は、
	   .ai-deepがさらにwebapp-panel(18px)・section-inner(20px)の内側にいることを
	   見落としていた。実測すると合計 20+18+8+8=54px にもなり、スマホで
	   「LPの左右の余白が広すぎる」実害が出ていた(2026.09.12指摘)。
	   PCでは.ai-lp__sectionの16pxだけが実効の余白になっているのと同じ状態に
	   揃えたい。webapp-panelにはposition:relative + overflow:hiddenがある
	   (当時。2026-09-25以降、LP表示中は front-page.css が overflow を外している)ため、.ai-deep__lp側からnegative marginで
	   はみ出させる方式は使えない(はみ出た分がborder内でクリップされる)。
	   そのため、外側3層すべて(section-inner・webapp-panelはsite/wp-theme側、
	   ai-deepはここ)を0にする対応にした(section-inner・webapp-panel側は
	   assets/css/front-page.css に追加済み)。
	   2026.09.12追記: 当初はLP表示中(.ai-deep__lpが表示されている間)だけに
	   限定していたが、「スマホでは相談フォーム側も左右の余白をなくしてよい」との
	   指示を受け、.ai-deep自体の左右paddingは常時0にした(上の.ai-deep宣言を参照)。
	   .ai-deep__intro・.ai-deep__panel等、中身のカード自身の内側paddingは
	   そのまま残しているため、文字が画面端に張り付くことはない。 */

	.ai-deep__lp .ai-lp {
		padding-left: 0;
		padding-right: 0;
	}

	.ai-deep__panel {
		padding: 22px 16px;
	}

	.ai-deep__waiting-photos--pc {
		display: none;
	}

	.ai-deep__waiting-photos--sp {
		display: flex;
	}

	.ai-deep__question {
		font-size: 1.1rem;
	}

	.ai-deep__option {
		padding: 14px 40px 14px 14px;
	}

	.ai-deep__scale-buttons {
		/* 11個を横一列にすると1つ25px程度になり押しにくいので2段に折る */
		grid-template-columns: repeat(6, 1fr);
	}

	.ai-deep__scale-btn {
		min-height: 52px;
	}
}

/* ===== LP最下部の「はじめから相談し直す」(2026.09.12) ===== */

.ai-deep__lp-restart {
	display: flex;
	justify-content: center;
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid var(--ai-band);
}

/* LPの一番上の「はじめから相談し直す」(2026-10-06〜)。下のものと同じ見た目で、区切り線を下側に */
.ai-deep__lp-restart--top {
	margin-top: 0;
	padding-top: 0;
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-top: 0;
	border-bottom: 1px solid var(--ai-band);
}

.ai-deep__lp-restart-btn {
	background: none;
	border: 0;
	padding: 10px 12px;
	min-height: 44px;
	font-family: inherit;
	font-size: .85rem;
	font-weight: 700;
	color: var(--ai-text-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: color 150ms;
}

.ai-deep__lp-restart-btn:hover {
	color: var(--ai-primary);
}

/* ===== 動きを減らす設定を尊重する ===== */

@media (prefers-reduced-motion: reduce) {
	.ai-deep *,
	.ai-deep *::before,
	.ai-deep *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}


/* ------------------------------------------------------------------
 * 途中の小さな予約ボタン(2026-11-10〜。template-parts/layouts/_common/minicta.php)
 * 「一番気になっていること」の下と、よくある質問の下。押すと予約欄へ移動する。なるべくコンパクトに。
 * 色はご案内の種類ごとの主な色に合わせる(--ai-lp-mini-accent)。
 * ------------------------------------------------------------------ */
.ai-lp.lpb { --ai-lp-mini-accent: var(--lpb-blue, #3b7fb8); }
.ai-lp.lpx { --ai-lp-mini-accent: var(--lpx-gold-deep, #9a7a45); }
.ai-lp.lps { --ai-lp-mini-accent: var(--lps-pink, #e85a7a); }
.ai-lp.lpt { --ai-lp-mini-accent: var(--lpt-navy, #073b70); }
.ai-lp.lpl { --ai-lp-mini-accent: var(--lpl-accent, #d9532e); }
.ai-lp .ai-lp-mini {
	padding: 28px 16px;
	text-align: center;
}
.ai-lp .ai-lp-mini__lead {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.6;
	color: inherit;
	opacity: .85;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
.ai-lp .ai-lp-mini__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	width: min(100%, 360px);
	padding: 0 24px;
	border-radius: 999px;
	background: var(--ai-lp-mini-accent, #1d5fa7);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none !important;
	box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35);
	box-sizing: border-box;
	transition: filter .2s ease, transform .2s ease;
}
.ai-lp .ai-lp-mini__btn:hover { filter: brightness(1.08); }
.ai-lp .ai-lp-mini__btn:active { transform: translateY(1px); }
.ai-lp .ai-lp-mini__btn:focus-visible { outline: 3px solid #f2a33a; outline-offset: 3px; }
.ai-lp .ai-lp-mini__arrow { font-size: 14px; }
.ai-lp.lpl .ai-lp-mini { padding-bottom: 44px; } /* 暮らし: 次の欄の上の波線と離す */

/* 「一番気になっていること」の回答の下の、むらつ歯科の方針(2026-11-10〜。template-parts/layouts/_common/policy-note.php) */
.ai-lp .ai-lp-policy {
	margin: 20px 0 0;
	padding: 14px 16px;
	border-left: 3px solid var(--ai-lp-mini-accent, #1d5fa7);
	border-radius: 0 8px 8px 0;
	background: rgba(255, 255, 255, .72);
	text-align: left;
}
.ai-lp .ai-lp-policy__label {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--ai-lp-mini-accent, #1d5fa7);
}
.ai-lp .ai-lp-policy__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
	color: inherit;
}
.ai-lp.lpl .lpl-sec--green .ai-lp-policy { background: rgba(255, 255, 255, .12); border-left-color: #fff; }
.ai-lp.lpl .lpl-sec--green .ai-lp-policy__label { color: #fff; }

/* ------------------------------------------------------------------
 * 画面下の追従予約ボタン(2026-11 パパッと版)
 * LPが画面にある間だけ出る(テーマの予約ボタン群が隠れている間の代わり)。
 * 出し入れは ai-consultation-deep.js の syncLpSticky()。外のページに貼った窓口では
 * ai-consultation-window-embed.js が同じ見た目を外のページ側に出す。
 * ------------------------------------------------------------------ */
.ai-lp-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	display: flex;
	gap: 8px;
	justify-content: center;
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 -4px 18px rgba(0, 0, 0, .12);
	transform: translateY(110%);
	transition: transform .28s ease;
	pointer-events: none;
}
.ai-lp-sticky.is-shown {
	transform: translateY(0);
	pointer-events: auto;
}
.ai-lp-sticky__btn {
	flex: 1 1 0;
	max-width: 240px;
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
}
.ai-lp-sticky__btn--web { background: #1d5fa7; color: #fff !important; }
.ai-lp-sticky__btn--line { background: #06c755; color: #fff !important; }
.ai-lp-sticky__btn--tel { background: #fff; color: #1d5fa7 !important; border: 2px solid #1d5fa7; }
.ai-lp-sticky__btn:focus-visible { outline: 3px solid #f2a33a; outline-offset: 2px; }
/* 2026-11-10 ボタンの上の一言「↓この相談内容を引き継げます」(WEB予約・LINEに相談のまとめが渡るときだけ) */
.ai-lp-sticky__note {
	position: absolute;
	left: 50%;
	bottom: 100%;
	transform: translate(-50%, -6px);
	margin: 0;
	padding: 4px 14px;
	border-radius: 999px;
	background: rgba(29, 95, 167, .94);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
	pointer-events: none;
	transition: opacity .2s ease;
}
.ai-lp-sticky:not(.is-shown) .ai-lp-sticky__note { opacity: 0; }
@media (min-width: 768px) {
	.ai-lp-sticky {
		left: 50%;
		right: auto;
		bottom: 16px;
		width: min(640px, calc(100% - 32px));
		padding: 10px;
		border-radius: 999px;
		transform: translate(-50%, 140%);
	}
	.ai-lp-sticky.is-shown { transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.ai-lp-sticky { transition: none; }
}
