/*
 * Med Match - カスタムスタイル
 * WordPress 管理画面「追加 CSS」の代わりにここで管理する。
 * プラグイン (med-match-custom.php) から wp_enqueue_scripts で読み込まれる。
 */

/* --- 共通カラー --- */
:root {
    --mm-green: #29b7b8;
    --mm-bg-light: #f4f9f9;
}

/* --- 1. レイアウト（Astra対策） --- */
#job-system-wrapper {
    display: flex;
    gap: 30px;
}

#job-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #fbfbfb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    height: fit-content;
    position: sticky;
    top: 20px;
}

#job-main-content {
    flex-grow: 1;
}

@media (max-width: 921px) {
    #job-system-wrapper {
        flex-direction: column;
    }

    #job-sidebar {
        width: 100% !important;
        position: static;
    }

    /* サイドバーが落ちたらカードを100%に */
    .job-card-item {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }
}

/* 求人カードは常に1列 */
#job-list-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* --- 2. カードデザイン --- */
.job-card-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: 0.3s;
}

.job-card-header {
    padding: 20px;
    cursor: pointer;
}

.job-card-main-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.job-card-title {
    margin: 0 0 10px !important;
    font-size: 1.1rem !important;
    color: #333;
}

.job-card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tag-type {
    background: var(--mm-green);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.tag-employment {
    background: var(--mm-bg-light);
    color: var(--mm-green);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    border: 1px solid rgba(41, 183, 184, 0.2);
}

.job-card-salary {
    color: #e67e22;
    font-weight: bold;
    font-size: 1rem;
}

.expand-icon {
    color: var(--mm-green);
    font-size: 1.4rem;
    font-weight: bold;
}

.status-text {
    color: var(--mm-green);
    font-size: 0.8rem;
    font-weight: bold;
}

/* アコーディオン */
.job-card-body {
    display: none;
    background: #fafafa;
    border-top: 1px dashed #ddd;
}

.job-card-body-inner {
    padding: 20px;
}

.job-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #fff;
    margin-bottom: 15px;
}

.job-info-table th {
    background: #f9f9f9;
    padding: 10px;
    border: 1px solid #eee;
    text-align: left;
    width: 30%;
}

.job-info-table td {
    padding: 10px;
    border: 1px solid #eee;
}

.view-details-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--mm-green);
    color: #fff !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
}

/* --- 検索ナビ：全体レイアウト --- */
.job-nav-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0;
    align-items: stretch;
}

.nav-section {
    flex: 1;
    min-width: 250px;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.nav-label {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #444;
}

/* 職種ボタン */
.nav-button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 7px 14px;
    border-radius: 6px;
    color: #555 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.2s;
}

.nav-link-btn:hover {
    background: var(--mm-green) !important;
    color: #fff !important;
    border-color: var(--mm-green) !important;
}

/* 地域セレクトボックス */
.nav-select-box {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    outline: none;
}

.nav-select-box:focus {
    border-color: var(--mm-green);
}

/* スマホ対応 */
@media (max-width: 600px) {
    .job-nav-container {
        flex-direction: column;
    }
}

/* ナビコンテナ */
.job-nav-container {
    display: flex;
    gap: 20px;
    margin: 25px 0;
}

.nav-section {
    flex: 1;
    background: #fbfbfb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* ボタン群とプルダウンの間隔 */
}

.nav-label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
    margin: 0;
}

/* ボタン群 */
.nav-button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px 14px;
    border-radius: 50px;
    /* カプセル型でモダンに */
    color: #555 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: 0.2s;
}

.nav-link-btn:hover {
    background: var(--mm-green) !important;
    color: #fff !important;
    border-color: var(--mm-green) !important;
}

/* プルダウン */
.nav-select-box {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #fff;
    cursor: pointer;
}

/* スマホ対応 */
@media (max-width: 767px) {
    .job-nav-container {
        flex-direction: column;
    }
}

/*headerFIX*/
/* ヘッダーの固定とメドマッチカラーの適用 */
.main-header-bar-wrap {
    position: fixed;
    /* 画面上部に固定 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    /* メドマッチ・グリーン（#00a699）を透明度0.85で適用 */
    background-color: rgba(0, 166, 153, 0.85) !important;

    /* 影とボーダーを削除してフラットに */
    box-shadow: none !important;
    border-bottom: none !important;

    /* すりガラス効果：背後が美しく透けます */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* スムーズな登場アニメーション */
    animation: slideDownCustom 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* アニメーション：少し上から吸い付くように降りてくる */
@keyframes slideDownCustom {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ヘッダーの下にコンテンツが隠れないように（デスクトップのみ） */
@media (min-width: 922px) {
    body {
        padding-top: 75px;
    }

    body.single-jobs #primary.content-area,
    body.post-type-archive-jobs #primary.content-area {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* ヘッダーとコンテンツの隙間をゼロに（全ページ共通 / デスクトップ） */
@media (min-width: 1200px) {
    .ast-plain-container.ast-no-sidebar #primary {
        margin-top: 0 !important;
    }
}

/* ================================================
     ヘッダー認証エリア
     ================================================ */
.mm-header-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    flex-shrink: 0;
}

.mm-greeting {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.mm-btn {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1;
}

.mm-btn-auth {
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.mm-btn-auth:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.mm-btn-logout {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
}

.mm-btn-logout:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

@media (max-width: 768px) {
    .mm-header-auth {
        display: none;
    }
}

/* ================================================
     認証モーダル
     ================================================ */
.mm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.mm-modal-overlay.mm-modal-open {
    display: flex;
}

.mm-body-lock {
    overflow: hidden;
}

.mm-modal-box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 44px 36px;
    position: relative;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.18);
    animation: mm-modal-in 0.2s ease;
}

@keyframes mm-modal-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mm-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    transition: color 0.15s;
}

