/*
Theme Name: メモクラウド（MemoCloud） App
Theme URI: https://memo-cloud.jp/
Author: メモクラウド（MemoCloud）
Author URI: https://memo-cloud.jp/
Description: app.memo-cloud.jp 専用の最小構成テーマ。メモクラウドプラグインの画面に、共通ヘッダーと4カラムフッターを追加します。
Version: 1.1.17
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: memo-cloud-app-theme
*/

:root {
    --mct-blue: #2563eb;
    --mct-blue-hover: #1d4ed8;
    --mct-navy: #1e3a5f;
    --mct-blue-soft: #eff6ff;
    --mct-bg: #f7f8fa;
    --mct-white: #ffffff;
    --mct-text: #1f2937;
    --mct-muted: #6b7280;
    --mct-border: #d3dae3;
    --mct-border-dark: #b9c3cf;
    --mct-radius: 7px;
    --mct-header-height: 64px;
}

html {
    box-sizing: border-box;
    min-height: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--mct-bg);
    color: var(--mct-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    line-height: 1.7;
}

a {
    color: var(--mct-blue);
    text-decoration: none;
}

a:hover {
    color: var(--mct-blue-hover);
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    top: 8px;
    left: 8px;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: var(--mct-white);
    border: 1px solid var(--mct-blue);
    border-radius: var(--mct-radius);
}

.mct-site-header {
    width: 100%;
    min-height: var(--mct-header-height);
    background: var(--mct-white);
    border-bottom: 1px solid var(--mct-border);
}

.mct-header-inner {
    width: 100%;
    min-height: var(--mct-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 9px clamp(16px, 2.5vw, 36px);
}

.mct-branding {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 0 1 auto;
}

.mct-custom-logo-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.mct-custom-logo-link img,
.custom-logo-link img {
    display: block;
    width: auto;
    max-width: min(210px, 38vw);
    max-height: 36px;
    object-fit: contain;
    object-position: left center;
}

.mct-site-title {
    color: var(--mct-navy);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.mct-header-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.mct-header-nav ul,
.mct-footer-widget ul,
.mct-footer-widget ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mct-header-nav > div > ul,
.mct-header-nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mct-header-nav li {
    position: relative;
}

.mct-header-nav a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 11px;
    color: #666;
    font-size: 13px;
    border-radius: var(--mct-radius);
}

.mct-header-nav a:hover,
.mct-header-nav .current-menu-item > a,
.mct-header-nav .current_page_item > a {
    color: var(--mct-blue);
    background: var(--mct-blue-soft);
}

.mct-header-nav .sub-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 120;
    display: none;
    min-width: 190px;
    padding: 6px;
    background: var(--mct-white);
    border: 1px solid var(--mct-border-dark);
    border-radius: var(--mct-radius);
}

.mct-header-nav li:hover > .sub-menu,
.mct-header-nav li:focus-within > .sub-menu {
    display: block;
}

.mct-header-nav .sub-menu a {
    width: 100%;
    min-height: 36px;
}

.mct-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--mct-text);
    background: var(--mct-white);
    border: 1px solid var(--mct-border-dark);
    border-radius: var(--mct-radius);
    cursor: pointer;
}

.mct-menu-toggle svg {
    width: 21px;
    height: 21px;
}

.mct-site-main {
    width: 100%;
    min-width: 0;
}

.mct-content {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 64px;
}

.mct-entry {
    background: var(--mct-white);
    border: 1px solid var(--mct-border);
    border-radius: var(--mct-radius);
    padding: clamp(22px, 4vw, 46px);
}

.mct-entry-title {
    margin: 0 0 24px;
    color: var(--mct-navy);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.35;
}

.mct-entry-content > *:first-child {
    margin-top: 0;
}

.mct-entry-content > *:last-child {
    margin-bottom: 0;
}

.mct-site-footer {
    width: 100%;
    background: var(--mct-white);
    border-top: 1px solid var(--mct-border);
}

.mct-footer-widgets-wrap {
    width: 100%;
}

.mct-footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 64px);
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 28px;
}

.mct-footer-widgets:empty {
    display: none;
}

.mct-footer-widget {
    min-width: 0;
    color: var(--mct-muted);
    font-size: 15px;
    line-height: 1.7;
}

.mct-footer-widget .widget {
    margin: 0;
}

.mct-footer-widget .widget + .widget {
    margin-top: 20px;
}

.mct-footer-widget .widget-title,
.mct-footer-widget h2,
.mct-footer-widget h3 {
    margin: 0 0 12px;
    color: var(--mct-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.mct-footer-widget li + li {
    margin-top: 6px;
}

.mct-footer-widget a {
    display: inline-flex;
    padding: 2px 0;
    color: var(--mct-muted);
}

.mct-footer-widget a:hover {
    color: var(--mct-blue);
}

.mct-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 14px;
    color: var(--mct-muted);
    text-align: center;
}

.mct-footer-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
}

