/*
Theme Name: Unleash Media Blog
Author: Unleash26
Description: App SEO media theme for readable guides, topic hubs, language routing, and store CTAs.
Version: 2.0.0
Text Domain: media-blog
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');

:root {
    --mb-bg: #f7f7f4;
    --mb-surface: #ffffff;
    --mb-surface-soft: #fbfbf8;
    --mb-text: #171717;
    --mb-muted: #62615d;
    --mb-faint: #8d8b85;
    --mb-border: #e3e1da;
    --mb-border-strong: #ccc8bd;
    --mb-accent: #0b6b5f;
    --mb-accent-2: #b05524;
    --mb-link: #075e9a;
    --mb-max: 1180px;
    --mb-article: 760px;
    --mb-sidebar: 300px;
    --mb-radius: 8px;
    --mb-radius-sm: 4px;
    --mb-font: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
    --mb-serif: Georgia, "Times New Roman", "Yu Mincho", serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--mb-bg);
    color: var(--mb-text);
    font-family: var(--mb-font);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--mb-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

img {
    display: block;
    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;
}

.mb-container {
    width: min(var(--mb-max), calc(100% - 40px));
    margin: 0 auto;
    min-width: 0;
}

.mb-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--mb-border);
    backdrop-filter: blur(14px);
}

.mb-header-inner {
    width: min(var(--mb-max), calc(100% - 40px));
    min-height: 68px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto auto;
    gap: 22px;
    align-items: center;
}

.mb-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 11px;
    color: var(--mb-text);
}

.mb-brand:hover {
    text-decoration: none;
}

.mb-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--mb-border-strong);
    border-radius: var(--mb-radius-sm);
    background: var(--mb-text);
    color: #fff;
    font-weight: 800;
    line-height: 1;
}

.mb-brand strong {
    display: block;
    color: var(--mb-text);
    font-size: .98rem;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.2;
}

.mb-brand small {
    display: block;
    margin-top: 2px;
    color: var(--mb-muted);
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.2;
}

.mb-header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
}

.mb-header-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    color: var(--mb-muted);
    border-radius: var(--mb-radius-sm);
    font-size: .83rem;
    font-weight: 700;
}

.mb-header-nav a:hover {
    color: var(--mb-text);
    background: #f0efea;
    text-decoration: none;
}

.mb-header-actions {
    display: flex;
    justify-content: flex-end;
}

.mb-lang-switch {
    display: inline-flex;
    padding: 2px;
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius-sm);
    background: var(--mb-surface-soft);
}

.mb-lang-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    border-radius: 3px;
    color: var(--mb-muted);
    font-size: .76rem;
    font-weight: 800;
}

.mb-lang-switch a:hover,
.mb-lang-switch a.is-active {
    color: #fff;
    background: var(--mb-text);
    text-decoration: none;
}

.mb-site-main {
    min-height: 62vh;
}

.mb-archive-hero {
    border-bottom: 1px solid var(--mb-border);
    background: var(--mb-surface);
}

.mb-archive-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 44px;
    align-items: end;
    padding: 46px 0 34px;
    min-width: 0;
}

.mb-kicker {
    margin: 0 0 10px;
    color: var(--mb-accent-2);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mb-hero-copy h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.mb-hero-copy p:last-child {
    max-width: 710px;
    margin: 18px 0 0;
    color: var(--mb-muted);
    font-size: 1.02rem;
}

.mb-hero-panel,
.mb-side-box,
.mb-app-cta {
    background: var(--mb-surface);
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius);
}

.mb-hero-panel {
    padding: 18px;
}

.mb-panel-label,
.mb-side-title,
.mb-app-cta-kicker {
    color: var(--mb-faint);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mb-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 10px;
}

.mb-search input {
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius-sm);
    background: #fff;
    color: var(--mb-text);
    font: inherit;
}

.mb-search input:focus {
    outline: 2px solid rgba(11, 107, 95, .18);
    border-color: var(--mb-accent);
}

.mb-search button,
.mb-primary-link,
.mb-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--mb-text);
    border-radius: var(--mb-radius-sm);
    background: var(--mb-text);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.mb-search button:hover,
.mb-primary-link:hover {
    background: #31302d;
    text-decoration: none;
}

.mb-secondary-link {
    background: transparent;
    color: var(--mb-text);
    border-color: var(--mb-border-strong);
}

.mb-secondary-link:hover {
    background: var(--mb-surface);
    text-decoration: none;
}

.mb-topic-nav {
    display: flex;
    gap: 0;
    max-width: 100%;
    overflow-x: auto;
    margin: 24px 0 28px;
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius);
    background: var(--mb-surface);
}

.mb-topic-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 16px;
    color: var(--mb-muted);
    border-right: 1px solid var(--mb-border);
    font-size: .86rem;
    font-weight: 800;
    white-space: nowrap;
}

.mb-topic-nav-link:last-child {
    border-right: 0;
}

.mb-topic-nav-link small {
    display: inline-flex;
    min-width: 22px;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 999px;
    background: #efeee9;
    color: var(--mb-faint);
    font-size: .68rem;
    line-height: 1.6;
}

.mb-topic-nav-link:hover,
.mb-topic-nav-link.is-active {
    color: var(--mb-text);
    background: #f3f2ed;
    text-decoration: none;
}

.mb-archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--mb-sidebar);
    gap: 34px;
    align-items: start;
    padding: 0 0 72px;
    min-width: 0;
}

.mb-article-list {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.mb-post-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--mb-surface);
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius);
    overflow: hidden;
    min-width: 0;
}

.mb-post-card--featured {
    border-color: var(--mb-border-strong);
}

.mb-post-card-thumb {
    display: block;
    height: 190px;
    overflow: hidden;
    background: var(--mb-surface-soft);
}

.mb-post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mb-post-card-body {
    padding: 20px 22px;
    min-width: 0;
}

.mb-post-card--featured .mb-post-card-body {
    padding: 26px 28px;
}

.mb-post-card-top,
.mb-post-card-meta,
.mb-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--mb-faint);
    font-size: .78rem;
    font-weight: 700;
}

.mb-topic-chip,
.mb-post-topic {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid rgba(11, 107, 95, .22);
    border-radius: var(--mb-radius-sm);
    background: #f0f7f4;
    color: var(--mb-accent);
    font-size: .72rem;
    font-weight: 800;
}

.mb-topic-chip:hover,
.mb-post-topic:hover {
    background: #e5f1ed;
    text-decoration: none;
}

.mb-post-card-title {
    margin: 12px 0 0;
    font-size: 1.22rem;
    line-height: 1.38;
    letter-spacing: -.018em;
    overflow-wrap: anywhere;
}

.mb-post-card--featured .mb-post-card-title {
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.26;
}

.mb-post-card-title a {
    color: var(--mb-text);
}

.mb-post-card-title a:hover {
    color: var(--mb-link);
}

.mb-post-card-excerpt {
    margin: 10px 0 0;
    color: var(--mb-muted);
    font-size: .92rem;
    overflow-wrap: anywhere;
}

.mb-post-card-meta {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid var(--mb-border);
    justify-content: space-between;
}

.mb-post-card-arrow {
    color: var(--mb-accent);
}

.mb-archive-sidebar,
.mb-single-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 14px;
}

.mb-side-box {
    padding: 16px;
}

.mb-side-links {
    display: grid;
    margin-top: 12px;
    border-top: 1px solid var(--mb-border);
}

.mb-side-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 8px 0;
    color: var(--mb-text);
    border-bottom: 1px solid var(--mb-border);
    font-size: .9rem;
    font-weight: 700;
    min-width: 0;
    overflow-wrap: anywhere;
}

.mb-side-links a:hover,
.mb-side-links a.is-current {
    color: var(--mb-accent);
    text-decoration: none;
}

.mb-side-links small {
    color: var(--mb-faint);
}

.mb-app-cta {
    padding: 18px;
}

.mb-app-cta-title {
    margin: 6px 0 6px;
    color: var(--mb-text);
    font-size: 1.05rem;
    line-height: 1.35;
}

.mb-app-cta-desc {
    margin: 0;
    color: var(--mb-muted);
    font-size: .88rem;
}

.mb-app-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mb-store-btn,
.mb-store-btn-inline {
    display: inline-flex;
    line-height: 0;
    border-radius: 6px;
    overflow: hidden;
}

.mb-store-btn:hover,
.mb-store-btn-inline:hover {
    opacity: .86;
    text-decoration: none;
}

.mb-store-btn--compact svg {
    width: 124px;
    height: auto;
}

.mb-breadcrumb {
    width: min(var(--mb-max), calc(100% - 40px));
    margin: 0 auto;
    padding: 16px 0 0;
    color: var(--mb-faint);
    font-size: .78rem;
}

.mb-breadcrumb a {
    color: var(--mb-muted);
}

.mb-breadcrumb span {
    margin-left: 7px;
}

.mb-single-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--mb-article)) var(--mb-sidebar);
    gap: 44px;
    align-items: start;
    padding: 34px 0 80px;
    min-width: 0;
}

.mb-single-article {
    min-width: 0;
}

.mb-post-header {
    padding-bottom: 26px;
    border-bottom: 1px solid var(--mb-border);
}

.mb-post-header h1 {
    margin: 14px 0 14px;
    font-size: clamp(1.9rem, 5vw, 3.05rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.mb-post-content {
    margin-top: 34px;
    color: #242424;
    font-size: 1.04rem;
    line-height: 1.95;
    min-width: 0;
    overflow-wrap: anywhere;
}

.mb-post-content > *:first-child {
    margin-top: 0;
}

.mb-post-content p {
    margin: 0 0 1.35em;
    overflow-wrap: anywhere;
}

.mb-post-content h2 {
    position: relative;
    margin: 2.45em 0 .85em;
    padding: 11px 0 11px 17px;
    border-top: 1px solid var(--mb-border);
    border-bottom: 1px solid var(--mb-border);
    font-size: 1.5rem;
    line-height: 1.35;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}

.mb-post-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 2px;
    background: var(--mb-accent);
}

.mb-post-content h3 {
    margin: 2em 0 .75em;
    padding-left: 12px;
    border-left: 3px solid var(--mb-border-strong);
    font-size: 1.2rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.mb-post-content ul,
.mb-post-content ol {
    margin: 0 0 1.45em 1.35em;
    padding: 0;
}

.mb-post-content li {
    margin: .32em 0;
}

.mb-post-content blockquote {
    margin: 1.6em 0;
    padding: 14px 18px;
    border-left: 4px solid var(--mb-accent);
    background: var(--mb-surface-soft);
    color: var(--mb-muted);
}

.mb-post-content table {
    width: 100%;
    margin: 1.6em 0;
    border-collapse: collapse;
    font-size: .92rem;
    background: var(--mb-surface);
    display: block;
    overflow-x: auto;
}

.mb-post-content th,
.mb-post-content td {
    padding: 11px 12px;
    border: 1px solid var(--mb-border);
    text-align: left;
}

.mb-post-content th {
    background: var(--mb-surface-soft);
    font-weight: 800;
}

.mb-post-content code {
    padding: 2px 5px;
    border-radius: 3px;
    background: #efeee9;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
}

.mb-post-content pre {
    overflow-x: auto;
    padding: 18px;
    border-radius: var(--mb-radius);
    background: #20201e;
    color: #f5f2ea;
}

.mb-post-content pre code {
    padding: 0;
    background: transparent;
}

.mb-post-content img {
    margin: 1.8em 0;
    border-radius: var(--mb-radius);
}

.mb-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--mb-border);
}

.mb-post-tags a {
    padding: 4px 9px;
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius-sm);
    background: var(--mb-surface-soft);
    color: var(--mb-muted);
    font-size: .78rem;
    font-weight: 700;
}

.mb-post-tags a:hover {
    color: var(--mb-accent);
    text-decoration: none;
}

.mb-toc ol {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--mb-border);
}

.mb-toc li {
    border-bottom: 1px solid var(--mb-border);
}

.mb-toc li.is-child a {
    padding-left: 16px;
    color: var(--mb-muted);
    font-size: .82rem;
}

.mb-toc a {
    display: block;
    padding: 8px 0;
    color: var(--mb-text);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.45;
}

.mb-toc a:hover {
    color: var(--mb-accent);
    text-decoration: none;
}

.mb-app-cta--inline {
    margin: 34px 0;
}

.mb-app-cta--inline .mb-app-cta-btns {
    justify-content: flex-start;
}

.mb-store-btn-inline {
    margin: 4px 6px 4px 0;
    vertical-align: middle;
}

.mb-related {
    grid-column: 1 / -1;
    margin-top: 30px;
    padding-top: 34px;
    border-top: 1px solid var(--mb-border);
}

.mb-section-heading h2 {
    margin: 0 0 18px;
    font-size: 1.45rem;
}

.mb-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mb-post-card--compact .mb-post-card-body {
    padding: 16px;
}

.mb-post-card--compact .mb-post-card-title {
    font-size: 1rem;
}

.mb-post-card--compact .mb-post-card-excerpt {
    display: none;
}

.mb-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin-top: 28px;
}

.mb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius-sm);
    background: var(--mb-surface);
    color: var(--mb-muted);
    font-weight: 800;
}

.mb-pagination .page-numbers.current,
.mb-pagination .page-numbers:hover {
    background: var(--mb-text);
    color: #fff;
    text-decoration: none;
}

.mb-empty,
.mb-error-page {
    padding: 64px 0;
}

.mb-empty {
    border: 1px solid var(--mb-border);
    border-radius: var(--mb-radius);
    background: var(--mb-surface);
    text-align: center;
}

.mb-empty h2,
.mb-error-page h1 {
    margin: 0 0 10px;
}

.mb-error-page {
    max-width: 720px;
}

.mb-error-page h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.1;
}

.mb-error-page p {
    color: var(--mb-muted);
}

.mb-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.mb-site-footer {
    border-top: 1px solid var(--mb-border);
    background: #efeee9;
}

.mb-footer-inner {
    width: min(var(--mb-max), calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 28px;
}

.mb-footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
    gap: 34px;
    align-items: start;
}

.mb-footer-brand {
    color: var(--mb-text);
    font-weight: 900;
}

.mb-footer-main p {
    max-width: 520px;
    margin: 8px 0 0;
    color: var(--mb-muted);
    font-size: .9rem;
}

.mb-footer-topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
}

.mb-footer-topics a {
    color: var(--mb-muted);
    font-size: .88rem;
    font-weight: 700;
}

.mb-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--mb-border-strong);
    color: var(--mb-faint);
    font-size: .82rem;
}

.mb-footer-bottom span:last-child {
    display: flex;
    gap: 14px;
}

@media (max-width: 980px) {
    .mb-header-inner {
        grid-template-columns: 1fr auto;
    }

    .mb-header-nav {
        grid-column: 1 / -1;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .mb-site-header {
        position: static;
    }

    .mb-archive-hero-inner,
    .mb-archive-layout,
    .mb-single-layout,
    .mb-footer-main {
        grid-template-columns: 1fr;
    }

    .mb-archive-sidebar,
    .mb-single-sidebar {
        position: static;
    }

    .mb-single-sidebar {
        order: 2;
    }

    .mb-single-article {
        order: 1;
    }

    .mb-related {
        order: 3;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .mb-container,
    .mb-header-inner,
    .mb-footer-inner,
    .mb-breadcrumb {
        width: min(100% - 28px, var(--mb-max));
    }

    .mb-header-inner {
        min-height: 62px;
        gap: 12px;
    }

    .mb-brand small {
        display: none;
    }

    .mb-header-nav a {
        padding: 0 9px;
        font-size: .8rem;
    }

    .mb-archive-hero-inner {
        padding: 32px 0 24px;
        gap: 22px;
    }

    .mb-hero-copy h1 {
        font-size: clamp(1.75rem, 9vw, 2.6rem);
    }

    .mb-topic-nav {
        margin: 18px 0 20px;
    }

    .mb-topic-nav-link {
        min-height: 42px;
        padding: 0 12px;
        font-size: .8rem;
    }

    .mb-post-card-body,
    .mb-post-card--featured .mb-post-card-body {
        padding: 18px;
    }

    .mb-post-card-title,
    .mb-post-card--featured .mb-post-card-title {
        font-size: 1.12rem;
        line-height: 1.42;
    }

    .mb-post-card-excerpt {
        font-size: .88rem;
    }

    .mb-single-layout {
        padding-top: 24px;
        gap: 26px;
    }

    .mb-post-header h1 {
        font-size: clamp(1.55rem, 8.5vw, 2.2rem);
    }

    .mb-post-content {
        font-size: 1rem;
        line-height: 1.86;
    }

    .mb-post-content h2 {
        font-size: 1.28rem;
        margin-top: 2.1em;
    }

    .mb-related-grid,
    .mb-footer-topics {
        grid-template-columns: 1fr;
    }

    .mb-search {
        grid-template-columns: 1fr;
    }

    .mb-search button {
        width: 100%;
    }
}

/* Nyukin media concept: invoice paper, verified check, calm small-business library. */
.mb-is-nyukin {
    --mb-bg: #f6f1e6;
    --mb-surface: #fffdf7;
    --mb-surface-soft: #fbf7ec;
    --mb-text: #14362f;
    --mb-muted: #625b4d;
    --mb-faint: #9a8f7b;
    --mb-border: #ded5c4;
    --mb-border-strong: #c9b99c;
    --mb-accent: #2f7a56;
    --mb-accent-2: #b36d2d;
    --mb-link: #23624d;
    background:
        radial-gradient(circle at 88% 8%, rgba(183, 207, 171, .32), transparent 23rem),
        radial-gradient(circle at 7% 28%, rgba(226, 196, 136, .16), transparent 20rem),
        var(--mb-bg);
}

