/* The theme's header menu and slide-in menu list the same eight destinations as the TOP, each with a one-line description
   (the menu item's 「説明」, printed by the theme as .c-smallNavTitle). Wide screens: the description appears on hover or
   keyboard focus, like the TOP's menu. Slide-in menu: it is always shown under the name. */
.c-gnav>.menu-item>a{position:relative}
.c-gnav>.menu-item>a>.c-smallNavTitle{position:absolute;top:calc(100% - 4px);left:50%;z-index:30;width:max-content;max-width:320px;padding:9px 13px;border:1px solid #d9b8e64d;border-radius:10px;background:#25203f;color:#f5e8f3;box-shadow:0 10px 24px #080d2d66;font-size:13px;font-weight:400;line-height:1.55;letter-spacing:0;text-align:center;white-space:normal;opacity:0;visibility:hidden;transform:translate(-50%,-4px);transition:opacity .16s cubic-bezier(.16,1,.3,1),transform .16s cubic-bezier(.16,1,.3,1),visibility .16s;pointer-events:none}
.c-gnav>.menu-item>a:hover>.c-smallNavTitle,.c-gnav>.menu-item>a:focus-visible>.c-smallNavTitle{opacity:1;visibility:visible;transform:translate(-50%,0)}
.c-gnav>.menu-item:nth-last-child(-n+2)>a>.c-smallNavTitle{left:auto;right:0;transform:translate(0,-4px)}
.c-gnav>.menu-item:nth-last-child(-n+2)>a:hover>.c-smallNavTitle,.c-gnav>.menu-item:nth-last-child(-n+2)>a:focus-visible>.c-smallNavTitle{transform:none}
/* Eight entries are wider than the old six: on narrower desktops the names get smaller so the logo is not squeezed. */
@media(min-width:960px) and (max-width:1240px){.c-gnav>.menu-item>a{padding-left:6px;padding-right:6px}.c-gnav>.menu-item>a .ttl{font-size:13px}.l-header__logo,.l-fixHeader__logo{flex-shrink:0}.l-header .c-headLogo,.l-fixHeader .c-headLogo{max-width:200px;margin-right:8px}}
@media(min-width:960px) and (max-width:1060px){.c-gnav>.menu-item>a{padding-left:5px;padding-right:5px}.c-gnav>.menu-item>a .ttl{font-size:12px}.l-header .c-headLogo,.l-fixHeader .c-headLogo{max-width:180px}}
/* 「記事を読む」 opens the list of article categories instead of a note. */
.c-gnav>.menu-item-has-children>a>.c-smallNavTitle{display:none}
/* Slide-in menu (phones and tablets) */
.c-spnav>.menu-item>a{font-size:15px;font-weight:600;line-height:1.45}
.c-spnav>.menu-item>a>.c-smallNavTitle{position:static;display:block;margin-top:3px;font-size:13px;font-weight:400;line-height:1.5;opacity:.72}
/* Destination pages (dark shell): the theme paints the slide-in panel through ::before, which stayed white under the
   shell's light text and made the menu unreadable. Same dark panel as the TOP's menu. */
.cv-nebula-page .p-spMenu__inner::before{background:#25203f;opacity:1}
.cv-nebula-page .c-widget__title.-spmenu{background:#ffffff14;color:#fff5eb}
.cv-nebula-page .p-spMenu .c-listMenu a{border-bottom-color:#ffffff1f}
.cv-nebula-page .c-spnav>.menu-item>a>.c-smallNavTitle{opacity:.78}
@media(prefers-reduced-motion:reduce){.c-gnav>.menu-item>a>.c-smallNavTitle{transition:none}}

/* 2026-11-25: the header logo is the TOP's (world + wordmark), printed by cv-observatory.php. */
.c-headLogo__link.cv-logo{display:flex;align-items:center;gap:8px;height:100%}
.cv-logo .cv-logo__world{height:100%;width:auto;aspect-ratio:1;max-height:48px;flex:none}
.cv-logo .c-headLogo__img.cv-logo__word{height:70%;max-height:34px;width:auto;min-width:0}

/* 2026-11-25: the category list under JOURNAL. On the dark detail pages the theme's white panel sat under the shell's
   light link colour and could not be read; it is the same dark panel as the hover notes there. */
.cv-nebula-page .c-gnav .sub-menu{background:#25203f!important;border:1px solid #d9b8e64d;border-radius:10px;box-shadow:0 10px 24px #080d2d66;color:#f5e8f3}
.cv-nebula-page :is(#header,#fix_header) .c-gnav .sub-menu a{color:#f5e8f3}
.cv-nebula-page .c-gnav .sub-menu a:hover{background-color:#ffffff14}
/* The list under JOURNAL opens with one line that says what it is (the theme places the list items itself, so the line
   sits in the padding above them). */
.c-gnav>.menu-item-has-children>.sub-menu{min-width:23em;padding-top:42px}
.c-gnav>.menu-item-has-children>.sub-menu::before{content:"クリプトやAIに関する記事をまとめた場所です";position:absolute;top:0;left:0;right:0;height:42px;padding:11px 16px 0;font-size:13px;line-height:1.6;white-space:nowrap;border-bottom:1px solid #8883;opacity:.85}
