/* おせち診断（スマホ基準。色は記事と同じ 紺 #2c3e50・金 #b8860b・赤 #a93226） */
.sof { margin: 30px 0; color: #333; line-height: 1.8; }
.sof *, .sof *::before { box-sizing: border-box; }
.sof-q { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.sof-q legend { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; margin: 0 0 10px; font-weight: bold; font-size: 1.08em; color: #2c3e50; }
.sof-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #2c3e50; color: #fff; font-size: 14px; line-height: 26px; text-align: center; }
.sof-must { margin-left: auto; padding: 1px 8px; border-radius: 3px; background: #a93226; color: #fff; font-size: 12px; font-weight: normal; }
.sof-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sof-opt { position: relative; display: block; margin: 0; cursor: pointer; }
.sof-opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sof-opt span { display: flex; flex-direction: column; justify-content: center; min-height: 54px; height: 100%; padding: 8px 10px; border: 2px solid #ccd3da; border-radius: 6px; background: #fff; text-align: center; font-weight: bold; font-size: 15px; line-height: 1.4; }
.sof-opt small { display: block; margin-top: 2px; font-weight: normal; font-size: 12px; color: #666; }
.sof-opt input:checked + span { border-color: #2c3e50; background: #2c3e50; color: #fff; }
.sof-opt input:checked + span small { color: #dfe6ec; }
.sof-opt input:focus-visible + span { outline: 3px solid #b8860b; outline-offset: 2px; }
.sof-go, .sof-again { display: block; width: 100%; max-width: 420px; margin: 10px auto 0; padding: 18px 16px; border: 0; border-radius: 4px; background: #a93226; color: #fff; font-size: 1.1em; font-weight: bold; cursor: pointer; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); }
.sof-go:disabled { background: #b9bfc5; box-shadow: none; cursor: default; }
.sof-again { margin-top: 30px; background: #fff; color: #2c3e50; border: 2px solid #2c3e50; box-shadow: none; }
.sof-result { scroll-margin-top: 70px; }
.sof-title { margin: 50px 0 20px !important; padding: 15px 20px !important; border: 0 !important; border-radius: 2px; background: #2c3e50 !important; color: #fff !important; font-size: 1.3em !important; font-weight: bold; }
.sof-title::before, .sof-title::after, .sof-name::before, .sof-name::after { content: none !important; }
.sof-note, .sof-none { padding: 12px 14px; border-radius: 5px; background: #fdf6e3; font-size: .92em; }
.sof-card { margin: 0 0 30px; padding: 18px 16px 22px; border: 2px solid #ccd3da; border-radius: 6px; background: #fff; }
.sof-first { border: 3px solid #b8860b; background: #fffdf5; }
.sof-rank { display: inline-block; margin: 0 0 8px; padding: 2px 12px; border-radius: 3px; background: #2c3e50; color: #fff; font-size: 13px; font-weight: bold; }
.sof-first .sof-rank { background: #b8860b; }
.sof-name { margin: 0 0 14px !important; padding: 0 !important; border: 0 !important; background: none !important; color: #2c3e50 !important; font-size: 1.2em !important; font-weight: bold; line-height: 1.5; }
.sof-img { margin: 0 0 12px; text-align: center; }
.sof-img a { display: block; }
.sof-img a img { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; border-radius: 4px; }
.sof-px { position: absolute; width: 1px !important; height: 1px !important; border: 0; }
.sof-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px !important; padding: 0 !important; list-style: none !important; }
.sof-chips li { margin: 0 !important; padding: 2px 10px !important; border: 1px solid #2c3e50; border-radius: 20px; font-size: 13px; color: #2c3e50; background: #fff; }
.sof-chips li::before { content: none !important; }
.sof-price { margin: 0 !important; line-height: 1.4; }
.sof-price b { font-size: 1.7em; color: #a93226; }
.sof-price span { margin-left: 8px; font-size: 13px; color: #666; }
.sof-sub { margin: 2px 0 0 !important; font-size: .9em; color: #555; }
.sof-h { margin: 18px 0 6px !important; padding-bottom: 4px; border-bottom: 1px dashed #b8b8b8; font-weight: bold; color: #2c3e50; }
.sof-why, .sof-list { margin: 0 !important; padding: 0 0 0 1.3em !important; font-size: .95em; }
.sof-why { padding-left: 0 !important; list-style: none !important; }
.sof-why li, .sof-list li { margin: 0 0 4px !important; }
.sof-why li { position: relative; padding-left: 1.6em !important; }
.sof-why li::before { content: "◎" !important; position: absolute; left: 0; top: 0; color: #b8860b; font-weight: bold; background: none !important; width: auto !important; height: auto !important; }
.sof-why li.ng::before { content: "△" !important; color: #888; }
.sof-btn { display: block; max-width: 420px; margin: 22px auto 0; padding: 18px 16px; border-radius: 4px; background: #a93226; color: #fff !important; text-align: center; text-decoration: none !important; font-weight: bold; font-size: 1.05em; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); }
.sof-navy { background: #2c3e50; }
.sof-fine { margin: 0 0 6px; font-size: .85em; color: #666; }
.sof-pr { margin: 0 0 20px; font-size: .85em; color: #666; }
@media (min-width: 600px) {
	.sof-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* テーマ（JIN:R）の本文用 p・ul の余白に負けないよう、ここだけ強めに指定する */
#sof-app .sof-rank { margin: 0 0 8px !important; padding: 2px 12px !important; line-height: 1.6 !important; }
#sof-app .sof-price { margin: 0 !important; padding: 0 !important; }
#sof-app .sof-sub { margin: 2px 0 0 !important; padding: 0 !important; }
#sof-app .sof-h { margin: 18px 0 6px !important; padding: 0 0 4px !important; }
#sof-app .sof-note, #sof-app .sof-none { margin: 0 0 20px !important; padding: 12px 14px !important; }
#sof-app .sof-fine { margin: 0 0 6px !important; padding: 0 !important; }
#sof-app .sof-img { margin: 0 0 12px !important; padding: 0 !important; }
#sof-app .sof-btn { margin: 22px auto 0 !important; }
#sof-app .sof-q legend { margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; background: none !important; }
.sof-more { display: block; margin: 12px 0 0; padding: 10px 12px; border: 1px solid #d8cfc0; border-radius: 6px; background: #fff; color: #2c3e50 !important; font-size: .9em; font-weight: bold; text-decoration: none !important; line-height: 1.5; }
.sof-more span { display: block; font-weight: normal; color: #a93226; text-decoration: underline; margin-top: 2px; }
