/*
 * 症状ナビ（/symptoms/）だけで読む CSS（CC-03）。components.css には足さない（CC-01 と取り合わないため）。
 * 色・角丸・操作高さは tokens.css の変数だけを使う。操作は 44px 以上（docs/171 §12 アクセシビリティ）。
 * 最初の画面と質問は「表紙＋1問ずつ」のカード（2026-09-28 運営者承認・案C。docs/287）。結果の画面も同じ白いカードを縦に並べる（2026-09-28 運営者指示）。
 * 1つずつ見せるのは symptoms.js が <html> に sx-js を付けているあいだだけ。
 */

/*
 * 症状ナビ専用の色（docs/171 §16「コントラスト 4.5:1 以上」。CC-03 レビュー必須修正8・2026-09-17）。
 * サイト共通色は白に対して rose-dark #c9766a が 3.34:1、coral #e2705f が 3.13:1、rose #e9948a が 2.32:1 で満たさない。
 * 共通の tokens.css は変えず（他ページの見た目を動かさない）、**症状ナビの中（.sx）だけ共通の色の変数そのものを上書きする。**
 *
 * セレクタで色を足すだけでは効かない：components.css の
 * `.site-main a:not(.btn):not(.chip):not(.clinic-card__link)`（詳細度 0,4,1）が
 * `.sx a`（0,1,1）に勝ち、リンクが rose-dark のまま描画されていた（2026-09-17 ブラウザ試験で実測）。
 * 変数を上書きすれば、共通の規則がどの詳細度でも .sx の中では濃い色を読む。
 *
 * 比は tools/tests/symptoms-contrast.php（宣言の実値）と dev/test-symptoms-browser.py（描画後の実色）で検査する。
 */
.sx {
	--sx-link: #9c4a3c;    /* リンク・主ボタンの地（白文字 6.07:1、ローズ淡色 #fde7e3 上 5.12:1） */
	--sx-urgent: #a8433a;  /* 至急の見出し・強調した送信ボタン・至急の帯の地（白文字 5.95:1、#fff7f5 上 5.63:1） */
	--sx-l1-ink: #2f5d41;  /* 「次の診療時間に」の帯の文字（#e6f1ea 上 6.9:1） */
	--sx-l2-ink: #6b4a0e;  /* 「今日のうちに」の帯の文字（#fbf0d9 上 7.3:1） */
	--sx-chat-bg: #f3ebe3; /* ベージュの地（表紙の印・結果の「あなたの答え」。--text-2 #6f625c が 4.97:1、--sx-urgent が 5.0:1） */
		--rose-dark: #9c4a3c;  /* 共通のリンク・パンくず・出典リンク（components.css）が読む */
	--rose: #9c4a3c;       /* 共通の .btn--primary の地（白文字）が読む */
	--coral: #a8433a;      /* 共通の強調（.band--coral の枠など）が読む */
}

.sx [hidden] { display: none !important; }