.mct-footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mct-footer-logo-link img {
    display: block;
    width: auto;
    max-width: min(170px, 48vw);
    max-height: 28px;
    object-fit: contain;
    object-position: center;
}

.mct-footer-site-title {
    color: var(--mct-navy);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mct-footer-copyright {
    font-size: 12px;
    line-height: 1.5;
}

.mct-app-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows: var(--mct-header-height) minmax(720px, 1fr) auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.mct-app-page .mct-site-header,
.mct-app-page .mct-header-inner {
    height: var(--mct-header-height);
    min-height: var(--mct-header-height);
}

.mct-app-page .mct-app-main {
    display: flex;
    min-width: 0;
    min-height: 720px;
    overflow: hidden;
}

.mct-app-page.mc-page-settings .mct-app-main,
.mct-app-page.mc-page-plan .mct-app-main {
    min-height: 800px;
}

.mct-app-page .mct-site-footer {
    min-height: 0;
}

.mct-app-page .mct-footer-widgets {
    padding-top: 24px;
    padding-bottom: 22px;
}

.mct-app-page .mct-footer-widget {
    font-size: 14px;
    line-height: 1.6;
}

.mct-app-page .mct-footer-widget .widget-title,
.mct-app-page .mct-footer-widget h2,
.mct-app-page .mct-footer-widget h3 {
    margin-bottom: 9px;
    font-size: 15px;
}

.mct-app-page .mct-footer-widget li + li {
    margin-top: 4px;
}

.mct-app-page .mct-footer-bottom {
    padding-top: 14px;
    padding-bottom: 12px;
}

@media (max-width: 900px) {
    :root {
        --mct-header-height: 58px;
    }

    .mct-header-inner {
        gap: 12px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .mct-menu-toggle {
        display: inline-flex;
    }

    .mct-header-nav {
        position: absolute;
        top: calc(var(--mct-header-height) - 1px);
        right: 12px;
        left: 12px;
        z-index: 110;
        display: none;
        padding: 8px;
        background: var(--mct-white);
        border: 1px solid var(--mct-border-dark);
        border-radius: var(--mct-radius);
    }

    .mct-header-nav.is-open {
        display: block;
    }

    .mct-header-nav > div > ul,
    .mct-header-nav > ul {
        display: block;
    }

    .mct-header-nav a {
        width: 100%;
    }

    .mct-header-nav .sub-menu {
        position: static;
        display: block;
        padding: 0 0 0 12px;
        border: 0;
    }

    .mct-app-page {
        grid-template-rows: var(--mct-header-height) minmax(640px, 1fr) auto;
    }

    .mct-app-page .mct-app-main,
    .mct-app-page.mc-page-settings .mct-app-main,
    .mct-app-page.mc-page-plan .mct-app-main {
        min-height: 640px;
    }

    .mct-footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 22px;
    }
}

@media (max-width: 560px) {
    .mct-custom-logo-link img,
    .custom-logo-link img {
        max-width: 170px;
        max-height: 32px;
    }

    .mct-footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(100% - 28px, 1200px);
        gap: 22px 18px;
        padding-top: 22px;
        padding-bottom: 20px;
    }

    .mct-footer-widget {
        font-size: 14px;
    }

    .mct-footer-bottom {
        width: min(100% - 28px, 1200px);
    }

    .mct-footer-logo-link img {
        max-width: 150px;
        max-height: 25px;
    }
}

/* =========================================================
 * 1.0.4 - Public-site-like footer / dedicated mobile menu
 * ======================================================= */

/* Footer: The Thor系の白基調・4カラム・見出し青ライン */
.mct-site-footer {
    background: #fff;
    border-top: 1px solid #eaeaea;
    color: #333;
}

.mct-footer-widgets-wrap,
.mct-footer-bottom-wrap {
    width: 100%;
    background: #fff;
}

.mct-footer-widgets {
    width: min(1200px, calc(100% - 40px));
    gap: clamp(28px, 4vw, 56px);
    padding: 34px 0 30px;
}

.mct-footer-widget {
    color: #333;
    font-size: 14px;
    line-height: 1.65;
}

.mct-footer-widget .widget-title,
.mct-footer-widget .heading-widget,
.mct-footer-widget h2,
.mct-footer-widget h3 {
    position: relative;
    margin: 0 0 20px;
    padding: 0 0 11px;
    color: #111;
    background: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 0;
}

.mct-footer-widget .widget-title::after,
.mct-footer-widget .heading-widget::after,
.mct-footer-widget h2::after,
.mct-footer-widget h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    width: 50px;
    height: 3px;
    background: #1e90ff;
    border-radius: 3px;
}