.mm-modal-close:hover {
    color: #374151;
}

.mm-modal-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 28px;
}

.mm-modal-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    font-family: inherit;
}

.mm-modal-tab.mm-tab-active {
    color: #1a1a2e;
    border-bottom-color: #2563eb;
}

.mm-modal-tab:hover:not(.mm-tab-active) {
    color: #374151;
}

/* ================================================
     フォーム共通（モーダル・固定ページ共用）
     ================================================ */
.auth-error {
    background: #fff0f0;
    border-left: 4px solid #e53e3e;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-error a {
    color: #c53030;
    text-decoration: underline;
}

.auth-intro {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    margin: 0 0 24px;
    line-height: 1.65;
}

.auth-intro strong {
    color: #1a1a2e;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.auth-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.95rem;
    color: #111827;
    background: #fafafa;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.req {
    color: #e53e3e;
    margin-left: 2px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    margin-top: 4px;
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.auth-submit-btn {
    display: block;
    width: 100%;
    padding: 13px;
    margin-top: 8px;
    background: #2563eb;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.auth-submit-btn:hover {
    background: #1d4ed8;
    color: #fff !important;
}

.mm-register-btn {
    background: #ffc94a;
    color: #1a1a2e !important;
}

.mm-register-btn:hover {
    background: #ffb700;
    color: #1a1a2e !important;
}

.auth-links {
    margin-top: 22px;
    text-align: center;
    font-size: 0.83rem;
    color: #6b7280;
    line-height: 1.9;
}

.auth-links a {
    color: #2563eb;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ================================================
     固定ページ（/login/ /register/）レイアウト
     ================================================ */
.page-login #content.site-content,
.page-register #content.site-content {
    background: #f0f4f8;
}

.page-login .site-content>.ast-container,
.page-register .site-content>.ast-container {
    display: block !important;
}

.page-login #secondary,
.page-register #secondary {
    display: none;
}

.mm-auth-page {
    max-width: 480px;
    margin: 64px auto 80px;
    padding: 0 20px;
    box-sizing: border-box;
}

.mm-auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.10);
    padding: 48px 44px 40px;
}

.mm-auth-title {
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 32px;
    color: #1a1a2e;
}

.mm-auth-logged {
    text-align: center;
    color: #374151;
    margin-bottom: 20px;
}

/* ================================================
     レスポンシブ
     ================================================ */
@media (max-width: 520px) {
    .mm-modal-box {
        padding: 32px 20px 28px;
    }

    .mm-auth-page {
        margin: 32px auto 60px;
    }

    .mm-auth-card {
        padding: 32px 20px;
    }

    .mm-auth-title {
        font-size: 1.3rem;
    }
}


/*モバイルメニュー背景*/
.ast-header-break-point .main-header-menu {
    background-color: rgba(195, 229, 226, 0.85);
}

.main-navigation {
    margin-top: 16px;
}

/* ハンバーガーメニュー fixed 時：内側の margin による隙間を除去 */
@media (max-width: 921px) {

    .ast-main-header-nav-open .main-header-bar-navigation,
    .ast-main-header-nav-open .main-header-bar-navigation .main-navigation {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

.ast-mobile-header-wrap .ast-mobile-header-content,
.ast-desktop-header-content {
    background-color: rgba(195, 229, 226, 0.2);
    padding-bottom: 2em:
}

/*モーダル*/
.mm-modal-tabs {
    display: flex;
    background: #f0f4f8;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 28px;
    gap: 4px;
}

.mm-modal-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 11px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.18s;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.mm-modal-tab.mm-tab-active {
    background: #fff;
    color: #1a1a2e;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.mm-modal-tab:hover:not(.mm-tab-active) {
    background: rgba(255, 255, 255, 0.6);
    color: #374151;
}

/*トップに戻る*/
/* スクロールアニメーション */
.mm-scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.mm-scroll-reveal.mm-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ハンバーガーメニュー 登場アニメーション */
@keyframes mm-menu-slide-down {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mm-menu-in {
    animation: mm-menu-slide-down 0.35s ease both;
}

/* モバイルナビ 登場アニメーション */
.main-header-bar-navigation.toggle-on {
    animation: mm-menu-slide-down 0.35s ease both;
}

/* ── モバイルヘッダー 固定 ── */
@media (max-width: 921px) {
    .main-header-bar-wrap {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
    }

    #ast-mobile-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
    }

    #content.site-content {
        padding-top: 90px !important;
    }

    body.single-jobs #primary.content-area,
    body.post-type-archive-jobs #primary.content-area {
        padding-top: 0 !important;
    }
}