.sx a { color: var(--sx-link); }
.sx .clinic__breadcrumb a { color: var(--sx-link); }
.sx .btn--primary { background: var(--sx-link); color: #fff; }
.sx .sx-field__input::placeholder { color: var(--text-2); opacity: 1; }

/* テーマは content-box のまま。min-height 44px に余白が足されて 66px になっていた（2026-09-17 ローカル実測）ので、症状ナビの部品だけ直す */
.sx-option, .sx-entrances__link, .sx-em__submit, .sx-btn, .sx-field__input, .sx-memo__text { box-sizing: border-box; }

.sx-visually-hidden {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sx-review-badge {
	align-self: flex-start; margin: 0; padding: 2px 12px;
	border-radius: var(--r-pill); background: var(--sage-tint);
	font-size: var(--fs-label); font-weight: 700; color: var(--ink);
}

.sx-cite { font-size: var(--fs-min); color: var(--text-2); white-space: nowrap; }
.sx-cite a { color: var(--sx-link); }

/*
 * ★画面を勝手にスクロールさせない（2026-09-24 運営者指示）。このCSSは症状ナビのページだけで読む。
 * ブラウザのスクロールアンカーは、下の要素を基準にすると、上の中身が変わるたびに
 * それを追って画面を送っていた（ブラウザ試験で 63→433 を実測）。症状チェックでは切る。
 */
html { overflow-anchor: none; }

/* JS が1枚ずつ見せているあいだは、ほかのカードを隠す（JS が無ければ全部見える） */
html.sx-js [data-sx-flow] [data-sx-screen]:not(.is-current) { display: none; }
html.sx-js [data-sx-flow] [data-sx-screen].is-current { animation: sx-pop .22s ease-out both; }

.sx-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.sx-em, .sx-form { display: flex; flex-direction: column; gap: 12px; }

@keyframes sx-pop {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

/* 選択肢（ラジオ・チェック）。押しやすい大きなカード */
.sx-options { display: flex; flex-direction: column; gap: 8px; }
.sx-option {
	display: flex; align-items: center; gap: 12px;
	min-height: 52px; padding: 11px 14px;
	border: 1.5px solid var(--line); border-radius: var(--r-14); background: var(--surface);
	font-size: var(--fs-body); line-height: 1.6; cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.sx-option:hover { border-color: var(--rose-tint); }
.sx-option input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--sx-link); }
.sx-option:has(input:checked) { border-color: var(--sx-link); background: var(--rose-tint); }
.sx-option__text { display: flex; flex-direction: column; gap: 2px; }
.sx-option:has(input:focus-visible) { outline: 3px solid var(--sx-link); outline-offset: 2px; }

/* 入口のページで開く一覧の送信ボタン */
.sx-em__submit { flex: none; width: 100%; min-height: var(--h-base); padding: 10px 18px; line-height: 1.5; text-align: center; border: 0; cursor: pointer; font-family: inherit; }
.sx-em__submit.is-ready { background: var(--sx-urgent); box-shadow: 0 0 0 3px var(--rose-tint); }
.sx .sx-em__submit:disabled { background: var(--surface); color: var(--text-2); border: 1.5px dashed var(--line); box-shadow: none; cursor: default; }

/* ほかの症状へのリンク（結果の画面） */
.sx-entrances { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sx-entrances__link {
	display: flex; align-items: center; min-height: 54px; padding: 12px 16px;
	border: 1.5px solid var(--line); border-radius: var(--r-14); background: var(--surface);
	text-decoration: none; font-weight: 700; line-height: 1.5;   /* 文字色は共通のリンク色（.sx の中では --rose-dark＝#9c4a3c） */
	transition: border-color .15s ease, background-color .15s ease;
}
.sx-entrances__link:hover { border-color: var(--sx-link); background: var(--rose-tint-weak); }
.sx-entrances__link::after { content: "›"; margin-left: auto; padding-left: 8px; color: var(--sx-link); font-size: 1.3em; }

/* ================================================================ */
/* 案C：表紙＋1問ずつ（2026-09-28 運営者承認。docs/350 付録が色・余白・文字の大きさの正本） */
/* ================================================================ */
.sx-flow { margin: 0 -8px; display: flex; flex-direction: column; gap: 14px; }

/* 表紙：白いカード（表紙 案1。2026-09-28 運営者決定。ピンク・赤い枠は危機感を煽るのでやめた） */
.sx-cover { display: flex; flex-direction: column; gap: 18px; }
.sx-cover__card {
	display: flex; flex-direction: column; gap: 18px; padding: 24px 20px 22px;
	border: 1px solid var(--line); border-radius: var(--r-22); background: var(--surface);
	box-shadow: 0 6px 20px rgba(120, 90, 80, .06);
}
.sx-cover__head { display: flex; align-items: center; gap: 12px; }
.sx-cover__icon {
	flex: none; width: 48px; height: 48px; border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	background: var(--sx-chat-bg); color: var(--sx-link);
}
.sx-cover__title { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 700; }
.sx-cover__title:focus { outline: none; }
.sx-cover__lead { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.sx-cover__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.sx-cover__list li {
	display: flex; align-items: center; gap: 12px; padding: 12px 2px;
	color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.5;
}
.sx-cover__list li + li { border-top: 1px solid var(--line); }
.sx-cover__num {
	flex: none; width: 30px; height: 30px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background: var(--sx-chat-bg); color: var(--sx-link); font-size: 15px; font-weight: 700; line-height: 1;
}
.sx .sx-start {
	gap: 8px; width: 100%; min-height: 56px; box-sizing: border-box;
	background: var(--sx-link); color: #fff; font-size: 17px;
}
.sx-cover__note { margin: 0; text-align: center; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.sx .sx-cover__urgent {
	display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 14px 16px;
	border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
	color: var(--ink); text-decoration: none;
}
.sx-cover__urgent-icon {
	flex: none; width: 36px; height: 36px; border-radius: 999px;
	display: flex; align-items: center; justify-content: center;
	background: var(--sx-chat-bg); color: var(--sx-link);
}
.sx-cover__urgent-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.sx-cover__urgent-title { font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.sx-cover__urgent-link { font-size: 15px; line-height: 1.5; font-weight: 700; }
.sx-cover__urgent > svg { flex: none; color: var(--text-2); }
.sx-start svg, .sx-none svg { flex: none; }

/* 質問のカード（1画面＝1枚。fieldset の既定の枠を消す） */
.sx-card {
	min-width: 0; margin: 0; border: 0; padding: 18px 16px 20px;
	display: flex; flex-direction: column; gap: 16px;
	border-radius: var(--r-22); background: var(--surface);
	box-shadow: 0 6px 20px rgba(120, 90, 80, .09);
	scroll-margin-top: 16px;
}
.sx-screen__head { display: flex; flex-direction: column; gap: 8px; }
/* 今いる場所の名前は中央に、少し大きく（2026-09-28 運営者指示） */
.sx-phase { margin: 0; text-align: center; font-size: 16px; line-height: 1.5; font-weight: 700; color: var(--sx-link); }
.sx-phase--urgent { color: var(--sx-urgent); }
.sx-phase__count { font-weight: 500; color: var(--text-2); }
.sx-bar { margin: 0; display: flex; gap: 4px; }
.sx-bar__seg { flex: 1; height: 5px; border-radius: var(--r-pill); background: var(--line); }
.sx-bar__seg.is-on { background: var(--sx-link); }
.sx-bar--urgent .sx-bar__seg.is-on { background: var(--sx-urgent); }
.sx-topic { margin: 2px 0 0; font-size: 12.5px; font-weight: 400; line-height: 1.6; color: var(--text-2); }

/* 設問の見出し：主語を大きく色付き、続きは通常 */
.sx-qhead { display: flex; flex-direction: column; gap: 6px; }
.sx-qtitle { margin: 0; font-size: 19px; line-height: 1.55; font-weight: 700; color: var(--ink); }
.sx-qtitle:focus { outline: none; }
.sx-subj { font-size: 21px; color: var(--sx-link); }
/* 緊急性の確認：1行目に主語、2行目に聞くこと（2026-09-28 運営者指示） */
.sx-subj--line, .sx-qtitle__ask { display: block; }
.sx-qtitle__ask { margin-top: 2px; font-size: 16px; line-height: 1.6; }
.sx-qtitle__all { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--sx-link); }
.sx-qnote { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-2); }

/* 選択肢（カードの中）：要点＋補足の2行（緊急性）／1行（症状の質問） */
.sx-card .sx-option { padding: 14px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.sx-card .sx-option--em { align-items: flex-start; padding: 13px 14px; }
.sx-option--em input { accent-color: var(--sx-urgent); }
.sx-option--em:has(input:checked) { border-color: var(--sx-urgent); }
.sx-option__main { font-size: 15.5px; line-height: 1.5; font-weight: 700; }
.sx-option__sub { font-size: 13px; line-height: 1.55; font-weight: 400; color: var(--text-2); }

/* ボタン */
.sx-screen__actions { display: flex; flex-direction: column; gap: 8px; }
.sx-qnote--center { text-align: center; }
/* ボタンの列：左に細い「‹ 前へ」、右に主ボタン（2026-09-28 運営者指示）。前へが隠れているときは主ボタンが全幅 */
.sx-screen__nav { display: flex; align-items: stretch; gap: 8px; }
.sx-screen__nav > .btn:not(.sx-back), .sx-screen__main { flex: 1 1 auto; min-width: 0; }
.sx-screen__main { display: flex; flex-direction: column; }
.sx .sx-back {
	flex: none; min-height: 54px; padding: 0 14px; box-sizing: border-box;
	border: 1.5px solid var(--line); border-radius: var(--r-pill);
	background: var(--surface); color: var(--text-2);
	font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.sx .sx-send, .sx .sx-go, .sx .sx-none {
	gap: 6px; width: 100%; min-height: 54px; padding: 8px 18px; box-sizing: border-box;
	font: inherit; font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center; cursor: pointer;
}
.sx .sx-send { border: 0; background: var(--sx-urgent); color: #fff; }
.sx .sx-go { border: 0; background: var(--sx-link); color: #fff; }
.sx .sx-none { border: 2px solid var(--sx-link); background: var(--surface); color: var(--sx-link); }
/* 1つだけ選ぶ問いの「答えずに次へ」。選べば自動で進むので、枠線だけの控えめなボタン */
.sx .sx-skip {
	min-height: 54px; padding: 8px 18px; box-sizing: border-box;
	border: 2px solid var(--sx-link); background: var(--surface); color: var(--sx-link);
	font: inherit; font-size: 16px; font-weight: 700; line-height: 1.4; cursor: pointer;
}

/*
 * 症状を選ぶ（症状を選ぶ 案2。2026-09-28 運営者決定）。
 * 外側（.sx-pick）に「当てはまるものなし」の帯とカードを縦に並べる。帯は緑をやめ、白地＋オレンジの角丸枠。
 */
.sx-pick { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.sx-cleared {
	margin: 0; padding: 4px 6px 4px 14px; display: flex; align-items: center; gap: 10px;
	border: 1.5px solid #e59a3a; border-radius: 14px; background: var(--surface);
	color: var(--ink); font-size: 14px;
}
.sx-cleared svg { flex: none; color: #7f5a0e; } /* 濃いオレンジ。文字と同じ 4.5:1 以上（symptoms-contrast） */
.sx-cleared__text { flex: 1; padding: 8px 0; }
.sx .sx-cleared__again {
	min-height: var(--h-min); padding: 0 8px; border-radius: 0;
	background: transparent; color: var(--sx-link);
	font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
/* タイル：ベージュの地・枠なし。1行目に絵（背景なし）とタイトル、2行目に補足 */
.sx-tiles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sx-tiles__item { display: flex; min-width: 0; }
.sx-tiles__item--wide { grid-column: 1 / -1; }
.sx-tile {
	flex: 1; min-width: 0; box-sizing: border-box; padding: 14px 10px 14px 12px;
	display: flex; flex-direction: column; gap: 6px;
	border: 0; border-radius: 16px; background: #f9f5f0; /* 補足を読みやすくするため地を少し薄く（2026-09-28 運営者指示） */
	text-decoration: none; transition: box-shadow .15s ease;
}
.sx-tile:hover { box-shadow: inset 0 0 0 1.5px var(--sx-link); } /* 枠線は幅を取るので内側の線で（375px 幅でタイトルを1行に） */
.sx-tile__head { display: flex; align-items: center; gap: 6px; }
.sx-tile__icon { flex: none; display: flex; color: var(--sx-link); }
.sx-tile__main { font-size: 15px; line-height: 1.35; font-weight: 700; color: var(--ink); } /* 375px 幅で「ごはん・うんち」が1行に収まる大きさ */
.sx-tile__sub { font-size: 13px; line-height: 1.5; color: #54483f; } /* 補足の文字を濃く（地 #f9f5f0 の上で 8.14:1。前は 5.15:1） */
.sx-tiles__item--wide .sx-tile { background: #f6f3ef; }
.sx-tiles__item--wide .sx-tile__icon { color: var(--text-2); }

/* 入口のページで開く「急いだほうがいい様子」 */
.sx-emdetails__summary { cursor: pointer; font-weight: 700; min-height: var(--h-min); display: flex; align-items: center; }
.sx-emdetails[open] .sx-emdetails__summary { margin-bottom: 10px; }
.sx-em--panel { gap: 18px; }
.sx-group__legend { font-weight: 700; padding: 0; margin: 8px 0 8px; }

/* ---------------- 結果：白いカードを縦に並べる（2026-09-28 運営者指示「表紙や設問と揃える」） ---------------- */
/* 先頭のカード：中央に「結果」→ 受診の目安 → あなたの答え。目安の色は帯の中だけ（カードの地は白のまま） */
.sx-level { gap: 14px; }
.sx-level__strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-14); }
.sx-level--1 .sx-level__strip { background: var(--sage-tint); color: var(--sx-l1-ink); }
.sx-level--2 .sx-level__strip { background: var(--amber-tint); color: var(--sx-l2-ink); }
.sx-level--3 .sx-level__strip { background: var(--sx-urgent); color: #fff; }
.sx-level__badge { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: 1.05rem; }
.sx-level__icon { flex: none; }
.sx-meter { display: flex; gap: 3px; margin: 0; }
.sx-meter__seg { width: 16px; height: 6px; border-radius: var(--r-pill); background: rgba(74, 63, 58, .16); }
.sx-level--1 .sx-meter__seg.is-on { background: var(--sx-l1-ink); }
.sx-level--2 .sx-meter__seg.is-on { background: var(--sx-l2-ink); }
.sx-level--3 .sx-meter__seg { background: rgba(255, 255, 255, .35); }
.sx-level--3 .sx-meter__seg.is-on { background: var(--surface); }
.sx-level__main { display: flex; flex-direction: column; gap: 8px; }
.sx-level__heading { font-size: 1.35rem; font-weight: 700; line-height: 1.45; margin: 0; }
.sx-level__heading:focus { outline: none; }
.sx-level__body { margin: 0; line-height: 1.8; }
.sx-level__body--sub { font-size: var(--fs-label); color: var(--text-2); }
.sx-level__unknown { margin: 0; font-weight: 700; line-height: 1.7; padding: 8px 12px; border-radius: var(--r-12); background: var(--amber-tint); }

/* あなたの答え：ベージュ地の箱（線なし・少し角丸） */
.sx-answers { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--r-14); background: var(--sx-chat-bg); }
.sx-answers__label { margin: 0; font-size: 12.5px; line-height: 1.5; font-weight: 700; color: var(--text-2); }
.sx-answers__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.65; color: var(--ink); }
/* リストだと分かるように、行頭に丸い印（2026-09-28 運営者指示） */
.sx-answers__list li { position: relative; padding-left: 16px; }
.sx-answers__list li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 999px; background: var(--sx-link); }

/* 2枚目からのカード（病院を探す・理由・準備・メモ など）。中身は共通の .card のまま、余白と影を質問のカードに揃える */
.sx .sx-block { padding: 18px 18px 20px; gap: 12px; box-shadow: 0 6px 20px rgba(120, 90, 80, .09); scroll-margin-top: 16px; }
.sx-block > .h { font-size: 18px; line-height: 1.5; }
.sx-block > .band { margin: 0; }

/* 目次カード「この結果でできること」（結果 案1。2026-09-28 運営者決定） */
.sx-card.sx-toc { gap: 4px; padding: 14px 16px 6px; }
.sx-toc__label { margin: 0; font-size: 13px; font-weight: 700; color: var(--text-2); }
.sx-toc__list { margin: 0; padding: 0; list-style: none; }
.sx-toc__list li + li { border-top: 1px solid var(--line); }
.sx .sx-toc__link { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); text-decoration: none; }
.sx-toc__link > svg:first-child { flex: none; color: var(--sx-link); }
.sx-toc__link > svg:last-child { flex: none; color: var(--text-2); }
.sx-toc__text { flex: 1 1 auto; font-size: 15px; font-weight: 700; }
.sx-tag { flex: none; padding: 3px 8px; border-radius: var(--r-pill); background: var(--amber-tint); color: var(--sx-l2-ink); font-size: 11.5px; font-weight: 700; line-height: 1.4; }

/* 病院を探す：注意書きはベージュの箱（ピンク・赤枠はやめた） */
.sx-search__notice { margin: 0; padding: 12px 14px; border-radius: var(--r-12); background: var(--sx-chat-bg); font-size: 13px; line-height: 1.7; color: var(--ink); }

/* 連れて行くときに：準備すること（✓・ベージュの箱）としないでほしいこと（×・白地に線の箱） */
.sx-guide__box { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-14); }
.sx-guide__box--move { background: #f6efe8; }
.sx-guide__box--dont { background: var(--surface); border: 1.5px solid var(--line); }
.sx-guide__label { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; }
.sx-guide__box--move .sx-guide__label { color: var(--sx-l1-ink); }
.sx-guide__box--dont .sx-guide__label { color: var(--sx-urgent); }
.sx-guide__label svg { flex: none; }
.sx-guide__list { margin: 0; padding: 0 0 0 24px; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.65; color: var(--ink); }


/* 最後のボタンの列：「最初に戻る」「答えをやり直す」（枠線のボタン） */
.sx .sx-again {
	min-height: 54px; padding: 8px 14px; box-sizing: border-box;
	border: 2px solid var(--sx-link); background: var(--surface); color: var(--sx-link);
	font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none;
}

.sx-search__buttons { display: flex; flex-direction: column; gap: 10px; }
.sx-btn { min-height: var(--h-base); text-align: center; line-height: 1.5; padding: 8px 18px; }

.sx-list { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; line-height: 1.7; }
.sx-note { margin: 0; line-height: 1.7; padding: 10px 12px; border-radius: var(--r-14); background: var(--amber-tint); }

/* メモ */
.sx-memo__fields { display: grid; gap: 10px; }
@media (min-width: 480px) {
	.sx-memo__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sx-field { display: flex; flex-direction: column; gap: 4px; }
.sx-field__label { font-size: var(--fs-label); color: var(--text-2); }
.sx-field__input, .sx-memo__text {
	min-height: var(--h-min); padding: 8px 12px; font: inherit; font-size: 16px; color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--r-12); background: var(--surface); width: 100%; box-sizing: border-box;
}
/* メモ本文：まず見せる。読み上げやすい大きめの文字、ベージュの地（2026-09-28 運営者指示） */
.sx-memo__lead { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
/* メモ用紙：書き込めるメモ欄（ベージュの地）と、右下の小さなコピーボタン */
.sx-memo__paper { position: relative; }
.sx .sx-memo__text {
	display: block; min-height: 0; padding: 14px 16px 52px; border: 1.5px solid transparent; border-radius: var(--r-14);
	background: #f6efe8; color: var(--ink); font-size: 15px; line-height: 1.8; resize: none; overflow: hidden;
}
.sx .sx-memo__text:focus { outline: none; border-color: var(--sx-link); background: var(--surface); }
.sx .sx-memo__copy {
	position: absolute; right: 8px; bottom: 8px; min-height: 36px; padding: 0 14px; box-sizing: border-box;
	border: 1.5px solid var(--sx-link); border-radius: var(--r-pill); background: var(--surface); color: var(--sx-link);
	font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.sx-memo__privacy { margin: -4px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.sx-memo__sub { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; font-weight: 700; color: var(--ink); }

/* 参考にした資料（折りたたみ） */
.sx-sources { display: flex; flex-direction: column; gap: 8px; }
/* 結果のカードの列（.sx-flow は左右に 8px はみ出す）と幅を揃える */
.sx-result + .sx-sources { margin: 0 -8px; }
.sx-sources__title { margin: 0 0 6px; font-size: var(--fs-label); line-height: 1.5; font-weight: 700; color: var(--text-2); } /* 折りたたまず開いたまま（2026-09-28 運営者指示） */
.sx-review { margin: 0 0 6px; line-height: 1.7; font-size: var(--fs-label); }
.sx-sources__list { margin: 8px 0 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-label); line-height: 1.7; }
.sx-sources__id { font-weight: 700; margin-right: 4px; }
.sx-sources__list a { color: var(--sx-link); }

.sx a:focus-visible, .sx button:focus-visible, .sx summary:focus-visible, .sx input:focus-visible, .sx select:focus-visible, .sx textarea:focus-visible {
	outline: 3px solid var(--sx-link); outline-offset: 2px;
}
/* 選択肢はカード（label）側に枠を出すので、中の input には重ねない */
.sx .sx-option input:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
	.sx * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