.mb-is-nyukin .mb-site-header {
    background: rgba(255, 253, 247, .9);
    border-bottom-color: rgba(112, 91, 57, .18);
    box-shadow: 0 10px 28px rgba(58, 45, 24, .06);
}

.mb-is-nyukin .mb-header-inner {
    min-height: 78px;
    grid-template-columns: minmax(300px, 1fr) auto auto;
    gap: 28px;
}

.mb-is-nyukin .mb-brand--nyukin {
    width: 320px;
    max-width: 100%;
    gap: 0;
}

.mb-is-nyukin .mb-brand--nyukin img {
    width: 100%;
    height: auto;
}

.mb-is-nyukin .mb-header-nav {
    gap: 8px;
}

.mb-is-nyukin .mb-header-nav a {
    min-height: 38px;
    padding: 0 13px;
    color: #51483a;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .82rem;
}

.mb-is-nyukin .mb-header-nav a:hover {
    color: var(--mb-accent);
    background: #eef5ed;
    border-color: #c7d8c4;
}

.mb-header-tool-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #2b684d;
    border-radius: 999px;
    background: #2f7a56;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(47, 122, 86, .18);
}

.mb-header-tool-link:hover {
    background: #245f43;
    text-decoration: none;
}

.mb-is-nyukin .mb-archive-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 253, 247, .97), rgba(250, 246, 235, .96)),
        var(--mb-surface);
    border-bottom-color: rgba(112, 91, 57, .16);
}

