body.wp-theme-micata2 {
    --mei-navy: #142945;
    --mei-blue: #145498;
    --mei-border: #d7e1ec;
    --mei-paper: #f2f6fa;
    --mei-text: #24364b;
}
body.wp-theme-micata2 #headbox-bg { background: #fff; border-top: 4px solid var(--mei-blue); }
body.wp-theme-micata2 #headbox { padding-block: 16px; }
body.wp-theme-micata2 header .sitename a { color: var(--mei-navy); font-weight: 700; }
body.wp-theme-micata2 header .descr { color: #4a5d73; }
body.wp-theme-micata2 #st-headerbox { display: none; }
body.wp-theme-micata2 #st-menubox,
body.wp-theme-micata2 header #st-menuwide {
    background: var(--mei-navy);
    border-color: #40536d;
}
body.wp-theme-micata2 header #st-menuwide .menu li { border-color: #40536d; }
body.wp-theme-micata2 header #st-menuwide .sub-menu a {
    background: var(--mei-navy);
    border-color: #40536d;
}
body.wp-theme-micata2 #st-menuwide nav { background: transparent; }
body.wp-theme-micata2 #st-menuwide nav a { color: #fff; }
body.wp-theme-micata2 #st-menuwide nav .current-menu-item > a,
body.wp-theme-micata2 #st-menuwide nav a:hover,
body.wp-theme-micata2 #st-menuwide nav .menu-item-62 > a { background: #354e6d; }
body.wp-theme-micata2 #s-navi dl.acordion,
body.wp-theme-micata2 #s-navi dt.trigger .op { background: var(--mei-navy); color: #fff; }
body.wp-theme-micata2 #page-top a { background: var(--mei-blue); color: #fff; }
body.wp-theme-micata2 #content-w { background: var(--mei-paper); }
body.wp-theme-micata2 #content main { color: var(--mei-text); }
body.page.wp-theme-micata2 #content main { background: transparent; }
body.wp-theme-micata2 .post .sns,
body.wp-theme-micata2 .post .blogbox { display: none; }
body.wp-theme-micata2 #wrapper-in {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}
body.wp-theme-micata2 #wrapper-in > #content-w {
    flex: 1 0 auto;
    display: flow-root;
}
body.wp-theme-micata2 #wrapper-in > footer {
    width: 100%;
    background: var(--mei-navy);
    color: #fff;
}
body.wp-theme-micata2 #footer { background: transparent; top: auto !important; }
body.wp-theme-micata2 #footer a,
body.wp-theme-micata2 #footer .copyr { color: #fff; }

.post .mei-hero {
    padding: clamp(24px, 6vw, 72px);
    background: linear-gradient(120deg, #142945, #145498);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
}
.post .mei-label { font-size: 13px; letter-spacing: .15em; font-weight: 700; margin: 0 0 8px; }
.post .mei-hero h1 {
    color: inherit;
    font-size: clamp(25px, 5vw, 48px);
    line-height: 1.35;
    margin: 0 0 18px;
    padding: 0;
    background: none;
    border: 0;
}
.post .mei-hero p { line-height: 1.8; }
.mei-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.post .mei-actions a {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 4px;
    color: var(--mei-navy);
    font-weight: 700;
    padding: 10px 16px;
    text-decoration: none;
}
.post .mei-actions a + a { background: transparent; color: #fff; }
.post .mei-services { margin-bottom: 40px; color: var(--mei-navy); }
.post .mei-services h2, .post h2.mei-company {
    color: var(--mei-navy);
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--mei-border);
    padding: 0 0 10px;
    margin: 0 0 18px;
    font-size: 25px;
}
.post .mei-services ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.post .mei-services li { list-style: none; margin: 0; padding: 0; }
.post .mei-services li a {
    display: block;
    box-sizing: border-box;
    height: 100%;
    padding: 18px 14px;
    border: 1px solid var(--mei-border);
    border-top: 3px solid var(--mei-blue);
    border-radius: 5px;
    background: var(--mei-paper);
    color: var(--mei-navy);
    text-decoration: none;
}
.post .mei-services li a > span { display: block; margin-top: 6px; font-size: 13px; color: var(--mei-blue); }
.post .mei-services li a:hover { background: #e5eef8; }
.post .mei-actions a:focus-visible,
.post .mei-services a:focus-visible { outline: 3px solid #eaa941; outline-offset: 3px; }
@media (max-width: 700px) {
    .post .mei-services ul { grid-template-columns: 1fr; }
    .mei-desktop { display: none; }
}

/* The theme script adds fixed-footer even when the CSS layout fills the screen. */
body.wp-theme-micata2.fixed-footer #wrapper { height: auto; }