.mct-footer-widget .widget_nav_menu ul.menu,
.mct-footer-widget .widget_categories ul {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

.mct-footer-widget .widget_nav_menu ul.menu li,
.mct-footer-widget .widget_categories ul li {
    margin: 0;
    border: 0;
}

.mct-footer-widget .widget_nav_menu ul.menu li a,
.mct-footer-widget .widget_categories ul li a {
    display: block;
    width: 100%;
    padding: 9px 2px;
    color: #333;
    background: #fff;
    border-top: 1px solid #eaeaea;
    border-radius: 0;
    text-decoration: none;
}

.mct-footer-widget .widget_nav_menu ul.menu li:first-child a,
.mct-footer-widget .widget_categories ul li:first-child a {
    border-top: 0;
}

.mct-footer-widget .widget_nav_menu ul.menu li a::before,
.mct-footer-widget .widget_categories ul li a::before {
    content: none !important;
}

.mct-footer-widget .widget_nav_menu ul.menu li a:hover,
.mct-footer-widget .widget_categories ul li a:hover {
    color: #2563eb;
    background: #fff;
}

.mct-footer-bottom {
    width: min(1200px, calc(100% - 40px));
    gap: 11px;
    padding: 24px 0 16px;
    color: #333;
    text-align: center;
}

.mct-footer-branding {
    margin: 0 0 2px;
}

.mct-footer-logo-link img {
    width: auto;
    max-width: min(200px, 50vw);
    max-height: 30px;
	margin-top:80px;
}

.mct-footer-nav {
    width: 100%;
}

.mct-footer-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mct-footer-menu li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.mct-footer-menu li + li::before {
    content: "|";
    margin: 0 10px;
    color: #c4c4c4;
    font-size: 12px;
}

.mct-footer-menu a {
    color: #333;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    text-decoration: none;
}

.mct-footer-menu a:hover,
.mct-footer-menu .current-menu-item > a {
    color: #2563eb;
}

.mct-footer-copyright {
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

/* Header: PCメニューとスマホ専用メニューを分離 */
.mct-site-header {
    position: relative;
    z-index: 500;
}

.mct-header-nav--desktop {
    margin-left: auto;
}

.mct-mobile-nav-wrap,
.mct-mobile-nav {
    display: none;
}

@media (max-width: 900px) {
    .mct-header-nav--desktop {
        display: none !important;
    }

    .mct-mobile-nav-wrap {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-left: auto;
    }

    .mct-menu-toggle {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        color: #333;
        background: transparent;
        border: 0;
        border-radius: 0;
        appearance: none;
        box-shadow: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mct-menu-toggle:hover,
    .mct-menu-toggle:focus,
    .mct-menu-toggle:active {
        color: #2563eb;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .mct-menu-toggle:focus-visible {
        outline: 2px solid #2563eb;
        outline-offset: 2px;
    }

    .mct-menu-toggle__icon {
        position: relative;
        display: block;
        width: 26px;
        height: 20px;
    }

    .mct-menu-toggle__icon span {
        position: absolute;
        left: 0;
        display: block;
        width: 26px;
        height: 2px;
        background: currentColor;
        transform-origin: center;
        transition: transform .22s ease, top .22s ease, opacity .16s ease;
    }

    .mct-menu-toggle__icon span:nth-child(1) {
        top: 1px;
    }

    .mct-menu-toggle__icon span:nth-child(2) {
        top: 9px;
    }

    .mct-menu-toggle__icon span:nth-child(3) {
        top: 17px;
    }

    .mct-menu-toggle.is-open .mct-menu-toggle__icon span:nth-child(1) {
        top: 9px;
        transform: rotate(45deg);
    }

    .mct-menu-toggle.is-open .mct-menu-toggle__icon span:nth-child(2) {
        opacity: 0;
    }

    .mct-menu-toggle.is-open .mct-menu-toggle__icon span:nth-child(3) {
        top: 9px;
        transform: rotate(-45deg);
    }

    .mct-mobile-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 510;
        display: block;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        background: #fff;
        border-top: 1px solid #eaeaea;
        border-bottom: 1px solid #d3dae3;
        transform: translateY(-6px);
        transition: max-height .28s ease, opacity .2s ease, transform .22s ease, visibility 0s linear .28s;
        pointer-events: none;
    }

    .mct-mobile-nav.is-open {
        max-height: min(72vh, 620px);
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        transition: max-height .32s ease, opacity .2s ease, transform .22s ease, visibility 0s;
        pointer-events: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mct-mobile-nav__inner {
        width: min(100%, 720px);
        margin: 0 auto;
        padding: 8px 14px 14px;
    }

    .mct-mobile-menu,
    .mct-mobile-menu .sub-menu {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mct-mobile-menu > li {
        margin: 0;
        border-bottom: 1px solid #eaeaea;
    }

    .mct-mobile-menu > li:last-child {
        border-bottom: 0;
    }

    .mct-mobile-menu a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 11px 4px;
        color: #333;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.45;
        text-decoration: none;
    }

    .mct-mobile-menu a:hover,
    .mct-mobile-menu a:focus,
    .mct-mobile-menu .current-menu-item > a,
    .mct-mobile-menu .current_page_item > a {
        color: #2563eb;
        background: #fff;
    }

    .mct-mobile-menu .sub-menu {
        padding: 0 0 8px 14px;
    }

    .mct-mobile-menu .sub-menu a {
        min-height: 42px;
        padding-top: 8px;
        padding-bottom: 8px;
        color: #555;
        font-size: 13px;
        font-weight: 400;
    }

    body.mct-mobile-menu-open {
        overflow-x: hidden;
    }

    .mct-footer-widgets {
        gap: 24px 28px;
    }
}

@media (max-width: 560px) {
    .mct-footer-widgets {
        width: min(100% - 28px, 1200px);
        gap: 24px 18px;
        padding: 28px 0 24px;
    }

    .mct-footer-widget .widget-title,
    .mct-footer-widget .heading-widget,
    .mct-footer-widget h2,
    .mct-footer-widget h3 {
        margin-bottom: 14px;
        font-size: 15px;
    }

    .mct-footer-widget .widget_nav_menu ul.menu li a,
    .mct-footer-widget .widget_categories ul li a {
        padding: 8px 1px;
        font-size: 13px;
    }

    .mct-footer-bottom {
        width: min(100% - 28px, 1200px);
        padding-top: 20px;
    }

    .mct-footer-logo-link img {
        max-width: min(240px, 72vw);
        max-height: 34px;
    }

    .mct-footer-menu li + li::before {
        margin: 0 7px;
    }

    .mct-footer-menu a,
    .mct-footer-copyright {
        font-size: 11px;
    }
}


/* =========================================================
 * 1.0.5 - Back to top button
 * ======================================================= */
.mct-back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 480;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #fff;
    background: #2563eb;
    border: 0;
    border-radius: 7px;
    box-shadow: none;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s, background-color .2s ease;
    cursor: pointer;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}



.mct-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
    pointer-events: auto;
}

/* App screens already provide the plugin's own back-to-top control. */
.mct-app-page .mct-back-to-top {
    display: none !important;
}

.mct-back-to-top:hover,
.mct-back-to-top:focus {
    color: #fff;
    background: #1d4ed8;
}

.mct-back-to-top:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.mct-back-to-top span {
    display: block;
    transform: translateY(-1px);
}

body.mct-mobile-menu-open .mct-back-to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 900px) {
    .mct-back-to-top {
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mct-back-to-top {
        transition: none;
    }
}



/* メモクラウド Theme 1.1.2: notification/share/account center + right drawer */
.mct-site-header{position:relative;z-index:300;background:#fff}
.mct-header-inner{gap:18px}
.mct-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-left:auto}
.mct-notification-toggle,.mct-share-toggle,.mct-account-link,.mct-menu-toggle,.mct-drawer-close{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:0;border-radius:7px;background:transparent;color:#334155;cursor:pointer;position:relative}
.mct-notification-toggle:hover,.mct-share-toggle:hover,.mct-account-link:hover,.mct-menu-toggle:hover,.mct-drawer-close:hover{background:#f1f5f9;color:#1d4ed8}
.mct-notification-toggle:focus-visible,.mct-share-toggle:focus-visible,.mct-account-link:focus-visible,.mct-menu-toggle:focus-visible,.mct-drawer-close:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.mct-notification-toggle>.dashicons,.mct-share-toggle>.dashicons,.mct-account-link>.dashicons{width:22px;height:22px;font-size:22px;line-height:22px}
.mct-notification-badge{position:absolute;top:2px;right:1px;display:flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;border:2px solid #fff;border-radius:999px;background:#f42859;color:#fff;font-size:9px;line-height:1;font-weight:800}
.mct-notification-badge.is-empty{display:none}
.mct-menu-toggle__icon{position:relative;display:block;width:21px;height:16px}
.mct-menu-toggle__icon span{position:absolute;left:0;width:21px;height:2px;border-radius:2px;background:currentColor;transition:transform .18s ease,opacity .18s ease,top .18s ease}
.mct-menu-toggle__icon span:nth-child(1){top:0}.mct-menu-toggle__icon span:nth-child(2){top:7px}.mct-menu-toggle__icon span:nth-child(3){top:14px}
.mct-menu-toggle.is-open .mct-menu-toggle__icon span:nth-child(1){top:7px;transform:rotate(45deg)}
.mct-menu-toggle.is-open .mct-menu-toggle__icon span:nth-child(2){opacity:0}
.mct-menu-toggle.is-open .mct-menu-toggle__icon span:nth-child(3){top:7px;transform:rotate(-45deg)}
.mct-drawer-overlay{position:fixed;inset:0;z-index:890;background:rgba(15,23,42,.38);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}
.mct-drawer-overlay.is-open{opacity:1;visibility:visible}
.mct-drawer{position:fixed;top:0;right:0;bottom:0;z-index:900;display:flex;flex-direction:column;width:min(430px,92vw);background:#fff;border-left:1px solid #cbd5e1;transform:translateX(102%);visibility:hidden;transition:transform .22s ease,visibility .22s ease}
.mct-drawer.is-open{transform:translateX(0);visibility:visible}
body.mct-drawer-open{overflow:hidden}
.mct-drawer__head{display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:9px 18px;border-bottom:1px solid #d3dae3}
.mct-drawer__head>strong{color:#1e3a5f;font-size:15px}
.mct-drawer-close>.dashicons{font-size:24px;width:24px;height:24px}
.mct-drawer__body{min-height:0;overflow:auto;padding:18px 20px 34px}
.mct-plan-change-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;margin-bottom:22px;border:1px solid #2563eb;border-radius:7px;background:#2563eb;color:#fff;font-size:13px;font-weight:750}
.mct-plan-change-button:hover{background:#1d4ed8;color:#fff}
.mct-plan-change-button .dashicons{width:17px;height:17px;font-size:17px}
.mct-drawer-section+.mct-drawer-section{margin-top:24px;padding-top:22px;border-top:2px solid #cbd5e1}
.mct-drawer-section h2{margin:0 0 8px;color:#64748b;font-size:11px;line-height:1.4;font-weight:800;letter-spacing:.08em}
.mct-drawer-menu ul{padding:0;margin:0;list-style:none}
.mct-drawer-menu>ul{display:flex;flex-direction:column;gap:3px}
.mct-drawer-menu a{display:flex;align-items:center;gap:10px;min-height:43px;padding:8px 10px;border-radius:7px;color:#334155;font-size:13px;font-weight:650}
.mct-drawer-menu a:hover,.mct-drawer-menu a:focus{background:#eff6ff;color:#1d4ed8}
.mct-drawer-menu a>.dashicons{width:18px;height:18px;font-size:18px;line-height:18px;color:#64748b;flex:0 0 auto}
.mct-drawer-menu a:hover>.dashicons{color:#2563eb}
.mct-drawer-submenu{padding:0 0 4px 28px!important}
.mct-drawer-submenu a{min-height:36px;padding-top:6px;padding-bottom:6px;color:#64748b;font-size:12px;font-weight:550}
.mct-notification-panel{position:fixed;top:calc(var(--mct-header-height) - 2px);right:146px;z-index:880;display:flex;flex-direction:column;width:min(390px,calc(100vw - 28px));max-height:min(620px,calc(100vh - var(--mct-header-height) - 16px));background:#fff;border:1px solid #cbd5e1;border-radius:7px;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .15s ease,transform .15s ease,visibility .15s ease}
.mct-notification-panel.is-open{opacity:1;visibility:visible;transform:translateY(0)}
.mct-notification-panel__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid #e2e8f0}
.mct-notification-panel__head>div{display:flex;flex-direction:column;gap:1px}
.mct-notification-panel__head strong{color:#1e3a5f;font-size:14px}
.mct-notification-panel__head small{color:#94a3b8;font-size:9px}
.mct-notification-read-all{padding:5px 7px;border:0;background:transparent;color:#64748b;font-size:10px;cursor:pointer}
.mct-notification-read-all:hover{color:#2563eb}
.mct-notification-list{min-height:90px;overflow:auto;padding:5px}
.mct-notification-loading,.mct-notification-error,.mct-notification-empty{padding:32px 18px;color:#64748b;font-size:11px;text-align:center}
.mct-notification-empty{display:flex;flex-direction:column;align-items:center;gap:7px}
.mct-notification-empty>.dashicons{width:25px;height:25px;font-size:25px;color:#94a3b8}
.mct-notification-item{display:flex;flex-direction:column;width:100%;gap:4px;padding:11px 10px;border:0;border-bottom:1px solid #eef2f7;border-radius:5px;background:transparent;color:#334155;text-align:left;cursor:pointer;text-decoration:none}
.mct-notification-item:hover{background:#f8fafc;color:#334155}
.mct-notification-item.is-unread:not(.is-pr){background:#f4f8ff}
.mct-notification-item.is-unread:not(.is-pr)>strong{color:#1e3a5f}
.mct-notification-item.is-read{opacity:.78}
.mct-notification-item__meta{display:flex;align-items:center;gap:6px}
.mct-notification-item__meta time{margin-left:auto;color:#94a3b8;font-size:9px}
.mct-notification-label{display:inline-flex;align-items:center;justify-content:center;min-height:18px;padding:2px 6px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:8px;font-weight:800}
.mct-notification-label.is-contract{background:#eff6ff;color:#1d4ed8}
.mct-notification-label.is-backup{background:#ecfdf5;color:#047857}
.mct-notification-label.is-todo{background:#fffbeb;color:#b45309}
.mct-notification-label.is-important{background:#fff1f2;color:#be123c}
.mct-notification-label.is-pr{background:#f5f3ff;color:#6d28d9}
.mct-notification-item>strong{font-size:11px;line-height:1.45}
.mct-notification-item>span:not(.mct-notification-item__meta){color:#64748b;font-size:10px;line-height:1.55}
@media(max-width:900px){
    .mct-header-inner{padding-left:14px;padding-right:12px}
    .mct-notification-panel{top:calc(var(--mct-header-height) - 1px);right:8px}
    .mct-drawer{width:min(420px,96vw)}
}
@media(max-width:520px){
    .mct-header-inner{gap:6px;padding-left:10px;padding-right:7px}
    .mct-branding{flex:1 1 auto}
    .mct-custom-logo-link img,.custom-logo-link img{max-width:min(165px,43vw);max-height:30px}
    .mct-header-actions{gap:2px}
    .mct-notification-toggle,.mct-share-toggle,.mct-account-link,.mct-menu-toggle{width:38px;height:38px}
    .mct-notification-panel{right:7px;width:calc(100vw - 14px)}
    .mct-drawer{width:100vw;border-left:0}
    .mct-drawer__body{padding:16px 16px 32px}
}


.mct-share-toggle,.mct-account-link{text-decoration:none}
.mct-share-dot{position:absolute;top:5px;right:5px;width:9px;height:9px;border:2px solid #fff;border-radius:999px;background:#f42859}
.mct-share-dot.is-empty{display:none}
.mct-share-panel{position:fixed;top:calc(var(--mct-header-height) - 2px);right:104px;z-index:881;display:flex;flex-direction:column;width:min(390px,calc(100vw - 28px));max-height:min(620px,calc(100vh - var(--mct-header-height) - 16px));background:#fff;border:1px solid #cbd5e1;border-radius:7px;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .15s ease,transform .15s ease,visibility .15s ease}
.mct-share-panel.is-open{opacity:1;visibility:visible;transform:translateY(0)}
.mct-share-panel__head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid #e2e8f0}
.mct-share-panel__head>div{display:flex;flex-direction:column;gap:1px}.mct-share-panel__head strong{color:#1e3a5f;font-size:14px}.mct-share-panel__head small{color:#94a3b8;font-size:9px}
.mct-share-list{min-height:90px;overflow:auto;padding:5px}.mct-share-loading,.mct-share-error,.mct-share-empty{padding:32px 18px;color:#64748b;font-size:11px;text-align:center}
.mct-share-empty{display:flex;flex-direction:column;align-items:center;gap:7px}.mct-share-empty>.dashicons{width:25px;height:25px;font-size:25px;color:#94a3b8}
.mct-share-item{display:flex;align-items:flex-start;gap:9px;padding:11px 10px;border-bottom:1px solid #eef2f7;border-radius:5px;color:#334155;text-decoration:none}.mct-share-item:hover{background:#f8fafc;color:#334155}.mct-share-item.is-unseen{background:#fff7f8}.mct-share-item.is-seen{opacity:.82}
.mct-share-item__icon{flex:0 0 auto;width:20px;height:20px;font-size:20px;line-height:20px;color:#64748b;margin-top:2px}.mct-share-item__body{min-width:0;display:flex;flex:1;flex-direction:column;gap:3px}.mct-share-item__meta{display:flex;align-items:center;gap:6px}.mct-share-item__meta em{font-style:normal;padding:2px 6px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:8px;font-weight:800}.mct-share-item__meta time{margin-left:auto;color:#94a3b8;font-size:9px}
.mct-share-item__body>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1e3a5f;font-size:11px}.mct-share-item__body>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:9px}
@media (max-width:820px){.mct-notification-panel,.mct-share-panel{top:calc(var(--mct-header-height) - 1px);right:7px;width:calc(100vw - 14px)}}

/* メモクラウド Theme 1.1.3: backup completion label */


/* メモクラウド App Theme 1.1.4: labeled header shortcuts and mobile two-row header */
.mct-header-actions{gap:3px;}
.mct-header-shortcut,
.mct-notification-toggle.mct-header-shortcut,
.mct-share-toggle.mct-header-shortcut,
.mct-account-link.mct-header-shortcut{
    display:inline-flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    width:54px;
    min-width:54px;
    height:48px;
    padding:3px 2px;
    border:0;
    border-radius:7px;
    background:transparent;
    color:#475569;
    text-decoration:none;
    cursor:pointer;
    position:relative;
}
.mct-header-shortcut:hover,
.mct-header-shortcut:focus-visible{background:#f1f5f9;color:#1d4ed8;}
.mct-header-shortcut__icon{position:relative;display:flex;align-items:center;justify-content:center;width:22px;height:22px;}
.mct-header-shortcut__icon>.dashicons{width:20px;height:20px;font-size:20px;line-height:20px;}
.mct-header-shortcut__label{display:block;max-width:100%;overflow:hidden;color:inherit;font-size:8.5px;font-weight:650;line-height:1.1;white-space:nowrap;text-overflow:ellipsis;}
.mct-menu-toggle{flex-direction:column;gap:5px;width:46px;height:48px;}
.mct-menu-toggle::after{content:'メニュー';display:block;font-size:8.5px;font-weight:650;line-height:1;color:#475569;}
.mct-menu-toggle:hover::after{color:#1d4ed8;}
.mct-notification-panel,.mct-share-panel{right:18px;}
.mct-site-main,.mct-app-main,.mct-app-page,.mct-app-page #primary{min-width:0;max-width:100%;}

@media(max-width:820px){
    :root{--mct-header-height:104px;}
    .mct-site-header{height:var(--mct-header-height);min-height:var(--mct-header-height);}
    .mct-header-inner{
        height:var(--mct-header-height)!important;
        min-height:var(--mct-header-height)!important;
        display:grid;
        grid-template-columns:minmax(0,1fr);
        grid-template-rows:45px 51px;
        align-items:center;
        gap:0;
        padding:4px 7px;
        overflow:hidden;
    }
    .mct-branding{grid-row:1;min-width:0;padding-left:3px;}
    .mct-custom-logo-link img,.custom-logo-link img{max-width:min(176px,58vw);max-height:30px;}
    .mct-header-actions{
        grid-row:2;
        width:100%;
        min-width:0;
        display:flex;
        align-items:center;
        justify-content:flex-end;
        gap:1px;
        margin:0;
    }
    .mct-header-actions.is-member{
        display:grid;
        grid-template-columns:repeat(7,minmax(0,1fr));
        justify-content:stretch;
    }
    .mct-header-shortcut,
    .mct-notification-toggle.mct-header-shortcut,
    .mct-share-toggle.mct-header-shortcut,
    .mct-account-link.mct-header-shortcut,
    .mct-menu-toggle{
        width:100%;
        min-width:0;
        height:47px;
        padding:2px 1px;
    }
    .mct-header-shortcut__icon>.dashicons{width:19px;height:19px;font-size:19px;line-height:19px;}
    .mct-header-shortcut__label,.mct-menu-toggle::after{font-size:7.5px;}
    .mct-notification-panel,.mct-share-panel{top:calc(var(--mct-header-height) - 1px);right:7px;width:calc(100vw - 14px);max-width:calc(100vw - 14px);}
    .mct-drawer{top:0;}
    .mct-app-page{grid-template-rows:var(--mct-header-height) minmax(640px,1fr) auto;}
    .mct-app-main{width:100%;max-width:100%;min-width:0;overflow-x:hidden;}
}

@media(max-width:390px){
    .mct-header-shortcut__label,.mct-menu-toggle::after{font-size:7px;letter-spacing:-.02em;}
    .mct-header-shortcut__icon>.dashicons{width:18px;height:18px;font-size:18px;line-height:18px;}
}

/* メモクラウド App Theme 1.1.7: mobile tap stability */
@media(max-width:820px){
    .mct-site-main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
    .mct-site-main select,
    .mct-site-main textarea{font-size:16px;}
    .mct-site-main button,
    .mct-site-main a,
    .mct-site-main input,
    .mct-site-main select,
    .mct-site-main textarea,
    .mct-site-header button,
    .mct-site-header a{touch-action:manipulation;}
}

/* メモクラウド App Theme 1.1.10: PC pinned note tabs */
.mct-note-tabs[hidden]{display:none!important;}
.mct-note-tabs{
    position:relative;
    z-index:2;
    display:flex;
    flex:1 1 0;
    min-width:0;
    align-self:flex-end;
    align-items:flex-end;
    gap:3px;
    height:43px;
    margin-bottom:-9px;
    overflow-x:auto;
    overflow-y:hidden;
    padding:8px 2px 0;
    scrollbar-width:thin;
    scrollbar-color:#cbd5e1 transparent;
}
.mct-note-tabs::-webkit-scrollbar{height:4px;}
.mct-note-tabs::-webkit-scrollbar-track{background:transparent;}
.mct-note-tabs::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px;}
.mct-note-tab{
    position:relative;
    display:flex;
    flex:0 0 125px;
    align-items:center;
    width:125px;
    min-width:125px;
    max-width:125px;
    height:35px;
    border:1px solid #d8dee7;
    border-bottom-color:#cbd5e1;
    border-radius:7px 7px 0 0;
    background:#f8fafc;
    color:#64748b;
    cursor:grab;
    user-select:none;
}
.mct-note-tab:hover{background:#f1f5f9;color:#334155;}
.mct-note-tab:active,.mct-note-tab.is-dragging{cursor:grabbing;}
.mct-note-tab.is-dragging{opacity:.5;}
.mct-note-tab.is-active{z-index:3;border-color:#aeb9c8;border-bottom-color:#fff;background:#fff;color:#1e3a5f;}
.mct-note-tab.is-drop-before::before,.mct-note-tab.is-drop-after::after{content:'';position:absolute;top:5px;bottom:5px;width:2px;background:#2563eb;z-index:5;}
.mct-note-tab.is-drop-before::before{left:-3px;}
.mct-note-tab.is-drop-after::after{right:-3px;}
.mct-note-tab__open{
    display:flex;
    flex:1 1 auto;
    min-width:0;
    align-items:center;
    height:100%;
    padding:0 5px 0 9px;
    border:0;
    background:transparent;
    color:inherit;
    cursor:inherit;
    text-align:left;
}
.mct-note-tab__open span{display:block;width:8em;min-width:0;max-width:8em;overflow:hidden;text-overflow:clip;white-space:nowrap;font-size:10.5px;font-weight:650;line-height:1.2;-webkit-mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 1.35em),transparent 100%);mask-image:linear-gradient(to right,#000 0,#000 calc(100% - 1.35em),transparent 100%);}
.mct-note-tab.is-active .mct-note-tab__open span{font-weight:750;}
.mct-note-tab__close{
    display:flex;
    flex:0 0 25px;
    align-items:center;
    justify-content:center;
    width:25px;
    height:25px;
    margin-right:3px;
    padding:0;
    border:0;
    border-radius:5px;
    background:transparent;
    color:#94a3b8;
    font-size:15px;
    line-height:1;
    cursor:pointer;
}
.mct-note-tab__close:hover,.mct-note-tab__close:focus-visible{background:#e2e8f0;color:#334155;}
.mct-note-tab__open:focus-visible,.mct-note-tab__close:focus-visible{outline:2px solid #2563eb;outline-offset:-1px;}
@media(max-width:820px){.mct-note-tabs{display:none!important;}}

/* MemoCloud mobile header: notification + account + menu only */
@media(max-width:820px){
    body.mct-app-page{--mct-header-height:58px;}
    body.mct-app-page .mct-site-header{
        height:var(--mct-header-height);
        min-height:var(--mct-header-height);
    }
    body.mct-app-page .mct-header-inner{
        height:var(--mct-header-height)!important;
        min-height:var(--mct-header-height)!important;
        display:flex;
        grid-template-columns:none;
        grid-template-rows:none;
        align-items:center;
        justify-content:flex-start;
        gap:4px;
        padding:4px 7px;
        overflow:hidden;
    }
    body.mct-app-page .mct-branding{
        grid-row:auto;
        flex:0 1 auto;
        min-width:0;
        padding-left:3px;
    }
    body.mct-app-page .mct-custom-logo-link img,
    body.mct-app-page .custom-logo-link img{
        max-width:min(145px,43vw);
        max-height:30px;
    }
    body.mct-app-page .mct-header-actions,
    body.mct-app-page .mct-header-actions.is-member{
        grid-row:auto;
        width:auto;
        min-width:0;
        display:flex;
        flex:0 0 auto;
        align-items:center;
        justify-content:flex-end;
        gap:2px;
        margin:0 0 0 auto;
    }
    body.mct-app-page .mct-header-actions.is-member .mct-header-shortcut{
        display:none!important;
    }
    body.mct-app-page .mct-header-actions.is-member .mct-notification-toggle.mct-header-shortcut,
    body.mct-app-page .mct-header-actions.is-member .mct-account-link.mct-header-shortcut{
        display:inline-flex!important;
        width:44px;
        min-width:44px;
        height:48px;
        padding:2px 1px;
    }
    body.mct-app-page .mct-header-actions.is-member .mct-menu-toggle{
        width:44px;
        min-width:44px;
        height:48px;
        padding:2px 1px;
    }
    body.mct-app-page .mct-header-shortcut__label,
    body.mct-app-page .mct-menu-toggle::after{
        font-size:7.5px;
        letter-spacing:0;
    }
}