.foreword-open{overflow:hidden}
#course-foreword{box-sizing:border-box;border:1px solid #efd5c5;border-radius:26px;background:#fff9ee;color:#352326;width:min(620px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:44px;box-shadow:0 24px 100px #35162033;overflow:auto}
#course-foreword::backdrop{background:#35162066;backdrop-filter:blur(5px)}
#course-foreword .foreword-close{position:absolute;right:16px;top:12px;border:0;background:transparent;color:#8a2341;font-size:30px;line-height:1;padding:8px;cursor:pointer}
#course-foreword .foreword-mark{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#ffdc9a;color:#d0043c;font-size:30px;margin-bottom:23px}
#course-foreword h2{font-size:clamp(2.3rem,7vw,3.3rem);line-height:1.12;margin:10px 0 22px;color:#d0043c;letter-spacing:-.04em}
#course-foreword p{font-size:1rem;line-height:1.7;margin:0 0 18px;color:#594347}
#course-foreword .foreword-note{padding:18px 20px;background:#ffe3e9;border-radius:14px;margin:22px 0;font-size:.95rem}
#course-foreword .button{width:100%;justify-content:center;text-align:center}
.foreword-reopen{border:0;background:transparent;color:var(--red);font:inherit;font-size:.85rem;text-decoration:underline;text-underline-offset:4px;cursor:pointer;margin-left:auto;padding:8px 0}
#course-foreword button:focus-visible,.foreword-reopen:focus-visible{outline:3px solid #d0043c;outline-offset:4px}
@media(max-width:580px){#course-foreword{padding:32px 24px}.course-breadcrumb{flex-wrap:wrap}.foreword-reopen{margin-left:0}#course-foreword .foreword-mark{margin-bottom:18px}}
