/* ===== M-NET Theme ===== */
:root {
    --color-primary: #691418;
    --color-primary-hover: #521012;
    --color-primary-light: #fde8e8;
    --color-accent: #691418;
    --color-text: #1e293b;
    --color-muted: #64748b;
    --color-bg: #eaeaea;
    --color-card: #ffffff;
    --color-border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.04);
    --shadow-lg: 0 4px 24px rgba(0,0,0,.08);
    --radius: 10px;
    --radius-sm: 6px;
    --font: 'Inter','Noto Sans JP',-apple-system,sans-serif;
    --font-condensed-nums: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
    /* レイアウト: 主流のコンテナ幅・ブレークポイント */
    --container-max: min(1200px, 100%);
    --container-pad: clamp(16px, 4vw, 24px);
    --header-h: 64px;
    --bp-lg: 1024px;
    --bp-md: 768px;
    --bp-sm: 480px;
    --z-header: 100;
    --z-overlay: 900;
    --z-nav-drawer: 910;
    --z-nav-toggle: 920;
    --z-back-to-top: 950;
    --lp-eyebrow-text-size: clamp(0.8125rem, 2vw, 0.9375rem);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    -moz-font-feature-settings: "palt";
    -webkit-font-feature-settings: "palt";
    font-feature-settings: "palt";
    letter-spacing: 0.05em;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    min-width: 0;
    padding-top: var(--header-h);
}
a { color: var(--color-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-primary); }

/* LP ボタン（会員プラグイン無効時もテーマ単体で表示） */
.mnet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    font-size: .9rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
    line-height: 1.4;
    font-family: var(--font);
}
a.mnet-btn,
a.mnet-btn:hover {
    text-decoration: none;
}
.mnet-btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
a.mnet-btn-primary,
a.mnet-btn-primary:hover {
    color: #fff;
}
.mnet-btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(105, 20, 24, .28);
}
.mnet-btn-secondary {
    background: var(--color-card);
    color: var(--color-text);
    border-color: var(--color-border);
}
a.mnet-btn-secondary,
a.mnet-btn-secondary:hover {
    color: var(--color-text);
}
.mnet-btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
a.mnet-btn-secondary:hover {
    color: var(--color-primary);
}
.mnet-btn-lg {
    padding: 13px 28px;
    font-size: 1rem;
}
.mnet-arrow {
    font-size: .75em;
}

img { max-width: 100%; height: auto; }
.custom-logo-link,
.site-brand .site-title,
.site-brand .site-logo-link,
.footer-logo {
    display: inline-flex;
    align-items: center;
    transition: opacity .2s ease;
    box-shadow: none;
}
.custom-logo-link:hover,
.custom-logo-link:focus,
.site-brand .site-title:hover,
.site-brand .site-title:focus,
.site-brand .site-logo-link:hover,
.site-brand .site-logo-link:focus,
.footer-logo:hover,
.footer-logo:focus {
    opacity: .7;
    box-shadow: none;
    outline: none;
}
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* == Header（全ページでスクロール時もビューポート上部に固定） == */
.site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    z-index: var(--z-header);
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
    transition: box-shadow 0.22s ease;
}
.site-header.is-scrolled {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}
body.admin-bar .site-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: clamp(8px, 2vw, 24px);
    min-width: 0;
    max-width: 100vw;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}
