/* ============================================================
   日韓マッチング（matching.hangul-match.com）専用
   ハングルマッチ本体のハヌルデザイン（_haneul.scss / _haneul_article.scss）の
   記事ページと同じ見た目にそろえる。sites/layout で kind=matching のときだけ読み込む。
   ============================================================ */
:is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) {
  --haneul: #329eff;
  --haneul-50: #eaf4ff;
  --haneul-100: #d6eaff;
  --bada: #1265b8;
  --gyul: #ff8a3d;
  --gyul-dark: #e0702a;
  --ink: #12263a;
  --ink-soft: #4a5b6e;
  color: var(--ink);
}
:is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) .hm-br-pc { display: none; }
@media (min-width: 768px) { :is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) .hm-br-pc { display: inline; } }

/* --- 記事の枠（.hm-article） --- */
.hm-mt-article { max-width: 720px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
:is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) .hm-crumb { margin-bottom: 1.2rem; }
:is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) .hm-crumb a { color: var(--bada); }

/* --- 記事ヘッダー（.hm-article-head） --- */
.hm-mt-head { text-align: center; margin-bottom: 2rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--haneul-50); }
.hm-mt-head-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 20px; margin: 0 auto 1rem; display: block; }
.hm-mt-title { color: var(--ink); font-weight: 900; font-size: 1.45rem; line-height: 1.6; margin: 0 0 .5rem; }
@media (min-width: 768px) { .hm-mt-title { font-size: 1.7rem; } }
.hm-mt-date { color: var(--ink-soft); font-size: .78rem; margin: 0; }

/* --- 本文タイポグラフィ（.hm-article-body） --- */
.hm-mt-body { color: var(--ink-soft); font-size: .98rem; line-height: 2; }
.hm-mt-body h2 { color: var(--ink); font-weight: 900; font-size: 1.3rem; line-height: 1.6; margin: 2.6rem 0 1rem; padding: .5rem .9rem; border-left: 4px solid var(--haneul); background: var(--haneul-50); border-radius: 0 8px 8px 0; }
.hm-mt-body h3 { color: var(--ink); font-weight: bold; font-size: 1.1rem; margin: 2rem 0 .8rem; padding-bottom: .35rem; border-bottom: 2px solid var(--haneul-100); }
.hm-mt-body h4 { color: var(--bada); font-weight: bold; font-size: 1rem; margin: 1.6rem 0 .6rem; }
.hm-mt-body p { margin: 0 0 1.1rem; }
.hm-mt-body strong, .hm-mt-body b { color: var(--ink); }
.hm-mt-body a { color: var(--bada); font-weight: bold; text-decoration: underline; text-decoration-color: var(--haneul-100); text-underline-offset: 3px; }
.hm-mt-body a:hover { text-decoration-color: var(--bada); }
.hm-mt-body ul, .hm-mt-body ol { padding-left: 1.4rem; margin: 0 0 1.1rem; }
.hm-mt-body li { margin-bottom: .35rem; }
.hm-mt-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.2rem 0; }
.hm-mt-body small { font-size: .8rem; }

/* --- 早見表（.hm-korean-table） --- */
.hm-mt-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; }
.hm-mt-table { width: 100%; border-collapse: collapse; font-size: .85rem; line-height: 1.6; }
.hm-mt-table th, .hm-mt-table td { border: 1px solid var(--haneul-100); padding: .55rem .6rem; text-align: left; vertical-align: middle; }
.hm-mt-table thead th { background: var(--haneul-50); color: var(--ink); white-space: nowrap; }
.hm-mt-table td a { color: var(--bada); text-decoration: none; }
@media (max-width: 575px) { .hm-mt-table { min-width: 520px; } }

/* --- こんな人はここから・目次 --- */
.hm-mt-jump { background: var(--haneul-50); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 0 0 2rem; }
.hm-mt-jump-title { color: var(--ink); font-weight: 900; font-size: .95rem; margin: 0 0 .4rem !important; }
.hm-mt-jump ul, .hm-mt-jump ol { margin: 0; }
.hm-mt-jump a { text-decoration: none !important; font-size: .9rem; }

