/* =========================================================
 * みんなの巨木 Core v1.0.21 - My Page
 * 公開ハンタープロフィールと同じトンマナに統一
 * ======================================================= */
body.mkc-mypage-page {
    --mkc-green:#2f7042;
    --mkc-deep:#173f28;
    --mkc-ink:#263c2e;
    --mkc-muted:#718077;
    --mkc-line:#dfe8dd;
    --mkc-soft:#eef6eb;
    --mkc-cream:#fbfaf6;
    background:var(--mkc-cream)!important;
}

/* ---------------------------------------------------------
 * Cocoon側のページ装飾をマイページだけ外す
 * ------------------------------------------------------ */
body.mkc-mypage-page #header-container,
body.mkc-mypage-page .header-container,
body.mkc-mypage-page #navi,
body.mkc-mypage-page .navi,
body.mkc-mypage-page #sidebar,
body.mkc-mypage-page .sidebar,
body.mkc-mypage-page .sidebar-scroll,
body.mkc-mypage-page .sidebar-menu-content,
body.mkc-mypage-page .widget-area,
body.mkc-mypage-page .article-header,
body.mkc-mypage-page .entry-title,
body.mkc-mypage-page .page-title,
body.mkc-mypage-page .date-tags,
body.mkc-mypage-page .post-date,
body.mkc-mypage-page .author-info,
body.mkc-mypage-page .author-box,
body.mkc-mypage-page .article-footer,
body.mkc-mypage-page .breadcrumb,
body.mkc-mypage-page .sns-share,
body.mkc-mypage-page .sns-follow,
body.mkc-mypage-page #toc,
body.mkc-mypage-page .toc,
body.mkc-mypage-page .toc-content,
body.mkc-mypage-page .toc-widget-box,
body.mkc-mypage-page .toc-widget {
    display:none!important;
}

body.mkc-mypage-page #content,
body.mkc-mypage-page #content-in,
body.mkc-mypage-page .content,
body.mkc-mypage-page .content-in,
body.mkc-mypage-page #main,
body.mkc-mypage-page main.main,
body.mkc-mypage-page .main,
body.mkc-mypage-page article.article,
body.mkc-mypage-page .entry-content {
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    box-shadow:none!important;
    background:transparent!important;
}

body.mkc-mypage-page .content-in,
body.mkc-mypage-page #content-in {
    display:block!important;
    grid-template-columns:1fr!important;
    column-gap:0!important;
}

body.mkc-mypage-page .mkc-mypage-v3,
body.mkc-mypage-page .mkc-mypage-v3 *,
body.mkc-mypage-page .mkc-mypage-v3 *::before,
body.mkc-mypage-page .mkc-mypage-v3 *::after {
    box-sizing:border-box;
}

body.mkc-mypage-page .mkc-mypage-v3 {
    width:100%;
    margin:0;
    padding:0;
    color:var(--mkc-ink);
    background:var(--mkc-cream);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
}

/* Cocoonのh2/h3装飾を完全に打ち消す */
body.mkc-mypage-page .mkc-mypage-v3 h1,
body.mkc-mypage-page .mkc-mypage-v3 h2,
body.mkc-mypage-page .mkc-mypage-v3 h3 {
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-left:0!important;
    border-right:0!important;
    border-top:0!important;
    border-bottom:0!important;
    border-radius:0!important;
    background:none!important;
    box-shadow:none!important;
    text-shadow:none!important;
}
body.mkc-mypage-page .mkc-mypage-v3 h1::before,
body.mkc-mypage-page .mkc-mypage-v3 h1::after,
body.mkc-mypage-page .mkc-mypage-v3 h2::before,
body.mkc-mypage-page .mkc-mypage-v3 h2::after,
body.mkc-mypage-page .mkc-mypage-v3 h3::before,
body.mkc-mypage-page .mkc-mypage-v3 h3::after {
    content:none!important;
    display:none!important;
}

/* ---------------------------------------------------------
 * 公開プロフィールと共通のブランドヘッダー
 * ------------------------------------------------------ */