.site-brand .site-title { font-size: 1.9rem; font-weight: 800; color: var(--color-primary); letter-spacing: -.02em; }
.site-brand .site-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 0;
    transform: translateY(4px);
}
.site-brand .site-logo {
    display: block;
    width: auto;
    height: 36px;
    max-width: min(148px, 46vw);
}
.brand-tagline {
    align-self: center;
    font-size: .65rem;
    color: var(--color-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* == Nav == */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
}
.nav-list { display: flex; list-style: none; gap: 2px; margin: 0; padding: 0; }
.nav-list li a { display: block; padding: 7px 14px; font-size: .85rem; font-weight: 500; color: var(--color-muted); border-radius: var(--radius-sm); transition: background .2s, color .2s, box-shadow .2s; }
.nav-list li a:hover { color: var(--color-primary); background: rgba(105, 20, 24, 0.08); }
/* WordPress メニュー: 現在表示中の項目に .current-menu-item が付与される */
.nav-list li.current-menu-item > a,
.nav-list li.current-menu-ancestor > a {
    color: var(--color-primary);
    background: var(--color-primary-light);
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--color-primary);
}
.nav-list li.current-menu-item > a:hover,
.nav-list li.current-menu-ancestor > a:hover {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.nav-auth { display: flex; align-items: center; gap: 6px; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--color-border); }
.nav-auth-link { padding: 7px 16px; font-size: .85rem; font-weight: 600; border-radius: var(--radius-sm); transition: color .2s, background .2s, box-shadow .2s, transform .2s; max-width: 240px; margin: 0 auto; }
/* お問い合わせ・ニーズ登録・ログイン・ダッシュボード: 非アクティブは同じグレー */
.nav-auth-link.nav-contact,
.nav-auth-link.nav-needs,
.nav-auth-link.nav-login,
.nav-auth-link.nav-dash {
    color: var(--color-muted);
    background: transparent;
    font-weight: 600;
}
.nav-auth-link.nav-contact:hover,
.nav-auth-link.nav-needs:hover,
.nav-auth-link.nav-login:hover,
.nav-auth-link.nav-dash:hover {
    color: var(--color-primary);
    background: transparent;
    box-shadow: none;
    transform: none;
}
.nav-auth-link.nav-cta { background: var(--color-primary); color: #fff !important; }
.nav-auth-link.nav-cta:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,58,95,.25); }
.nav-auth-link.nav-logout { color: var(--color-muted); font-size: .8rem; }
/* アクティブ: 背景・シャドウなし、文字色のみプライマリ（会員登録ボタン .nav-cta は除外） */
.nav-auth-link.nav-auth-link--current:not(.nav-cta) {
    color: var(--color-primary);
    background: transparent !important;
    font-weight: 700;
    box-shadow: none !important;
    transform: none;
}
.nav-auth-link.nav-auth-link--current:not(.nav-cta):hover {
    color: var(--color-primary);
    background: transparent !important;
    box-shadow: none !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin: 0;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-sm);
}
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* モバイルメニュー背面（タップで閉じる） */
.nav-overlay {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    /* backdrop-filter 付き祖先内の fixed は bottom:0 がヘッダー高さに貼られるため明示高さ */
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: rgba(15, 23, 42, 0.45);
    z-index: var(--z-overlay);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
body.nav-open .nav-overlay {
    display: block;
}

/* == Hero == */
.hero {
    padding: 0;
    margin-bottom: clamp(12px, 2.2vw, 28px);
    text-align: center;
}
.hero-slideshow {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: clamp(420px, 62vh, 620px);
    border-radius: 0;
    overflow: hidden;
}
.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}
.hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.9s ease, transform 6s ease;
}
.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, .86) 0%, rgba(2, 6, 23, .72) 45%, rgba(2, 6, 23, .88) 100%);
}
.hero-content,
.lp-proof,
.hero-steps,
.lp-worry,
.lp-value,
.lp-cta-inner {
    width: min(100%, 980px);
    margin-left: auto;
    margin-right: auto;
}
.lp-worry-intro,
.lp-narrative-lead,
.lp-cta-lead {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 20px;
    color: var(--color-muted);
    font-size: var(--lp-eyebrow-text-size);
    text-wrap: pretty;
}
.lp-worry-intro {
    line-height: 1.85;
}
.lp-narrative-lead {
    line-height: 1.75;
}
.lp-cta-lead {
    line-height: 1.75;
}

/* == 見出し（LP・固定ページ・一覧共通） == */
.lp-heading {
    text-align: center;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lp-heading__eyebrow {
    display: inline-block;
    max-width: 100%;
    position: relative;
    z-index: 0;
    font-size: var(--lp-eyebrow-text-size);
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.5;
    color: #0f172a;
    background: #ffffff;
    border: 1.5px solid var(--color-primary);
    border-radius: 7px;
    padding: 9px 20px;
    margin: 0 0 24px;
    box-shadow:
        0 1px 0 rgba(2, 6, 23, 0.04),
        0 3px 14px rgba(2, 6, 23, 0.07);
    text-wrap: balance;
    /* 下部の吹き出し三角（枠色・塗りは修飾クラスで上書き可） */
    --lp-eyebrow-tail-border: var(--color-primary);
    --lp-eyebrow-tail-fill: #ffffff;
}
/* 枠の下：三角（縦に長め） */
.lp-heading__eyebrow::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 10px 0 10px;
    border-color: var(--lp-eyebrow-tail-border) transparent transparent transparent;
    z-index: 0;
    pointer-events: none;
}
.lp-heading__eyebrow::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 8px 0 8px;
    border-color: var(--lp-eyebrow-tail-fill) transparent transparent transparent;
    z-index: 1;
    pointer-events: none;
}
.lp-heading__title {
    font-size: clamp(1.42rem, 3.4vw, 2.05rem);
    font-weight: 900;
    line-height: 1.38;
    letter-spacing: 0.02em;
    color: var(--color-text);
    margin: 0;
    text-wrap: balance;
}
.lp-heading__title--sub {
    font-size: clamp(1.08rem, 2.35vw, 1.38rem);
    font-weight: 800;
    letter-spacing: 0.02em;
}
/* コールアウト見出し：お悩み2件＋メリット・流れ（同サイズ・斜め二重線） */
.lp-heading__title--worry-callout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.5vw, 26px);
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    font-size: clamp(1.2rem, 3.05vw, 1.58rem);
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.42;
    color: var(--color-text);
}
.lp-heading__callout-text {
    flex: 0 1 auto;
    text-align: center;
    min-width: 0;
    max-width: min(100%, 36rem);
}
/* コールアウト本文は改行しない（極狭幅のみ折り返し） */
@media (min-width: 480px) {
    .lp-heading__title--worry-callout .lp-heading__callout-text {
        white-space: nowrap;
    }
}
.lp-heading__callout-mark {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 2.5em;
    min-height: 3rem;
    color: var(--color-primary);
}
.lp-heading__callout-mark--left::before,
.lp-heading__callout-mark--left::after,
.lp-heading__callout-mark--right::before,
.lp-heading__callout-mark--right::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 58%;
    border-radius: 1px;
    background: currentColor;
}
.lp-heading__callout-mark--left::before {
    transform: translate(calc(-50% - 4px), -50%) rotate(-34deg);
}
.lp-heading__callout-mark--left::after {
    transform: translate(calc(-50% + 3px), -50%) rotate(-34deg);
}
.lp-heading__callout-mark--right::before {
    transform: translate(calc(-50% + 4px), -50%) rotate(34deg);
}
.lp-heading__callout-mark--right::after {
    transform: translate(calc(-50% - 3px), -50%) rotate(34deg);
}
.lp-heading--worry-primary {
    margin-bottom: 12px;
}
.lp-heading--worry-secondary {
    margin-top: clamp(24px, 3.8vw, 40px);
    margin-bottom: 10px;
}
.lp-heading--section {
    margin-bottom: 20px;
}
.lp-heading--cta {
    margin-bottom: 8px;
    max-width: 36rem;
    text-align: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}
