/*
 * myfans Media Core — ブロックとサイト共通部品の見た目
 * 色は SWELL のカスタマイザー（--color_main など）に合わせ、CTA だけ --mf-accent を使う。
 * SWELL の本文スタイルに負けないよう、要所はクラスを2つ重ねている。
 */

:root {
  --mf-main: var(--color_main, #2a2140);
  --mf-accent: #ff4f8b;
  --mf-accent-dark: color-mix(in srgb, var(--mf-accent) 82%, #000);
  --mf-accent-soft: color-mix(in srgb, var(--mf-accent) 9%, #fff);
  --mf-ink: var(--color_text, #2b2b33);
  --mf-sub: #75737f;
  --mf-line: #e6e4ec;
  --mf-soft: #f7f6fa;
  --mf-radius: 10px;
}

/* ───── PR表記 ───── */
.mf-prbar {
  font-size: 11px; line-height: 1.6; color: var(--mf-sub); background: var(--mf-soft);
  padding: 4px 16px; border-bottom: 1px solid var(--mf-line); text-align: center;
}

/* ───── 画像（公式素材）と置き場 ───── */
.mf-img { display: block; width: 100%; height: auto; object-fit: cover; }
.mf-ph { position: relative; display: block; width: 100%; }
.mf-ph span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 10px; letter-spacing: .1em; color: rgba(255,255,255,.85); white-space: nowrap; }
.mf-ph--1 { background: linear-gradient(135deg, #f7a1c0, #7b4d9e); }
.mf-ph--2 { background: linear-gradient(135deg, #ffc49b, #c0577e); }
.mf-ph--3 { background: linear-gradient(135deg, #a3c4ff, #6b4fa0); }
.mf-ph--4 { background: linear-gradient(135deg, #f3d5b5, #a26c8b); }
.mf-ph--5 { background: linear-gradient(135deg, #b8e0d2, #5c6fa5); }
.mf-ph--6 { background: linear-gradient(135deg, #ffb3b3, #8a3f6b); }

/* ───── 共通の小物 ───── */
.mf-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mf-tags span { font-size: 10.5px; line-height: 1.6; background: var(--mf-soft); color: var(--mf-sub); padding: 0 7px; border-radius: 3px; }
.mf-data { font-size: 11px; line-height: 1.6; color: var(--mf-sub); }
.mf-data b { color: var(--mf-ink); font-weight: 700; }
.mf-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mf-chips span { font-size: 11px; line-height: 1.7; background: var(--mf-soft); border: 1px solid var(--mf-line); border-radius: 999px; padding: 0 9px; color: var(--mf-ink); }
.mf-ribbon { align-self: flex-start; font-size: 10.5px; font-weight: 800; line-height: 1.6; color: #fff; background: var(--mf-main); padding: 1px 8px; border-radius: 3px; }
.mf-ribbon.is-accent { background: var(--mf-accent); }
a.mf-more.mf-more { display: block; text-align: center; font-size: 13px; font-weight: 700; margin: 12px 0 0; color: var(--mf-main); text-decoration: none; }
.mf-editor-notice { font-size: 12px; padding: 10px 12px; border: 1px dashed #c9c6d6; border-radius: 8px; color: #6b6878; background: #faf9fd; }

/* ───── タイトル下のデータ ───── */
.mf-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.mf-meta span { font-size: 11px; line-height: 1.7; border: 1px solid var(--mf-line); border-radius: 4px; padding: 0 8px; color: var(--mf-sub); }
.mf-meta b { color: var(--mf-accent-dark); font-weight: 700; }

/* ───── CTA ───── */
.mf-cta { text-align: center; }
.mf-cta .mf-micro { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--mf-accent-dark); line-height: 1.5; }
a.mf-btn.mf-btn {
  position: relative; display: block; width: 100%; max-width: 480px; margin: 0 auto; box-sizing: border-box;
  text-align: center; text-decoration: none; color: #fff; font-weight: 800; line-height: 1.4;
  background: linear-gradient(180deg, var(--mf-accent) 0%, var(--mf-accent-dark) 100%);
  border-radius: 999px; box-shadow: 0 4px 0 color-mix(in srgb, var(--mf-accent) 60%, #000);
  transition: transform .1s ease, box-shadow .1s ease;
}
a.mf-btn.mf-btn::after { content: "›"; position: absolute; right: 18px; top: 50%; transform: translateY(-54%); font-size: 1.4em; font-weight: 400; }
a.mf-btn.mf-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 color-mix(in srgb, var(--mf-accent) 60%, #000); }
.mf-btn--large { font-size: 16px; padding: 15px 36px; }
a.mf-btn.mf-btn--small { font-size: 12.5px; padding: 8px 28px; box-shadow: 0 3px 0 color-mix(in srgb, var(--mf-accent) 60%, #000); }
a.mf-btn.mf-btn--small::after { right: 12px; }
.mf-cta--small a.mf-btn { display: inline-block; width: auto; }
a.mf-pay.mf-pay { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--mf-main); text-decoration: underline; text-underline-offset: 3px; }
a.mf-pay.mf-pay::before { content: "💳 "; }

/* ───── 単品とプランの比較 ───── */
.mf-deal { background: var(--mf-accent-soft); border-radius: var(--mf-radius); padding: 12px; text-align: center; }
.mf-deal__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.mf-deal__n { font-weight: 800; font-size: 17px; line-height: 1.25; color: var(--mf-ink); }
.mf-deal__n small { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 500; color: var(--mf-sub); }
.mf-deal__n--was { color: var(--mf-sub); }
.mf-deal__n--was s { text-decoration-thickness: 1px; }
.mf-deal__n--big { color: var(--mf-accent-dark); font-size: 22px; }
.mf-deal__arrow { color: var(--mf-accent-dark); font-size: 20px; font-weight: 800; }
.mf-deal__sub { margin-top: 8px; font-size: 12px; color: var(--mf-ink); }
.mf-deal__sub b { color: var(--mf-accent-dark); }

/* ───── 料金ボックス ───── */
.mf-price { border: 2px solid var(--mf-main); border-radius: var(--mf-radius); overflow: hidden; background: #fff; }
.mf-price__hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--mf-main); color: #fff; padding: 9px 14px; }
.mf-price__hd b { font-size: 14px; }
.mf-price__hd span { font-size: 10.5px; white-space: nowrap; background: rgba(255,255,255,.16); padding: 1px 8px; border-radius: 999px; }
.mf-price__row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 14px; border-bottom: 1px solid var(--mf-line); }
.mf-price__row.is-rec { background: var(--mf-accent-soft); }
.mf-price__nm { font-weight: 800; font-size: 14px; }
.mf-price__nm em { font-style: normal; margin-left: 6px; font-size: 10px; color: #fff; background: var(--mf-accent); padding: 1px 6px; border-radius: 3px; vertical-align: 2px; }
.mf-price__pr { font-weight: 800; font-size: 15px; text-align: right; white-space: nowrap; }
.mf-price__pr small { font-size: 10.5px; color: var(--mf-sub); font-weight: 500; }
.mf-price__ds { grid-column: 1 / -1; font-size: 12px; color: var(--mf-sub); line-height: 1.6; }
.mf-price__ft { font-size: 11px; color: var(--mf-sub); padding: 9px 14px; background: var(--mf-soft); line-height: 1.7; }

/* ───── 魅力ポイント ───── */
.mf-charm .mf-charm__img { aspect-ratio: 16 / 9; border-radius: var(--mf-radius); overflow: hidden; }
.mf-charm__pt { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; }
.mf-charm__pt span { flex: none; background: var(--mf-accent); color: #fff; font-size: 10.5px; font-weight: 800; padding: 1px 9px; border-radius: 999px; letter-spacing: .06em; }
.mf-charm__pt b { font-size: 17px; line-height: 1.5; }
.mf-charm.mf-charm p { margin: 0; }

/* ───── こんな人におすすめ ───── */
.mf-check { border: 2px solid var(--mf-line); border-radius: var(--mf-radius); padding: 14px 16px; background: #fff; }
.mf-check__t { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
div.mf-check ul { list-style: none; margin: 0; padding: 0; }
div.mf-check li { position: relative; padding: 6px 0 6px 28px; border-bottom: 1px dashed var(--mf-line); margin: 0; }
div.mf-check li:last-child { border-bottom: 0; }
div.mf-check li::before {
  content: "✓"; position: absolute; left: 2px; top: 9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mf-accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1;
}

/* ───── プロフィールカード ───── */
.mf-prof { border: 1px solid var(--mf-line); border-radius: var(--mf-radius); overflow: hidden; background: #fff; }
.mf-prof__head { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--mf-soft); }
.mf-prof .mf-prof__av { width: 64px; height: 64px; border-radius: 50%; flex: none; overflow: hidden; }
.mf-prof__nm { font-weight: 800; font-size: 16px; line-height: 1.4; }
.mf-prof__id { font-size: 12px; color: var(--mf-sub); }
.mf-prof table.mf-prof__table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13px; }
.mf-prof .mf-prof__table th, .mf-prof .mf-prof__table td { border: 0; border-bottom: 1px solid var(--mf-line); padding: 9px 14px; text-align: left; vertical-align: top; background: #fff; }
.mf-prof .mf-prof__table th { width: 34%; color: var(--mf-sub); font-weight: 700; white-space: nowrap; }
.mf-prof .mf-prof__table tr:last-child th, .mf-prof .mf-prof__table tr:last-child td { border-bottom: 0; }

/* ───── まず見てほしい作品（横スクロール） ───── */
.mf-picks { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; }
.mf-picks::-webkit-scrollbar { height: 4px; }
.mf-picks::-webkit-scrollbar-thumb { background: #d6d3df; border-radius: 4px; }
.mf-card { scroll-snap-align: start; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.mf-card .mf-card__img { aspect-ratio: 16 / 9; }
.mf-card__body { padding: 11px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.mf-card__t { font-size: 14px; font-weight: 800; line-height: 1.45; }
.mf-card .mf-card__s { margin: 0; font-size: 12.5px; line-height: 1.7; }
.mf-card a.mf-btn { margin-top: auto; }

/* ───── 作品の画像とデータ ───── */
.mf-feature { display: flex; flex-direction: column; gap: 6px; }
.mf-feature .mf-feature__img { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; margin-bottom: 4px; }

/* ───── 作品リスト ───── */
.mf-wlist { border: 1px solid var(--mf-line); border-radius: var(--mf-radius); overflow: hidden; background: #fff; }
.mf-wrow { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px; border-bottom: 1px solid var(--mf-line); align-items: center; }
.mf-wrow:last-child { border-bottom: 0; }
.mf-wrow .mf-wrow__img { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; }
.mf-wrow .mf-wrow__img span { display: none; }
a.mf-wrow__t.mf-wrow__t, span.mf-wrow__t { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.45; color: var(--mf-main); text-decoration: none; margin-bottom: 3px; }
.mf-wrow .mf-tags { margin-bottom: 2px; }

/* ───── 気分で選ぶ（タブ） ───── */
.mf-tabs { display: flex; overflow-x: auto; border-bottom: 2px solid var(--mf-main); margin-bottom: 10px; }
.mf-tabs::-webkit-scrollbar { height: 0; }
.mf-tabs button {
  flex: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.4;
  background: var(--mf-soft); color: var(--mf-sub); padding: 8px 14px; margin-right: 3px; border-radius: 6px 6px 0 0;
}
.mf-tabs button[aria-selected="true"] { background: var(--mf-main); color: #fff; }
.mf-mood .mf-tabnote { font-size: 13px; background: var(--mf-soft); border-radius: 8px; padding: 9px 12px; margin: 0 0 10px; }
.mf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
a.mf-mini.mf-mini { display: block; border: 1px solid var(--mf-line); border-radius: 8px; overflow: hidden; background: #fff; color: var(--mf-ink); text-decoration: none; }
.mf-mini .mf-mini__img { aspect-ratio: 16 / 9; }
.mf-mini__t { display: block; font-size: 12px; font-weight: 700; line-height: 1.45; padding: 7px 9px 2px; }
.mf-mini .mf-data { padding: 0 9px 8px; font-size: 10.5px; }

/* ───── 似ているクリエイター ───── */
.mf-similar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mf-sim, a.mf-sim.mf-sim { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; border: 1px solid var(--mf-line); border-radius: var(--mf-radius); padding: 12px 6px; background: #fff; color: var(--mf-ink); text-decoration: none; }
.mf-sim .mf-sim__av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; margin-bottom: 6px; }
.mf-sim .mf-sim__av span { display: none; }
.mf-sim__nm { font-size: 12.5px; font-weight: 800; }
.mf-sim__tg { font-size: 10.5px; color: var(--mf-sub); }

/* ───── 見方の診断 ───── */
.mf-quiz { border: 2px solid var(--mf-main); border-radius: var(--mf-radius); padding: 16px; background: #fff; }
.mf-quiz__qn { font-size: 11px; color: var(--mf-sub); }
.mf-quiz__qh { font-weight: 800; font-size: 15px; margin: 2px 0 8px; }
.mf-quiz__opts { display: grid; gap: 8px; }
.mf-quiz__opts button { text-align: left; border: 1px solid var(--mf-line); background: var(--mf-soft); border-radius: 8px; padding: 11px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--mf-ink); }
.mf-quiz__opts button:hover { border-color: var(--mf-accent); }
.mf-quiz__res { text-align: center; }
.mf-quiz__big { font-size: 19px; font-weight: 800; color: var(--mf-accent-dark); margin: 4px 0 6px; }
.mf-quiz .mf-quiz__txt { font-size: 13px; margin: 0 0 12px; }
.mf-quiz__reset { background: none; border: 0; color: var(--mf-sub); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; margin-top: 10px; }

/* ───── 年齢確認 ───── */
.mf-agegate { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 24px; background: rgba(20, 14, 32, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.mf-agegate[hidden] { display: none; }
.mf-agegate__box { width: min(360px, 100%); background: #fff; border-radius: 16px; padding: 26px 20px; text-align: center; color: var(--mf-ink); }
.mf-agegate .mf-agegate__t { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.mf-agegate .mf-agegate__d { font-size: 13px; color: var(--mf-sub); margin: 0 0 18px; line-height: 1.7; }
.mf-agegate__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mf-agegate__row button { border: 0; border-radius: 999px; padding: 12px; font: inherit; font-weight: 800; cursor: pointer; }
.mf-agegate__yes { background: var(--mf-accent); color: #fff; }
.mf-agegate__no { background: var(--mf-soft); color: var(--mf-sub); }
body.mf-age-open { overflow: hidden; }

/* ───── 追従CTA ───── */
.mf-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; display: flex; gap: 10px; align-items: center;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-top: 1px solid var(--mf-line);
  transform: translateY(110%); transition: transform .25s ease;
}
.mf-sticky.is-on { transform: translateY(0); }
.mf-sticky .mf-sticky__av { width: 38px; height: 38px; border-radius: 50%; flex: none; overflow: hidden; }
.mf-sticky .mf-sticky__av span { display: none; }
a.mf-btn.mf-btn--sticky { font-size: 14px; padding: 11px 32px; max-width: none; }
@media (min-width: 960px) {
  .mf-sticky { left: auto; right: 20px; bottom: 20px; width: 380px; border: 1px solid var(--mf-line); border-radius: 14px; box-shadow: 0 10px 30px -10px rgba(20,10,40,.35); padding: 10px 12px; }
}

/* ═════ トップページ用 ═════ */

/* 画面幅いっぱいに広げる（1カラムのページで使う） */
.is-bleed { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.post_content > .is-bleed:first-child { margin-top: 0; }

/* ───── セクション ───── */
.mf-section { padding: 48px 16px; box-sizing: border-box; }
.mf-section__inner { max-width: 960px; margin: 0 auto; }
.mf-section--soft { background: var(--mf-soft); }
.mf-section--main { background: var(--mf-main); color: #fff; }
.mf-section--image { background: var(--mf-main) var(--mf-section-bg) center / cover no-repeat; color: #fff; }
.mf-section__head { text-align: center; margin-bottom: 24px; }
.mf-section .mf-section__eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .24em; color: var(--mf-accent); text-transform: uppercase; }
.mf-section h2.mf-section__title.mf-section__title { margin: 0; padding: 0; background: none; border: 0; color: inherit; font-size: 23px; line-height: 1.45; font-weight: 800; letter-spacing: .02em; }
.mf-section h2.mf-section__title::before, .mf-section h2.mf-section__title::after { display: none; }
.mf-section .mf-section__lead { margin: 10px auto 0; max-width: 640px; font-size: 13.5px; color: var(--mf-sub); }
.mf-section--main .mf-section__lead, .mf-section--image .mf-section__lead { color: rgba(255,255,255,.8); }
.mf-section__inner > * + * { margin-top: 20px; }
@media (min-width: 960px) { .mf-section { padding: 72px 24px; } .mf-section h2.mf-section__title.mf-section__title { font-size: 30px; } }

/* ───── ヒーロー ───── */
.mf-hero {
  position: relative; overflow: hidden; color: #fff; box-sizing: border-box; padding: 64px 20px 56px;
  background: radial-gradient(120% 120% at 85% 10%, #6b3f8f 0%, var(--mf-main) 55%, #160f24 100%);
}
.mf-hero.has-image { background: var(--mf-main) var(--mf-hero-bg) center / cover no-repeat; }
.mf-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,15,36,.82) 0%, rgba(22,15,36,.45) 60%, rgba(22,15,36,.15) 100%); pointer-events: none; }
.mf-hero__inner { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; }
.mf-hero .mf-hero__eyebrow { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .24em; color: #ffb3cc; }
.mf-hero h2.mf-hero__title.mf-hero__title { margin: 0; padding: 0; background: none; border: 0; color: #fff; font-size: clamp(22px, 6.4vw, 30px); line-height: 1.35; font-weight: 900; letter-spacing: .02em; }
.mf-hero h2.mf-hero__title::before, .mf-hero h2.mf-hero__title::after { display: none; }
.mf-hero .mf-hero__text { margin: 14px 0 0; max-width: 520px; font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.86); }
.mf-hero__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
a.mf-hero__btn.mf-hero__btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: 14px; text-decoration: none; line-height: 1.3; }
a.mf-hero__btn--primary.mf-hero__btn--primary { background: var(--mf-accent); color: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--mf-accent) 80%, #000); }
a.mf-hero__btn--ghost.mf-hero__btn--ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
@media (min-width: 960px) {
  .mf-hero { padding: 120px 24px 110px; }
  .mf-hero h2.mf-hero__title.mf-hero__title { font-size: 46px; }
  .mf-hero .mf-hero__text { font-size: 16px; }
}

/* ───── クリエイター一覧 ───── */
.mf-cgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .mf-cgrid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
a.mf-ccard.mf-ccard { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--mf-line); border-radius: 14px; overflow: hidden; color: var(--mf-ink); text-decoration: none; padding-bottom: 12px; transition: transform .15s ease, box-shadow .15s ease; }
a.mf-ccard.mf-ccard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(43,33,65,.45); }
.mf-ccard .mf-ccard__av { aspect-ratio: 1 / 1; margin-bottom: 8px; }
.mf-ccard .mf-ccard__av span { display: none; }
.mf-ccard__nm { padding: 0 12px; font-weight: 800; font-size: 15px; line-height: 1.4; }
.mf-ccard__tg { padding: 0 12px; font-size: 11px; color: var(--mf-sub); }
.mf-ccard__n { margin: 4px 12px 0; align-self: flex-start; font-size: 10.5px; font-weight: 700; color: var(--mf-accent-dark); background: var(--mf-accent-soft); padding: 0 8px; border-radius: 999px; }
.mf-section--main a.mf-ccard.mf-ccard, .mf-section--image a.mf-ccard.mf-ccard { border-color: transparent; }

/* ───── 新着作品 ───── */
.mf-nworks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .mf-nworks { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.mf-nwork { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mf-line); border-radius: 12px; overflow: hidden; color: var(--mf-ink); }
.mf-nwork .mf-nwork__img { aspect-ratio: 16 / 10; }
.mf-nwork__body { display: flex; flex-direction: column; gap: 5px; padding: 10px; flex: 1; }
a.mf-nwork__cr.mf-nwork__cr, span.mf-nwork__cr { font-size: 11px; font-weight: 800; color: var(--mf-accent-dark); text-decoration: none; }
.mf-nwork__t { font-size: 13px; font-weight: 800; line-height: 1.45; }
.mf-nwork a.mf-btn { margin-top: auto; width: 100%; padding-left: 12px; padding-right: 22px; }

/* ───── ジャンル別の人気クリエイター ───── */
.mf-gtiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .mf-gtiles { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.mf-gtile { background: #fff; border: 1px solid var(--mf-line); border-radius: 12px; padding: 12px; color: var(--mf-ink); }
.mf-gtile__nm { font-weight: 900; font-size: 15px; margin-bottom: 8px; }
.mf-gtile__nm span { color: var(--mf-accent); margin-right: 2px; }
.mf-gtile__list { display: flex; flex-direction: column; gap: 6px; }
a.mf-gtile__cr.mf-gtile__cr { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--mf-ink); text-decoration: none; }
.mf-gtile .mf-gtile__av { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none; }
.mf-gtile .mf-gtile__av span { display: none; }

/* ───── 案内カード ───── */
.mf-lcards { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 720px) { .mf-lcards { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.mf-lcard, a.mf-lcard.mf-lcard { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; background: #fff; border: 1px solid var(--mf-line); border-radius: 12px; padding: 14px 16px; color: var(--mf-ink); text-decoration: none; }
.mf-lcard__ic { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; background: var(--mf-accent-soft); display: grid; place-items: center; font-size: 22px; }
.mf-lcard__t { font-weight: 800; font-size: 14.5px; line-height: 1.4; }
.mf-lcard__d { font-size: 12px; color: var(--mf-sub); line-height: 1.6; }

/* 作品の素材がない間の表示（クリエイターのアイコンを中央に） */
.mf-ph--creator { display: grid; place-items: center; }
.mf-ph--creator::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.18), rgba(0,0,0,.08)); pointer-events: none; }
.mf-ph--creator .mf-ph__av { position: relative; z-index: 1; width: 30%; max-width: 96px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }

/* ═════ 記事の部品（ステップ・表・出典） ═════ */
ol.mf-steps.mf-steps { list-style: none; counter-reset: mfstep; padding: 0; margin-left: 0; }
ol.mf-steps.mf-steps > li { position: relative; counter-increment: mfstep; padding: 0 0 20px 48px; margin: 0; }
ol.mf-steps.mf-steps > li::before {
  content: counter(mfstep); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--mf-main); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; line-height: 1;
}
ol.mf-steps.mf-steps > li::after { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; border-left: 2px dotted var(--mf-line); }
ol.mf-steps.mf-steps > li:last-child::after { display: none; }
ol.mf-steps.mf-steps > li strong { display: block; font-size: 1.05em; margin-bottom: 2px; }
figure.mf-table table { font-size: 14px; }
figure.mf-table th { background: var(--mf-main); color: #fff; }
figure.mf-table td:first-child { font-weight: 700; width: 34%; }
@media (min-width: 720px) { figure.mf-table td:first-child { white-space: nowrap; width: auto; } }
/* 年表は時期の列を折り返さない（スマホでも「2024年10月」を1行に） */
figure.mf-table--timeline td:first-child { white-space: nowrap; width: 1%; }
h3.mf-sources-title.mf-sources-title { font-size: 14px; border: 0; padding: 0; margin-top: 3em; color: var(--mf-sub); }
h3.mf-sources-title::before, h3.mf-sources-title::after { display: none; }
ul.mf-sources.mf-sources { font-size: 12px; color: var(--mf-sub); line-height: 1.7; }
ul.mf-sources a { color: var(--mf-sub); }

/* ───── クリエイターのページ同士のタブ ───── */
.mf-cnav { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 1.5em; padding-bottom: 2px; }
.mf-cnav::-webkit-scrollbar { height: 0; }
a.mf-cnav__item.mf-cnav__item, .mf-cnav__item { flex: none; font-size: 13px; font-weight: 700; line-height: 1; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--mf-line); color: var(--mf-main); background: #fff; text-decoration: none; }
.mf-cnav__item.is-current { background: var(--mf-main); border-color: var(--mf-main); color: #fff; }

/* ───── 関連ページ ───── */
.mf-clinks .mf-clinks__title { font-weight: 800; font-size: 15px; margin: 0 0 10px; }
.mf-clinks .mf-lcards { grid-template-columns: 1fr; }
@media (min-width: 720px) { .mf-clinks .mf-lcards { grid-template-columns: 1fr 1fr; } }

/* ───── プロフィールのバナー ───── */
.mf-prof.has-banner .mf-prof__banner { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.mf-prof.has-banner .mf-prof__head { margin-top: -36px; background: transparent; padding-top: 0; }
.mf-prof.has-banner .mf-prof__av { border: 3px solid #fff; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.mf-prof.has-banner .mf-prof__head > div:last-child { padding-top: 36px; }

/* ───── ジャンルのリンク ───── */
.mf-gtile__nm a { color: var(--mf-ink); text-decoration: none; }

/* ───── ランキング ───── */
ol.mf-rank.mf-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
ol.mf-rank > li.mf-rank__item { display: grid; grid-template-columns: 52px 1fr; gap: 10px; background: #fff; border: 1px solid var(--mf-line); border-radius: 14px; padding: 14px 14px 14px 10px; margin: 0; }
ol.mf-rank > li.mf-rank__item::before { display: none; }
.mf-rank__no { text-align: center; font-size: 11px; font-weight: 800; color: var(--mf-sub); line-height: 1; padding-top: 4px; }
.mf-rank__no span { display: block; font-size: 26px; color: var(--mf-main); margin-bottom: 2px; font-family: "Hiragino Sans", sans-serif; }
.mf-rank__item.is-top .mf-rank__no span { color: var(--mf-accent); }
.mf-rank__head { display: flex; gap: 10px; align-items: center; }
.mf-rank .mf-rank__av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none; }
.mf-rank .mf-rank__av span { display: none; }
.mf-rank__nm { font-weight: 900; font-size: 16px; line-height: 1.3; }
.mf-rank__tg { font-size: 11.5px; color: var(--mf-sub); }
.mf-rank__stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.mf-rank__stats span { font-size: 11px; background: var(--mf-soft); border-radius: 999px; padding: 2px 9px; color: var(--mf-sub); }
.mf-rank__stats b { color: var(--mf-ink); }
.mf-rank .mf-rank__c { font-size: 13px; margin: 10px 0 0; line-height: 1.7; }
.mf-rank__btns { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 12px; flex-wrap: wrap; }
a.mf-rank__link.mf-rank__link { font-size: 13px; font-weight: 800; color: var(--mf-main); text-decoration: none; }
.mf-rank__btns a.mf-btn { display: inline-block; width: auto; margin: 0; }

/* ───── 作品の画像ギャラリー ───── */
.mf-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mf-gallery__item, a.mf-gallery__item.mf-gallery__item { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--mf-soft); }
.mf-gallery .mf-gallery__img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.mf-gallery__dur { position: absolute; right: 5px; bottom: 5px; font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.65); padding: 1px 6px; border-radius: 3px; line-height: 1.5; }
.mf-section .mf-gallery__note, p.mf-gallery__note { font-size: 11px; color: var(--mf-sub); margin: 6px 0 0; }

/* ───── ペラサイトのトップ（h1・アイキャッチ。inc/pera.php） ───── */
/* SWELL の本文の h1（.post_content h1）より強くするため、クラスを重ねる */
/* 上: ヘッダーとの間をあける（SWELL は本文の先頭の要素の上マージンを 0 にするので padding で）。下: アイキャッチとの間 */
h1.c-pageTitle.mf-pera-h1 { margin: 0 0 1.75rem !important; padding-top: 2.5rem; }
h1.c-pageTitle.mf-pera-h1, h1.c-pageTitle.mf-pera-h1 .c-pageTitle__inner { font-size: 1.5rem; line-height: 1.5; text-wrap: balance; }
.mf-pera-eyecatch { margin: 0 0 1.6em; }
.mf-pera-eyecatch img { display: block; width: 100%; height: auto; border-radius: var(--mf-radius); }
@media (max-width: 599px) {
  h1.c-pageTitle.mf-pera-h1 { margin-bottom: 1.25rem !important; padding-top: 1.5rem; }
  h1.c-pageTitle.mf-pera-h1, h1.c-pageTitle.mf-pera-h1 .c-pageTitle__inner { font-size: 1.2rem; }
  .mf-pera-eyecatch { margin-bottom: 1.25em; }
}