.mb-is-nyukin .mb-archive-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(20, 54, 47, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 54, 47, .022) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 78%);
}

.mb-is-nyukin .mb-archive-hero-inner {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.04fr) minmax(340px, .72fr);
    align-items: center;
    gap: 54px;
    padding: 60px 0 28px;
}

.mb-is-nyukin .mb-kicker {
    color: #a35f24;
    font-size: .78rem;
    letter-spacing: .11em;
}

.mb-is-nyukin .mb-hero-copy h1 {
    max-width: 880px;
    color: #12352e;
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    font-size: clamp(2.15rem, 3.7vw, 3.85rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.08;
    text-wrap: balance;
    overflow-wrap: normal;
}

.mb-nyukin-home-title span {
    display: block;
    white-space: nowrap;
}

.mb-nyukin-home-title span:last-child {
    margin-top: .18em;
    color: #2f6f50;
    font-size: .58em;
    font-weight: 700;
}

.mb-is-nyukin .mb-hero-copy p:last-child {
    max-width: 720px;
    margin-top: 22px;
    color: #51483a;
    font-size: 1.02rem;
    line-height: 2;
}

.mb-nyukin-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.mb-nyukin-proof-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d8cdb8;
    border-radius: 999px;
    background: rgba(255, 253, 247, .72);
    color: #51483a;
    font-size: .82rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(58, 45, 24, .05);
}