.lp-heading__eyebrow--on-gold {
    color: #451a03;
    background: #fffbeb;
    border-color: #b45309;
    border-width: 1.5px;
    border-radius: 7px;
    box-shadow:
        0 1px 0 rgba(120, 53, 15, 0.06),
        0 3px 12px rgba(120, 53, 15, 0.1);
    --lp-eyebrow-tail-border: #b45309;
    --lp-eyebrow-tail-fill: #fffbeb;
}
.lp-heading__title--cta {
    color: #1c1917;
    font-size: clamp(1.28rem, 2.9vw, 1.9rem);
}
.lp-cta-lead {
    color: #57534e;
    margin: 0 auto 22px;
    text-align: center;
}
.lp-heading--surface {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    align-items: flex-start;
}
.lp-heading--surface-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
}
.lp-heading__eyebrow--surface {
    font-size: clamp(0.78rem, 1.6vw, 0.875rem);
    font-weight: 800;
    letter-spacing: 0.07em;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 8px 16px;
    margin-bottom: 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    --lp-eyebrow-tail-border: #cbd5e1;
    --lp-eyebrow-tail-fill: #f8fafc;
}
.lp-heading__eyebrow--surface::after {
    bottom: -10px;
    border-width: 11px 8px 0 8px;
}
.lp-heading__eyebrow--surface::before {
    bottom: -8px;
    border-width: 9px 6px 0 6px;
}
.lp-heading__title--surface {
    font-size: clamp(1.22rem, 2.6vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--color-text);
}
.lp-heading--surface-post .lp-heading__eyebrow,
.lp-heading--surface-post .lp-heading__title--surface {
    margin-top: 0;
}
.lp-heading--surface-post .lp-heading__eyebrow {
    margin-top: 8px;
}
@media (max-width: 380px) {
    :root {
        --lp-eyebrow-text-size: 0.78rem;
    }
    .lp-heading__eyebrow {
        padding: 8px 14px;
    }
}
.lp-concern-grid {
    display: grid;
    width: 100%;
    max-width: 100%;
    gap: 16px;
    margin: 0;
    padding-top: 8px;
    grid-template-columns: 1fr;
    align-items: stretch;
}
.lp-concern-card {
    --lp-concern-body-pad-y: clamp(12px, 1.6vw, 16px);
    --lp-concern-body-pad-x: 20px;
    --lp-concern-text-line-height: 1.5;
    --lp-concern-text-lines: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.lp-concern-card-media {
    --lp-concern-num-inset: clamp(10px, 2.2vw, 15px);
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
}
.lp-concern-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.35) 100%);
    pointer-events: none;
}
.lp-concern-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lp-concern-card-body {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: var(--lp-concern-body-pad-y) var(--lp-concern-body-pad-x);
    min-height: calc(
        (var(--lp-concern-body-pad-y) * 2) +
        (var(--lp-concern-text-line-height) * var(--lp-concern-text-lines) * 1em)
    );
    text-align: left;
}
.lp-concern-num {
    position: absolute;
    top: var(--lp-concern-num-inset);
    left: var(--lp-concern-num-inset);
    z-index: 2;
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    font-family: var(--font-condensed-nums);
    font-size: clamp(2rem, 4.2vw, 2.85rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: #fff;
    text-shadow:
        0 0 1px rgba(0, 0, 0, 0.85),
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 2px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    /* フォント上の余白分、見た目の上余白を左と揃える */
    transform: translateY(-0.1em);
}
.lp-concern-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: var(--lp-concern-text-line-height);
    letter-spacing: 0.03em;
    margin: 0;
    width: 100%;
    min-height: calc(var(--lp-concern-text-line-height) * var(--lp-concern-text-lines) * 1em);
}
.lp-concern-group {
    margin-top: clamp(28px, 4vw, 40px);
}
.lp-concern-group:first-of-type {
    margin-top: clamp(12px, 2vw, 20px);
}
.lp-concern-group-title {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 800;
    color: #671216;
    text-align: center;
    margin: 0 0 7px;
    letter-spacing: 0.02em;
    line-height: 1;
}
.lp-concern-card--maintenance .lp-concern-card-media::after {
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.55) 100%);
}
.lp-concern-card--inventory .lp-concern-card-body {
    border-top-color: var(--color-primary);
}
.lp-concern-card--inventory .lp-concern-num {
    color: #fff;
}
@media (min-width: 1025px) {
    .lp-concern-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .lp-concern-card {
        --lp-concern-body-pad-y: 14px;
        --lp-concern-body-pad-x: 14px;
    }
    .lp-concern-text {
        font-size: 0.82rem;
        letter-spacing: 0.025em;
    }
}
@media (max-width: 1024px) {
    .lp-concern-card-body {
        container-type: inline-size;
    }
    .lp-concern-text {
        /* スマホ・タブレット: 最長文（22字）を1行に収める */
        font-size: clamp(0.68rem, calc((100cqi - 2 * var(--lp-concern-body-pad-x)) / 23), 0.82rem);
        letter-spacing: 0.01em;
    }
}
.hero-heading-wrap {
    text-align: center;
    margin-bottom: 4px;
}
.hero-heading-wrap .hero-badge {
    margin-bottom: 18px;
}
.hero-badge {
    display: inline-block;
    background: #691418;
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.28);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: clamp(48px, 9vh, 96px) var(--container-pad) clamp(42px, 7vh, 72px);
    border-radius: 16px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.62);
}
.hero-heading-wrap .hero-title {
    margin-bottom: 0;
}
.hero-title { font-size: clamp(1.8rem,4.5vw,2.8rem); font-weight: 800; line-height: 1.35; letter-spacing: 0.03em; margin-bottom: 16px; }
/* ヘッダー・フッターの M-NET 表記（member.sapotas-mnet.com と同じクラス名） */
.hero-accent {
    color: var(--color-accent);
}
.site-brand .site-title .hero-accent,
.footer-logo .hero-accent {
    display: inline;
    border: none;
    padding: 0;
    margin: 0;
    text-shadow: none;
    background: none;
    line-height: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}
