/*
 * JECA design layer: header, breadcrumbs, local menu and footer of https://www.jeca.or.jp/.
 * Values follow the original design.css (files/design/46/css/design.css) and pc.css.
 * Images and fonts are served from the saved original assets (/files/, /css/font/).
 */
@font-face {
    font-family: "JECA TsukuGo";
    /* Original file with xAvgCharWidth corrected; see fonts/README.md. */
    src: url("fonts/BIZUDGothic-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "JECA FontAwesome";
    src: url("/css/font/font-awesome-4.2.0/fonts/fontawesome-webfont.woff2") format("woff2"),
         url("/css/font/font-awesome-4.2.0/fonts/fontawesome-webfont.woff") format("woff");
    font-weight: 400;
    font-display: block;
}

.jeca-cms-site {
    --jeca-text: #444;
    --jeca-link: #0b5394;
    --jeca-link-hover: #3d85c6;
    --jeca-blue: #154793;
    --jeca-footer-blue: rgba(26, 89, 185, .8);
    --jeca-sprite: url("/files/design/46/sprite.png?20260330194340");
    --jeca-heading-font: "JECA TsukuGo", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
    --jeca-body-font: Meiryo, "Hiragino Kaku Gothic Pro", "Yu Gothic", sans-serif;
    --_global--font-family: var(--jeca-body-font);
    --wp--preset--color--sm-accent: var(--jeca-blue);
    color: var(--jeca-text);
    font-family: var(--jeca-body-font);
    background: #fff;
}

.jeca-icon { display: inline-block; font: normal normal normal 1em/1 "JECA FontAwesome"; font-style: normal; text-rendering: auto; -webkit-font-smoothing: antialiased; }
.jeca-icon--play-circle::before { content: "\f144"; }
.jeca-icon--chevron-circle-right::before { content: "\f138"; }
.jeca-icon--search::before { content: "\f002"; }
.jeca-icon--home::before { content: "\f015"; }
.jeca-icon--caret-right::before { content: "\f0da"; }

.jeca-cms-site .l-header, .jeca-cms-site .l-contents, .jeca-cms-site .l-footer { letter-spacing: normal; }

/* Long labels scroll on hover/focus (design.js), like the original marquee. */
.jeca-marquee { display: inline-block; max-width: 100%; overflow: hidden; vertical-align: top; white-space: nowrap; }
.jeca-marquee__track { display: inline-block; width: max-content; white-space: nowrap; transform: translateX(0); }
.jeca-marquee.is-overflow.is-playing > .jeca-marquee__track { animation: jeca-marquee var(--jeca-marquee-duration) linear .3s infinite; }
@keyframes jeca-marquee { to { transform: translateX(calc(-1 * var(--jeca-marquee-travel))); } }
@media (prefers-reduced-motion: reduce) { .jeca-marquee.is-playing > .jeca-marquee__track { animation: none; } }

/* ---------- Header ---------- */
.jeca-topbar { display: none; }

@media (min-width: 1024px) {
    .jeca-cms-site .l-header {
        background: #fff url("/files/libs/3172/header_bg.jpg?1610073559") no-repeat 49.999% top / 2000px 140px;
        box-shadow: none;
    }
    .jeca-cms-site .l-header__content { background: none; }
    .jeca-cms-site .l-header__content::before { content: none; }
    .jeca-cms-site .l-1row-header { padding: 0; }
    .jeca-cms-site .l-1row-header > .c-container {
        position: relative;
        max-width: 1020px;
        height: 140px;
        padding: 0;
    }
    .jeca-cms-site .l-1row-header > .c-container > .c-row {
        position: absolute;
        top: 40px;
        left: 0;
        right: 0;
        height: 100px;
        margin: 0;
        align-items: flex-start;
        justify-content: space-between;
    }
    .jeca-cms-site .l-1row-header > .c-container > .c-row > .c-row__col { padding: 0; margin: 0; }
    /* The theme's 0.6em padding put the logo at a fractional y (75.59px), which blurs the bitmap;
       without it the logo sits at 66px, the original's position. */
    .jeca-cms-site .l-1row-header__branding { padding: 0; }
    .jeca-cms-site .l-1row-header .c-site-branding { max-width: none; margin-top: 26px; }
    .jeca-cms-site .l-1row-header .c-site-branding img { width: 316px; height: 50px; }

    .jeca-topbar {
        display: block;
        position: absolute;
        inset: 0 0 auto;
        height: 40px;
        font-family: var(--jeca-body-font);
    }
    .jeca-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; position: absolute; }
    .jeca-topbar a { display: flex; align-items: center; color: #fff; text-decoration: none; white-space: nowrap; }
    .jeca-topbar a:hover, .jeca-topbar a:focus-visible { color: #8baad9; text-decoration: underline; }
    .jeca-topbar .jeca-icon { margin-right: 5px; }
    .jeca-topbar__links { top: 7px; left: 24px; }
    .jeca-topbar__links a { font-size: 16px; line-height: 16px; padding: 4px 8px; }
    .jeca-topbar__languages { top: 10px; left: 656px; }
    .jeca-topbar__languages a { font-size: 12px; line-height: 18px; padding: 3px 5px; }
    .jeca-topbar__search { position: absolute; top: 5px; left: 808px; display: flex; }
    .jeca-topbar__search input {
        width: 217px;
        height: 29px;
        margin: 0;
        padding: 1px 28px 1px 5px;
        border: 0;
        border-radius: 0;
        background: #fff;
        color: #6c8fc6;
        font: 12px Arial, sans-serif;
        box-shadow: none;
    }
    .jeca-topbar__search input::placeholder { color: rgba(108, 143, 198, .5); }
    .jeca-topbar__search button {
        position: absolute;
        top: 0;
        right: 0;
        width: 28px;
        height: 29px;
        padding: 0;
        border: 0;
        background: none;
        color: #6c8fc6;
        font-size: 16px;
        cursor: pointer;
    }

    /* Main menu: original 110×100 images; drop-down rows from the original sprite. */
    .jeca-cms-site .l-header .p-global-nav { background: transparent; }
    .jeca-cms-site .p-global-nav .c-navbar { gap: 0; }
    .jeca-cms-site .p-global-nav .c-navbar__submenu {
        min-width: 0;
        width: 204px;
        padding: 0;
        background: none;
        box-shadow: none;
        transform: none;
        /* Open at once like the original: Snow Monkey waits 0.3s, then fades in over 0.2s, which read as missing items. */
        transition: none;
    }
    .jeca-cms-site .p-global-nav > .c-navbar > .c-navbar__item > .c-navbar__submenu { left: 0; right: auto; top: 100px; }
    .jeca-cms-site .p-global-nav > .c-navbar > .c-navbar__item:last-child > .c-navbar__submenu,
    .jeca-cms-site .p-global-nav > .c-navbar > .c-navbar__item:nth-last-child(2) > .c-navbar__submenu { left: auto; right: 0; }
    .jeca-cms-site .p-global-nav .c-navbar__subitem { position: relative; margin: 0; }
    .jeca-cms-site .p-global-nav .c-navbar__subitem > a {
        display: block;
        width: 204px;
        height: 46px;
        padding: 0 10px 0 15px;
        overflow: hidden;
        background: var(--jeca-sprite) no-repeat 0 -201px;
        color: #444;
        font-family: var(--jeca-heading-font);
        font-size: 15.12px;
        line-height: 46px;
        text-align: left;
        white-space: nowrap;
        text-overflow: ellipsis;
        text-decoration: none;
    }
    .jeca-cms-site .p-global-nav .c-navbar__subitem > a:hover,
    .jeca-cms-site .p-global-nav .c-navbar__subitem > a:focus-visible,
    .jeca-cms-site .p-global-nav .c-navbar__subitem[data-submenu-visibility="visible"] > a {
        background-position: 0 -247px;
        color: #444;
    }
    .jeca-cms-site .p-global-nav .c-navbar__submenu .c-navbar__submenu { top: 0; left: 204px; right: auto; }
    .jeca-cms-site .p-global-nav .c-navbar__submenu--turn-left .c-navbar__submenu,
    .jeca-cms-site .p-global-nav .c-navbar__submenu.c-navbar__submenu--turn-left { left: auto; right: 204px; }
    .jeca-cms-site .p-global-nav > .c-navbar > .c-navbar__item > .c-navbar__submenu.c-navbar__submenu--turn-left { right: 0; }
    .jeca-cms-site .p-global-nav .c-navbar__subitem > a::after,
    .jeca-cms-site .p-global-nav .c-navbar__toggle { display: none; }
}

/* ---------- Contents frame ---------- */
@media (min-width: 1024px) {
    .jeca-cms-site .l-contents__body > .l-contents__container {
        max-width: 1020px;
        padding: 50px 0 80px;
        margin-inline: auto;
    }
    .jeca-cms-site .l-contents__inner { margin: 0; padding: 0; gap: 30px; }
    .jeca-cms-site .l-contents__inner:first-child { padding-top: 0; }
    .jeca-cms-site .l-contents__inner:last-child { padding-bottom: 0; }
    .jeca-cms-site.l-body--one-column .l-contents__main { width: 870px; max-width: 870px; margin-inline: auto; flex: none; }
    .jeca-cms-site.l-body--right-sidebar .l-contents__inner { flex-wrap: nowrap; padding-left: 30px; }
    .jeca-cms-site.l-body--right-sidebar .l-contents__main { width: 700px; max-width: 700px; flex: 0 0 700px; }
    .jeca-cms-site.l-body--right-sidebar .l-contents__sidebar { width: 230px; max-width: 230px; flex: 0 0 230px; }
}
.jeca-cms-site .l-contents__sidebar > .l-sidebar-widget-area:empty { display: none; }
.jeca-cms-site .p-section-front-page-content { padding: 0; margin: 0; }
.jeca-cms-site .p-section-front-page-content > .c-container { padding: 0; max-width: none; }
.jeca-cms-site .c-entry__content > #page-content { margin: 0; }

/* On imported pages the page header is replaced by the original page title (when the original had one). */
.jeca-imported-page .c-entry__header {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.jeca-cms-site .c-entry__body { margin-top: 0; }

.jeca-page-title {
    margin: 0 0 20px;
    padding: 0;
    height: 100px;
    overflow: hidden;
    background: url("/files/libs/3178/p_title.png?1610073563") no-repeat left top / 700px 100px;
    color: #444;
    font-family: var(--jeca-heading-font);
    font-size: 36.12px;
    font-weight: 400;
    line-height: 100px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.l-body--one-column .jeca-page-title { background-image: url("/files/libs/3177/p_title1.png?1610073562"); background-size: 870px 100px; }

.jeca-breadcrumbs { margin: 0; padding: 0 0 15px; font-size: 12.32px; line-height: 18.48px; color: #444; }
.jeca-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.jeca-breadcrumbs li { margin: 0; }
.jeca-breadcrumbs li + li::before { content: " ＞ "; white-space: pre; color: #444; }
.jeca-breadcrumbs a { color: var(--jeca-link); text-decoration: underline; }
.jeca-breadcrumbs a:hover { color: var(--jeca-link-hover); }
.jeca-breadcrumbs .jeca-icon { font-size: 14.41px; vertical-align: -1px; }

/* ---------- Local menu (right sidebar) ---------- */
.jeca-local-nav { width: 230px; max-width: 100%; font-family: var(--jeca-heading-font); }
.jeca-local-nav ul { list-style: none; margin: 0; padding: 0; }
.jeca-local-nav li { position: relative; margin: 0; }
.jeca-local-nav__top {
    height: 68px;
    overflow: hidden;
    background: var(--jeca-sprite) no-repeat 0 -793px;
    color: #fff;
    font-size: 18.06px;
    line-height: 68px;
    text-align: center;
    white-space: nowrap;
}
.jeca-local-nav__bottom { height: 20px; background: var(--jeca-sprite) no-repeat 0 -505px; }
.jeca-local-nav li > a,
.jeca-local-nav li > .jeca-local-nav__label {
    display: block;
    height: 50px;
    overflow: hidden;
    background: var(--jeca-sprite) no-repeat 0 -525px;
    color: #444;
    font-size: 15.12px;
    line-height: 50px;
    text-decoration: none;
    white-space: nowrap;
}
.jeca-local-nav li > a > span,
.jeca-local-nav li > .jeca-local-nav__label > span { display: inline-block; margin: 0 10px 0 20px; }
.jeca-local-nav li > a:hover,
.jeca-local-nav li > a:focus-visible { background-position: 0 -575px; color: #444; }
.jeca-local-nav li li > a,
.jeca-local-nav li li > .jeca-local-nav__label { background-position: 0 -625px; }
.jeca-local-nav li li > a > span { margin-left: 15px; }
.jeca-local-nav li li > a:hover,
.jeca-local-nav li li > a:focus-visible { background-position: 0 -675px; }
/* Closed branches open beside the menu, as in the original. */
.jeca-local-nav .has-children:not(.is-open) > ul {
    position: absolute;
    top: 0;
    right: 230px;
    z-index: 20;
    width: 230px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s;
}
.jeca-local-nav .has-children:not(.is-open):hover > ul,
.jeca-local-nav .has-children:not(.is-open):focus-within > ul { visibility: visible; opacity: 1; }
@media not all and (min-width: 1024px) {
    .jeca-local-nav { width: auto; }
    .jeca-local-nav .has-children:not(.is-open) > ul { display: none; }
    .jeca-local-nav li > a, .jeca-local-nav li > .jeca-local-nav__label, .jeca-local-nav__top, .jeca-local-nav__bottom { background-size: 100% auto; }
    .jeca-local-nav__top { background: var(--jeca-blue); }
    .jeca-local-nav li > a, .jeca-local-nav li > .jeca-local-nav__label { background: #fff; border-bottom: 1px solid #ddd; }
    .jeca-local-nav li li > a { background: #d5e4f0; }
    .jeca-local-nav__bottom { display: none; }
}

/* ---------- Search results: link rows instead of image cards ---------- */
.jeca-cms-site.search .c-entry__header .c-entry__title { margin: 0 0 20px; color: #444; font-family: var(--jeca-heading-font); font-size: 20.02px; font-weight: 400; }
.jeca-cms-site.search .c-entries { display: block; margin: 0; padding: 0; list-style: none; }
.jeca-cms-site.search .c-entries__item { width: auto; max-width: none; margin: 0; padding: 0; border-bottom: 1px dotted rgba(68, 68, 68, .5); }
.jeca-cms-site.search .c-entries__item > a { display: flex; align-items: baseline; padding: 16px 0 16px 5px; color: var(--jeca-link); text-decoration: none; }
.jeca-cms-site.search .c-entries__item > a::before { content: "\f144"; flex: none; width: 27px; color: rgba(68, 68, 68, .5); font: 20px/1 "JECA FontAwesome"; }
.jeca-cms-site.search .c-entries__item > a:hover { color: var(--jeca-link-hover); text-decoration: underline; }
.jeca-cms-site.search .c-entry-summary__figure { display: none; }
.jeca-cms-site.search .c-entry-summary, .jeca-cms-site.search .c-entry-summary__body { display: block; padding: 0; margin: 0; }
.jeca-cms-site.search .c-entry-summary__title { margin: 0; color: inherit; font-size: 14px; font-weight: 400; line-height: 1.5; }

/* ---------- Footer ---------- */
.jeca-cms-site .l-footer { background: none; color: #fff; font-family: var(--jeca-body-font); }
.jeca-cms-site .l-footer-widget-area { background: var(--jeca-footer-blue); padding: 40px 0 0; }
.jeca-cms-site .l-footer-widget-area > .c-container { max-width: 1020px; }
.jeca-cms-site .l-footer-widget-area .c-row { margin: 0; }
.jeca-cms-site .l-footer-widget-area .c-row__col { padding: 0; margin: 0; }
.jeca-footer-banners { max-width: 960px; margin-inline: auto; gap: 0 !important; justify-content: center; }
.jeca-footer-banners > .wp-block-image { margin: 0 20px 20px 0 !important; line-height: 0; }
.jeca-footer-banners img { display: block; max-width: 100%; height: auto !important; }
/* Footer banners as icon + text tiles (no triangle, site font), the whole tile is the link. */
.jeca-footer-banners > .jeca-footer-banner {
    position: relative; box-sizing: border-box; width: 276px; height: 80px; margin: 0 20px 20px 0 !important; padding: 0 14px;
    display: flex; flex-wrap: nowrap; align-items: center; gap: 14px;
    background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); color: #333; transition: background-color .2s;
}
.jeca-footer-banners > .jeca-footer-banner:hover,
.jeca-footer-banners > .jeca-footer-banner:focus-within { background: #eaf1fc; }
.jeca-footer-banner .jeca-footer-banner__icon { flex: 0 0 52px; margin: 0; line-height: 0; }
.jeca-footer-banner .jeca-footer-banner__icon img { width: 52px; height: auto !important; }
.jeca-footer-banner--video .jeca-footer-banner__icon { flex-basis: 116px; }
.jeca-footer-banner--video .jeca-footer-banner__icon img { width: 116px; }
.jeca-footer-banner--logo .jeca-footer-banner__icon { flex-basis: 150px; }
.jeca-footer-banner--logo .jeca-footer-banner__icon img { width: 150px; }
.jeca-footer-banner > * { margin-inline: 0 !important; }
.jeca-footer-banner__text { position: static !important; flex: 1 1 auto; min-width: 0; margin: 0; }
.jeca-footer-banner__text > p { position: static !important; }
.jeca-footer-banner__text > p { margin: 0; line-height: 1.3; }
.jeca-footer-banner__pre { color: #555; font-size: 11px; }
/* Bold system gothic, like the original banner images (BIZ UDゴシック has no bold face here). */
.jeca-footer-banner__title { font-family: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif; font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.jeca-footer-banner__title a { color: #333; text-decoration: none; }
.jeca-footer-banner__title a::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.jeca-footer-banner__title a:focus-visible { outline: none; }
.jeca-footer-banner__title a:focus-visible::after { outline: 2px solid #1f57a8; outline-offset: 2px; }
.jeca-footer-banner__sub { margin-top: 4px !important; color: #1f57a8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 11px; letter-spacing: .02em; }
.jeca-footer-banner--video .jeca-footer-banner__title { font-size: 15px; }
.jeca-footer-banner--logo .jeca-footer-banner__title { height: 0; font-size: 0; line-height: 0; }
/* Label images (label-images.php). */
.jeca-footer-banners .jeca-label-image { display: block; max-width: none; }

.jeca-cms-site .p-footer-sub-nav {
    background: var(--jeca-footer-blue) url("/files/libs/3183/f_menu_bg.png?1610073566") repeat-y 49.999% top / 2000px 100px;
    padding: 20px 0;
    font-size: 12.32px;
    line-height: 18.48px;
}
.jeca-cms-site .p-footer-sub-nav .c-navbar { justify-content: center; flex-wrap: wrap; gap: 0; }
.jeca-cms-site .p-footer-sub-nav .c-navbar__item { margin: 0; }
.jeca-cms-site .p-footer-sub-nav .c-navbar__item::before { content: "|"; }
.jeca-cms-site .p-footer-sub-nav .c-navbar__item:last-child::after { content: "|"; }
.jeca-cms-site .p-footer-sub-nav a { display: inline; padding: 0 5px; color: #fff; text-decoration: none; }
.jeca-cms-site .p-footer-sub-nav a:hover { text-decoration: underline; }

.jeca-footer-info { background: #fff; color: #444; font-size: 12px; line-height: 18px; }
.jeca-footer-info > .c-container { max-width: 1020px; padding-block: 35px 30px; }
.jeca-footer-info .c-widget + .c-widget { margin-top: 0; }
.jeca-footer-info .wp-block-columns { margin: 0; gap: 20px; align-items: flex-start; }
.jeca-footer-info p { margin: 4px 0 0; }
.jeca-footer-info .jeca-footer-logo { margin: 0 0 6px; line-height: 0; }
.jeca-footer-info .jeca-footer-logo img { max-width: 100%; height: auto !important; }
.jeca-footer-info .jeca-footer-links-qr { gap: 10px; margin-top: 19px; justify-content: flex-end; }
.jeca-footer-info .jeca-footer-links { list-style: none; margin: 0; padding: 0; }
.jeca-footer-info .jeca-footer-links li { margin: 0; padding: 3px 5px; white-space: nowrap; }
.jeca-footer-info .jeca-footer-links li::before { content: "\f0da"; font-family: "JECA FontAwesome"; margin-right: 5px; }
.jeca-footer-info a { color: #444; text-decoration: none; }
.jeca-footer-info a:hover { color: #5ca0fb; text-decoration: underline; }
.jeca-footer-info .jeca-footer-qr { margin: 0; line-height: 0; }

/* Back-to-top button from the original sprite. */
.jeca-cms-site .c-page-top { width: 60px; height: 60px; background: var(--jeca-sprite) no-repeat 0 -293px; }
.jeca-cms-site .c-page-top a { display: block; width: 60px; height: 60px; color: transparent; }
.jeca-cms-site .c-page-top a > * { opacity: 0; }

@media not all and (min-width: 1024px) {
    .jeca-footer-banners > .wp-block-image { margin: 0 6px 12px !important; max-width: calc(50% - 12px); }
    /* Two columns at the desktop sizes; from 700px each banner is at least 300px wide. */
    .jeca-footer-banners > .jeca-footer-banner { width: calc(50% - 12px); margin: 0 6px 12px !important; gap: 20px; }
    .jeca-footer-info .wp-block-columns { flex-wrap: wrap; }
    .jeca-footer-info .jeca-footer-links-qr { justify-content: flex-start; margin-top: 0; }
}
/* One column on phones: two would leave about 95px beside the icon, too narrow for the label images, which do not wrap. */
@media not all and (min-width: 700px) {
    .jeca-footer-banners > .jeca-footer-banner { width: 100%; max-width: 420px; margin: 0 0 12px !important; }
}