/* ================================================
   求人一覧・詳細ページ 共通レイアウト
   ================================================ */
.single-jobs #primary.content-area,
.single-jobs #main.site-main,
.post-type-archive-jobs #primary.content-area,
.post-type-archive-jobs #main.site-main {
    width: 100%;
    float: none;
}

body.single-jobs #primary.content-area,
body.post-type-archive-jobs #primary.content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 一覧ページ：サイドバー込みで最大1100px */
.post-type-archive-jobs .job-single-wrap {
    padding: 2em max(20px, calc((100% - 1100px) / 2)) 60px;
}

/* 詳細ページ：コンテンツのみで最大860px */
.single-jobs .job-single-wrap {
    padding: 2em max(20px, calc((100% - 860px) / 2)) 60px;
}

.job-single-wrap {
    width: 100%;
    box-sizing: border-box;
    padding: 2em 20px 60px;
}

.job-detail-container {
    width: 100%;
}

/* --- 求人一覧に戻るリンク --- */
.jd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mm-green) !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    padding: 6px 14px 6px 10px;
    border: 1.5px solid rgba(41, 183, 184, 0.4);
    border-radius: 50px;
    transition: background 0.2s, border-color 0.2s;
    background: #fff;
}

.jd-back-link:hover {
    background: var(--mm-bg-light);
    border-color: var(--mm-green);
    color: var(--mm-green) !important;
}

.jd-back-top {
    display: inline-flex;
    margin-bottom: 24px;
}

.jd-back-bottom {
    display: inline-flex;
    margin-top: 32px;
}

/* --- 募集要項セクション（カード化） --- */
.jd-section-hero {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.jd-heading-main {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--mm-green);
}

.jd-job-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0 0 8px;
    border: none;
    padding: 0;
}

.jd-facility-name {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 24px;
}

.jd-thumbnail {
    margin-bottom: 28px;
    border-radius: 10px;
    overflow: hidden;
}

.jd-thumb-img {
    width: 100%;
    height: auto;
    display: block;
}

.jd-content-text {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #444;
}

/* --- 求人詳細セクション --- */
.jd-section-table {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.jd-heading-sub {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mm-green);
    border-left: 4px solid var(--mm-green);
    padding-left: 10px;
    margin: 0 0 20px;
}

.job-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.job-detail-table th,
.job-detail-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    vertical-align: top;
    text-align: left;
}

.job-detail-table th {
    width: 35%;
    color: #666;
    font-weight: 600;
    background: #f8fafc;
    white-space: nowrap;
}

.job-detail-table tr:last-child th,
.job-detail-table tr:last-child td {
    border-bottom: none;
}

.detail-salary {
    color: #e53935;
    font-weight: 700;
}

.jd-salary-locked {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f4f8;
    border: 1px dashed #aab;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.jd-salary-locked:hover {
    background: var(--mm-green);
    color: #fff;
    border-color: var(--mm-green);
}

/* 詳細ページ内リンク色 */
.job-single-wrap a:not(.contact-btn):not(.view-details-btn) {
    color: #2563eb;
    text-decoration: underline;
}

.job-single-wrap a:not(.contact-btn):not(.view-details-btn):hover {
    color: #1d4ed8;
}

/* --- CTA --- */
.job-detail-cta {
    text-align: center;
    padding: 36px 20px;
    background: var(--mm-bg-light);
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid rgba(41, 183, 184, .2);
}

.contact-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .2s;
}

.contact-btn:hover {
    opacity: .85;
}

.contact-btn.email {
    background: var(--mm-green);
    color: #fff;
}

.contact-btn.tel {
    background: #ff9800;
    color: #fff;
}

/* モバイル */
@media (max-width: 921px) {
    .jd-job-title {
        font-size: 1.3rem;
    }

    .job-detail-table th,
    .job-detail-table td {
        display: block;
        width: 100%;
        padding: 8px 10px;
    }

    .job-detail-table th {
        background: #f8fafc;
        border-bottom: none;
        padding-bottom: 4px;
        white-space: normal;
    }
}

/* ================================================
   求人カード：展開時スタイル
   ================================================ */

/* 展開中カードの枠をグリーンアクセント */
.job-card-open {
    border-color: rgba(41, 183, 184, 0.4) !important;
    box-shadow: 0 8px 28px rgba(41, 183, 184, 0.12) !important;
}