.site-brand .site-title .hero-accent {
    color: var(--color-primary);
}
.footer-logo .hero-accent {
    color: #ccc;
}
/* LP ヒーロー（暗いスライド上）の M-NET ボックス */
.hero-title .hero-accent {
    display: inline-block;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 5px;
    padding: 6px 22px;
    line-height: 1.2;
    margin: 30px 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero-title,
.hero-subtitle,
.hero-note {
    text-wrap: balance;
}
.hero-title {
    font-weight: 900;
}
.hero-subtitle {
    color: rgba(255, 255, 255, 0.96);
    font-weight: 500;
    font-size: var(--lp-eyebrow-text-size);
    line-height: 2;
    letter-spacing: 0.05em;
    text-align: center;
    max-width: min(62ch, 92vw);
    margin: 0 auto 28px;
    padding-inline: clamp(0px, 2vw, 10px);
}
.hero-note {
    color: rgba(255,255,255,.92);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.hero-actions .mnet-btn { min-width: min(100%, 280px); max-width: 100%; text-align: center; }
.hero .hero-actions .mnet-btn-secondary {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(255, 255, 255, .85);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
.hero .hero-actions .mnet-btn-secondary:hover {
    background: #fff;
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.hero-note { font-size: .8rem; color: rgba(255,255,255,.85); }
/* お悩みブロック内：導入の直後（ヒーロー直下ではなく文脈に沿った位置） */
.lp-worry .lp-proof {
    margin-top: 6px;
    margin-bottom: clamp(18px, 3vw, 28px);
}
.lp-proof-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}
.lp-proof-list li {
    container-type: inline-size;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px 16px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 132px;
    flex: 1 1 0;
    max-width: none;
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.12);
}
.lp-proof-list li img,
.lp-proof-list li .lp-proof-photo {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 0;
    flex: 0 0 88px;
    background: #fff;
}
.lp-concern-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lp-proof-list li span {
    text-align: left;
    font-size: var(--lp-eyebrow-text-size);
    line-height: 1.5;
    letter-spacing: 0.02em;
    font-weight: 700;
}
/* PCデスクトップ（3列）: 各項目が4行になるようフォント調整 */
@media (min-width: 1025px) {
    .lp-proof-list li {
        min-height: auto;
    }
    .lp-proof-list li span {
        font-size: clamp(0.76rem, calc((100cqi - 134px) / 13.8), 0.835rem);
    }
}

.hero-steps { margin-top: 0; }
.hero-steps > .lp-heading {
    margin-bottom: 20px;
}
.hero-steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-step {
    background: var(--color-card);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px 24px;
    text-align: left;
}
.hero-step-photo {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 14px;
}
.hero-step-label { display: inline-block; background: #000; color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 4px; letter-spacing: .06em; margin-bottom: 10px; }
.lp-step-heading {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 0 8px;
    padding-left: 0;
    border-left: none;
    letter-spacing: 0.02em;
    line-height: 1.35;
}
.hero-step p {
    font-size: var(--lp-eyebrow-text-size);
    color: var(--color-muted);
    margin: 0;
    line-height: 1.7;
    text-align: left;
}
.hero-steps-actions { display: flex; justify-content: center; gap: 16px; margin-top: 32px; }
.hero-steps-actions .mnet-btn { min-width: 220px; text-align: center; }
/* LP 各ブロックの縦リズム */
.lp-section {
    padding: clamp(44px, 5.5vw, 72px) 0 clamp(18px, 2.8vw, 32px);
}
.lp-value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 640px) {
    .lp-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.lp-value-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 22px 20px;
}
.lp-value-card--promise {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.lp-promise-body {
    padding: 18px 20px 20px;
    text-align: left;
}
.lp-promise-media {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 148px;
    background: var(--color-primary);
    overflow: hidden;
}
.lp-promise-media__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lp-promise-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(105, 20, 24, 0.12) 0%, rgba(105, 20, 24, 0.28) 100%);
    pointer-events: none;
}
.lp-promise-badge {
    margin: 0 0 8px;
    font-family: var(--font-condensed-nums);
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    color: #64748b;
}
.lp-value-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}
.lp-card-heading {
    display: block;
    font-size: clamp(0.95rem, 0.55vw + 0.78rem, 1.12rem);
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    line-height: 1.35;
}
.lp-value-card--promise .lp-card-heading {
    color: var(--color-primary);
    white-space: normal;
}
.lp-value-card p {
    font-size: var(--lp-eyebrow-text-size);
    color: var(--color-muted);
    line-height: 1.75;
    letter-spacing: 0.03em;
    text-align: left;
}
.lp-value-card--promise .lp-promise-body p {
    margin: 0;
    font-size: var(--lp-eyebrow-text-size);
    line-height: 1.58;
    letter-spacing: 0.03em;
    color: var(--color-text);
    text-align: left;
}
.lp-cta {
    padding-top: clamp(48px, 6.5vw, 84px);
    padding-bottom: clamp(20px, 3vw, 36px);
}
.lp-cta-inner {
    background: #fde68a;
    border: 1px solid rgba(180, 130, 30, 0.28);
    border-radius: var(--radius);
    padding: clamp(20px, 3.2vw, 36px);
    text-align: center;
    box-shadow: 0 10px 32px rgba(180, 120, 20, 0.14);
}
.lp-cta-inner .lp-heading__title--cta {
    text-align: center;
}
.lp-cta-inner .hero-actions {
    justify-content: center;
}
.lp-cta-inner .lp-heading__title {
    margin: 0;
}