.mb-nyukin-proof-row span::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--mb-accent);
}

.mb-nyukin-hero-art {
    position: relative;
    align-self: stretch;
    min-height: 330px;
}

.mb-nyukin-hero-art img {
    position: absolute;
    right: -54px;
    top: 50%;
    width: min(560px, 116%);
    max-width: none;
    transform: translateY(-50%);
    filter: drop-shadow(0 24px 35px rgba(58, 45, 24, .13));
}

.mb-nyukin-search-band {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(280px, 520px);
    align-items: center;
    gap: 18px;
    max-width: 900px;
    margin: 2px auto 34px;
    padding: 14px 16px 14px 18px;
    border: 1px solid rgba(201, 185, 156, .72);
    border-radius: 18px;
    background: rgba(255, 253, 247, .86);
    box-shadow: 0 16px 40px rgba(58, 45, 24, .08);
    backdrop-filter: blur(10px);
}

.mb-is-nyukin .mb-nyukin-search-band .mb-search {
    margin-top: 0;
}

.mb-is-nyukin .mb-search input {
    border-color: #d4c8b2;
    border-radius: 12px;
    background: #fffef9;
}

.mb-is-nyukin .mb-search button,
.mb-is-nyukin .mb-primary-link {
    border-color: #2b684d;
    border-radius: 12px;
    background: #2f7a56;
    box-shadow: 0 8px 18px rgba(47, 122, 86, .16);
}

