/* 2026-11-23  The menu and the page-top button sit on the right by default (Japanese and English pages).
   The theme CSS places them only inside (min-width:768px) and (max-width:1199px) / (min-width:1200px).
   A zoomed browser can report a width such as 1199.5px, which matches neither, and the menu fell to the
   left under the logo. Here they get a default on the right for every width over 767px; from 1200px the
   theme's own position (next to the logo, margin-left) is kept. */
@media screen and (min-width: 767.001px) {
  .c-menu { position: fixed; top: 80px; right: 20px; z-index: 10; display: flex; justify-content: center;
            align-items: center; flex-wrap: wrap; gap: 0 20px; }
  .c-menu__btn { position: relative; cursor: pointer; }
  .c-menu__btn a img { width: 46px; height: 63px; }
  .c-menu__wrapper { position: relative; }
  .c-pagetop { position: fixed; bottom: 10vh; right: 20px; opacity: 0; visibility: hidden; transition: 0.2s; }
  .c-pagetop.is-active { opacity: 1; visibility: visible; }
  .c-pagetop img { width: 66px; }
}
@media screen and (min-width: 1200px) {
  .c-menu, .c-pagetop { right: auto; }
}

/* 2026-11-25 w9: compact menu with every entrance (all seven layer-A pages).
   The open menu was taller than the screen (the top items fell off the top on phones, the last ones off the bottom
   on PCs). Smaller gaps and 14px sub-items; if it is still too tall, it scrolls inside. The theme sets
   "* { font-size: 62.5%; color: #000 }", so every element below gets its own size and colour. */
.c-menu__list { padding: 12px 14px; overflow-y: auto; overscroll-behavior: contain; }
.c-menu__list__item { width: 210px; margin-bottom: 8px; }
.c-menu__list__item:last-child { margin-bottom: 0; }
.c-menu__list__item + .c-menu__list__item { padding-top: 8px; border-top-width: 1px; }
.c-menu__list__item > a + .c-menu__list__child { margin-top: 6px; }
.c-menu__list__child__item a { font-size: 14px; line-height: 1.45; }
.c-menu__list__child__item + .c-menu__list__child__item { margin-top: 4px; }
.mf-entr { display: flex; flex-direction: column; gap: 5px; }
.c-menu__list__item.mf-entr > a { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; line-height: 1.35;
  color: #1D79E3; text-decoration: none; border: 1.5px solid #1D79E3; border-radius: 999px; padding: 3px 10px; background: #fff; }
.mf-entr a b { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #fff; }
.mf-entr a.mf-b { color: #1c2529; border-color: #1c2529; }  .mf-entr a.mf-b b { background: #c0281e; }
.mf-entr a.mf-c { color: #0b3d22; border-color: #00873f; }  .mf-entr a.mf-c b { background: #00873f; }
.mf-entr a.mf-d { color: #0b6b67; border-color: #0b6b67; }  .mf-entr a.mf-d b { background: #0b6b67; }
@media screen and (max-width: 767px) {
  .c-menu__list { max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }
}
@media screen and (min-width: 767.001px) {
  .c-menu__list { max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); }
}

/* 2026-11-25 w10: space under the floating round menu button on phones, so that it never hides the end of the page. */
@media screen and (max-width: 767px) { body { padding-bottom: 84px; } }