/* == Main == */
.site-main { min-height: calc(100vh - 64px - 180px); padding-bottom: 48px; }
.content-layout { display: grid; grid-template-columns: 1fr 280px; gap: 36px; padding-top: 36px; }
.content-layout-narrow { grid-template-columns: 1fr; max-width: 780px; margin: 0 auto; }

/* == Post Grid == */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { background: var(--color-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-border); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-card-image { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--color-primary-light); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-badge { position: absolute; top: 10px; right: 10px; background: var(--color-primary); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 16px; }
.post-card-body { padding: 18px; }
.post-card-meta { display: flex; gap: 10px; font-size: .75rem; color: var(--color-muted); margin-bottom: 8px; }
.post-card-cat { background: var(--color-primary-light); color: var(--color-primary); padding: 1px 8px; border-radius: 10px; font-weight: 600; font-size: .7rem; }
.post-card-title {
    position: relative;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 6px;
    padding-left: 12px;
    letter-spacing: -0.02em;
}
.post-card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 3px;
    height: 1em;
    background: var(--color-primary);
    border-radius: 2px;
}
.post-card-title a { color: var(--color-text); }
.post-card-title a:hover { color: var(--color-accent); }
.post-card-excerpt { font-size: .85rem; color: var(--color-muted); margin-bottom: 14px; line-height: 1.6; }
.post-card-link { font-size: .85rem; font-weight: 600; color: var(--color-accent); }

/* == Single / Page == */
.single-post,.page-content { background: var(--color-card); border-radius: var(--radius); border: 1px solid var(--color-border); }
.post-hero-image { aspect-ratio: 21/9; overflow: hidden; }
.post-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.post-header { padding: 28px 28px 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--color-muted); margin-bottom: 10px; }
.post-title { margin: 0; }
.post-content,.entry-content { padding: 20px 28px 28px; }
.page-content { padding: 36px; }
.page-header { margin-bottom: 24px; }
.page-title { margin: 0; }

.entry-content h2 {
    font-size: 1.28rem;
    font-weight: 800;
    margin: 2em 0 0.75em;
    padding: 0.55em 0.65em 0.55em 14px;
    border: none;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: rgba(105, 20, 24, 0.06);
    color: var(--color-text);
    line-height: 1.4;
}
.entry-content h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin: 1.5em 0 0.45em;
    padding-left: 12px;
    border-left: 3px solid rgba(105, 20, 24, 0.35);
    color: var(--color-text);
    line-height: 1.45;
}
.entry-content p { margin-bottom: 1em; }
.entry-content ul,.entry-content ol { margin: 0 0 1em 1.4em; }
.entry-content .lp-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0 1.5em;
    font-size: 0.92rem;
}
.entry-content .lp-info-table th,
.entry-content .lp-info-table td {
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.entry-content .lp-info-table th {
    width: 28%;
    background: #f8fafc;
    font-weight: 700;
    color: var(--color-text);
}
.entry-content .lp-legal-note {
    font-size: 0.85rem;
    color: var(--color-muted);
}
.entry-content blockquote { border-left: 4px solid var(--color-accent); padding: 10px 18px; margin: 1.2em 0; background: var(--color-primary-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* == Sidebar == */
.content-sidebar .widget { background: var(--color-card); border-radius: var(--radius); padding: 20px; border: 1px solid var(--color-border); margin-bottom: 20px; }
.widget-title { font-size: .9rem; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--color-border); }
.widget ul { list-style: none; }
.widget ul li { padding: 5px 0; border-bottom: 1px solid var(--color-border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--color-muted); font-size: .85rem; }

/* == Pagination == */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 4px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); font-weight: 600; font-size: .85rem; color: var(--color-muted); background: var(--color-card); border: 1px solid var(--color-border); transition: all .2s; }
.pagination .page-numbers:hover,.pagination .page-numbers.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* == 404 == */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin: 0 0 16px;
    letter-spacing: -0.04em;
}
.error-404 .lp-heading {
    margin-bottom: 12px;
}
.error-404 p { color: var(--color-muted); margin-bottom: 28px; }

