:root{--ja-serif:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;--ja-sans:"Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo",sans-serif}
html:lang(ja){line-break:strict;word-break:normal;overflow-wrap:anywhere}
html:lang(ja) body{font-family:var(--ja-sans)}
html:lang(ja) h1,html:lang(ja) h2,html:lang(ja) h3,html:lang(ja) .entrance-subtitle,html:lang(ja) .enter-button{font-family:var(--ja-serif);font-weight:500;letter-spacing:.03em;line-height:1.5}
html:lang(ja) p,html:lang(ja) li{line-height:1.9}
html:lang(ja) h1 em,html:lang(ja) h2 em{font-style:normal}
html:lang(ja) p{letter-spacing:.015em}
html:lang(ja) .eyebrow{letter-spacing:.06em}
html:lang(ja) button,html:lang(ja) select,html:lang(ja) input{font-family:var(--ja-sans)}
html:lang(ja) .button,html:lang(ja) .tmf-btn,html:lang(ja) .nav-link{white-space:normal;line-height:1.6}
.ja-draft{position:relative;z-index:100001;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 20px;background:#201c19;color:#e9dfcb;border-bottom:1px solid #625447;font:12px/1.5 var(--ja-sans);letter-spacing:.03em}
.ja-draft nav{display:flex;gap:14px}.ja-draft a{color:#e9dfcb;text-decoration:underline;text-underline-offset:3px}
body[data-ja-page="entrance"] main{height:calc(100svh - 35px);min-height:600px}
body[data-ja-page="entrance"] .entrance-description{font-family:var(--ja-sans);line-height:1.95;font-size:14px;text-wrap:pretty}
body[data-ja-page="entrance"] .entrance-intro h1{font-family:Georgia,serif;line-height:1.3}
body[data-ja-page="entrance"] .enter-button{letter-spacing:.12em;min-height:55px}
body[data-ja-page="entrance"] .entry{width:min(90%,660px)}
.ja-cookie-note,.ja-status{padding:14px 18px;background:#211c18;color:#e8dfce;border:1px solid #695b4c;border-radius:3px;font:14px/1.9 var(--ja-sans)}
.ja-status{position:relative;z-index:5;margin-bottom:64px}
#tmf-cookie-panel h2,#tmf-cookie-panel p{font-family:var(--ja-sans)}#tmf-cookie-panel .ja-cookie-note{font-size:13px;color:#3d3226;background:#e8dfcc}
body[data-ja-page="home"] article:has([data-source-href*="/estudios/"]){order:-1}
body[data-ja-page="home"] .tmf-home-title{line-height:1.4}
.ja-pending{margin:0;background:#151412;color:#e6dfd1;font:16px/1.9 var(--ja-sans);min-height:100vh}
.ja-pending main{max-width:780px;margin:6vh auto;padding:30px}.ja-pending h1{font-size:clamp(25px,4vw,40px)}.ja-pending a{color:#edc39e}.ja-pending .links{display:flex;flex-wrap:wrap;gap:24px}
.ja-local-notice{position:fixed;z-index:100005;bottom:24px;right:24px;max-width:min(420px,90vw);background:#29231d;color:#f4eada;border:1px solid #897158;padding:16px;font:14px/1.8 var(--ja-sans)}
@media(max-width:700px){.ja-draft{padding:7px 12px;font-size:11px;gap:8px}.ja-draft nav{gap:10px}body[data-ja-page="entrance"] main{min-height:660px}body[data-ja-page="entrance"] .entrance-intro{top:22px}body[data-ja-page="entrance"] .composition{top:39%;height:min(67svh,145vw)}body[data-ja-page="entrance"] .entry{bottom:58px;gap:18px}body[data-ja-page="entrance"] .entrance-description{font-size:13px;line-height:1.9}body[data-ja-page="entrance"] .entrance-subtitle{font-size:14px}html:lang(ja) .lead{font-size:18px}}
@media(max-height:740px){body[data-ja-page="entrance"]{overflow-y:auto!important;height:auto!important}html:has(body[data-ja-page="entrance"]){overflow-y:auto!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

html:lang(ja) body[data-ja-page] header.tmf-shared-header{position:relative!important;inset:auto!important}