/* 展開エリアの背景を薄いグリーン */
.job-card-open .job-card-body {
    background: linear-gradient(to bottom, #e8f9f9 0%, #f7fdfd 100px, #fff 220px) !important;
    border-top: 1px solid rgba(41, 183, 184, 0.3) !important;
}

/* 診療科目タグ */
.tag-specialty {
    background: #fff3e0;
    color: #e65100;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    border: 1px solid rgba(230, 81, 0, 0.2);
}

/* 読み込み中インジケーター */
.job-card-loading {
    padding: 36px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* カード内サムネイル */
.jd-card-thumbnail {
    margin-bottom: 18px;
    border-radius: 8px;
    overflow: hidden;
}

.jd-card-thumb-img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

/* カード内説明文 */
.job-card-description {
    font-size: 0.9rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8f3f3;
}

/* カード内テーブル（job-info-table）でのグリーン見出し */
.job-card-open .job-info-table th {
    background: #f0fafa;
    color: #2a7a7b;
}

/* カード内 CTA ボタン群 */
.job-card-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8f3f3;
}

/* 問い合わせボタン（常にオレンジ） */
.contact-btn.inquiry-btn {
    background: #ff7d00;
    color: #fff !important;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.contact-btn.inquiry-btn:hover {
    background: #e66e00;
    opacity: 1;
}

@media (max-width: 600px) {
    .job-card-cta {
        flex-direction: column;
    }

    .job-card-cta .contact-btn,
    .job-card-cta .view-details-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ================================================
   お問い合わせモーダル
   ================================================ */
.mm-inquiry-box {
    max-width: 420px;
    padding: 40px 36px 36px;
}

.mm-inquiry-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--mm-green);
}

.mm-inquiry-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 電話とメール両方ある場合の各行 */
.mm-inquiry-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mm-inquiry-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.04em;
}

.mm-inquiry-method {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 10px;
    font-weight: 600;
}

/* 「または」区切り */
.mm-inquiry-or {
    text-align: center;
    font-size: 0.82rem;
    color: #bbb;
    margin: 2px 0;
    position: relative;
}

.mm-inquiry-or::before,
.mm-inquiry-or::after {
    content: '';
    display: inline-block;
    width: 36px;
    height: 1px;
    background: #e0e0e0;
    vertical-align: middle;
    margin: 0 8px;
}

/* 電話リンク */
.mm-inquiry-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff8f0;
    border: 1.5px solid #ff9800;
    color: #e65100 !important;
    text-decoration: none !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.2s;
}

.mm-inquiry-phone:hover {
    background: #fff0dc;
}

/* メールリンク */
.mm-inquiry-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f9fa;
    border: 1.5px solid var(--mm-green);
    color: #1a7a7b !important;
    text-decoration: none !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    word-break: break-all;
    transition: background 0.2s;
}

.mm-inquiry-email:hover {
    background: #e0f5f6;
}

/* 単体表示（大きめ） */
.mm-inquiry-big {
    font-size: 1.1rem;
    padding: 14px 22px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.mm-inquiry-icon {
    font-size: 1.1em;
}

@media (max-width: 480px) {
    .mm-inquiry-box {
        padding: 32px 20px 28px;
    }
}

/* ================================================
   マイページ (/my-page/)
   ================================================ */

/* Astra のページヘッダーを非表示にしてコンテンツを上に詰める */
.page-my-page .entry-header {
    display: none !important;
}

.page-my-page .entry-content {
    margin-top: 0 !important;
}

.myjobs-dashboard {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 60px;
}

/* ページタイトル */
.myjobs-page-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    border: none !important;
}

/* 挨拶 */
.myjobs-greeting {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 24px !important;
}

/* フラッシュメッセージ */
.myjobs-flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.myjobs-flash-ok {
    background: #e8f5e9;
    border-left: 4px solid #43a047;
    color: #2e7d32;
}

.myjobs-flash-err {
    background: #fce4e4;
    border-left: 4px solid #e53e3e;
    color: #c62828;
}

/* ── セクション共通 ── */
.myjobs-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.myjobs-section-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    border-left: 4px solid var(--mm-green) !important;
    padding: 2px 0 2px 12px !important;
    margin: 0 0 18px !important;
    line-height: 1.4 !important;
}

/* ── 求人リスト ── */
.myjobs-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.myjobs-empty {
    color: #888;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0 !important;
}

/* 求人アイテム */
.myjobs-item {
    background: #fafbfc;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 16px 18px;
}

.myjobs-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

/* ステータスバッジ */
.myjobs-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.myjobs-status-publish {
    background: #e8f5e9;
    color: #2e7d32;
}

.myjobs-status-checking {
    background: #fff8e1;
    color: #f57f17;
}

.myjobs-status-pending {
    background: #e3f2fd;
    color: #1565c0;
}

.myjobs-status-draft {
    background: #f5f5f5;
    color: #757575;
}

.myjobs-date {
    font-size: 0.76rem;
    color: #aaa;
    margin-left: auto;
}

/* 求人タイトル */
.myjobs-title {
    font-size: 0.95rem !important;
    margin: 0 0 8px !important;
    color: #1a1a2e;
    line-height: 1.5;
}

.myjobs-title strong {
    font-weight: 700;
}

.myjobs-status-note {
    font-size: 0.76rem;
    color: #f57f17;
    margin: 0 0 8px !important;
    line-height: 1.5;
}

/* アクションボタン行 */
.myjobs-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf2f7;
}

.myjobs-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.1s;
    line-height: 1.4;
}

.myjobs-btn:hover {
    opacity: 0.82;
    transform: translateY(-1px);
}