/* == Footer（member.sapotas-mnet.com に合わせた構成） == */
.site-footer {
    background: #000;
    color: #ccc;
    padding: 56px 0 0;
    border-top: 1px solid rgba(204, 204, 204, 0.28);
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(300px, 1.2fr) minmax(0, 1.8fr);
    gap: 48px;
    padding-bottom: 32px;
    align-items: start;
}
.footer-links {
    display: flex;
    align-items: center;
    justify-self: end;
    justify-content: flex-end;
}
.footer-logo {
    font-size: 1.58rem;
    font-weight: 800;
    color: #ccc !important;
    display: inline-block;
    margin-bottom: 16px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.footer-desc {
    font-size: .84rem;
    line-height: 1.95;
    color: #ccc;
    max-width: 44ch;
    margin: 0;
    white-space: normal;
}
.no-break { white-space: nowrap; }
.no-break-full { white-space: nowrap; }
.site-footer h4 {
    font-size: .72rem;
    font-weight: 700;
    color: #3d3d3d;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .18em;
}
.footer-nav,
.footer-widgets {
    padding-left: 0;
}
.footer-menu--primary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-menu li { margin-bottom: 0; }
.footer-menu a {
    color: #ccc;
    font-size: .8rem;
    letter-spacing: .02em;
    display: inline-block;
    padding: 1px 0;
    opacity: .82;
    transition: opacity .22s ease, color .22s ease;
}
.footer-menu a:hover {
    color: #ccc;
    opacity: 1;
}
.footer-widgets-row {
    padding: 24px 0 8px;
    border-top: 1px solid rgba(204, 204, 204, 0.24);
    margin-bottom: 8px;
}
.footer-bottom {
    border-top: 1px solid rgba(204, 204, 204, 0.24);
    padding: 20px 0 22px;
    text-align: center;
}
.footer-bottom p { font-size: .8rem; color: #ccc; margin: 0; }

/* == ページトップへ戻る == */
.back-to-top {
    --back-to-top-inset: clamp(16px, 3vw, 24px);
    position: fixed;
    right: var(--back-to-top-inset);
    bottom: calc(var(--back-to-top-inset) + env(safe-area-inset-bottom, 0));
    z-index: var(--z-back-to-top);
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    outline: none;
}
.back-to-top__icon {
    display: block;
    width: 14px;
    height: 14px;
    border-top: 2.5px solid currentColor;
    border-right: 2.5px solid currentColor;
    transform: rotate(-45deg) translate(1px, 1px);
}
body.admin-bar .back-to-top {
    bottom: calc(var(--back-to-top-inset) + 32px + env(safe-area-inset-bottom, 0));
}
@media screen and (max-width: 782px) {
    body.admin-bar .back-to-top {
        bottom: calc(var(--back-to-top-inset) + 46px + env(safe-area-inset-bottom, 0));
    }
}
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.01s, visibility 0.01s, background 0.01s, color 0.01s, border-color 0.01s;
    }
}

.no-posts {
    text-align: center;
    padding: 48px 20px;
    background: var(--color-card);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}
.no-posts .lp-heading {
    margin-bottom: 12px;
}
.no-posts p {
    color: var(--color-muted);
    margin: 0;
}

/* == Post nav == */
.post-navigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 16px 0; }
.post-navigation a { font-weight: 600; font-size: .9rem; }
.tag-badge { display: inline-block; background: var(--color-bg); color: var(--color-muted); padding: 3px 10px; border-radius: 16px; font-size: .8rem; font-weight: 500; border: 1px solid var(--color-border); margin: 2px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.post-footer { padding: 0 28px 28px; }

/* == Contact Form 7 == */
.entry-content .wpcf7 { max-width: 560px; margin: 0 auto; }
.entry-content .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.entry-content .wpcf7 form p,
.entry-content .wpcf7 form fieldset.cf7-fieldset {
    margin: 0;
}
.entry-content .wpcf7 form fieldset.cf7-fieldset p {
    margin: 0;
}
.entry-content .wpcf7 form > p > label {
    display: block;
    margin: 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-text);
}
.entry-content .wpcf7 form > p > label br {
    display: none;
}
.entry-content .wpcf7 form > p > label input,
.entry-content .wpcf7 form > p > label textarea {
    display: block;
    margin-top: 6px;
}
.entry-content .wpcf7 .mnet-req { color: #b91c1c; font-weight: 600; }
.entry-content .wpcf7 .mnet-form-required-legend {
    margin: 0;
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-muted);
}
.entry-content .cf7-fieldset-service legend .mnet-req { color: #b91c1c; font-weight: 600; }
.entry-content .wpcf7 input[type="text"],
.entry-content .wpcf7 input[type="email"],
.entry-content .wpcf7 textarea {
    width: 100%; padding: 10px 14px; font-size: .95rem; border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm); background: var(--color-bg); font-family: var(--font);
}
.entry-content .wpcf7 textarea { min-height: 160px; resize: vertical; }
.entry-content .wpcf7 input:focus,
.entry-content .wpcf7 textarea:focus {
    outline: none; border-color: var(--color-accent); background: #fff;
}
.entry-content .wpcf7 form p:has(.wpcf7-submit) {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}
/* CF7 が挿入するスピナー（非表示でも幅を取る）でボタンが右にずれるのを防ぐ */
.entry-content .wpcf7 form p:has(.wpcf7-submit) .wpcf7-spinner {
    display: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}