/* --- ボタン（.btnGyul / .btnGhost） --- */
:is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) .hm-mt-btn { background: var(--gyul); color: #fff !important; display: inline-block; padding: .95em 1.4em; font-weight: bold; border-radius: 8px; text-decoration: none !important; line-height: 1.4; transition: background .2s ease; text-align: center; }
:is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) .hm-mt-btn:hover { background: var(--gyul-dark); }
:is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) .hm-mt-btn-sub { background: #fff; color: var(--bada) !important; border: 1.5px solid var(--haneul); display: inline-block; padding: .95em 1.6em; font-weight: bold; border-radius: 8px; text-decoration: none !important; line-height: 1.4; transition: background .2s ease; text-align: center; }
:is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) .hm-mt-btn-sub:hover { background: var(--haneul-50); }
.hm-mt-applinks { text-align: center; margin: 1.2rem 0 2rem; }
.hm-mt-applinks p { margin: .5rem 0 0; }
.hm-mt-applinks small { color: var(--gyul-dark); font-weight: bold; }
.hm-mt-textlink { color: var(--bada) !important; font-weight: bold; text-decoration: none; }
.hm-mt-textlink:hover { text-decoration: underline; }

/* --- アプリカード --- */
.hm-mt-cards { display: flex; flex-direction: column; gap: 1rem; margin: 0 0 1rem; }
.hm-mt-card { position: relative; display: flex; gap: .9rem; background: #fff; border: 1px solid var(--haneul-100); border-radius: 12px; padding: 1.3rem 1.2rem; }
.hm-mt-card-no { flex: 0 0 2.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--haneul); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.hm-mt-card-main { flex: 1 1 auto; min-width: 0; }
.hm-mt-card-head { display: flex; gap: .9rem; align-items: flex-start; }
.hm-mt-thumb { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 16px; background: var(--haneul-50); overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.6rem; color: var(--haneul); }
.hm-mt-thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.hm-mt-card-title h3 { margin: 0; font-size: 1.15rem; font-weight: 900; line-height: 1.5; }
.hm-mt-card-title h3 a { color: var(--ink); text-decoration: none; }
.hm-mt-card-title h3 a:hover { color: var(--bada); }
.hm-mt-catch { margin: .1rem 0 .35rem; font-size: .85rem; color: var(--gyul-dark); font-weight: bold; }
.hm-mt-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .35rem; }
.hm-mt-badge { font-size: .72rem; font-weight: bold; color: var(--bada); background: var(--haneul-50); border-radius: 999px; padding: .15em .8em; }
.hm-mt-stars { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink); }
.hm-mt-stars-row { color: #f5a524; letter-spacing: 1px; }
.hm-mt-spec { display: grid; grid-template-columns: repeat(2, 1fr); gap: .2rem 1rem; margin: 1rem 0 0; font-size: .85rem; line-height: 1.7; }
.hm-mt-spec div { display: flex; gap: .6rem; border-bottom: 1px dashed var(--haneul-100); padding: .35rem 0; }
.hm-mt-spec dt { flex: 0 0 6.6rem; color: var(--ink-soft); font-weight: bold; }
.hm-mt-spec dd { margin: 0; color: var(--ink); }
.hm-mt-card-summary { color: var(--ink-soft); font-size: .9rem; line-height: 1.9; margin-top: .9rem; }
.hm-mt-card-summary p { margin: 0 0 .7em; }
.hm-mt-card-summary p:last-child { margin-bottom: 0; }
.hm-mt-card-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
@media (max-width: 575px) {
  .hm-mt-card { padding: 1.1rem .9rem; gap: .6rem; }
  .hm-mt-card-no { flex-basis: 1.8rem; width: 1.8rem; height: 1.8rem; font-size: .85rem; }
  .hm-mt-spec { grid-template-columns: 1fr; }
  .hm-mt-card-actions a { flex: 1 1 100%; }
}

/* --- アプリ詳細のスペック枠 --- */
.hm-mt-specbox { background: var(--haneul-50); border-radius: 12px; padding: 1.2rem 1.2rem .4rem; margin: 0 0 2rem; }
.hm-mt-specbox-head { text-align: center; }
.hm-mt-specbox-name { color: var(--ink); font-weight: 900; font-size: 1.15rem; margin: 0; }
.hm-mt-specbox .hm-mt-spec div { border-bottom-color: #c9e0f7; }
.hm-mt-stores { display: flex; gap: 1rem; justify-content: center; font-size: .85rem; margin: -1rem 0 1rem; }
.hm-mt-stores a { color: var(--bada); font-weight: bold; }

/* --- 良いところ・気になるところ --- */
.hm-mt-procon { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.4rem 0 2rem; }
@media (max-width: 575px) { .hm-mt-procon { grid-template-columns: 1fr; } }
.hm-mt-procon > div { border: 1px solid var(--haneul-100); border-radius: 12px; padding: .9rem 1.1rem; }
.hm-mt-procon-title { color: var(--ink); font-weight: 900; margin: 0 0 .3rem !important; }
.hm-mt-procon ul { margin: 0; font-size: .9rem; line-height: 1.8; }
.hm-mt-procon-good .hm-mt-procon-title::before { content: '○ '; color: var(--haneul); }
.hm-mt-procon-bad .hm-mt-procon-title::before { content: '△ '; color: var(--gyul-dark); }

/* --- 運営者が使ってみた（おにちゃんメモと同じ形） --- */
.hm-mt-memo { background: #fff8f2; border-left: 4px solid var(--gyul); padding: 1.1rem 1.2rem; margin: 0 0 1.4rem; }
.hm-mt-memo p:last-child { margin-bottom: 0; }

/* --- 韓国語学習への導線（.hm-derived-cta） --- */
.hm-mt-cta { background: var(--haneul-50); border-radius: 12px; padding: 1.8rem 1.4rem; text-align: center; margin: 2.5rem 0; }
.hm-mt-cta p { color: var(--ink-soft); margin: 0 0 1rem; }
.hm-mt-cta .hm-mt-cta-title { color: var(--ink); font-weight: 900; font-size: 1.1rem; }
.hm-mt-cta .hm-mt-cta-sub { margin: .8rem 0 0; }

/* --- 著者カード: hm-site.css の1か所で全サイト共通にした --- */

/* --- 関連記事カード --- */
.hm-mt-article .hm-cards { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 575px) { .hm-mt-article .hm-cards { grid-template-columns: 1fr; } }
/* --- こんな人はここから（チップ） --- */
.hm-mt-jump .hm-mt-jump-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.hm-mt-jump .hm-mt-jump-chips li { margin: 0; }
.hm-mt-jump .hm-mt-jump-chips a { display: inline-block; background: #fff; border: 1px solid var(--haneul-100); border-radius: 999px; padding: .3em 1em; font-size: .85rem; line-height: 1.6; color: var(--bada); }
.hm-mt-jump .hm-mt-jump-chips a:hover { border-color: var(--haneul); }

/* --- 目的別のおすすめ上位 --- */
.hm-mt-body .hm-mt-picks { list-style: none; padding: 0; margin: 0 0 1.6rem; border: 1px solid var(--haneul-100); border-radius: 12px; overflow: hidden; }
.hm-mt-pick { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; margin: 0 !important; border-top: 1px solid var(--haneul-50); background: #fff; }
.hm-mt-pick:first-child { border-top: none; }
.hm-mt-pick-no { flex: 0 0 1.7rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--haneul-50); color: var(--bada); font-weight: 900; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.hm-mt-pick:first-child .hm-mt-pick-no { background: var(--haneul); color: #fff; }
.hm-mt-pick-body { flex: 1 1 auto; min-width: 0; line-height: 1.6; }
.hm-mt-body .hm-mt-pick-body p { margin: 0; }
.hm-mt-pick-name { font-weight: 900; }
.hm-mt-body .hm-mt-pick-name a { color: var(--ink); text-decoration: none; }
.hm-mt-pick-why { font-size: .85rem; }
.hm-mt-pick-fact { font-size: .82rem; color: var(--ink); }
.hm-mt-pick-fact span { display: inline-block; background: var(--haneul-50); color: var(--bada); font-weight: bold; font-size: .72rem; border-radius: 4px; padding: 0 .5em; margin-right: .5em; }
:is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) .hm-mt-pick-btn { flex: 0 0 auto; padding: .55em 1em; font-size: .82rem; }
@media (max-width: 575px) {
  .hm-mt-pick { flex-wrap: wrap; }
  :is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) .hm-mt-pick-btn { flex: 1 1 100%; margin-left: 2.5rem; }
}
/* 2列の料金表などはスマホでも横スクロールさせない */
:is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) .hm-mt-table-compact { min-width: 0; }
:is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) .hm-mt-table-compact th { width: 6em; background: var(--haneul-50); color: var(--ink); white-space: nowrap; }

/* 本体（MDB）と同じフォント。hangul-match.com/korean と同じく英数字は Roboto、無ければ端末の標準フォント（日本語はヒラギノ等） */
body.hm-site:is(.hm-site-matching, .hm-site-schools, .hm-site-entertainment) {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
}


/* ============================================================
   日韓マッチングのトップ（2026-11 改修 v2）: 診断・目次・比較表・ランキングのカード・目的別のおすすめ・アイキャッチ。グラデーションは使わない
   ============================================================ */
.hm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- アプリのアイコン --- */
.hm-appicon { flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 22%; background: var(--haneul-50); border: 1px solid var(--haneul-100); color: var(--haneul); font-weight: 900; }
.hm-appicon img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
.hm-appicon-s { width: 28px; height: 28px; font-size: .8rem; }
.hm-appicon-m { width: 44px; height: 44px; font-size: 1.1rem; }
.hm-appicon-l { width: 64px; height: 64px; font-size: 1.5rem; }

/* --- 総合評価（数字＋星） --- */
.hm-score { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; }
.hm-score-num { font-size: 1.25rem; font-weight: 900; color: #e8452c; letter-spacing: -.02em; }
.hm-score-stars { position: relative; display: inline-block; color: #d9dee5; font-size: .8rem; letter-spacing: 1px; white-space: nowrap; }
.hm-score-stars > span { position: absolute; left: 0; top: 0; overflow: hidden; color: #f5a524; white-space: nowrap; }
.hm-score-none { color: var(--ink-soft); }

/* --- 比較表（安全性もまとめた1つの表） --- */
.hm-cmp-wrap { margin: 0 -1.25rem 0; padding: 0 1.25rem; }
.hm-cmp { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; font-size: .8rem; line-height: 1.6; background: #fff; border: 1px solid var(--haneul-100); border-radius: 14px; overflow: hidden; }
.hm-cmp th, .hm-cmp td { padding: .7rem .65rem; border-bottom: 1px solid var(--haneul-50); border-right: 1px solid var(--haneul-50); text-align: left; vertical-align: middle; }
.hm-cmp thead th { background: #f4f6f8; color: var(--ink); font-weight: 800; font-size: .76rem; white-space: nowrap; text-align: center; border-bottom: 2px solid var(--ink); }
.hm-cmp tbody tr:last-child > * { border-bottom: none; }
.hm-cmp-sticky { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 8.5rem; box-shadow: 4px 0 8px -6px rgba(18, 38, 58, .25); }
.hm-cmp thead .hm-cmp-sticky { z-index: 2; background: #f4f6f8; }
.hm-cmp-top > td, .hm-cmp-top > th { background: #fffaf2; }
.hm-cmp-app { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; color: var(--ink) !important; text-decoration: none !important; }
.hm-cmp-app b { font-size: .8rem; line-height: 1.35; }
.hm-cmp-rank { display: inline-block; font-size: .7rem; font-weight: 900; color: #fff; background: #8b98a8; border-radius: 999px; padding: .05em .7em; }
.hm-cmp-rank-1 { background: #d4a017; }
.hm-cmp-rank-2 { background: #9aa5b1; }
.hm-cmp-rank-3 { background: #b87333; }
.hm-cmp-c { text-align: center !important; }
.hm-cmp-c small { display: block; color: var(--ink-soft); font-size: .74rem; line-height: 1.4; margin-top: .15rem; }
.hm-cmp-mark { font-weight: 900; font-size: 1.15rem; line-height: 1; }
.hm-cmp-mark-5 { color: #e8452c; }
.hm-cmp-mark-4, .hm-cmp-mark-3 { color: var(--gyul); }
.hm-cmp-mark-2, .hm-cmp-mark-1 { color: #8b98a8; }
.hm-cmp-who { min-width: 11rem; color: var(--ink); }
.hm-cmp-price { min-width: 9.5rem; display: table-cell; }
.hm-cmp-price span { display: inline-block; font-size: .68rem; font-weight: 800; color: var(--bada); background: var(--haneul-50); border-radius: 4px; padding: 0 .4em; margin-right: .35em; }
.hm-cmp-price b { display: inline; font-weight: 700; color: var(--ink); }
.hm-cmp-price b::after { content: ''; display: block; height: .25rem; }
.hm-cmp-free { color: #e8452c !important; font-weight: 900 !important; }
.hm-cmp-yes { color: #12a150; font-weight: 900; white-space: nowrap; }
.hm-cmp-no { color: #8b98a8; white-space: nowrap; }
.hm-cmp-op { min-width: 8rem; font-size: .78rem; color: var(--ink-soft); }
.hm-cmp-btn { display: inline-block; white-space: nowrap; background: var(--gyul); color: #fff !important; font-weight: 800; font-size: .78rem; border-radius: 999px; padding: .45em 1em; text-decoration: none !important; }
.hm-cmp-btn:hover { background: var(--gyul-dark); }
.hm-cmp-btn-sub { background: #fff; color: var(--bada) !important; border: 1.5px solid var(--haneul); }
.hm-cmp-btn-sub:hover { background: var(--haneul-50); }
.hm-cmp-hint { font-size: .75rem; color: var(--ink-soft); text-align: right; margin: .3rem 0 1rem; }
@media (min-width: 992px) { .hm-cmp-hint { display: none; } }

/* --- ランキングのカード（N位：サービス名 → 横長画像） --- */
.hm-rc-list { display: flex; flex-direction: column; gap: 1.4rem; margin: 0 0 1.5rem; }
.hm-rc { background: #fff; border: 1px solid var(--haneul-100); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(18, 38, 58, .05); scroll-margin-top: 90px; }
.hm-rc-top { border-color: #f1d9a6; }
.hm-rc-title { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .75rem 1rem; font-size: 1.05rem; font-weight: 900; line-height: 1.45; background: var(--haneul-50); }
.hm-rc-top .hm-rc-title { background: #fff6e5; }
.hm-rc-title a { color: var(--ink); text-decoration: none; }
.hm-rc-title a:hover { color: var(--bada); }
.hm-rc-rank { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 3.1em; height: 2em; padding: 0 .6em; border-radius: 8px; color: #fff; font-size: .82rem; font-weight: 900; background: var(--haneul); }
.hm-rc-rank-1 { background: #d4a017; }
.hm-rc-rank-2 { background: #9aa5b1; }
.hm-rc-rank-3 { background: #b87333; }
.hm-rc-banner { display: block; line-height: 0; background: var(--haneul-50); }
.hm-rc-banner img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin: 0; border-radius: 0; }
.hm-rc-body { padding: 1rem 1.1rem 1.2rem; }
.hm-rc-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.hm-rc-catch { margin: 0 0 .35rem; font-size: .9rem; color: var(--gyul-dark); font-weight: 800; }
.hm-mt-badge-free { color: #e8452c; background: #fdecea; }

/* --- 目的別のおすすめ（1位を大きく、2・3位を横に並べる） --- */
.hm-purpose { margin: 0 0 2.4rem; scroll-margin-top: 90px; }
.hm-mt-body .hm-purpose-lead { margin-bottom: 1rem; }
.hm-mt-body .hm-pk, .hm-pk { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.hm-pk-item { position: relative; display: flex; flex-direction: column; gap: .45rem; margin: 0 !important; padding: 1rem; background: #fff; border: 1px solid var(--haneul-100); border-radius: 14px; line-height: 1.6; }
.hm-pk-best { grid-column: 1 / -1; padding: 1.3rem 1.2rem 1.1rem; border: 2px solid #f1c76a; background: #fffaf0; }
.hm-pk-ribbon { position: absolute; top: -.7rem; left: 1rem; background: #e8452c; color: #fff; font-size: .7rem; font-weight: 900; border-radius: 4px; padding: .15em .8em; }
.hm-pk-head { display: flex; align-items: center; gap: .6rem; }
.hm-pk-no { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 900; color: #fff; background: #8b98a8; }
.hm-pk-no-1 { background: #d4a017; }
.hm-pk-no-2 { background: #9aa5b1; }
.hm-pk-no-3 { background: #b87333; }
.hm-pk-name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; }
.hm-pk-name .hm-score { flex-direction: row; align-items: center; gap: .4rem; }
.hm-pk-name a { color: var(--ink) !important; font-weight: 900; text-decoration: none !important; line-height: 1.4; }
.hm-pk-name a:hover { color: var(--bada) !important; }
.hm-pk-best .hm-pk-name a { font-size: 1rem; }
.hm-pk-name .hm-score-num { font-size: 1.05rem; }
.hm-mt-body .hm-pk-why, .hm-pk-why { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.hm-mt-body .hm-pk-fact, .hm-pk-fact { margin: 0; font-size: .84rem; color: var(--ink); }
.hm-pk-fact span { display: inline-block; background: var(--haneul-50); color: var(--bada); font-weight: 800; font-size: .7rem; border-radius: 4px; padding: 0 .5em; margin-right: .5em; }
.hm-pk-actions { display: flex; gap: .5rem; margin-top: auto; padding-top: .3rem; }
:is(.hm-site-matching) .hm-pk-actions a { flex: 1 1 0; padding: .6em .8em; font-size: .82rem; }
.hm-pk-best .hm-pk-actions { max-width: 420px; }
.hm-pk-compact { grid-template-columns: 1fr; }
@media (max-width: 575px) {
  .hm-mt-body .hm-pk, .hm-pk { grid-template-columns: 1fr; }
}

/* --- 診断 --- */
.hm-dx { position: relative; margin: 0 0 2rem; padding: 1.2rem 1.1rem 1.1rem; border-radius: 14px; background: #f7f9fb; border: 1px solid #e3e8ee; scroll-margin-top: 90px; }
.hm-dx-eyebrow { display: inline-block; margin: 0 0 .4rem; color: var(--gyul-dark); font-size: .74rem; font-weight: 900; }
.hm-dx-title { margin: 0 0 .9rem; color: var(--ink); font-size: 1.05rem; font-weight: 900; line-height: 1.5; }
.hm-dx-q { margin: 0 0 .7rem; color: var(--ink); font-size: .9rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hm-dx-q > span { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 900; }
.hm-dx-options { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.hm-dx-options button { appearance: none; cursor: pointer; text-align: left; padding: .7rem .9rem; border-radius: 10px; border: 1px solid #d9e0e8; background: #fff; color: var(--ink); font-size: .86rem; font-weight: 800; line-height: 1.45; transition: border-color .15s, background .15s, transform .1s; }
.hm-dx-options button::after { content: '›'; float: right; color: var(--haneul); font-weight: 900; }
.hm-dx-options button:hover { border-color: var(--haneul); background: var(--haneul-50); }
.hm-dx-options button:active { transform: scale(.98); }
@media (max-width: 575px) { .hm-dx-options { grid-template-columns: 1fr; } }
.hm-dx-back { appearance: none; cursor: pointer; border: none; background: none; color: var(--bada); font-size: .82rem; font-weight: 700; padding: .6rem 0 0; }
.hm-dx-result-label { margin: 0 0 1.1rem; color: var(--ink); font-size: .95rem; }
.hm-dx-result-label b { color: var(--bada); }
.hm-dx-more { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 0; font-size: .86rem; }
.hm-dx-more a { color: var(--bada); font-weight: 800; }
.hm-dx-more .hm-dx-back { padding: 0; }

/* --- 目次（トクたびの目次と同じ形） --- */
.hm-mtoc { position: relative; margin: 0 0 2rem; padding: 0; overflow: hidden; border: 1px solid #e3e8ee; border-radius: 14px; background: #fff; font-size: inherit; }
.hm-mtoc-head { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; padding: .6rem 0; color: var(--ink); background: #f4f6f8; border-bottom: 1px solid #e3e8ee; font-size: .88rem; font-weight: 900; letter-spacing: .08em; }
.hm-mtoc-inner { padding: .6rem .9rem .7rem; }
.hm-mtoc .hm-mtoc-list { margin: 0; padding: 0; list-style: none; counter-reset: hmtoc; }
.hm-mtoc-list > li { counter-increment: hmtoc; margin: 0; padding: .45rem 0; border-bottom: 1px dashed var(--haneul-100); }
.hm-mtoc-list > li:last-child { border-bottom: none; }
.hm-mtoc-list > li > a { display: flex; gap: .5rem; color: var(--ink); font-weight: 700; font-size: .84rem; line-height: 1.55; text-decoration: none; }
.hm-mtoc-list > li > a::before { content: counter(hmtoc); flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .66rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.hm-mtoc-list a:hover { color: var(--bada); }
.hm-mtoc .hm-mtoc-list ul { list-style: none; margin: .25rem 0 0 1.75rem; padding: 0; }
.hm-mtoc-list ul li { margin: 0; padding: .15rem 0; }
.hm-mtoc-list ul a { display: block; position: relative; padding-left: .8rem; color: var(--ink-soft); font-size: .78rem; line-height: 1.55; text-decoration: none; }
.hm-mtoc-list ul a::before { content: ''; position: absolute; left: 0; top: .72em; width: .45rem; height: 2px; background: var(--haneul-100); }
.hm-mtoc.is-collapsed .hm-mtoc-inner { max-height: 480px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
.hm-mtoc-more { appearance: none; cursor: pointer; display: block; width: 100%; padding: .65rem; border: none; border-top: 1px solid #e3e8ee; background: #fff; color: var(--bada); font-weight: 800; font-size: .8rem; }
.hm-mtoc-more:hover { background: #f4f6f8; }
.hm-mt-article [id] { scroll-margin-top: 90px; }

/* --- 文字の大きさ（日韓マッチングのトップは小さめ）とアイキャッチ --- */
.hm-site-matching .hm-mt-title { font-size: 1.15rem; line-height: 1.6; }
@media (min-width: 768px) { .hm-site-matching .hm-mt-title { font-size: 1.35rem; } }
.hm-site-matching .hm-mt-head { margin-bottom: 1.2rem; padding-bottom: 1.1rem; }
.hm-site-matching .hm-mt-date { font-size: .72rem; }
.hm-mt-eyecatch { margin: 0 0 1.6rem; }
.hm-mt-eyecatch img { display: block; width: 100%; height: auto; border: 1px solid #e3e8ee; border-radius: 10px; }

/* ============================================================
   韓国語教室・韓国エンタメ図鑑のトップ（2026-11 改修 v3）: 日韓マッチングと同じ作りに。グラデーションは使わない
   ============================================================ */
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-title { font-size: 1.15rem; line-height: 1.6; }
@media (min-width: 768px) { :is(.hm-site-schools, .hm-site-entertainment) .hm-mt-title { font-size: 1.35rem; } }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-head { margin-bottom: 1.2rem; padding-bottom: 1.1rem; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-date { font-size: .72rem; }
.hm-cmp.hm-cmp-narrow { min-width: 640px; }
.hm-site-entertainment .hm-pk-actions a { flex: 1 1 0; padding: .6em .8em; font-size: .82rem; }
.hm-site-entertainment .hm-appicon img { object-fit: contain; padding: 3px; background: #fff; }
.hm-rc-logo { background: #fff; border-bottom: 1px solid #eef1f4; }
.hm-rc-logo img { display: block; width: auto; max-width: 70%; height: 110px; aspect-ratio: auto; object-fit: contain; margin: 18px auto; }
.hm-vdx-guide { margin: .2rem 0 1rem; }
.hm-vdx-guide-title { margin: 0 0 .5rem; color: var(--ink); font-size: .86rem; font-weight: 800; }
.hm-vdx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.hm-vdx-chips li { margin: 0; }
.hm-vdx-chips a { display: inline-block; padding: .3em .9em; border: 1px solid #d9e0e8; border-radius: 999px; background: #fff; color: var(--bada); font-size: .8rem; font-weight: 700; text-decoration: none; }
.hm-vdx-chips a:hover { border-color: var(--haneul); }
.hm-mtoc-more[hidden] { display: none; }
:is(.hm-pk-name, .hm-rc-meta) .hm-score-none { display: none; }