.mkc-my-public-header {
    height:72px;
    display:flex;
    align-items:center;
    border-bottom:1px solid #edf1eb;
    background:#fff;
}
.mkc-my-public-header-inner {
    width:min(1184px,calc(100% - 48px));
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}
.mkc-my-brand {
    display:flex!important;
    align-items:center;
    gap:10px;
    color:#234f34!important;
    text-decoration:none!important;
    font-family:Georgia,"Yu Mincho","Hiragino Mincho ProN",serif;
    font-size:20px;
    font-weight:700;
    line-height:1;
}
.mkc-my-brand-mark {
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    color:var(--mkc-green);
}
.mkc-my-brand-mark svg { width:100%;height:100%;display:block; }
.mkc-my-public-nav { display:flex;align-items:center;gap:22px; }
.mkc-my-public-nav a {
    color:#294b35!important;
    text-decoration:none!important;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}
.mkc-my-public-nav a.is-current { color:var(--mkc-green)!important; }
.mkc-my-public-nav .mkc-my-header-submit {
    min-height:40px;
    padding:0 17px;
    display:inline-flex;
    align-items:center;
    border-radius:9px;
    color:#fff!important;
    background:var(--mkc-green);
}

/* ---------------------------------------------------------
 * 本文
 * ------------------------------------------------------ */
.mkc-my-main {
    width:min(1184px,calc(100% - 48px));
    margin:0 auto;
    padding:30px 0 70px;
}