.myjobs-btn-view {
    background: #f0f4f8;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}

.myjobs-btn-edit {
    background: var(--mm-green);
    color: #fff !important;
}

.myjobs-btn-delete {
    background: #fff;
    color: #e53e3e !important;
    border: 1px solid #e53e3e;
}

.myjobs-btn-delete:hover {
    background: #fff5f5;
    opacity: 1;
}

.myjobs-delete-form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* ── 会員限定メニューカード ── */
.myjobs-members-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.myjobs-member-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none !important;
    color: #1a1a2e !important;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.myjobs-member-card:hover {
    background: #eef7f7;
    border-color: var(--mm-green);
    box-shadow: 0 2px 10px rgba(41, 183, 184, 0.12);
    color: #1a1a2e !important;
}

.myjobs-member-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 38px;
    text-align: center;
    line-height: 1;
}

.myjobs-member-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.myjobs-member-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a2e;
    display: block;
}

.myjobs-member-desc {
    font-size: 0.76rem;
    color: #888;
    line-height: 1.5;
    display: block;
}

.myjobs-member-arrow {
    font-size: 1.3rem;
    color: #cbd5e1;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}

.myjobs-member-card:hover .myjobs-member-arrow {
    color: var(--mm-green);
}

/* ログイン未済 */
.myjobs-login-required {
    text-align: center;
    padding: 40px 20px;
}

.myjobs-login-required p {
    margin-bottom: 16px;
    color: #555;
}

/* モバイル */
@media (max-width: 600px) {
    .myjobs-section {
        padding: 18px 14px;
    }

    .myjobs-member-desc {
        display: none;
    }

    .myjobs-page-title {
        font-size: 1.25rem !important;
    }
}

/* ================================================
   お問い合わせページ (/contact/)
   ================================================ */
.page-contact #content.site-content {
    background: #f0f4f8;
}

.page-contact .site-content > .ast-container {
    display: block !important;
}

.page-contact #secondary {
    display: none;
}

.mm-contact-page {
    max-width: 540px;
}

.mm-contact-intro {
    font-size: 0.88rem;
    color: #666;
    text-align: center;
    line-height: 1.8;
    margin: -16px 0 24px;
}

/* textarea を input と同じスタイルに */
.auth-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 0.95rem;
    color: #111827;
    background: #fafafa;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.auth-field textarea:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* 送信ボタン */
.mm-contact-submit {
    margin-top: 4px;
    letter-spacing: 0.06em;
}

/* 直接メール案内 */
.mm-contact-direct {
    margin-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: #888;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.mm-contact-direct a {
    color: #2563eb;
    text-decoration: none;
}

.mm-contact-direct a:hover {
    text-decoration: underline;
}

/* 送信完了画面 */
.mm-contact-success {
    text-align: center;
    padding: 16px 0 8px;
}

.mm-contact-success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    line-height: 1;
}

.mm-contact-success-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 14px !important;
}

.mm-contact-success-msg {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 28px !important;
}

@media (max-width: 520px) {
    .mm-contact-page {
        max-width: 100%;
    }
}



#primary {
    width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
}

