.ot-study-answer,.ot-study-related{margin:22px 0;border:1px solid #d5e1ef;border-radius:12px;padding:16px;background:#f7faff;color:#173451}.ot-study-answer summary{cursor:pointer;font-weight:700;color:#0057b7;padding:8px;list-style-position:inside}.ot-study-content{padding:12px 8px 0}.ot-study-related p{margin:8px 0!important}.ot-study-link{display:block;padding:12px 16px;background:#fff;border:1px solid #d5e1ef;border-radius:8px;color:#0057b7;text-decoration:none;font-weight:700}.ot-study-link:hover{background:#e8f1fc}.ot-study-link:after{content:' ›';float:right}.ot-study-dialog{width:min(560px,90vw);max-height:85vh;overflow:auto;border:1px solid #cad8e6;border-radius:14px;padding:24px;color:#173451}.ot-study-dialog::backdrop{background:#10243b88}.ot-study-dialog label{display:block;margin:10px 0}.ot-study-dialog textarea,.ot-study-dialog input:not([type=checkbox]){width:100%;box-sizing:border-box;padding:10px}.ot-study-list{max-height:300px;overflow:auto}.ot-study-list label{padding:8px;border-bottom:1px solid #dce5ef}.ot-study-dialog button{padding:10px 16px;cursor:pointer}.ot-visual .ot-study-answer:before{content:'解答・解説（公開時に折りたたみ）';font-weight:700;color:#0057b7}
.ot-question-card{position:relative;margin:28px 0;padding:clamp(14px,3vw,26px);border:1px solid #cbdbea;border-radius:14px;background:#fff;scroll-margin-top:100px;display:flow-root}.ot-question-card>h2{color:#0057b7;margin-top:8px!important;clear:none}.ot-card-copy{float:right;border:1px solid #cbdbea;background:#f7faff;color:#0057b7;border-radius:7px;padding:7px 10px;cursor:pointer;font-size:12px}.ot-question-card .ot-study-answer{margin-bottom:0}.ot-question-card:target{outline:2px solid #0057b7}.ot-question-card .ot-study-related{background:white}

.ot-question-card{padding:0!important;border:2px solid #b4cce5!important;overflow:hidden;margin:16px 0!important}.ot-card-header{display:flex;align-items:center;gap:10px;background:#0755a8;padding:10px 14px}.ot-card-header h2{flex:1;margin:0!important;padding:0!important;border:0!important;font-size:1.15rem!important;line-height:1.4!important}.ot-card-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:transparent;color:white;font:inherit;font-weight:700;text-align:left;cursor:pointer;padding:5px}.ot-card-toggle:after{content:'＋';margin-left:12px}.ot-card-toggle[aria-expanded=true]:after{content:'−'}.ot-card-header .ot-card-copy{float:none;white-space:nowrap;margin:0}.ot-card-panel{padding:clamp(14px,3vw,26px)}.ot-card-panel[hidden]{display:none!important}.ot-card-controls{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.ot-card-controls button{border:1px solid #b4cce5;border-radius:8px;background:#fff;color:#0755a8;padding:8px 14px;cursor:pointer}.ot-visual .ot-question-card{padding:16px!important;background:#f7faff}.ot-visual .ot-question-card>h2{background:#0755a8;color:#fff!important;padding:10px 14px!important;border-radius:6px;font-size:1.15rem!important}.ot-visual .ot-study-answer,.ot-visual .ot-study-answer p{font-size:1rem!important}

.article-body .ot-study-content p.ot-answer-emphasis{font-size:1.6em!important;font-weight:800!important;color:#0055b8!important;line-height:1.45!important}.article-body .ot-study-content p.ot-answer-emphasis strong{font-size:inherit!important;color:inherit!important;font-weight:inherit!important}

 .article-body .ot-study-content p.ot-answer-emphasis{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:12px 0 24px!important;padding:16px 20px!important;background:#ffd500;border-radius:8px;box-sizing:border-box;width:100%;color:#0055b8!important}.ot-answer-label{display:block;font-size:.55em;font-weight:700;letter-spacing:.06em;color:inherit}.ot-answer-value{display:block;font-size:1.15em;font-weight:800;line-height:1.2;color:inherit}

/* Compact public question headers; override legacy article heading rules. */
#ot-article-body .ot-question-card{margin:10px 0!important}
#ot-article-body .ot-question-card .ot-card-header{padding:6px 12px!important;min-height:48px;box-sizing:border-box;gap:8px}
#ot-article-body .ot-card-header > h2{margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;min-height:0!important;font-size:1.15rem!important;line-height:1.3!important;flex:1;min-width:0}
#ot-article-body .ot-card-header > h2::before,#ot-article-body .ot-card-header > h2::after{content:none!important;display:none!important}
#ot-article-body .ot-card-header .ot-card-toggle{margin:0!important;padding:6px 0!important;border:0!important;line-height:1.3!important;font-size:inherit!important;min-height:0!important;color:#fff!important}
#ot-article-body .ot-card-header .ot-card-copy{margin:0!important;padding:5px 8px!important;line-height:1.3!important}
#ot-article-body .ot-card-panel{padding:12px 16px!important}
#ot-article-body .ot-card-panel > :first-child{margin-top:0!important}
#ot-article-body .ot-card-panel > :last-child{margin-bottom:0!important}
#ot-article-body .ot-card-panel > figure:first-child img{margin-top:0!important}
#ot-article-body .ot-question-card .ot-study-answer{font-size:1rem!important;line-height:1.6!important;margin:12px 0 0!important;padding:12px!important;border-radius:10px!important}
#ot-article-body .ot-question-card .ot-study-answer summary{font-size:1rem!important;line-height:1.5!important;font-weight:700!important;padding:8px!important;margin:0!important}
#ot-article-body .ot-question-card .ot-study-content{font-size:1rem!important}
#ot-article-body .ot-question-card .ot-card-header > h3{margin:0!important;padding:0!important;border:0!important;background:none!important;font-size:1.15rem!important;line-height:1.3!important;flex:1;min-width:0}
#ot-article-body .ot-question-card .ot-card-header > h3::before,#ot-article-body .ot-question-card .ot-card-header > h3::after{display:none!important;content:none!important}
#ot-article-body .ot-question-card .ot-question-body img,#ot-article-body .ot-question-card .ot-card-panel > img,#ot-article-body .ot-question-card .ot-card-panel > figure img{display:block;width:auto;max-width:100%!important;height:auto!important;margin:8px auto!important}
#ot-article-body .ot-question-card .ot-question-body{padding:0!important;border:0!important}
#ot-article-body .ot-card-header > h4{margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;font-size:1.15rem!important;line-height:1.3!important;flex:1;min-width:0}
#ot-article-body .ot-card-header > h4::before,#ot-article-body .ot-card-header > h4::after{display:none!important;content:none!important}
#ot-article-body .ot-card-panel .ot-study-answer summary{font-size:1rem!important;line-height:1.5!important}

#ot-article-body .ot-card-header > .ot-card-title{color:#fff!important;font-weight:700!important;padding:6px 0!important;cursor:default!important}