.mkc-my-profile-panel {
    overflow:hidden;
    border:1px solid #dce7d9;
    border-radius:24px;
    background:
        radial-gradient(circle at 90% 8%,rgba(255,255,255,.96),transparent 30%),
        linear-gradient(135deg,#eef6eb 0%,#f9fbf7 72%);
    box-shadow:0 14px 36px rgba(32,63,39,.055);
}
.mkc-my-hero {
    position:relative;
    display:grid;
    grid-template-columns:96px minmax(0,1fr) auto;
    gap:22px;
    align-items:center;
    min-height:150px;
    padding:28px 30px 22px;
}
.mkc-my-hero::after {
    content:"";
    position:absolute;
    width:220px;
    height:220px;
    right:-54px;
    bottom:-98px;
    border:1px solid rgba(47,112,66,.055);
    border-radius:50%;
    pointer-events:none;
}
.mkc-my-avatar {
    width:88px;
    height:88px;
    overflow:hidden;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#e7f1e4;
    border:4px solid rgba(255,255,255,.97);
    box-shadow:0 8px 22px rgba(31,56,35,.10);
    color:var(--mkc-green);
    font-size:30px;
    font-weight:800;
    position:relative;
    z-index:2;
}
.mkc-my-avatar img { width:100%!important;height:100%!important;object-fit:cover;display:block;border-radius:50%; }
.mkc-my-profile-copy { min-width:0;position:relative;z-index:2; }
.mkc-my-profile-kicker {
    display:inline-flex;
    align-items:center;
    min-height:22px;
    padding:4px 10px;
    margin-bottom:6px;
    border-radius:999px;
    background:#dfeede;
    color:var(--mkc-green);
    font-size:10px;
    font-weight:800;
    letter-spacing:.08em;
}
.mkc-my-profile-copy h1 {
    color:var(--mkc-deep)!important;
    font-size:32px!important;
    line-height:1.12!important;
    letter-spacing:-.025em!important;
    font-weight:800!important;
}
.mkc-my-profile-copy p {
    max-width:720px;
    margin:8px 0 0!important;
    color:#647168;
    font-size:14px;
    line-height:1.8;
}
.mkc-my-profile-copy p.is-empty { color:#8b958e; }
.mkc-my-profile-actions {
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:9px;
    position:relative;
    z-index:2;
}
.mkc-my-outline {
    display:inline-flex;
    min-height:42px;
    padding:0 16px;
    align-items:center;
    justify-content:center;
    border:1px solid #c3d9c5;
    border-radius:999px;
    background:rgba(255,255,255,.92);
    color:var(--mkc-green)!important;
    font-size:12px;
    font-weight:800;
    text-decoration:none!important;
    white-space:nowrap;
}

.mkc-my-stats {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    border-top:1px solid #e4ece2;
    background:rgba(255,255,255,.62);
}
.mkc-my-stat {
    position:relative;
    min-height:82px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}
.mkc-my-stat:not(:last-child)::after {
    content:"";
    position:absolute;
    top:20px;
    right:0;
    width:1px;
    height:42px;
    background:#e4ebe2;
}
.mkc-my-stat strong { color:var(--mkc-deep);font-size:25px;line-height:1;font-weight:800; }
.mkc-my-stat span { margin-top:7px;color:#7d8981;font-size:10px;font-weight:700; }

.mkc-my-profile-bottom {
    padding:15px 22px 18px;
    display:flex;
    justify-content:flex-end;
    border-top:1px solid #edf1eb;
    background:rgba(249,252,247,.76);
}
.mkc-my-primary {
    min-height:43px;
    padding:0 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background:var(--mkc-green);
    color:#fff!important;
    box-shadow:none;
    font-size:12px;
    font-weight:800;
    text-decoration:none!important;
}
.mkc-my-primary:hover { background:#28643b;color:#fff!important; }

/* ---------------------------------------------------------
 * セクション
 * ------------------------------------------------------ */
.mkc-my-section {
    margin-top:24px;
    padding:25px 27px 28px;
    border:1px solid #e1e9df;
    border-radius:20px;
    background:#fff;
    box-shadow:0 8px 24px rgba(31,56,35,.035);
}
.mkc-my-want-section {
    background:linear-gradient(135deg,#f2f8ef 0%,#f9fcf7 100%);
    border-color:#dce8d9;
}
.mkc-my-section-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:17px;
}
.mkc-my-section-head h2 {
    color:var(--mkc-deep)!important;
    font-size:22px!important;
    font-weight:800!important;
    line-height:1.3!important;
    letter-spacing:-.02em!important;
}
.mkc-my-section-head > span { color:#849087;font-size:11px;font-weight:700;white-space:nowrap; }
.mkc-my-section-lead { margin:-6px 0 18px!important;color:#77857c;font-size:12px;line-height:1.75; }

/* ---------------------------------------------------------
 * 巨木カード
 * ------------------------------------------------------ */
.mkc-my-tree-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.mkc-my-tree-card {
    min-width:0;
    overflow:hidden;
    border:1px solid #e3e9e0;
    border-radius:16px;
    background:#fff;
    box-shadow:0 6px 18px rgba(31,56,35,.04);
}
.mkc-my-tree-thumb {
    display:grid;
    place-items:center;
    height:210px;
    overflow:hidden;
    background:#edf5ea;
    text-decoration:none!important;
}
.mkc-my-tree-thumb img { width:100%!important;height:100%!important;object-fit:cover;display:block; }
.mkc-my-tree-placeholder { color:#98b298;font-size:42px;line-height:1; }
.mkc-my-tree-body { padding:16px; }
.mkc-my-tree-meta { display:flex;gap:8px;align-items:center;min-height:22px;margin-bottom:7px;color:#879189;font-size:10px;font-weight:700; }
.mkc-my-tree-body h3 { margin:0 0 12px!important; }
.mkc-my-tree-body h3 a {
    color:var(--mkc-deep)!important;
    font-size:16px!important;
    font-weight:800!important;
    line-height:1.5!important;
    text-decoration:none!important;
}
.mkc-my-tree-actions { display:flex;align-items:center;justify-content:space-between;gap:9px; }
.mkc-my-tree-actions a { color:var(--mkc-green)!important;font-size:11px;font-weight:800;text-decoration:none!important; }
.mkc-my-muted-link { color:#9aa39d;font-size:10px;font-weight:700; }
.mkc-my-saved { display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border:1px solid #cfe0d1;border-radius:999px;background:#f5faf3;color:var(--mkc-green);font-size:9px;font-weight:800; }
.mkc-my-status { display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:999px;font-size:9px;font-weight:800; }
.mkc-my-status.is-published { background:#edf7ef;color:#2f7d4b; }
.mkc-my-status.is-pending { background:#fff6dc;color:#9a771d; }

/* ---------------------------------------------------------
 * 口コミカード
 * ------------------------------------------------------ */
.mkc-my-review-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
.mkc-my-review-card { padding:18px;border:1px solid #e4ebe3;border-radius:16px;background:#fff;box-shadow:0 4px 15px rgba(31,56,35,.025); }
.mkc-my-review-top { display:flex;align-items:flex-start;justify-content:space-between;gap:12px; }
.mkc-my-review-kicker { display:block;margin-bottom:5px;color:#89a08f;font-size:9px;font-weight:800;letter-spacing:.08em; }
.mkc-my-review-card h3 { margin:0!important; }
.mkc-my-review-card h3 a {
    display:inline!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:var(--mkc-deep)!important;
    font-size:15px!important;
    font-weight:800!important;
    line-height:1.45!important;
    text-decoration:none!important;
}
.mkc-my-review-card h3 a::before,
.mkc-my-review-card h3 a::after { content:none!important;display:none!important; }
.mkc-my-review-rating { display:flex;align-items:center;gap:7px;margin:10px 0 8px; }
.mkc-my-review-rating span { color:#f2a900;font-size:12px;letter-spacing:.02em; }
.mkc-my-review-rating strong { color:#53645a;font-size:10px; }
.mkc-my-review-card p { margin:0 0 13px!important;color:#637168;font-size:12px;line-height:1.78; }
.mkc-my-review-bottom { display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:11px;border-top:1px solid #edf1ed; }
.mkc-my-review-bottom time { color:#9aa39d;font-size:9px; }
.mkc-my-review-bottom a { color:var(--mkc-green)!important;font-size:10px;font-weight:800;text-decoration:none!important; }

.mkc-my-empty { padding:28px;border:1px dashed #d7e4d7;border-radius:16px;background:#fafcf9;text-align:center; }
.mkc-my-empty strong { display:block;color:var(--mkc-deep);font-size:13px;margin-bottom:5px; }
.mkc-my-empty span { display:block;color:var(--mkc-muted);font-size:11px;line-height:1.7; }
.mkc-my-empty a { display:inline-flex;margin-top:12px;color:var(--mkc-green)!important;font-size:11px;font-weight:800;text-decoration:none!important; }
.mkc-my-more-note { margin:13px 0 0!important;color:var(--mkc-muted);font-size:10px;text-align:right; }

.mkc-my-login-panel {
    max-width:620px;
    margin:40px auto 0;
    padding:36px;
    border:1px solid #dce7d9;
    border-radius:24px;
    background:linear-gradient(135deg,#eef6eb 0%,#f9fbf7 72%);
    text-align:center;
}
.mkc-my-login-panel h1 { margin:10px 0 8px!important;color:var(--mkc-deep)!important;font-size:28px!important; }
.mkc-my-login-panel p { margin:0 0 20px!important;color:var(--mkc-muted);font-size:13px;line-height:1.8; }

/* JSが検出した旧ブロック */
body.mkc-mypage-page .mkc-legacy-mypage-block { display:none!important; }

@media (max-width:900px) {
    .mkc-my-public-nav a:not(.mkc-my-header-submit):not(.is-current) { display:none; }
    .mkc-my-hero { grid-template-columns:82px minmax(0,1fr); }
    .mkc-my-avatar { width:82px;height:82px; }
    .mkc-my-profile-actions { grid-column:1/-1;flex-direction:row;align-items:flex-start;flex-wrap:wrap; }
    .mkc-my-tree-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:640px) {
    .mkc-my-public-header { height:62px; }
    .mkc-my-public-header-inner,
    .mkc-my-main { width:calc(100% - 24px); }
    .mkc-my-brand { font-size:17px; }
    .mkc-my-brand-mark { width:25px;height:25px; }
    .mkc-my-public-nav .is-current { display:none; }
    .mkc-my-public-nav { gap:10px; }
    .mkc-my-public-nav .mkc-my-header-submit { min-height:38px;padding:0 14px;font-size:11px; }
    .mkc-my-main { padding-top:20px;padding-bottom:50px; }
    .mkc-my-profile-panel { border-radius:18px; }
    .mkc-my-hero { grid-template-columns:64px minmax(0,1fr);gap:14px;padding:20px 17px 18px; }
    .mkc-my-avatar { width:64px;height:64px;font-size:24px; }
    .mkc-my-profile-copy h1 { font-size:25px!important; }
    .mkc-my-profile-copy p { grid-column:1/-1;font-size:13px; }
    .mkc-my-profile-actions { gap:7px; }
    .mkc-my-outline { min-height:39px;padding:0 13px;font-size:11px; }
    .mkc-my-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .mkc-my-stat:nth-child(2)::after { display:none; }
    .mkc-my-stat:nth-child(-n+2) { border-bottom:1px solid #edf1eb; }
    .mkc-my-profile-bottom { justify-content:stretch;padding:13px 16px 16px; }
    .mkc-my-primary { width:100%; }
    .mkc-my-section { border-radius:17px;padding:20px 16px 22px; }
    .mkc-my-section-head h2 { font-size:19px!important; }
    .mkc-my-tree-grid,.mkc-my-review-grid { grid-template-columns:1fr; }
    .mkc-my-tree-thumb { height:200px; }
}