/* 左側の余白（サイドバー用スペース）を消す */
.site-content .ast-container {
    display: block !important;
}
/* ── Googleボタン / 区切り線 / 通知メッセージ ── */
.mm-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #3c4043 !important;
    border: 1px solid #dadce0;
    font-weight: 500;
}
.mm-google-btn:hover {
    background: #f8f9fa;
    border-color: #c6c6c6;
    color: #3c4043 !important;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #9aa0a6;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}
.auth-notice {
    background: #e8f5e9;
    border-left: 4px solid #43a047;
    color: #1b5e20;
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
}
.auth-notice p { margin: 4px 0; }
.auth-notice-sent { background: #e3f2fd; border-color: #1976d2; color: #0d47a1; }


/* --- CF7求人フォーム: 入力欄のボーダーを見やすく --- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
    border: 2px solid #9eaab5 !important;
    border-radius: 4px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
    border-color: #1a73e8 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}
/* 3年説明・ヘルプノート */
.cf7-help-note {
    font-size: 13px;
    color: #555;
    background: #fff8e1;
    border-left: 3px solid #f9a825;
    padding: 8px 12px;
    margin: 6px 0 10px;
    border-radius: 3px;
}
/* 職務内容セクションラベル（アコーディオン詳細内） */
.jd-section-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a73e8;
    margin: 0 0 6px;
    padding-bottom: 4px;
    border-bottom: 2px solid #e8f0fe;
}

/* --- 給与フィールド インラインレイアウト --- */
.mm-salary-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.mm-salary-row .wpcf7-form-control-wrap,
.mm-salary-row .wpcf7-select,
.mm-salary-row select {
    flex: 0 0 auto;
    width: auto !important;
}
.mm-salary-row input[type="number"] {
    width: 140px !important;
    flex: 0 0 140px;
}
.mm-salary-row input[type="text"] {
    flex: 1;
    min-width: 180px;
}
.mm-salary-sep {
    color: #555;
    font-weight: bold;
    padding: 0 2px;
    white-space: nowrap;
}

/* ============================================================
   カスタム求人投稿フォーム (/job-posting/)
   ============================================================ */
.mm-job-post-page {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 16px 60px;
}
.mm-job-post-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 36px 40px;
}
@media (max-width: 600px) {
    .mm-job-post-card { padding: 24px 16px; }
}
.mm-job-post-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a73e8;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f0fe;
}
/* フォームセクション */
.mm-form-section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f0f0f0;
}
.mm-form-section:last-of-type { border-bottom: none; }
.mm-form-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px;
    padding-left: 10px;
    border-left: 4px solid #1a73e8;
}
.mm-section-note {
    font-size: 13px;
    font-weight: 400;
    color: #888;
}
/* 各フィールド */
.mm-form-field {
    margin-bottom: 18px;
}
.mm-form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.mm-form-field input[type="text"],
.mm-form-field input[type="email"],
.mm-form-field input[type="tel"],
.mm-form-field input[type="number"],
.mm-form-field input[type="date"],
.mm-form-field input[type="url"],
.mm-form-field textarea,
.mm-form-field select {
    width: 100%;
    border: 2px solid #9eaab5;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 15px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    transition: border-color .2s;
}
.mm-form-field input:focus,
.mm-form-field textarea:focus,
.mm-form-field select:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
.mm-form-help {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}
.mm-form-note {
    font-size: 12px;
    color: #e53935;
    margin: 4px 0 0;
}
/* 給与インライン */
.mm-salary-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.mm-salary-row select {
    width: auto !important;
    flex: 0 0 auto;
}
.mm-salary-row input[type="number"] {
    width: 140px !important;
    flex: 0 0 140px;
}
.mm-salary-row input[type="text"] {
    flex: 1;
    min-width: 180px;
}
.mm-salary-sep {
    font-weight: 700;
    color: #555;
    white-space: nowrap;
}
/* 現在の画像 */
.mm-current-thumb {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}
.mm-current-thumb img {
    display: block;
    margin-top: 4px;
    border-radius: 4px;
    max-height: 80px;
    width: auto;
}
/* 送信ボタン */
.mm-form-submit-row {
    text-align: center;
    margin-top: 32px;
}
.mm-submit-btn {
    background: #1a73e8;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 56px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s;
}
.mm-submit-btn:hover { background: #1558b0; }
/* フラッシュ */
.mm-flash {
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}
.mm-flash-ok  { background: #e8f5e9; border-left: 4px solid #43a047; color: #1b5e20; }
.mm-flash-err { background: #ffebee; border-left: 4px solid #e53935; color: #b71c1c; }

/* ============================================================
   ブログ・読み物機能（blog.php / single.php / page-news.php）
   ============================================================ */

/* ── 共通 ─────────────────────────────────────────────────── */
.mm-blog-empty {
    color: #888;
    font-size: 14px;
    padding: 16px 0;
}

/* ── [latest_news] お知らせリスト ────────────────────────── */
.mm-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e8eaed;
}
.mm-news-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    border-bottom: 1px solid #e8eaed;
    text-decoration: none;
    color: #333;
    transition: color .15s;
}
.mm-news-item a:hover { color: #1a73e8; text-decoration: none; }
.mm-news-date {
    flex-shrink: 0;
    font-size: 13px;
    color: #888;
    letter-spacing: .03em;
    min-width: 80px;
}
.mm-news-cat {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    background: #e8f4fd;
    color: #1a73e8;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}
.mm-news-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* ── [featured_columns] コラムカードグリッド ─────────────── */
.mm-column-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .mm-column-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .mm-column-grid { grid-template-columns: 1fr; }
}
.mm-column-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
}
.mm-column-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.mm-column-card__img {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    background: #f0f4f8;
    overflow: hidden;
}
.mm-column-card__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mm-column-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    flex: 1;
}
.mm-column-card__cat {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 600;
    background: #e8f4fd;
    color: #1a73e8;
    padding: 2px 8px;
    border-radius: 3px;
}
.mm-column-card__date {
    font-size: 12px;
    color: #999;
}
.mm-column-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    margin: 0;
    color: #222;
}
.mm-column-card__excerpt {
    font-size: 12px;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* ── ブログ一覧ページ（page-news.php）────────────────────── */
.mm-blog-wrap {
    max-width: 860px;
    margin: 0 auto 80px;
    padding: 40px 20px 60px;
}
.mm-blog-header {
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 12px;
    margin-bottom: 32px;
}
.mm-blog-header__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0;
}
.mm-blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mm-blog-list-item {
    border-bottom: 1px solid #e8eaed;
}
.mm-blog-list-item a {
    display: flex;
    gap: 20px;
    padding: 20px 4px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}
