/* Links to the encyclopedia placed in the theme's widgets: [mre_promo type="top|side|new"]. */
@font-face { font-family:'Minrec Heading'; src:url('design/minrec-heading.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }

body .mre-promo { --mre-ink:#252b38; --mre-blue:#009ed5; --mre-yellow:#ffe34c; --mre-sun:#fff1a6; --mre-red:#dc3025; --mre-green:#155b3c; box-sizing:border-box; color:var(--mre-ink); text-align:left; line-height:1.8; }
body .mre-promo *, body .mre-promo *::before, body .mre-promo *::after { box-sizing:border-box; }
body .mre-promo :where(h3,p,ul,li,form,label) { margin:0; padding:0; border:0; background:none; box-shadow:none; text-shadow:none; }
body .mre-promo :where(h3)::before, body .mre-promo :where(h3)::after, body .mre-promo li::before, body .mre-promo li::after { content:none; display:none; }
body .mre-promo ul { list-style:none; }
body .mre-promo img { display:block; max-width:none; border:0; box-shadow:none; }
body .mre-promo a { text-decoration:none; }
body .mre-promo :focus-visible { outline:3px solid #a42218; outline-offset:3px; }

/* Wordmark: same treatment as the encyclopedia top. */
body .mre-promo .mre-promo-wordmark { display:block; font-family:'Minrec Heading','Mochiy Pop One','M PLUS Rounded 1c',sans-serif; font-weight:400; line-height:1.15; letter-spacing:-.02em; color:#fff; }
body .mre-promo .mre-promo-wordmark > span { display:block; width:fit-content; white-space:nowrap; font-family:inherit; -webkit-text-stroke:.075em #fff; paint-order:stroke fill; filter:drop-shadow(.02em .03em 0 #253d36); }
body .mre-promo .mre-promo-wordmark__name { color:#eb4625; transform:rotate(-2deg); transform-origin:left bottom; }
body .mre-promo .mre-promo-wordmark__title { color:#33834b; padding-left:.22em; }

/* ---------- Front-page band ---------- */
body .mre-promo-top { margin:0; padding:72px 15px; background:var(--mre-sun); background-image:radial-gradient(rgba(255,255,255,.75) 2px, transparent 2.5px); background-size:22px 22px; }
body .mre-promo-top .mre-promo-top__inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:28px; align-items:stretch; }
body .mre-promo-top .mre-promo-top__poster { position:relative; min-height:430px; padding:40px 40px 36px; border:3px solid var(--mre-ink); border-radius:24px; background:#fff; overflow:hidden; }
body .mre-promo-top .mre-promo-wordmark { position:relative; z-index:2; font-size:clamp(2.8rem,4.9vw,4.2rem); }
body .mre-promo-top .mre-promo-top__lead { position:relative; z-index:2; width:50%; margin-top:22px; font-size:15px; font-weight:700; line-height:1.9; color:var(--mre-ink); }
body .mre-promo-top .mre-promo-top__visual { position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(90deg, var(--mre-blue) 0 55%, var(--mre-yellow) 55% 100%); }
body .mre-promo-top .mre-promo-top__visual::before { content:''; position:absolute; top:0; bottom:0; left:55%; border-left:3px solid var(--mre-ink); }
body .mre-promo-top .mre-promo-girl { position:absolute; right:9%; bottom:-6px; width:auto; height:92%; }
body .mre-promo-top .mre-promo-cat { position:absolute; right:1%; bottom:6px; width:auto; height:38%; }

body .mre-promo-top .mre-promo-top__panel { display:flex; flex-direction:column; gap:26px; padding:34px 34px 32px; border:3px solid var(--mre-ink); border-radius:24px; background:#fff; }
body .mre-promo-search { display:block; }
body .mre-promo-search .mre-promo-search__label { display:block; margin-bottom:10px; font-size:18px; font-weight:800; line-height:1.5; color:var(--mre-ink); }
body .mre-promo-search .mre-promo-search__controls { display:flex; border:2px solid var(--mre-ink); border-radius:6px; overflow:hidden; background:#fff; }
body .mre-promo-search input[type=search] { flex:1 1 auto; min-width:0; height:52px; margin:0; padding:0 14px; border:0; border-radius:0; background:#fff; box-shadow:none; font-size:16px; color:var(--mre-ink); -webkit-appearance:none; appearance:none; }
body .mre-promo-search button { flex:0 0 auto; width:96px; margin:0; padding:0; border:0; border-left:2px solid var(--mre-ink); border-radius:0; background:var(--mre-red); color:#fff; font-size:16px; font-weight:800; letter-spacing:.05em; cursor:pointer; }
body .mre-promo-search button:hover { background:#b9261c; }

body .mre-promo-top .mre-promo-top__newest-title { margin-bottom:10px; font-size:18px; font-weight:800; line-height:1.5; color:var(--mre-ink); }
body .mre-promo-top .mre-promo-top__newest ul { display:flex; flex-wrap:wrap; gap:10px; }
body .mre-promo-top .mre-promo-top__newest a { display:inline-block; padding:7px 16px; border:2px solid var(--mre-ink); border-radius:999px; background:#ddf3fb; color:var(--mre-ink); font-size:15px; font-weight:700; line-height:1.5; }
body .mre-promo-top .mre-promo-top__newest a:hover { background:var(--mre-yellow); }

body .mre-promo-top .mre-promo-top__button { display:flex; align-items:center; justify-content:center; margin-top:auto; min-height:72px; padding:12px 24px; border:4px solid #ffd333; border-radius:100px; background:#fff; color:#000; font-size:22px; font-weight:700; line-height:1.4; text-align:center; transition:background .2s; }
body .mre-promo-top .mre-promo-top__button:hover { background:#fff8d6; }

@media (max-width:960px) {
  body .mre-promo-top .mre-promo-top__inner { grid-template-columns:1fr; max-width:640px; gap:20px; }
  body .mre-promo-top .mre-promo-top__poster { min-height:380px; }
}
@media (max-width:599px) {
  body .mre-promo-top { padding:44px 12px; }
  body .mre-promo-top .mre-promo-top__poster { min-height:0; padding:0; border-radius:18px; }
  body .mre-promo-top .mre-promo-wordmark { height:240px; padding:22px 18px 0; font-size:clamp(2.1rem,10vw,2.8rem); }
  body .mre-promo-top .mre-promo-top__visual { inset:0 0 auto; height:240px; border-bottom:3px solid var(--mre-ink); }
  body .mre-promo-top .mre-promo-top__lead { width:auto; margin:0; padding:16px 18px 18px; font-size:14px; }
  body .mre-promo-top .mre-promo-girl { right:6%; height:100%; }
  body .mre-promo-top .mre-promo-cat { right:1%; height:40%; }
  body .mre-promo-top .mre-promo-top__panel { padding:22px 18px 22px; gap:22px; border-radius:18px; }
  body .mre-promo-search .mre-promo-search__label, body .mre-promo-top .mre-promo-top__newest-title { font-size:16px; }
  body .mre-promo-search input[type=search] { height:48px; }
  body .mre-promo-search button { width:76px; }
  body .mre-promo-top .mre-promo-top__newest a { padding:6px 13px; font-size:14px; }
  body .mre-promo-top .mre-promo-top__button { min-height:62px; font-size:18px; }
}

/* ---------- Sidebar banner ---------- */
body a.mre-promo-side, body a.mre-promo-side:hover { text-decoration:none; }
body a.mre-promo-side { display:block; margin:0 0 24px; border:3px solid var(--mre-ink); border-radius:18px; background:#fff; overflow:hidden; color:var(--mre-ink); transition:transform .2s; }
body a.mre-promo-side:hover { transform:translateY(-2px); }
body .mre-promo-side .mre-promo-side__poster { position:relative; display:block; height:200px; padding:18px 16px; background:linear-gradient(90deg, var(--mre-blue) 0 56%, var(--mre-yellow) 56% 100%); border-bottom:3px solid var(--mre-ink); }
body .mre-promo-side .mre-promo-side__poster::after { content:''; position:absolute; top:0; bottom:0; left:56%; border-left:3px solid var(--mre-ink); }
body .mre-promo-side .mre-promo-wordmark { position:relative; z-index:2; font-size:34px; }
body .mre-promo-side .mre-promo-side__visual { position:absolute; inset:0; z-index:1; }
body .mre-promo-side .mre-promo-girl { position:absolute; right:12%; bottom:-4px; height:92%; width:auto; }
body .mre-promo-side .mre-promo-cat { position:absolute; right:1%; bottom:4px; height:40%; width:auto; }
body .mre-promo-side .mre-promo-side__text { display:block; padding:14px 16px 0; font-size:14px; font-weight:700; line-height:1.8; }
body .mre-promo-side .mre-promo-side__button { display:block; margin:12px 16px 16px; padding:11px 10px; border-radius:999px; background:var(--mre-green); color:#fff; font-size:15px; font-weight:800; line-height:1.5; text-align:center; }
body a.mre-promo-side:hover .mre-promo-side__button { background:#0f472e; }

/* ---------- Sidebar: newest entries ---------- */
body .mre-promo-new { margin:0 0 24px; }
body .mre-promo-new .mre-promo-new__title { margin-bottom:12px; padding:8px 12px; border-left:6px solid var(--mre-blue); background:#ddf3fb; font-size:16px; font-weight:800; line-height:1.5; }
body .mre-promo-new ul { display:grid; gap:10px; }
body .mre-promo-new li a { display:grid; grid-template-columns:96px minmax(0,1fr); grid-template-rows:auto auto; column-gap:12px; align-items:center; padding:8px; border:2px solid var(--mre-ink); border-radius:10px; background:#fff; color:var(--mre-ink); }
body .mre-promo-new li a:hover { background:#fffbe0; }
body .mre-promo-new .mre-promo-new__picture { grid-row:1 / 3; display:block; width:96px; aspect-ratio:3 / 2; border-radius:6px; overflow:hidden; background:#d6dfe2; }
body .mre-promo-new .mre-promo-new__picture img { width:100%; height:100%; object-fit:cover; }
body .mre-promo-new .mre-promo-new__name { align-self:end; font-size:16px; font-weight:800; line-height:1.4; }
body .mre-promo-new .mre-promo-new__sub { align-self:start; font-size:12px; line-height:1.6; color:#515d65; }
body .mre-promo-new .mre-promo-new__more { display:block; margin-top:12px; color:var(--mre-ink); font-size:14px; font-weight:700; text-align:right; text-decoration:underline; text-underline-offset:4px; }

/* ---------- Global navigation: menu item with the CSS class "mre-nav-daihyakka" (Appearance → Menus) ---------- */
/* The theme draws a coloured arrow per category item; this gives the custom-link item a matching one. */
#menu-header > li.mre-nav-daihyakka { position:relative; }
#menu-header > li.mre-nav-daihyakka > a { display:inline-block; position:relative; width:auto; padding-right:24px; }
#menu-header > li.mre-nav-daihyakka > a::before { content:''; position:absolute; right:0; top:50%; transform:translateY(-50%); width:16px; height:12px; background:#7fcf6f; clip-path:polygon(0 0,100% 0,50% 100%); border-radius:2px; }
/* Seven items need about 1,010px at the theme's 19px; between 960px (where the PC menu appears) and 1,079px they would be clipped. */
@media (min-width:960px) and (max-width:1079px) { #menu-header > li > a { font-size:17px; } }

/* ---------- Front-page main column section: [mre_promo type="section"] ---------- */
/* Title box and cards come from the theme; only the colour and the closing link are ours. */
.mre-promo-section { margin:0 0 40px; }
.mre-promo-section .main_titile_box.mre-promo-section__title { background:#fff1a6; }
.mre-promo-section .catname { background:#ffe34c; color:#252b38; }
.mre-promo-section .mre-promo-section__more { margin:8px 0 0; text-align:center; }
.mre-promo-section .mre-promo-section__more a { box-sizing:border-box; display:inline-block; min-width:320px; max-width:100%; padding:16px 32px; border:4px solid #ffd333; border-radius:100px; background:#fff; color:#000; font-size:18px; font-weight:700; line-height:1.5; text-decoration:none; }
.mre-promo-section .mre-promo-section__more a:hover { background:#fff8d6; }
@media (max-width:599px) { .mre-promo-section .mre-promo-section__more a { min-width:0; width:100%; padding:14px 16px; font-size:16px; } }