.entry-content .wpcf7 form.submitting p:has(.wpcf7-submit) .wpcf7-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 0 0 12px;
}
.entry-content .wpcf7 .wpcf7-submit {
    display: inline-flex; align-items: center; justify-content: center; margin: 0; padding: 11px 28px;
    font-size: .95rem; font-weight: 600; color: #fff; background: var(--color-primary);
    border: none; border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font);
    transition: background .2s;
}
.entry-content .wpcf7 .wpcf7-submit:hover { background: var(--color-primary-hover); }
.entry-content .wpcf7 .wpcf7-not-valid-tip { font-size: .8rem; color: #b91c1c; margin-top: 4px; }
.entry-content .wpcf7 .wpcf7-response-output { margin-top: 1rem; font-size: .9rem; }

.entry-content .cf7-fieldset {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px 18px 18px;
    margin: 0;
    background: #fafbfc;
}
.entry-content .cf7-fieldset legend {
    font-size: .9rem;
    font-weight: 700;
    color: var(--color-primary);
    padding: 0 8px;
}
.entry-content .cf7-fieldset .cf7-hint {
    font-size: .82rem;
    color: var(--color-muted);
    margin: 0 0 12px;
    line-height: 1.65;
}
.entry-content .cf7-fieldset-files .mnet-field,
.entry-content .cf7-fieldset-files .cf7-mnet-files-field {
    margin: 0;
}
.entry-content .cf7-fieldset-files .mnet-file-drop-label p {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
}
.entry-content .cf7-fieldset-files .mnet-file-drop-label br {
    display: none;
}
.entry-content .cf7-fieldset-service > p {
    margin-top: 4px;
}
.flavor-hp-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.entry-content .cf7-check-wrap { margin-top: 8px; }
.entry-content .cf7-check-wrap .wpcf7-list-item { margin: 0; }

/* ニーズ登録の「ニーズ種別」(.mnet-type-chip) と同じチップUI */
.entry-content .cf7-mnet-type-wrap .wpcf7-checkbox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.entry-content .cf7-mnet-type-wrap .wpcf7-list-item { margin: 0; }
.entry-content .cf7-mnet-type-wrap .wpcf7-list-item label {
    display: block;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}
.entry-content .cf7-mnet-type-wrap input[type="checkbox"] {
    display: none;
}
.entry-content .cf7-mnet-type-wrap .wpcf7-list-item-label {
    display: block;
    padding: 6px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 700;
    color: #444;
    text-align: center;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.entry-content .cf7-mnet-type-wrap input:checked + .wpcf7-list-item-label {
    border-color: var(--color-accent);
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 700;
}
.entry-content .cf7-mnet-type-wrap .wpcf7-list-item label:focus-within .wpcf7-list-item-label {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* お問い合わせ：ご希望のサービス（ラジオ・縦並び） */
.entry-content .cf7-fieldset-service .wpcf7-radio,
.entry-content .cf7-mnet-radio-wrap .wpcf7-radio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.entry-content .cf7-fieldset-service .wpcf7-list-item-label,
.entry-content .cf7-mnet-radio-wrap .wpcf7-list-item-label {
    text-align: left;
    line-height: 1.45;
    padding: 10px 14px;
}

/* お問い合わせ：ニーズ登録と同じ .mnet-file-drop（CF7 用 file は .cf7-mnet-file-inputs に非表示配置） */
.entry-content .cf7-mnet-files-field { position: relative; }
.entry-content .cf7-fieldset-files .mnet-file-drop {
    position: relative;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-sm);
    padding: 28px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.entry-content .cf7-fieldset-files .mnet-file-drop:hover,
.entry-content .cf7-fieldset-files .mnet-file-drop.dragover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}
.entry-content .cf7-fieldset-files .mnet-file-drop-label {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.entry-content .cf7-fieldset-files .mnet-file-drop-icon { font-size: 1.6rem; }
.entry-content .cf7-fieldset-files .mnet-file-drop-label > span:not(.mnet-file-drop-icon) {
    font-size: .85rem;
    color: var(--color-muted);
}
.entry-content .cf7-fieldset-files .mnet-file-drop-hint {
    font-size: .72rem !important;
    color: var(--color-muted) !important;
    opacity: .7;
}
.entry-content .cf7-fieldset-files .mnet-file-drop-types {
    max-width: 42em;
    line-height: 1.45 !important;
    word-break: break-word;
}
.entry-content .cf7-mnet-file-inputs {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.entry-content .cf7-mnet-file-inputs .wpcf7-form-control-wrap {
    display: block;
    margin: 0;
}
.entry-content .mnet-file-list {
    list-style: none;
    padding: 0;
    margin-top: 8px;
}
.entry-content .mnet-file-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--color-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: .82rem;
}
.entry-content .mnet-file-list .mnet-file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.entry-content .mnet-file-list .mnet-file-size {
    color: var(--color-muted);
    font-size: .72rem;
}

@media (max-width: 480px) {
    .entry-content .cf7-mnet-type-wrap .wpcf7-checkbox {
        grid-template-columns: 1fr;
    }
}

/* == Responsive: タブレット以下でレイアウト調整 == */
@media (max-width: 1024px) {
    .content-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-links { justify-self: start; }
    .footer-menu--primary { justify-content: flex-start; }
    .hero-steps-grid { grid-template-columns: 1fr; }
    .lp-concern-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-concern-card {
        --lp-concern-body-pad-x: 12px;
    }
    .lp-proof-list {
        flex-wrap: wrap;
    }
    .lp-proof-list li {
        flex: 1 1 100%;
    }
    .lp-proof-list li span {
        line-height: 1.65;
    }
}

/* == タブレット・スマホ: ハンバーガー + 右から左へ開く全幅ドロワー（1023px 以下） == */
@media (max-width: 1023px) {
    :root { --header-h: 60px; }

    /*
     * オーバーレイ(.nav-overlay)は .container と兄弟のため、コンテナに明示 z-index を付けないと
     * 背面用オーバーレイがドロワー(.main-nav)より手前に描画されレイアウトが崩れる。
     */
    .site-header > .container.header-inner {
        position: relative;
        z-index: 910;
    }

    .mobile-toggle {
        display: flex;
        z-index: var(--z-nav-toggle);
    }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: auto;
        /* .site-header の backdrop-filter により fixed の包含ブロックがヘッダーになり bottom:0 だと高さが潰れる */
        height: calc(100vh - var(--header-h));
        min-height: calc(100vh - var(--header-h));
        max-height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        min-height: calc(100dvh - var(--header-h));
        max-height: calc(100dvh - var(--header-h));
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 16px var(--container-pad) calc(24px + env(safe-area-inset-bottom, 0));
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translate3d(100%, 0, 0);
        transition: transform 0.3s ease;
        will-change: transform;
        z-index: var(--z-nav-drawer);
        pointer-events: none;
        box-sizing: border-box;
    }
    .main-nav.active {
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }

    /* 管理バー: 上書きは .main-nav 本体より後に置く（カスケード順） */
    body.admin-bar .main-nav {
        top: var(--header-h);
        height: calc(100vh - 32px - var(--header-h));
        min-height: calc(100vh - 32px - var(--header-h));
        max-height: calc(100vh - 32px - var(--header-h));
        height: calc(100dvh - 32px - var(--header-h));
        min-height: calc(100dvh - 32px - var(--header-h));
        max-height: calc(100dvh - 32px - var(--header-h));
    }
    body.admin-bar .nav-overlay {
        top: var(--header-h);
        height: calc(100vh - 32px - var(--header-h));
        height: calc(100dvh - 32px - var(--header-h));
    }
    @media screen and (max-width: 782px) {
        body.admin-bar .main-nav {
            top: var(--header-h);
            height: calc(100vh - 46px - var(--header-h));
            min-height: calc(100vh - 46px - var(--header-h));
            max-height: calc(100vh - 46px - var(--header-h));
            height: calc(100dvh - 46px - var(--header-h));
            min-height: calc(100dvh - 46px - var(--header-h));
            max-height: calc(100dvh - 46px - var(--header-h));
        }
        body.admin-bar .nav-overlay {
            top: var(--header-h);
            height: calc(100vh - 46px - var(--header-h));
            height: calc(100dvh - 46px - var(--header-h));
        }
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding-bottom: 12px;
        margin-bottom: 12px;
        border-bottom: 1px solid var(--color-border);
    }
    .nav-list li { width: 100%; }
    .nav-list li a {
        font-size: 1rem;
        padding: 14px 12px;
    }

    .nav-auth {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        padding-top: 0;
        border-left: none;
        gap: 10px;
        align-items: stretch;
    }
    .nav-auth-link {
        text-align: center;
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
        align-self: center;
        padding: 14px 16px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .site-header { z-index: 1001; }
    .header-inner { min-height: var(--header-h); height: auto; }

    .brand-tagline {
        display: none;
    }

    .hero {
        padding: 0;
        margin-bottom: clamp(10px, 3.5vw, 24px);
    }
    .hero-slideshow { min-height: 420px; }
    .hero-step { padding: 16px; }
    .hero-steps-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-steps-actions .mnet-btn {
        min-width: 0;
        max-width: 100%;
    }

    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-links {
        justify-self: center;
        justify-content: center;
        width: 100%;
    }
    .footer-menu--primary {
        justify-content: center;
        gap: 8px 18px;
    }
    .footer-nav,
    .footer-widgets {
        padding-left: 0;
        padding-top: 6px;
        text-align: center;
    }
    .post-header,
    .post-footer { padding-left: 14px; padding-right: 14px; }
    /* フォーム系ページで .mnet-form-card が細くなりすぎないよう横パディングを抑える */
    .page-content { padding: 20px 14px 22px; }
    .entry-content,
    .post-content { padding: 18px 12px 24px; }
    .site-main { min-height: calc(100vh - var(--header-h) - 160px); }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
    .main-nav { transition: none; }
}

/* == 小型スマホ == */
@media (max-width: 480px) {
    :root { --header-h: 56px; }

    .lp-concern-grid { grid-template-columns: 1fr; }
    .site-brand .site-title { font-size: 1.5rem; }
    .site-brand .site-logo { height: 30px; max-width: min(124px, 52vw); }
    .site-brand .site-logo-link { transform: translateY(3px); }
    .no-break,
    .no-break-full {
        white-space: normal;
    }
    .footer-bottom { padding-left: var(--container-pad); padding-right: var(--container-pad); }
}