.mb-is-nyukin .mb-search button:hover,
.mb-is-nyukin .mb-primary-link:hover {
    background: #245f43;
}

.mb-is-nyukin .mb-topic-nav {
    margin: 28px 0 28px;
    border-color: rgba(201, 185, 156, .72);
    border-radius: 18px;
    background: rgba(255, 253, 247, .86);
    box-shadow: 0 12px 28px rgba(58, 45, 24, .055);
}

.mb-is-nyukin .mb-topic-nav-link {
    min-height: 52px;
    color: #554b3c;
    border-right-color: rgba(201, 185, 156, .62);
}

.mb-is-nyukin .mb-topic-nav-link small {
    background: #edf4ea;
    color: #56765f;
}

.mb-is-nyukin .mb-topic-nav-link:hover,
.mb-is-nyukin .mb-topic-nav-link.is-active {
    color: #14362f;
    background: #edf4ea;
}

.mb-is-nyukin .mb-post-card,
.mb-is-nyukin .mb-side-box,
.mb-is-nyukin .mb-app-cta,
.mb-is-nyukin .mb-hero-panel,
.mb-is-nyukin .mb-single-article {
    border-color: rgba(201, 185, 156, .8);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 254, 249, .98), rgba(252, 248, 239, .98));
    box-shadow: 0 12px 32px rgba(58, 45, 24, .06);
}

