/* ============================================================
   韓国エンタメ図鑑（entertainment.k-topmedia.com）専用
   日韓マッチング（hm-matching.css）・韓国語教室ナビ（hm-schools.css の SWELL 用の指定）と同じ見た目に、
   VPN・番組・視聴方法の部品を足す。sites/layout で kind=watch のときだけ読み込む。
   ============================================================ */

/* --- ラベル（VPN不要 / VPNが必要 など） --- */
.hm-wt-tag { display: inline-block; font-size: .72rem; font-weight: bold; border-radius: 999px; padding: .12em .8em; line-height: 1.7; white-space: nowrap; color: var(--bada); background: var(--haneul-50); }
.hm-wt-tag-ok { color: #0f7a4a; background: #e6f6ee; }
.hm-wt-tag-vpn { color: var(--gyul-dark); background: #fff1e6; }

/* --- 表（視聴方法・曜日別一覧・MC） --- */
.hm-wt-memo { display: block; font-size: .75rem; color: var(--ink-soft); font-weight: normal; line-height: 1.6; margin-top: .15rem; }
.hm-mt-table.hm-wt-methods td:first-child { min-width: 11em; }
.hm-mt-table.hm-wt-methods td:nth-child(n+2), .hm-mt-table.hm-wt-methods th:nth-child(n+2) { text-align: center; white-space: nowrap; }
.hm-mt-table.hm-wt-methods td:last-child { white-space: normal; min-width: 7em; }
.hm-mt-table.hm-wt-schedule th[scope="row"] { background: var(--haneul-50); color: var(--ink); text-align: center; white-space: nowrap; width: 3em; }
.hm-mt-table.hm-wt-schedule td { white-space: nowrap; }
.hm-mt-table.hm-wt-schedule td:nth-child(2) { white-space: normal; min-width: 9em; }
@media (max-width: 560px) { .hm-mt-table.hm-wt-schedule td:nth-child(4) { white-space: normal; min-width: 5.5em; } }
.hm-mt-table.hm-wt-schedule tr.hm-wt-today td, .hm-mt-table.hm-wt-schedule tr.hm-wt-today th { background: #fff8f2; }
.hm-mt-table.hm-wt-schedule tr.hm-wt-today th[scope="row"] { background: var(--gyul); color: #fff; }
.hm-site-entertainment .hm-mt-table-compact.hm-wt-mc th { width: 10.5em; white-space: normal; }
.hm-mt-table.hm-wt-mc th a { color: var(--bada); text-decoration: none; }

/* --- 今日の音楽番組 --- */
.hm-wt-todaybox { border: 1px solid var(--haneul-100); border-left: 4px solid var(--gyul); border-radius: 12px; background: #fff; padding: .9rem 1.1rem; margin: 0 0 1.6rem; }
.hm-mt-body .hm-wt-todaybox p { margin: 0; }
.hm-wt-todaybox-title { color: var(--ink); font-weight: 900; font-size: .95rem; margin-bottom: .3rem !important; }
.hm-mt-body .hm-wt-todaybox ul { list-style: none; padding: 0; margin: 0; }
.hm-mt-body .hm-wt-todaybox li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: 0; font-size: .92rem; }
.hm-mt-body .hm-wt-todaybox li a { text-decoration: none; font-size: 1rem; }

/* --- 番組・放送局の一覧（タップで各ページへ） --- */
.hm-mt-body .hm-wt-grid { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (max-width: 575px) { .hm-mt-body .hm-wt-grid { grid-template-columns: 1fr; } }
.hm-mt-body .hm-wt-grid li { margin: 0; }
.hm-mt-body a.hm-wt-item { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; height: 100%; background: #fff; border: 1px solid var(--haneul-100); border-radius: 12px; padding: .8rem 1rem; text-decoration: none; line-height: 1.5; transition: border-color .2s ease, box-shadow .2s ease; }
.hm-mt-body a.hm-wt-item:hover { border-color: var(--haneul); box-shadow: 0 6px 20px rgba(18, 38, 58, .08); }
.hm-wt-item b { color: var(--ink); font-size: 1rem; }
.hm-wt-item-sub { color: var(--ink-soft); font-size: .8rem; font-weight: normal; }

/* --- 手順（番号つき） --- */
.hm-mt-body .hm-wt-steps { list-style: none; padding: 0; margin: 0 0 1.4rem; counter-reset: hm-wt-step; }
.hm-mt-body .hm-wt-steps li { position: relative; counter-increment: hm-wt-step; padding: .1rem 0 1rem 2.6rem; margin: 0; }
.hm-mt-body .hm-wt-steps li::before { content: counter(hm-wt-step); position: absolute; left: 0; top: .1rem; width: 1.8rem; height: 1.8rem; line-height: 1.8rem; border-radius: 50%; background: var(--haneul); color: #fff; font-weight: 900; text-align: center; font-size: .9rem; }
.hm-mt-body .hm-wt-steps li::after { content: ""; position: absolute; left: .87rem; top: 2.1rem; bottom: .1rem; width: 2px; background: var(--haneul-100); }
.hm-mt-body .hm-wt-steps li:last-child { padding-bottom: 0; }
.hm-mt-body .hm-wt-steps li:last-child::after { display: none; }
.hm-wt-steps b { display: block; color: var(--ink); }
.hm-wt-steps span { display: block; font-size: .9rem; line-height: 1.8; }

/* --- クーポン --- */
.hm-wt-coupon { border: 2px dashed var(--gyul); border-radius: 12px; background: #fff8f2; padding: 1rem 1.2rem; margin: 0 0 1.4rem; text-align: center; }
.hm-mt-body .hm-wt-coupon p { margin: 0; }
.hm-wt-coupon-label { font-size: .8rem; font-weight: bold; color: var(--gyul-dark); }
.hm-wt-coupon-code { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem; margin: .3rem 0 !important; }
.hm-wt-coupon-code code, .hm-wt-coupon-line code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; font-weight: 900; color: var(--ink); background: #fff; border: 1px solid var(--haneul-100); border-radius: 8px; padding: .15em .7em; letter-spacing: .04em; }
.hm-wt-copy { border: 1.5px solid var(--haneul); background: #fff; color: var(--bada); font-weight: bold; font-size: .85rem; border-radius: 8px; padding: .45em 1em; cursor: pointer; }
.hm-wt-copy:hover { background: var(--haneul-50); }
.hm-wt-coupon-date { font-size: .75rem; color: var(--ink-soft); }
.hm-wt-coupon-line { margin: .9rem 0 0; font-size: .85rem; display: flex; align-items: center; gap: .6rem; }
.hm-wt-coupon-line span { font-weight: bold; color: var(--gyul-dark); }
.hm-wt-coupon-line code { font-size: 1rem; }

/* --- こまかい部品 --- */
.hm-wt-kana { margin: .1rem 0 0; font-size: .8rem; color: var(--ink-soft); }
.hm-wt-specnote { font-size: .8rem; color: var(--ink-soft); margin: .6rem 0 0; }
.hm-mt-specbox .hm-mt-spec dd a { color: var(--bada); font-weight: bold; }
.hm-mt-body .hm-wt-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.hm-mt-body .hm-wt-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; padding: .5rem 0; margin: 0; border-bottom: 1px dashed var(--haneul-100); }
.hm-mt-body .hm-wt-list li a { text-decoration: none; }
.hm-wt-more { margin: 0 0 2rem; font-size: .9rem; }
.hm-wt-more a { color: var(--bada); font-weight: bold; }
.hm-mt-article > .hm-cards { margin-bottom: 1rem; }

/* ============================================================
   旧WordPress（SWELL）の本文のうち、韓国語教室ナビの記事には無かった部品
   （手順・Q&A・開閉・埋め込み・注意ボックス）。基本の部品は hm-schools.css の指定をそのまま使う
   ============================================================ */
.hm-site-entertainment .hm-mt-body .swell-block-step { margin: 1.4rem 0; }
.hm-site-entertainment .hm-mt-body .swell-block-step__item { position: relative; padding: 0 0 1.4rem 2.6rem; }
.hm-site-entertainment .hm-mt-body .swell-block-step__item::before { content: ""; position: absolute; left: .87rem; top: 2rem; bottom: 0; width: 2px; background: var(--haneul-100); }
.hm-site-entertainment .hm-mt-body .swell-block-step__item:last-child::before { display: none; }
.hm-site-entertainment .hm-mt-body .swell-block-step__number { position: absolute; left: 0; top: 0; min-width: 1.8rem; height: 1.8rem; line-height: 1.8rem; border-radius: 999px; background: var(--haneul); color: #fff; font-weight: 900; font-size: .75rem; text-align: center; padding: 0 .3rem; }
.hm-site-entertainment .hm-mt-body .swell-block-step__title { color: var(--ink); font-weight: 900; font-size: 1.05rem; line-height: 1.8; margin-bottom: .4rem; }
.hm-site-entertainment .hm-mt-body .swell-block-step__body > *:last-child { margin-bottom: 0; }

.hm-site-entertainment .hm-mt-body .swell-block-faq { margin: 1.4rem 0; }
.hm-site-entertainment .hm-mt-body .swell-block-faq__item { border-bottom: 1px dashed var(--haneul-100); padding: .9rem 0; }
.hm-site-entertainment .hm-mt-body .faq_q { position: relative; color: var(--ink); font-weight: bold; padding-left: 2rem; margin: 0 0 .4rem; }
.hm-site-entertainment .hm-mt-body .faq_a { position: relative; padding-left: 2rem; margin: 0; }
.hm-site-entertainment .hm-mt-body .faq_q::before, .hm-site-entertainment .hm-mt-body .faq_a::before { position: absolute; left: 0; top: .15em; width: 1.5rem; height: 1.5rem; line-height: 1.5rem; border-radius: 50%; text-align: center; font-size: .8rem; font-weight: 900; }
.hm-site-entertainment .hm-mt-body .faq_q::before { content: "Q"; background: var(--haneul); color: #fff; }
.hm-site-entertainment .hm-mt-body .faq_a::before { content: "A"; background: var(--haneul-50); color: var(--bada); }
.hm-site-entertainment .hm-mt-body .faq_a > *:last-child { margin-bottom: 0; }

.hm-site-entertainment .hm-mt-body .swell-block-accordion__item { border: 1px solid var(--haneul-100); border-radius: 12px; margin: 0 0 .6rem; overflow: hidden; background: #fff; }
.hm-site-entertainment .hm-mt-body .swell-block-accordion__title { cursor: pointer; list-style: none; padding: .8rem 1rem; font-weight: bold; color: var(--ink); background: var(--haneul-50); }
.hm-site-entertainment .hm-mt-body .swell-block-accordion__title::-webkit-details-marker { display: none; }
.hm-site-entertainment .hm-mt-body .swell-block-accordion__icon { display: none; }
.hm-site-entertainment .hm-mt-body .swell-block-accordion__body { padding: 1rem 1.1rem .2rem; }

.hm-site-entertainment .hm-mt-body [class*="is-style-big_icon_"], .hm-site-entertainment .hm-mt-body [class*="is-style-icon_"], .hm-site-entertainment .hm-mt-body .is-style-bg_stripe, .hm-site-entertainment .hm-mt-body .is-style-stitch { border: 1px solid var(--haneul-100); border-left: 4px solid var(--haneul); background: #fff; border-radius: 12px; padding: 1rem 1.2rem .1rem; margin: 1.4rem 0; }
.hm-site-entertainment .hm-mt-body .is-style-big_icon_caution, .hm-site-entertainment .hm-mt-body .is-style-big_icon_batsu, .hm-site-entertainment .hm-mt-body .is-style-icon_caution, .hm-site-entertainment .hm-mt-body .is-style-icon_batsu { border-left-color: var(--gyul); background: #fff8f2; }

.hm-site-entertainment .hm-mt-body .wp-block-embed { margin: 1.4rem 0; }
.hm-site-entertainment .hm-mt-body .wp-block-embed__wrapper { position: relative; }
.hm-site-entertainment .hm-mt-body .wp-block-embed.is-type-video .wp-block-embed__wrapper, .hm-site-entertainment .hm-mt-body .wp-embed-aspect-16-9 .wp-block-embed__wrapper { padding-top: 56.25%; }
.hm-site-entertainment .hm-mt-body .wp-block-embed.is-type-video iframe, .hm-site-entertainment .hm-mt-body .wp-embed-aspect-16-9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.hm-site-entertainment .hm-mt-body iframe { max-width: 100%; }
.hm-site-entertainment .hm-mt-body .swell-block-linkList { list-style: none; padding: 0; }
.hm-site-entertainment .hm-mt-body .swell-block-linkList__item { border-bottom: 1px dashed var(--haneul-100); padding: .5rem 0; margin: 0; }
.hm-site-entertainment .hm-mt-body .swell-block-linkList__link { text-decoration: none; }
.hm-site-entertainment .hm-mt-body .wp-block-buttons, .hm-site-entertainment .hm-mt-body .wp-block-button { text-align: center; margin: 1rem 0 1.6rem; }
.hm-site-entertainment .hm-mt-body .wp-block-button__link { display: inline-block; width: 100%; max-width: 420px; background: var(--gyul); color: #fff !important; padding: .9em 1.4em; font-weight: bold; border-radius: 8px; text-decoration: none !important; line-height: 1.4; }
.hm-site-entertainment .hm-mt-body .wp-block-button__link:hover { background: var(--gyul-dark); }

/* VPNのロゴ: 横長のロゴも切れないように、白地に収める */
.hm-site-entertainment .hm-mt-thumb:has(img) { background: #fff; border: 1px solid var(--haneul-100); }
.hm-site-entertainment .hm-mt-thumb img { object-fit: contain; padding: 6px; }

/* VPN診断（旧サイトのブログパーツ .yn-chart）。public/js/hm-watch.js で1問ずつ表示する（JSが動かないときは全部表示） */
.hm-site-entertainment .hm-mt-body .yn-chart { margin: 1.8rem 0; padding: 1.4rem 1.1rem 1.2rem; border: 2px solid var(--haneul-100); border-radius: 16px; background: var(--haneul-50); text-align: center; }
.hm-site-entertainment .hm-mt-body .yn-chart p { margin: 0 0 .6rem; }
.hm-site-entertainment .hm-mt-body .yn-chart__add { display: inline-block; font-size: .78rem; font-weight: bold; color: #fff; background: var(--haneul); border-radius: 999px; padding: .15em 1em; }
.hm-site-entertainment .hm-mt-body .yn-chart__title { font-size: 1.25rem; font-weight: 900; color: var(--ink); line-height: 1.5; }
.hm-site-entertainment .hm-mt-body .yn-chart__ex { font-size: .85rem; font-weight: bold; color: var(--bada); }
.hm-site-entertainment .hm-mt-body .yn-chart > div { background: #fff; border-radius: 12px; padding: 1.2rem 1rem; margin-top: 1rem; }
.hm-site-entertainment .hm-mt-body .yn-chart > div[hidden] { display: none; }
.hm-site-entertainment .hm-mt-body .yn-chart figure { margin: 0 auto .6rem; max-width: 88px; }
.hm-site-entertainment .hm-mt-body .yn-chart figure img { margin: 0; border-radius: 0; }
.hm-site-entertainment .hm-mt-body .yn-chart > div > p { font-weight: bold; color: var(--ink); }
.hm-site-entertainment .hm-mt-body .yn-chart ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.hm-site-entertainment .hm-mt-body .yn-chart li { margin: 0; padding: 0; }
.hm-site-entertainment .hm-mt-body .yn-chart li::before { content: none; display: none; }
.hm-site-entertainment .hm-mt-body .yn-chart li a { display: block; padding: .85em 1em; border: 2px solid var(--haneul); border-radius: 10px; background: #fff; color: var(--bada); font-weight: bold; line-height: 1.5; text-decoration: none; }
.hm-site-entertainment .hm-mt-body .yn-chart li a:hover { background: var(--haneul); color: #fff; }
.hm-site-entertainment .hm-mt-body .yn-chart__result { padding: 0; }
.hm-site-entertainment .hm-mt-body .yn-chart__result-title { display: inline-block; font-weight: 900; color: var(--gyul-dark); border-bottom: 2px solid var(--gyul); padding: 0 .4em; margin-bottom: .9rem !important; }
.hm-site-entertainment .hm-mt-body .yn-chart__result img { margin: .4rem auto; border-radius: 0; }
.hm-site-entertainment .hm-mt-body .yn-chart .swell-block-button { margin: .8rem auto; }
.hm-site-entertainment .hm-mt-body .yn-chart .swell-block-button.-html > a { display: inline-block; width: 100%; max-width: 420px; background: var(--gyul); color: #fff; padding: .9em 1.4em; font-weight: bold; border-radius: 8px; text-decoration: none; line-height: 1.4; }
.hm-site-entertainment .hm-mt-body .yn-chart .swell-block-button.-html > a:hover { background: var(--gyul-dark); }
.hm-site-entertainment .hm-mt-body .yn-chart .swell-block-button img { margin: 0; }
.hm-site-entertainment .hm-mt-body .yn-chart .p-check-btn { margin: .8rem 0 0; }
.hm-site-entertainment .hm-mt-body .yn-chart .p-check-btn a { font-size: .85rem; font-weight: bold; color: var(--bada); }
