/* Header and editorial homepage; book records and review forms retain their styles. */
body.imf-has-masthead{--imf-header-height:60px;--imf-admin-offset:0px}
body.imf-has-masthead.admin-bar{--imf-admin-offset:32px}
body.imf-has-masthead #vk-mobile-nav,body.imf-has-masthead .vk-mobile-nav-menu-btn{display:none!important}
body.imf-has-masthead .site-body{padding-top:0}
body.imf-has-masthead .site-body-container{max-width:1160px;padding-left:0;padding-right:0}
body.imf-has-masthead #wpadminbar{position:fixed}
.imf-masthead{position:fixed;inset:var(--imf-admin-offset) 0 auto;z-index:90000;height:var(--imf-header-height);background:#fffffff5;border-bottom:1px solid #dce5dc;box-shadow:0 2px 12px #23443206;color:#234d3e;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP",sans-serif}
.imf-masthead-inner{width:100%;max-width:1160px;height:100%;margin:0 auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box}
.imf-app .imf-site-brand{display:flex;align-items:center;gap:9px;min-width:0;white-space:nowrap;color:#225a41;text-decoration:none;font-size:21px;font-weight:700;letter-spacing:.02em;line-height:1.2}
.imf-site-brand img{display:block;width:32px;height:32px;object-fit:contain;flex-shrink:0}
.imf-site-brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.imf-header-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
.imf-header-account{display:flex;align-items:center;gap:14px}
.imf-app .imf-header-account a{display:flex;align-items:center;min-height:44px;padding:0 2px;font-size:12px;line-height:1;white-space:nowrap;color:#35604b;text-decoration:none}
.imf-app .imf-header-account a:hover{text-decoration:underline;text-underline-offset:4px}
.imf-masthead .imf-member-nav{margin:0;min-height:44px}
.imf-masthead .imf-member-menu>summary{width:44px;height:44px;padding:8px;border:0;background:transparent;border-radius:8px}
.imf-masthead .imf-member-menu>summary>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.imf-masthead .imf-member-menu[open]>summary{background:#edf5ee}
.imf-masthead .imf-member-menu>.imf-member-menu-panel{top:calc(100% + 7px);width:260px;max-height:calc(100vh - var(--imf-header-height) - var(--imf-admin-offset) - 16px);max-height:calc(100dvh - var(--imf-header-height) - var(--imf-admin-offset) - 16px);overflow-y:auto;overscroll-behavior:contain}
.imf-masthead-space{height:var(--imf-header-height);flex:none}
body.imf-has-masthead .imf-app :is(section,form)[id]{scroll-margin-top:calc(var(--imf-header-height) + var(--imf-admin-offset) + 12px)}
.imf-app.imf-browse-app{padding-top:12px}
.imf-home{--imf-home-radius:12px}
.imf-home>h1.imf-sr{margin:0;padding:0}
.imf-home .imf-discovery{margin-bottom:26px}
.imf-home .imf-section-heading h2{font-size:21px;font-weight:700;letter-spacing:.02em}
.imf-home #imf-ranking{padding:18px 18px 12px;border-radius:var(--imf-home-radius);background:linear-gradient(115deg,#f4f4e9,#faf9f3);border:1px solid #ebeadd}
.imf-home #imf-ranking-heading::before{width:5px;background:#ae9148;margin-right:8px}
.imf-home #imf-ranking .imf-swipe-hint{margin-top:4px;color:#7e806d}
.imf-home #imf-ranking-track .imf-cover{height:168px;padding:8px 4px 4px;align-items:flex-end}
.imf-home #imf-ranking-track .imf-cover img{filter:drop-shadow(1px 3px 3px #243f2e12)}
.imf-home #imf-ranking-track h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3em;max-height:3em;font-weight:500}
.imf-home .imf-rank-badge{border-radius:50%;width:25px;height:25px;top:2px;left:2px;background:#fefef8;color:#52604c;border:1px solid #d6d6ba}
.imf-home #imf-ranking-track article:nth-child(-n+3) .imf-rank-badge{background:#b49a55;color:#fff;border-color:#b49a55}
.imf-home #imf-recent{padding-top:0}
.imf-home #imf-recent .imf-section-heading{padding-bottom:9px;border-bottom:1px solid #dce7db}
.imf-home #imf-recent .imf-section-heading h2{font-size:19px}
.imf-home .imf-recent-card{background:#f8faf5;border-color:#e4ebdf;border-radius:10px}
.imf-home .imf-recent-card .imf-cover{background:#eff4e9}
.imf-home-search{background:#eff5ef;border:1px solid #dce7dc;border-radius:var(--imf-home-radius);padding:20px 22px;margin:0 0 24px}
.imf-home .imf-search-catchcopy{font-family:"Noto Serif JP","Yu Mincho",serif;color:#264f3e;font-size:21px;font-weight:600;line-height:1.6;margin:0 0 5px}
.imf-home .imf-home-intro{font-size:12px;line-height:1.7;color:#617260;margin:0 0 14px}
.imf-home .imf-home-search .imf-search{padding:0;margin:0;border:0}
.imf-home .imf-discovery-compact{padding:2px 0 8px;margin-bottom:18px}
.imf-home #imf-age-discovery h2,.imf-home #imf-reaction-discovery h2{font-size:18px}
.imf-home #imf-catalog{padding-top:18px;margin-top:4px}
.imf-slideshow{width:100%;max-width:800px;margin:0 auto 18px;min-width:0}
.imf-slide-track{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;width:100%;aspect-ratio:16/9;background:#f1f5ee;border-radius:var(--imf-home-radius);-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
.imf-slide-track::-webkit-scrollbar{display:none}
.imf-slide{flex:0 0 100%;height:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center}
.imf-slide a{display:flex;width:100%;height:100%;align-items:center;justify-content:center}
.imf-slide img{display:block;width:100%;height:100%;object-fit:contain;max-width:100%;max-height:100%}
.imf-slide-controls{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:2px;min-height:40px}
.imf-slide-dots{display:flex;align-items:center;justify-content:center;gap:0}
.imf-app .imf-slide-controls button{border:0;box-shadow:none;background:transparent;color:#3b6a51;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1;border-radius:5px;min-height:40px;height:40px;box-sizing:border-box}
.imf-app .imf-slide-dots button{width:26px}
.imf-slide-dots button span{width:6px;height:6px;background:#c9d4c6;border-radius:50%;transition:width .2s,background .2s}
.imf-slide-dots button[aria-current=true] span{width:18px;border-radius:8px;background:#3e7456}
.imf-app .imf-slide-arrow{width:30px;font-size:25px;font-weight:400}
.imf-app .imf-slide-controls button:hover{background:#edf3eb}
@media(max-width:782px){body.imf-has-masthead.admin-bar{--imf-admin-offset:46px}}
@media(max-width:700px){
 body.imf-has-masthead{--imf-header-height:54px}
 .imf-masthead-inner{padding:0 12px;gap:5px}
 .imf-app .imf-site-brand{gap:5px;font-size:16px;letter-spacing:0}
 .imf-site-brand img{width:26px;height:26px}
 .imf-header-actions{gap:6px}.imf-header-account{gap:8px}
 .imf-app .imf-header-account a{font-size:11px;padding:0;min-height:44px}
 .imf-masthead .imf-member-menu>.imf-member-menu-panel{top:calc(100% + 3px)}
 .imf-app.imf-browse-app{padding-top:8px}
 .imf-home .imf-discovery{margin-bottom:18px}
 .imf-home .imf-section-heading h2{font-size:17px}
 .imf-home #imf-ranking{padding:12px 10px 8px;border-radius:10px}
 .imf-home #imf-ranking-track{grid-auto-columns:calc((100% - 18px)/3);gap:9px}
 .imf-home #imf-ranking-track .imf-cover{height:clamp(104px,31vw,148px);padding:5px 2px 2px}
 .imf-home .imf-rank-badge{width:21px;height:21px;font-size:11px}
 .imf-home #imf-recent .imf-section-heading h2{font-size:17px}
 .imf-home .imf-recent-card .imf-cover{height:118px;padding:7px}
 .imf-home-search{padding:14px 12px;margin-bottom:18px;border-radius:10px}
 .imf-home .imf-search-catchcopy{font-size:17px;margin-bottom:4px}
 .imf-home .imf-home-intro{font-size:11px;margin-bottom:10px}
 .imf-home .imf-home-search .imf-search .imf-button{padding:9px 10px}
 .imf-home #imf-age-discovery h2,.imf-home #imf-reaction-discovery h2{font-size:16px}
 .imf-slideshow{margin-bottom:14px}
 .imf-slide-track{border-radius:9px}
 .imf-home #imf-catalog{padding-top:14px}
}
@media(max-width:350px){
 .imf-masthead-inner{padding:0 8px;gap:3px}
 .imf-app .imf-site-brand{font-size:15px;gap:4px}.imf-site-brand img{width:24px;height:24px}
 .imf-header-actions{gap:3px}.imf-header-account{gap:6px}.imf-app .imf-header-account a{font-size:10px}
 .imf-home .imf-search-catchcopy{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.imf-slide-dots button span{transition:none}.imf-slide-track{scroll-behavior:auto}}