.mm-blog-list-item a:hover { background: #f8faff; text-decoration: none; }
.mm-blog-list-item__thumb {
    flex-shrink: 0;
    width: 130px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f4f8;
}
.mm-blog-list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mm-blog-list-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mm-blog-list-item__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #888;
}
.mm-blog-list-item__cat {
    font-size: 11px;
    font-weight: 600;
    background: #e8f4fd;
    color: #1a73e8;
    padding: 2px 8px;
    border-radius: 3px;
}
.mm-blog-list-item__title {
    font-size: 16px;
    font-weight: 600;
    color: #1a2a3a;
    margin: 0;
    line-height: 1.5;
}
.mm-blog-list-item a:hover .mm-blog-list-item__title { color: #1a73e8; }
.mm-blog-list-item__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.65;
    margin: 0;
}
@media (max-width: 600px) {
    .mm-blog-list-item a { flex-direction: column; }
    .mm-blog-list-item__thumb { width: 100%; height: 180px; }
}
.mm-blog-pagination {
    margin-top: 40px;
    text-align: center;
}
.mm-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    transition: background .15s, color .15s;
}
.mm-blog-pagination .page-numbers.current,
.mm-blog-pagination .page-numbers:hover {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
    text-decoration: none;
}
.mm-blog-pagination .page-numbers.dots { border: none; }

/* ── 投稿詳細（single.php）────────────────────────────────── */
.mm-single-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    max-width: 1060px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}
@media (max-width: 900px) {
    .mm-single-wrap { grid-template-columns: 1fr; }
}
.mm-single-header { margin-bottom: 28px; }
.mm-single-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.mm-single-cat {
    font-size: 11px;
    font-weight: 600;
    background: #e8f4fd;
    color: #1a73e8;
    padding: 3px 10px;
    border-radius: 3px;
    text-decoration: none;
}
.mm-single-cat:hover { background: #1a73e8; color: #fff; text-decoration: none; }
.mm-single-date {
    font-size: 13px;
    color: #888;
}
.mm-single-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    color: #1a2a3a;
    margin: 0 0 20px;
}
.mm-single-thumb {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 28px;
}
.mm-single-thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.mm-single-body {
    font-size: 15px;
    line-height: 1.85;
    color: #333;
}
.mm-single-body h2 { font-size: 20px; font-weight: 700; margin: 2em 0 .8em; padding-left: 12px; border-left: 4px solid #1a73e8; color: #1a2a3a; }
.mm-single-body h3 { font-size: 17px; font-weight: 700; margin: 1.8em 0 .6em; color: #1a2a3a; }
.mm-single-body p  { margin: 0 0 1.2em; }
.mm-single-body img { max-width: 100%; height: auto; border-radius: 6px; }
.mm-single-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid #e8eaed; }
.mm-single-back {
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
}
.mm-single-back:hover { text-decoration: underline; }

/* サイドバー */
.mm-single-sidebar { position: relative; }
.mm-sidebar-box {
    background: #f8faff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 80px;
}
.mm-sidebar-box__title {
    font-size: 14px;
    font-weight: 700;
    color: #1a2a3a;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a73e8;
}
.mm-sidebar-article {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e8eaed;
    text-decoration: none;
    color: inherit;
}
.mm-sidebar-article:last-child { border-bottom: none; }
.mm-sidebar-article:hover { color: #1a73e8; text-decoration: none; }
.mm-sidebar-article__thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f4f8;
}
.mm-sidebar-article__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mm-sidebar-article__text time {
    display: block;
    font-size: 11px;
    color: #999;
    margin-bottom: 3px;
}
.mm-sidebar-article__text p {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    color: #333;
}
.mm-sidebar-article:hover .mm-sidebar-article__text p { color: #1a73e8; }

/* ── 自動ブログ投稿 ───────────────────────────────────────────── */
.mm-auto-blog-source {
    background: #f0f4f8;
    border-left: 4px solid #1a73e8;
    padding: 10px 16px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 20px;
    font-size: 14px;
}
.mm-auto-blog-source p { margin: 0; }
.mm-auto-blog-source a {
    color: #1a1a1a;
    font-weight: bold;
    text-decoration: underline;
}
.mm-auto-blog-source a:hover { color: #1a73e8; }

.mm-auto-blog-summary-wrap {
    background: #f9fafb;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 0 0 28px;
}
.mm-auto-blog-summary-label {
    font-size: 13px;
    font-weight: bold;
    color: #555;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}
.mm-auto-blog-summary {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}
.mm-auto-blog-summary li {
    margin-bottom: 6px;
    line-height: 1.7;
    font-size: 15px;
    color: #333;
}
.mm-auto-blog-summary li:last-child { margin-bottom: 0; }

.mm-auto-blog-disclaimer {
    font-size: 12px;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 24px;
}

/* ── article / footer 間のマージン ──────────────────────────────── */
.site-main > article,
#main > article {
    margin-bottom: 80px;
}

/* ============================================================
   静的ページ共通（FAQ・プライバシーポリシー）
   ============================================================ */
.mm-static-page {
    padding: 48px 0 80px;
}
.mm-static-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.mm-static-hero {
    text-align: center;
    margin-bottom: 48px;
}
.mm-static-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    letter-spacing: .02em;
}
.mm-static-subtitle {
    font-size: 15px;
    color: #777;
    margin: 0;
}

/* ============================================================
   FAQ: details / summary アコーディオン（CSS only）
   ============================================================ */
.mm-faq-body details {
    border: 1px solid #e8f4f4;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s;
}
.mm-faq-body details[open] {
    box-shadow: 0 4px 16px rgba(41,183,184,.12);
    border-color: var(--mm-green);
}
.mm-faq-body summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
    user-select: none;
    position: relative;
}
.mm-faq-body summary::-webkit-details-marker { display: none; }

/* Q バッジ */
.mm-faq-body summary::before {
    content: "Q";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--mm-green);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* シェブロン（右端） */
.mm-faq-body summary::after {
    content: "";
    flex-shrink: 0;
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--mm-green);
    border-bottom: 2px solid var(--mm-green);
    transform: rotate(45deg);
    transition: transform .25s ease;
}
.mm-faq-body details[open] > summary::after {
    transform: rotate(-135deg);
}

/* 回答エリア */
.mm-faq-body details > :not(summary) {
    padding: 0 20px 20px 62px;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}
/* A バッジ（最初の p に付与） */
.mm-faq-body details > p:first-of-type::before {
    content: "A．";
    color: var(--mm-green);
    font-weight: 700;
}

/* リンク */
.mm-faq-body a,
.mm-faq-body details a {
    color: var(--mm-green) !important;
    text-decoration: underline;
    font-weight: 600;
}
.mm-faq-body a:hover,
.mm-faq-body details a:hover {
    opacity: .8;
}

/* カテゴリ見出し（h2/h3 をそのまま使う場合） */
.mm-faq-body h2,
.mm-faq-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--mm-green);
    border-left: 4px solid var(--mm-green);
    padding-left: 12px;
    margin: 40px 0 16px;
}
.mm-faq-body h2:first-child,
.mm-faq-body h3:first-child { margin-top: 0; }