.mb-is-nyukin .mb-post-card {
    position: relative;
}

.mb-is-nyukin .mb-post-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: #2f7a56;
    opacity: .72;
}

.mb-is-nyukin .mb-post-card-body {
    padding-left: 26px;
}

.mb-is-nyukin .mb-post-card--featured .mb-post-card-body {
    padding-left: 32px;
}

.mb-is-nyukin .mb-topic-chip,
.mb-is-nyukin .mb-post-topic {
    min-height: 26px;
    border-color: #bfd4be;
    border-radius: 999px;
    background: #eef6ed;
    color: #23624d;
}

.mb-is-nyukin .mb-post-card-title {
    letter-spacing: 0;
}

.mb-is-nyukin .mb-post-card-title a:hover {
    color: #2f7a56;
}

.mb-is-nyukin .mb-post-card-meta {
    border-top-color: rgba(201, 185, 156, .7);
}

.mb-is-nyukin .mb-post-card-arrow {
    color: #2f7a56;
    font-weight: 800;
}

.mb-is-nyukin .mb-side-title,
.mb-is-nyukin .mb-panel-label,
.mb-is-nyukin .mb-app-cta-kicker {
    color: #9b6a38;
}

.mb-is-nyukin .mb-side-links {
    border-top-color: rgba(201, 185, 156, .72);
}

