/* ============================================================
   韓国語教室ナビ（schools.hangul-match.com）専用
   記事ページ（.hm-article）の見た目に、教室カード・比較表・地域リストを足す。
   色はハヌル（日韓マッチングと同じ値）。sites/layout で kind=schools のときだけ読み込む。
   ============================================================ */
:is(.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;
}
/* 本体（MDB）と同じフォント */
body.hm-site:is(.hm-site-schools, .hm-site-entertainment) { font-family: "Roboto", sans-serif; line-height: 1.6; }

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

/* --- 教室カード --- */
.hm-sc-cards { display: flex; flex-direction: column; gap: 1rem; margin: 0 0 1.6rem; }
.hm-sc-card { background: #fff; border: 1px solid var(--haneul-100); border-radius: 12px; padding: 1.2rem; }
.hm-sc-card-head { display: flex; gap: .8rem; align-items: flex-start; }
.hm-sc-rank { flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 50%; background: var(--haneul); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.hm-sc-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.hm-sc-name { font-size: 1.1rem; font-weight: 900; margin: 0; line-height: 1.5; }
.hm-sc-name a { color: var(--ink); text-decoration: none; }
.hm-sc-name a:hover { color: var(--bada); }
.hm-sc-catch { margin: .1rem 0 0; color: var(--ink-soft); font-size: .85rem; }
.hm-sc-badges { margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.hm-sc-badges span { font-size: .72rem; font-weight: bold; color: var(--bada); background: var(--haneul-50); border-radius: 999px; padding: .15em .7em; }
.hm-sc-spec { margin: .9rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; font-size: .85rem; }
.hm-sc-spec div { display: flex; gap: .5rem; }
.hm-sc-spec dt { color: var(--ink-soft); white-space: nowrap; font-weight: normal; }
.hm-sc-spec dd { margin: 0; color: var(--ink); font-weight: bold; }
@media (max-width: 575px) { .hm-sc-spec { grid-template-columns: 1fr; } }
.hm-sc-summary { margin-top: .8rem; font-size: .92rem; line-height: 1.9; }
.hm-sc-summary p { margin: 0 0 .6em; }
.hm-sc-campuses { list-style: none; margin: .8rem 0 0; padding: 0; font-size: .85rem; }
.hm-sc-campuses li { padding: .45rem 0; border-top: 1px dashed var(--haneul-100); display: flex; flex-wrap: wrap; gap: .2rem .7rem; }
.hm-sc-campuses li:first-child { border-top: 0; }
.hm-sc-campuses span { color: var(--ink-soft); }
.hm-sc-addr { flex-basis: 100%; font-size: .8rem; }
.hm-sc-city { font-size: .72rem; font-weight: bold; color: var(--bada); background: var(--haneul-50); border-radius: 999px; padding: .1em .7em; text-decoration: none; }

/* --- ボタン（日韓マッチングと同じ） --- */
.hm-sc-actions { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hm-sc-actions-center { justify-content: center; margin: 1.6rem 0; }
.hm-sc-btn { background: var(--gyul); color: #fff !important; display: inline-block; padding: .85em 1.4em; font-weight: bold; border-radius: 8px; text-decoration: none !important; line-height: 1.4; transition: background .2s ease; text-align: center; }
.hm-sc-btn:hover { background: var(--gyul-dark); }
.hm-sc-btn-sub { background: #fff; color: var(--bada) !important; border: 1.5px solid var(--haneul); display: inline-block; padding: .85em 1.4em; font-weight: bold; border-radius: 8px; text-decoration: none !important; line-height: 1.4; transition: background .2s ease; text-align: center; }
.hm-sc-btn-sub:hover { background: var(--haneul-50); }
.hm-sc-more { margin: 0 0 2rem; font-size: .9rem; }
.hm-sc-more a { color: var(--bada); font-weight: bold; }

/* --- 都道府県から探す --- */
.hm-sc-areas { display: grid; grid-template-columns: 1fr; gap: .9rem; margin: 0 0 2rem; }
.hm-sc-area-group { background: var(--haneul-50); border-radius: 12px; padding: .9rem 1rem; }
.hm-sc-area-title { font-weight: 900; color: var(--ink); font-size: .9rem; margin: 0 0 .5rem; }
.hm-sc-area-title a { color: var(--ink); }
.hm-sc-area-group ul, .hm-sc-chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.hm-sc-area-group a, .hm-sc-chips a { display: inline-flex; align-items: center; gap: .35em; background: #fff; border: 1px solid var(--haneul-100); border-radius: 999px; padding: .25em .95em; font-size: .85rem; color: var(--bada); text-decoration: none; }
.hm-sc-area-group a:hover, .hm-sc-chips a:hover { border-color: var(--haneul); }
.hm-sc-area-group a span, .hm-sc-chips a span { font-size: .7rem; font-weight: bold; color: #fff; background: var(--haneul); border-radius: 999px; padding: 0 .5em; }
.hm-sc-chips { background: var(--haneul-50); border-radius: 12px; padding: .9rem 1rem; margin: 0 0 1.6rem; }
.hm-sc-chips p { font-weight: 900; color: var(--ink); font-size: .9rem; margin: 0 0 .5rem; }
.hm-sc-campus-group { margin: 0 0 1.2rem; }

/* ============================================================
   旧WordPress（SWELL）の本文を、日韓マッチングと同じハヌルの見た目にする
   .hm-mt-body の中だけに効かせる（旧記事の本文は .hm-mt-body に入れて表示する）
   ============================================================ */
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body > *:first-child { margin-top: 0; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body figure { margin: 1.2rem 0; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .wp-element-caption { font-size: .78rem; color: var(--ink-soft); text-align: center; margin-top: -.6rem; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .has-text-align-center { text-align: center; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .has-text-align-right { text-align: right; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .u-fz-l { font-size: 1.15em; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .u-fz-xs { font-size: .78em; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .u-mb-5 { margin-bottom: .4rem !important; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .u-mb-20 { margin-bottom: 1.2rem !important; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .u-mb-40 { margin-bottom: 2rem !important; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .has-swl-deep-01-color { color: var(--bada) !important; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .has-white-color { color: #fff !important; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .has-swl-main-background-color { background: var(--haneul) !important; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .swl-bg-color { padding: .1em .45em; border-radius: 4px; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body span.red_, :is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body strong.red_ { color: #e5484d; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body span.blue_, :is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body strong.blue_ { color: var(--bada); }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .icon-more_arrow::before { content: "→"; font-style: normal; }

/* マーカー */
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .swl-marker { padding: 0 .1em; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .mark_yellow { background: linear-gradient(transparent 60%, #fff3a8 60%); }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .mark_orange { background: linear-gradient(transparent 60%, #ffe0c7 60%); }

/* 画像 */
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .is-style-photo_frame img { border: 1px solid var(--haneul-100); padding: 6px; background: #fff; box-shadow: 0 4px 14px rgba(18, 38, 58, .06); }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .wp-block-image img { display: block; margin-left: auto; margin-right: auto; }

/* リスト（チェック・番号・点線） */
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .is-style-check_list { list-style: none; padding-left: 0; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .is-style-check_list li { position: relative; padding-left: 1.7rem; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .is-style-check_list li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 1.25rem; height: 1.25rem; line-height: 1.25rem; text-align: center; font-size: .75rem; font-weight: 900; color: #fff; background: var(--haneul); border-radius: 50%; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .is-style-num_circle { list-style: none; padding-left: 0; counter-reset: hm-num; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .is-style-num_circle li { position: relative; padding-left: 2rem; counter-increment: hm-num; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .is-style-num_circle li::before { content: counter(hm-num); position: absolute; left: 0; top: .15em; width: 1.45rem; height: 1.45rem; line-height: 1.45rem; text-align: center; font-size: .78rem; font-weight: 900; color: #fff; background: var(--haneul); border-radius: 50%; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .-list-under-dashed li { border-bottom: 1px dashed var(--haneul-100); padding-bottom: .35rem; }

/* 囲み枠（SWELL のキャプションボックス・枠線グループ・吹き出しボックス） */
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .cap_box { border: 2px solid var(--haneul); border-radius: 12px; margin: 1.6rem 0; overflow: hidden; background: #fff; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .cap_box.is-style-shadow { box-shadow: 0 6px 20px rgba(18, 38, 58, .08); }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .cap_box_ttl { background: var(--haneul); color: #fff; font-weight: 900; padding: .6rem 1rem; line-height: 1.6; text-align: center; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .cap_box_ttl strong { color: #fff; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .cap_box_content { padding: 1rem 1.2rem .4rem; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .cap_box[data-colset="col2"] { border-color: var(--gyul); }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .cap_box[data-colset="col2"] .cap_box_ttl { background: var(--gyul); }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .has-border, :is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .is-style-balloon_box { border: 1px solid var(--haneul-100); background: var(--haneul-50); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.4rem 0; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .is-style-balloon_box { position: relative; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .wp-block-group__inner-container > *:last-child { margin-bottom: 0; }

/* 吹き出し（運営者の一言） */
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .c-balloon { display: flex; gap: .8rem; align-items: flex-start; margin: 1.4rem 0; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .c-balloon__icon { flex: 0 0 64px; text-align: center; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .c-balloon__iconImg { width: 56px !important; height: 56px !important; border-radius: 50% !important; object-fit: cover; margin: 0 auto !important; padding: 0 !important; border: 2px solid var(--haneul-100) !important; display: block; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .c-balloon__iconName { display: block; font-size: .68rem; color: var(--ink-soft); line-height: 1.4; margin-top: .2rem; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .c-balloon__body { position: relative; flex: 1; background: var(--haneul-50); border-radius: 12px; padding: .8rem 1rem; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .c-balloon__body::before { content: ""; position: absolute; left: -8px; top: 18px; border: 8px solid transparent; border-left: 0; border-right-color: var(--haneul-50); }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .c-balloon__text > *:last-child { margin-bottom: 0; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .c-balloon__shapes { display: none; }

/* ボタン（SWELL のボタン → 日韓マッチングと同じ橙ボタン） */
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .swell-block-button { text-align: center; margin: 1rem 0 1.6rem; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .swell-block-button__link { display: inline-block; width: 100%; max-width: 420px; background: var(--gyul); color: #fff !important; padding: .95em 1.4em; font-weight: bold; border-radius: 8px; text-decoration: none !important; line-height: 1.4; transition: background .2s ease; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .swell-block-button__link:hover { background: var(--gyul-dark); }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .swell-block-button.blue_ .swell-block-button__link { background: var(--haneul); }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .swell-block-button.blue_ .swell-block-button__link:hover { background: var(--bada); }

/* ブログカード（あわせて読みたい） */
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard { position: relative; border: 1px solid var(--haneul-100); border-radius: 12px; background: #fff; margin: 1.4rem 0; transition: box-shadow .15s; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard:hover { box-shadow: 0 6px 20px rgba(18, 38, 58, .08); }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard__inner { display: flex; gap: .9rem; align-items: center; padding: .9rem; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard__caption { position: absolute; top: -.7rem; left: .8rem; background: var(--haneul); color: #fff; font-size: .7rem; font-weight: bold; padding: .1em .7em; border-radius: 999px; line-height: 1.6; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard__thumb { flex: 0 0 120px; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard__thumb figure { margin: 0; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard__thumb img { width: 120px; height: 68px; object-fit: cover; margin: 0; border-radius: 8px; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard__body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard__title { color: var(--ink); font-size: .92rem; line-height: 1.6; text-decoration: none; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard__title::after { content: ""; position: absolute; inset: 0; } /* カード全体をクリックできるように */
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard__excerpt { font-size: .75rem; color: var(--ink-soft); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575px) { :is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard__thumb { flex-basis: 88px; } :is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard__thumb img { width: 88px; height: 50px; } :is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .p-blogCard__excerpt { display: none; } }

/* 表（横に長い比較表はスクロール） */
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .c-scrollHint { text-align: right; font-size: .75rem; color: var(--ink-soft); margin: 0 0 .3rem; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.4rem; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .85rem; line-height: 1.6; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .wp-block-table[data-table-scrollable] table { width: auto; min-width: 100%; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .wp-block-table th, :is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .wp-block-table td { border: 1px solid var(--haneul-100); padding: .55rem .6rem; vertical-align: middle; min-width: 8em; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .wp-block-table thead th { background: var(--haneul-50); color: var(--ink); white-space: nowrap; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .wp-block-table.is-all-centered th, :is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .wp-block-table.is-all-centered td { text-align: center; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .td_to_th_ tbody td:first-child { background: var(--haneul-50); color: var(--ink); font-weight: bold; white-space: nowrap; }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .wp-block-table img { margin: 0 auto; border-radius: 0; max-width: 160px; height: auto; width: auto !important; }

/* 段組み（PCは横並び、スマホは縦） */
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .swell-block-columns__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 575px) { :is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .swell-block-columns__inner { grid-template-columns: 1fr; } }
:is(.hm-site-schools, .hm-site-entertainment) .hm-mt-body .swell-block-column > *:last-child { margin-bottom: 0; }