/* ============================================================
   プライバシーポリシー
   ============================================================ */
.mm-prose {
    font-size: 15px;
    line-height: 1.9;
    color: #333;
}
.mm-prose h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid var(--mm-green);
    padding-bottom: 8px;
    margin: 40px 0 16px;
}
.mm-prose h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 28px 0 10px;
}
.mm-prose p { margin-bottom: 16px; }
.mm-prose ul,
.mm-prose ol {
    padding-left: 1.5em;
    margin-bottom: 16px;
}
.mm-prose li { margin-bottom: 6px; }
.mm-prose a {
    color: var(--mm-green);
    text-decoration: underline;
}
.mm-prose a:hover { opacity: .8; }

/* ============================================================
   スマホメニュー開放時 固定認証バー
   z-index: 100001 → Astra off-canvas ドロワー(100000)より前面
   ============================================================ */
.mm-mobile-auth-bar {
    display: none; /* デフォルト非表示 */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100001;
    background: #fff;
    border-top: 2px solid var(--mm-green);
    padding: 10px 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
}

/* メニューオープン時に表示（Astra が body に付与するクラス） */
.ast-main-header-nav-open .mm-mobile-auth-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* パネルが認証バーに被らないよう底上げ */
.ast-main-header-nav-open .ast-mobile-popup-inner {
    bottom: 57px !important;
}

.mm-mobile-auth-name {
    font-size: 13px;
    color: #555;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mm-mobile-auth-mypage,
.mm-mobile-auth-logout {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.mm-mobile-auth-mypage {
    background: var(--mm-green);
    color: #fff !important;
}
.mm-mobile-auth-logout {
    background: #f0f0f0;
    color: #555 !important;
}
.mm-mobile-auth-guest {
    width: 100%;
}
.mm-mobile-auth-btn {
    width: 100%;
    padding: 11px;
    background: var(--mm-green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: .04em;
}
.mm-mobile-auth-btn:hover {
    background: #22a3a4;
}

/* ============================================================
   スマホ off-canvas メニュー修正
   ============================================================ */

/* パネル本体をオーバーレイより前面に確実に出す */
.ast-mobile-popup-drawer .ast-mobile-popup-inner {
    z-index: 1;
}

/* クリック不可エリアを白の半透明にして視覚的に分かるように */
.ast-mobile-popup-drawer .ast-mobile-popup-overlay,
#ast-mobile-popup .ast-mobile-popup-overlay,
#ast-mobile-popup-wrapper .ast-mobile-popup-overlay {
    background-color: rgba(255, 255, 255, 0.6) !important;
}

/* カレントメニュー項目の文字色を濃く（ID セレクタで Astra 動的 CSS を確実に上書き） */
#ast-mobile-popup .menu-item.current-menu-item > .menu-link,
#ast-mobile-popup .menu-item.current-menu-item > a,
#ast-mobile-popup .current-menu-ancestor > .menu-link,
#ast-mobile-popup .current-menu-ancestor > a,
#ast-mobile-popup .current-menu-parent > .menu-link,
#ast-mobile-popup .current_page_item > .menu-link,
#ast-mobile-popup .current_page_item > a,
#ast-mobile-popup a[aria-current="page"] {
    color: #1a1a2e !important;
    opacity: 1 !important;
    font-weight: 700;
}

/* --- レスポンシブ --- */
@media (max-width: 600px) {
    .mm-static-title { font-size: 22px; }
    .mm-faq-body summary { font-size: 14px; padding: 16px; }
    .mm-faq-body details > :not(summary) { padding: 0 16px 16px 16px; }
}