.mb-is-nyukin .mb-side-links a {
    border-bottom-color: rgba(201, 185, 156, .72);
}

@media (max-width: 980px) {
    .mb-is-nyukin .mb-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px;
    }

    .mb-is-nyukin .mb-header-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        padding-bottom: 12px;
    }

    .mb-is-nyukin .mb-header-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .mb-is-nyukin .mb-archive-hero-inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .mb-nyukin-hero-art {
        min-height: 230px;
    }

    .mb-nyukin-hero-art img {
        position: relative;
        right: auto;
        top: auto;
        width: min(100%, 560px);
        transform: none;
        margin: -10px auto 0;
    }
}

@media (max-width: 680px) {
    .mb-is-nyukin .mb-site-header {
        position: sticky;
    }

    .mb-is-nyukin .mb-header-inner {
        min-height: 66px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .mb-is-nyukin .mb-header-actions {
        align-self: center;
        grid-column: 2;
        grid-row: 1;
    }

    .mb-is-nyukin .mb-brand--nyukin {
        grid-column: 1;
        grid-row: 1;
        width: min(232px, 100%);
    }

    .mb-header-tool-link {
        min-height: 36px;
        padding: 0 12px;
        font-size: .76rem;
    }

    .mb-is-nyukin .mb-header-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 6px;
        padding-bottom: 10px;
    }

    .mb-is-nyukin .mb-header-nav a {
        min-height: 34px;
        padding: 0 10px;
        font-size: .76rem;
    }

    .mb-is-nyukin .mb-archive-hero-inner {
        padding: 36px 0 16px;
        width: calc(100% - 28px);
        max-width: var(--mb-max);
    }

    .mb-is-nyukin .mb-hero-copy,
    .mb-nyukin-hero-art {
        min-width: 0;
        width: 100%;
    }

    .mb-nyukin-home-title {
        max-width: 100%;
    }

    .mb-is-nyukin .mb-hero-copy h1 {
        font-size: clamp(1.82rem, 7.4vw, 2.12rem);
        line-height: 1.08;
    }

    .mb-nyukin-home-title span {
        white-space: nowrap;
    }

    .mb-nyukin-home-title span:last-child {
        font-size: .58em;
    }

    .mb-is-nyukin .mb-hero-copy p:last-child {
        margin-top: 16px;
        font-size: .96rem;
        line-height: 1.88;
    }

    .mb-nyukin-proof-row {
        margin-top: 18px;
        gap: 8px;
    }

    .mb-nyukin-proof-row span {
        min-height: 30px;
        font-size: .76rem;
    }

    .mb-nyukin-hero-art {
        min-height: 172px;
        overflow: hidden;
    }

    .mb-nyukin-hero-art img {
        width: 100%;
        margin-left: 0;
    }

    .mb-nyukin-search-band {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 24px;
        padding: 14px;
        border-radius: 16px;
    }

    .mb-is-nyukin .mb-topic-nav {
        border-radius: 16px;
    }

    .mb-is-nyukin .mb-post-card,
    .mb-is-nyukin .mb-side-box,
    .mb-is-nyukin .mb-app-cta,
    .mb-is-nyukin .mb-single-article {
        border-radius: 16px;
    }
}
