/* =========================================================================
   OTOCOメディア（/media）
   参考: apptime.co.jp/media（タグから探す・カテゴリ色・人気の記事・バナー）
         qasica.com/column（ヒーローの数値・注目記事・まず読むなら・サイドバー）
         luvai.jp（記事ページ: 見出し帯・白いカード・目次・ポイント・右サイドバーCTA）
   配色: OTOCO のアクア（--aqua）を基調に、カテゴリごとのテーマカラー（--c）
   ========================================================================= */

body.media-page { background: #fff; color: var(--text); --c: var(--aqua); }
.m-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.m-main { min-height: 60vh; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }

/* ---- ボタン ---- */
.m-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--aqua); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.2;
    padding: 12px 22px; border-radius: 999px; border: 0;
    box-shadow: 0 4px 14px rgba(26, 194, 222, .3); transition: transform .15s, box-shadow .15s, opacity .15s;
}
.m-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26, 194, 222, .38); }
.m-btn-sm { padding: 9px 16px; font-size: 13px; box-shadow: none; }
.m-btn-lg { padding: 16px 30px; font-size: 16px; }
.m-btn-outline { background: #fff; color: var(--text); border: 1px solid var(--light-gray); box-shadow: none; }
.m-btn-white { background: #fff; color: #0B8FA6; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }

/* ---- 読了プログレスバー ---- */
.m-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; display: none; }
.m-progress.is-on { display: block; }
.m-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--aqua), #6FE0F0); transform-origin: left; transform: scaleX(0); }

/* ---- ヘッダー ---- */
.m-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border2); }
.m-header-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.m-brand { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.m-brand img { display: block; }
.m-brand-label { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: #fff; background: var(--black); padding: 3px 7px; border-radius: 4px; }
.m-nav { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.m-nav::-webkit-scrollbar { display: none; }
.m-nav a { position: relative; font-size: 14px; font-weight: 700; color: var(--text2); white-space: nowrap; padding: 20px 0; }
.m-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 2px; background: var(--c); transform: scaleX(0); transition: transform .2s; }
.m-nav a:hover::after, .m-nav a.is-active::after { transform: scaleX(1); }
.m-nav a.is-active { color: var(--black); }
.m-header-search { display: flex; align-items: center; gap: 6px; background: var(--light-gray2); border-radius: 999px; padding: 0 14px; height: 38px; width: 210px; color: var(--gray); flex-shrink: 0; }
.m-header-search input { border: 0; background: none; outline: none; font: inherit; font-size: 13px; width: 100%; color: var(--text); }
.m-header-cta { flex-shrink: 0; }
@media (max-width: 1000px) { .m-header-search { display: none; } }
@media (max-width: 768px) {
    .m-header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 4px 12px; }
    .m-header-cta { margin-left: auto; }
    .m-nav { order: 3; flex-basis: 100%; gap: 18px; }
    .m-nav a { padding: 10px 0 12px; }
    .m-nav a::after { bottom: 6px; }
}

/* ---- ヒーロー（トップ） ---- */
.m-hero {
    position: relative; overflow: hidden; padding: 56px 0 48px;
    background:
        linear-gradient(rgba(255,255,255,.0), #fff),
        linear-gradient(90deg, rgba(26,194,222,.06) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(rgba(26,194,222,.06) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(135deg, #EAFAFD 0%, #FFFFFF 70%);
}
.m-hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.m-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #0B8FA6; background: #fff; border: 1px solid rgba(26,194,222,.35); padding: 6px 12px; border-radius: 999px; }
.m-hero-title { margin-top: 18px; font-size: 40px; font-weight: 900; line-height: 1.35; letter-spacing: .01em; color: var(--black); }
.m-hl { background: linear-gradient(transparent 62%, rgba(26,194,222,.35) 62%); }
.m-hero-lead { margin-top: 18px; max-width: 600px; color: var(--dark-gray); line-height: 1.95; font-size: 15px; font-weight: 400; }
.m-stats { display: flex; gap: 36px; margin: 28px 0 0; flex-wrap: wrap; }
.m-stats > div { display: flex; flex-direction: column-reverse; }
.m-stats dd { margin: 0; font-size: 34px; font-weight: 900; color: var(--black); line-height: 1.1; letter-spacing: -.01em; }
.m-stats dd small { font-size: 14px; font-weight: 700; margin-left: 3px; color: var(--dark-gray); }
.m-stats dt { font-size: 12px; color: var(--gray); margin-top: 4px; }
.m-hero-visual { position: relative; height: 300px; }
.m-chat {
    position: absolute; max-width: 280px; padding: 12px 16px; border-radius: 16px; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.6;
    box-shadow: 0 10px 30px rgba(16, 70, 90, .12); animation: chatIn .6s ease both;
}
.m-chat-name { display: block; font-size: 10px; font-weight: 500; color: var(--gray); margin-bottom: 2px; }
.m-chat-1 { top: 0; left: 0; border-bottom-left-radius: 4px; animation-delay: .1s; }
.m-chat-2 { top: 74px; right: 0; background: var(--aqua); color: #fff; border-bottom-right-radius: 4px; animation-delay: .4s; }
.m-chat-2 .m-chat-name { color: rgba(255,255,255,.8); }
.m-chat-3 { top: 156px; left: 24px; border-bottom-left-radius: 4px; animation-delay: .7s; }
.m-chat-4 { top: 232px; right: 20px; background: var(--black); color: #fff; border-bottom-right-radius: 4px; animation-delay: 1s; }
.m-chat-4 .m-chat-name { color: rgba(255,255,255,.65); }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .m-hero-inner { grid-template-columns: 1fr; } .m-hero-visual { display: none; } }
@media (max-width: 640px) { .m-hero { padding: 36px 0 28px; } .m-hero-title { font-size: 28px; } .m-stats { gap: 24px; } .m-stats dd { font-size: 26px; } }

/* ---- 検索とタグ（apptime） ---- */
.m-searchbox { position: relative; z-index: 2; margin-top: -8px; background: #fff; border: 1px solid var(--border2); border-radius: 16px; padding: 20px 22px; box-shadow: 0 8px 30px rgba(0, 0, 0, .05); }
.m-search { display: flex; align-items: center; gap: 8px; background: var(--white1); border: 1px solid var(--border2); border-radius: 999px; padding: 5px 5px 5px 16px; color: var(--gray); }
.m-search:focus-within { border-color: var(--aqua); background: #fff; }
.m-search input { flex: 1; min-width: 0; height: 36px; border: 0; background: none; font: inherit; font-size: 14px; outline: none; color: var(--text); }
.m-search-inline { margin: 0 0 24px; }
.m-searchbox-label { font-size: 12px; font-weight: 700; color: var(--dark-gray); margin: 16px 0 10px; }

.m-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.m-tags a { display: inline-block; font-size: 13px; color: var(--text2); background: #fff; border: 1px solid var(--border2); padding: 5px 12px; border-radius: 999px; transition: .15s; }
.m-tags a:hover { border-color: var(--aqua); color: #0B8FA6; background: #F2FBFD; }
.m-tags small { color: var(--gray2); margin-left: 3px; font-size: 11px; }

/* ---- 2カラム ---- */
.m-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding-top: 36px; padding-bottom: 64px; }
.m-layout-side { position: relative; }
.m-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1000px) { .m-layout { grid-template-columns: minmax(0, 1fr); } .m-sidebar { position: static; } }

/* ---- セクション ---- */
.m-section { margin-bottom: 52px; }
.m-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.m-section-title { font-size: 22px; font-weight: 900; line-height: 1.3; display: flex; align-items: center; gap: 10px; }
.m-section-title::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--aqua); }
.m-section-desc { margin-top: 8px; font-size: 13px; color: var(--dark-gray); font-weight: 400; line-height: 1.7; max-width: 560px; }
.m-more { font-size: 13px; font-weight: 700; color: var(--black); white-space: nowrap; padding: 6px 12px; border: 1px solid var(--border2); border-radius: 999px; transition: .15s; }
.m-more:hover { border-color: var(--c); color: var(--c); }

/* カテゴリラベル（apptime のピル） */
.m-cat-label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--black);
    background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 25%, #fff); padding: 6px 14px; border-radius: 999px; }
.m-cat-label small { font-size: 12px; font-weight: 500; color: var(--gray); }
.m-cat-section { padding-top: 6px; }

/* ---- カード ---- */
.m-grid { display: grid; gap: 20px; }
.m-grid-3 { grid-template-columns: repeat(3, 1fr); }
.m-grid-2 { grid-template-columns: repeat(2, 1fr); }
.m-grid-full { grid-column: 1 / -1; }
@media (max-width: 800px) { .m-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .m-grid-3, .m-grid-2 { grid-template-columns: 1fr; } }

.m-card { --c: var(--aqua); background: #fff; border: 1px solid var(--border2); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.m-card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .08); transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 35%, #fff); }
.m-card-link { display: flex; flex-direction: column; height: 100%; }
.m-card-thumb { aspect-ratio: 1200 / 630; background: color-mix(in srgb, var(--c) 10%, #fff); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.m-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.m-card:hover .m-card-thumb img { transform: scale(1.04); }
.m-card-noimg { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--gray2); }
.m-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.m-card-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray); flex-wrap: wrap; }
.m-cat { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--c) 80%, #000); background: color-mix(in srgb, var(--c) 12%, #fff); padding: 3px 9px; border-radius: 999px; }
.m-cat-solid { background: var(--c); color: #fff; }
/* PR表記（ステマ規制対応） */
.m-pr { display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #6B6B6B; border: 1px solid #BDBDBD; background: #fff; padding: 1px 6px; border-radius: 4px; line-height: 1.5; }
.m-pr-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: #F7F7F9; border: 1px solid var(--border2); font-size: 12.5px; line-height: 1.7; color: var(--dark-gray); font-weight: 400; }
.m-pr-notice .m-pr { flex-shrink: 0; margin-top: 2px; }
.m-card-title { font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--black); }
.m-card-desc { font-size: 13px; color: var(--dark-gray); font-weight: 400; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-card-date { margin-top: auto; font-size: 12px; color: var(--gray2); }
.m-card-compact .m-card-title { font-size: 14px; }

/* 注目記事（大） */
.m-featured { position: relative; }
.m-badge { position: absolute; z-index: 2; top: 14px; left: 14px; background: var(--black); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.m-card-large { border-radius: 18px; }
.m-card-large .m-card-link { flex-direction: row; }
.m-card-large .m-card-thumb { flex: 0 0 54%; aspect-ratio: 1200 / 630; align-self: center; }
.m-card-large .m-card-body { padding: 28px; justify-content: center; gap: 12px; }
.m-card-large .m-card-title { font-size: 23px; line-height: 1.5; }
.m-card-large .m-card-desc { font-size: 14px; -webkit-line-clamp: 4; }
.m-card-large .m-card-date { margin-top: 4px; }
@media (max-width: 760px) { .m-card-large .m-card-link { flex-direction: column; } .m-card-large .m-card-thumb { align-self: stretch; } .m-card-large .m-card-body { padding: 18px; } .m-card-large .m-card-title { font-size: 19px; } }

/* まず読むなら */
.m-pickup { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.m-pickup li a { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border2); }
.m-pickup li:first-child a { border-top: 0; }
.m-pickup-num { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--black); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.m-pickup-title { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.55; color: var(--black); }
.m-pickup li a:hover .m-pickup-title { color: #0B8FA6; }
.m-pickup-meta { display: block; font-size: 11px; color: var(--gray); margin-top: 3px; }
.m-pickup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.m-pickup-grid li a { border: 1px solid var(--border2); border-radius: 12px; padding: 14px; height: 100%; background: #fff; transition: .15s; }
.m-pickup-grid li:first-child a { border-top: 1px solid var(--border2); }
.m-pickup-grid li a:hover { border-color: var(--aqua); }
.m-pickup-grid .m-pickup-num { background: var(--aqua); }
@media (max-width: 640px) { .m-pickup-grid { grid-template-columns: 1fr; } }

/* ---- バナー（記事一覧の合間） ---- */
.m-banner {
    display: grid; grid-template-columns: 210px 1fr auto; gap: 20px; align-items: center; margin: -18px 0 52px; padding: 18px 22px;
    border-radius: 16px; background: linear-gradient(120deg, #E6F8FB 0%, #F3FCFE 55%, #FFFFFF 100%); border: 1px solid rgba(26,194,222,.28);
}
.m-banner-2 { background: linear-gradient(120deg, #F1F1F3 0%, #FAFAFB 60%, #FFFFFF 100%); border-color: var(--border2); }
.m-banner-visual { position: relative; height: 96px; }
.m-banner-visual span { position: absolute; font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.08); white-space: nowrap; }
.m-banner-visual .b1 { top: 0; left: 0; border-bottom-left-radius: 3px; }
.m-banner-visual .b2 { top: 34px; left: 46px; background: var(--aqua); color: #fff; border-bottom-right-radius: 3px; }
.m-banner-visual .b3 { top: 68px; left: 10px; background: var(--black); color: #fff; border-bottom-left-radius: 3px; }
.m-banner-kicker { font-size: 11px; font-weight: 700; color: #0B8FA6; }
.m-banner-title { font-size: 17px; font-weight: 900; margin-top: 4px; color: var(--black); }
.m-banner-desc { font-size: 12.5px; color: var(--dark-gray); margin-top: 4px; line-height: 1.7; font-weight: 400; }
.m-banner-btn { white-space: nowrap; }
@media (max-width: 760px) { .m-banner { grid-template-columns: 1fr; text-align: left; } .m-banner-visual { display: none; } .m-banner-btn { justify-self: start; } }

/* ---- サイドバー ---- */
.m-side-cta {
    position: relative; overflow: hidden; padding: 22px 20px; border-radius: 18px; text-align: center; color: #fff;
    background: linear-gradient(150deg, #1AC2DE 0%, #0E9DB6 55%, #0B7F94 100%); box-shadow: 0 12px 30px rgba(14, 157, 182, .3);
}
.m-side-cta::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.12); }
.m-side-cta-kicker { font-size: 12px; font-weight: 700; opacity: .9; }
.m-side-cta img { display: block; margin: 10px auto 12px; background: #fff; padding: 10px 16px; border-radius: 10px; width: 160px; height: auto; box-sizing: border-box; }
.m-side-cta-text { font-size: 13px; line-height: 1.75; font-weight: 500; text-align: left; }
.m-side-cta .m-btn { width: 100%; margin-top: 14px; }
.m-side-cta-note { margin-top: 8px; font-size: 11px; opacity: .85; }
.m-side-box { background: #fff; border: 1px solid var(--border2); border-radius: 16px; padding: 18px 18px 10px; }
.m-side-title { font-size: 15px; font-weight: 900; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.m-side-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--aqua); }
.m-rank { list-style: none; margin: 0; padding: 0; }
.m-rank li a { display: grid; grid-template-columns: 22px 80px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border2); }
.m-rank li:first-child a { border-top: 0; }
.m-rank-num { font-size: 18px; font-weight: 900; color: var(--light-gray); text-align: center; font-style: italic; }
.m-rank li:nth-child(1) .m-rank-num { color: #E8A317; }
.m-rank li:nth-child(2) .m-rank-num { color: #9AA4AE; }
.m-rank li:nth-child(3) .m-rank-num { color: #C07A45; }
.m-rank img { width: 80px; height: 42px; object-fit: cover; border-radius: 6px; }
.m-rank-title { font-size: 12.5px; font-weight: 700; line-height: 1.5; color: var(--black); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-rank li a:hover .m-rank-title { color: #0B8FA6; }
.m-side-cats { list-style: none; margin: 0; padding: 0; }
.m-side-cats a { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--border2); font-size: 14px; font-weight: 500; }
.m-side-cats li:first-child a { border-top: 0; }
.m-side-cats a:hover { color: var(--c); }
.m-side-cats .count { margin-left: auto; font-size: 12px; color: var(--gray); background: var(--light-gray2); border-radius: 999px; padding: 1px 9px; }

/* ---- CTA（記事・トップの最後） ---- */
.m-cta { margin-top: 48px; text-align: center; padding: 38px 24px; border-radius: 18px; background: radial-gradient(circle at 15% 20%, rgba(26,194,222,.16), transparent 45%), radial-gradient(circle at 85% 80%, rgba(26,194,222,.12), transparent 45%), #F6FDFE; border: 1px solid rgba(26,194,222,.25); }
.m-cta-logo { display: block; margin: 0 auto 14px; width: 130px; height: auto; }
.m-cta-title { font-size: 20px; font-weight: 900; color: var(--black); }
.m-cta-text { max-width: 560px; margin: 10px auto 0; font-size: 14px; color: var(--dark-gray); font-weight: 400; line-height: 1.85; }
.m-cta-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- 一覧ページ ---- */
.m-list-hero { padding: 34px 0 30px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, #fff) 0%, #fff 75%); border-bottom: 1px solid var(--border2); }
.m-list-hero h1 { display: flex; align-items: center; gap: 12px; font-size: 30px; font-weight: 900; margin-top: 6px; }
.m-list-hero h1 .dot { width: 12px; height: 12px; }
.m-list-hero p { margin-top: 10px; color: var(--dark-gray); font-weight: 400; max-width: 680px; line-height: 1.8; }
.m-list-hero .m-list-count { font-size: 12px; color: var(--gray); margin-top: 6px; }
.m-empty { padding: 48px 0; text-align: center; color: var(--gray); }
.m-pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; font-size: 14px; }
.m-pager a { color: #0B8FA6; font-weight: 700; padding: 8px 16px; border: 1px solid var(--border2); border-radius: 999px; }
.m-breadcrumb { font-size: 12px; color: var(--gray); display: flex; flex-wrap: wrap; gap: 6px; }
.m-breadcrumb a { color: var(--dark-gray); }
.m-breadcrumb a:hover { color: #0B8FA6; }

/* =========================================================================
   記事ページ（luvai）
   ========================================================================= */
.m-article-page { background: #F5F7F9; }
.m-article-hero { padding: 26px 0 34px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 13%, #fff) 0%, #fff 70%); border-bottom: 1px solid var(--border2); }
.m-article-title { margin-top: 14px; font-size: 32px; font-weight: 900; line-height: 1.5; color: var(--black); max-width: 860px; }
.m-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; font-size: 13px; color: var(--gray); }
@media (max-width: 640px) { .m-article-title { font-size: 23px; } .m-article-hero { padding: 18px 0 24px; } }
.m-article-layout { padding-top: 28px; }
.m-article-card { background: #fff; border-radius: 18px; padding: 32px 40px 40px; box-shadow: 0 2px 14px rgba(0, 0, 0, .04); }
@media (max-width: 640px) { .m-article-card { padding: 18px 16px 28px; border-radius: 14px; margin: 0 -8px; } }
.m-article-thumb { margin: 0 0 20px; border-radius: 12px; overflow: hidden; }
.m-article-thumb img { width: 100%; height: auto; display: block; }
.m-about { font-size: 12.5px; color: var(--dark-gray); font-weight: 400; line-height: 1.8; padding: 0 2px; }
.m-about strong { color: var(--black); }

/* 目次 */
.m-toc { margin-top: 22px; border-radius: 14px; padding: 20px 24px; background: var(--white1); border: 1px solid var(--border2); }
.m-toc-title { font-weight: 900; margin-bottom: 10px; font-size: 15px; }
.m-toc ol { margin: 0; padding-left: 1.5em; }
.m-toc li { margin: 8px 0; font-size: 14px; line-height: 1.6; }
.m-toc li::marker { color: var(--c); font-weight: 700; }
.m-toc a { color: color-mix(in srgb, var(--c) 75%, #000); }
.m-toc a:hover { text-decoration: underline; }

/* この記事のポイント */
.m-points { margin-top: 20px; border-radius: 14px; padding: 20px 24px; background: color-mix(in srgb, var(--c) 6%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); }
.m-points-title { font-weight: 900; color: color-mix(in srgb, var(--c) 80%, #000); margin-bottom: 8px; font-size: 15px; }
.m-points ul { margin: 0; padding-left: 1.3em; }
.m-points li { margin: 8px 0; line-height: 1.75; font-weight: 500; }
.m-points li::marker { color: var(--c); }

/* 本文 */
.m-body { margin-top: 30px; font-size: 16px; line-height: 2; font-weight: 400; color: var(--text); word-break: break-word; }
.m-body p { margin: 0 0 1.5em; }
.m-body h2 { font-size: 22px; font-weight: 900; line-height: 1.5; margin: 2.6em 0 1em; padding: 4px 0 4px 16px; border-left: 5px solid var(--c); scroll-margin-top: 84px; color: var(--black); }
.m-body h3 { font-size: 18px; font-weight: 700; margin: 2em 0 .8em; padding-bottom: 8px; border-bottom: 2px dotted color-mix(in srgb, var(--c) 40%, #ddd); }
.m-body ul, .m-body ol { margin: 0 0 1.5em; padding-left: 1.5em; }
.m-body li { margin: .45em 0; }
.m-body li::marker { color: var(--c); }
.m-body strong { font-weight: 700; background: linear-gradient(transparent 60%, rgba(255, 221, 87, .55) 60%); }
.m-body a { color: var(--ios-blue); text-decoration: underline; }
.m-body blockquote { margin: 0 0 1.5em; padding: 14px 18px; border-left: 4px solid var(--light-gray); color: var(--dark-gray); background: var(--white1); border-radius: 0 10px 10px 0; }
.m-body hr { border: 0; border-top: 1px solid var(--border2); margin: 2em 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.7em; border-radius: 10px; border: 1px solid var(--border2); }
.m-body table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; min-width: 480px; }
.m-body th, .m-body td { border-bottom: 1px solid var(--border2); padding: 11px 14px; text-align: left; vertical-align: top; }
.m-body th { background: var(--c); color: #fff; font-weight: 700; white-space: nowrap; }
.m-body tr:last-child td { border-bottom: 0; }
.m-body tr:nth-child(even) td { background: color-mix(in srgb, var(--c) 4%, #fff); }
.m-body td:first-child { min-width: 7em; font-weight: 700; color: var(--black); }
@media (max-width: 640px) { .m-body { font-size: 15.5px; line-height: 1.95; } .m-body h2 { font-size: 19.5px; } .m-body h3 { font-size: 17px; } }

/* 図・画像・動画 */
.m-body img { max-width: 100%; height: auto; border-radius: 8px; vertical-align: middle; }
.m-figure { margin: 2em 0; text-align: center; }
.m-figure img { display: block; margin: 0 auto; border-radius: 14px; border: 1px solid var(--border2); background: #fff; }
.m-figure a { display: block; cursor: zoom-in; }
.m-figure figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--gray); }
.m-video { position: relative; margin: 2em 0; border-radius: 14px; overflow: hidden; background: #000; }
.m-video video { display: block; width: 100%; max-height: 70vh; }
.m-video-yt { aspect-ratio: 16 / 9; }
.m-video-yt.is-shorts { aspect-ratio: 9 / 16; max-width: 360px; margin-left: auto; margin-right: auto; }
.m-video-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 補足ボックス */
.callout { position: relative; margin: 0 0 1.7em; padding: 18px 20px; border-radius: 12px; }
.callout p { margin: 0 0 .6em; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-title { font-weight: 900; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.callout-title::before { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 13px; align-items: center; justify-content: center; flex-shrink: 0; }
.callout-point { background: #EEF9FB; border: 1px solid rgba(26,194,222,.35); }
.callout-point .callout-title { color: #0B8FA6; }
.callout-point .callout-title::before { content: "✓"; background: var(--aqua); }
.callout-caution { background: #FFF5F4; border: 1px solid rgba(223,44,50,.25); }
.callout-caution .callout-title { color: var(--red); }
.callout-caution .callout-title::before { content: "!"; background: var(--red); }
.callout-note { background: #F7F7F9; border: 1px solid var(--border2); }
.callout-note .callout-title { color: var(--dark-gray); }
.callout-note .callout-title::before { content: "i"; background: var(--gray); font-style: italic; }

/* FAQ */
.m-faq { margin-top: 52px; }
.m-faq h2 { font-size: 22px; font-weight: 900; margin-bottom: 16px; padding: 4px 0 4px 16px; border-left: 5px solid var(--c); scroll-margin-top: 84px; }
.m-faq-item { border: 1px solid var(--border2); border-radius: 12px; margin-bottom: 10px; background: #fff; transition: border-color .15s; }
.m-faq-item[open] { border-color: color-mix(in srgb, var(--c) 40%, #fff); }
.m-faq-item summary { cursor: pointer; list-style: none; padding: 16px 46px 16px 16px; font-weight: 700; display: flex; gap: 12px; position: relative; line-height: 1.6; }
.m-faq-item summary::-webkit-details-marker { display: none; }
.m-faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--c); }
.m-faq-item[open] summary::after { content: "−"; }
.m-faq-q, .m-faq-a-mark { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: #fff; background: var(--c); }
.m-faq-a { display: flex; gap: 12px; padding: 0 16px 18px; line-height: 1.9; font-weight: 400; }
.m-faq-a-mark { background: var(--gray2); }
.m-faq-a p { margin: 0; }

.m-article-tags { margin-top: 32px; }

/* シェア */
.m-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--white1); }
.m-share-label { font-size: 13px; font-weight: 700; margin-right: 4px; }
.m-share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 36px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 0; transition: opacity .15s; }
.m-share-btn:hover { opacity: .85; }
.m-share-btn.x { background: #000; color: #fff; padding: 0; width: 36px; }
.m-share-btn.line { background: #06C755; color: #fff; }
.m-share-btn.copy { background: #fff; border: 1px solid var(--light-gray); color: var(--text2); }

/* この記事を書いた人 */
.m-author { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 20px; border: 1px solid var(--border2); border-radius: 14px; }
.m-author img { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; border: 1px solid var(--border2); }
.m-author-label { font-size: 11px; color: var(--gray); font-weight: 700; }
.m-author-name { font-size: 16px; font-weight: 900; margin-top: 2px; }
.m-author-desc { font-size: 13px; color: var(--dark-gray); line-height: 1.8; margin-top: 6px; font-weight: 400; }

/* 関連スレッド */
.m-threads { margin-top: 48px; }
.m-threads h2 { font-size: 19px; font-weight: 900; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.m-threads h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--aqua); }
.m-threads .list { border: 1px solid var(--border2); border-radius: 14px; overflow: hidden; }
.m-threads-more { text-align: right; margin-top: 10px; font-size: 13px; font-weight: 700; }
.m-threads-more a { color: #0B8FA6; }

.m-preview-bar { background: #FFF3CD; color: #7A5B00; text-align: center; font-size: 13px; font-weight: 700; padding: 8px; }

/* ---- フッター ---- */
.m-footer { background: #15171A; color: #ddd; padding: 52px 0 24px; }
.m-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { .m-footer-grid { grid-template-columns: 1fr; } }
.m-footer-logo { filter: invert(1); }
.m-footer-about { margin: 14px 0 18px; font-size: 13px; line-height: 1.85; color: #aaa; font-weight: 400; max-width: 460px; }
.m-footer-head { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.m-footer ul { list-style: none; margin: 0; padding: 0; }
.m-footer li { margin: 9px 0; font-size: 13px; }
.m-footer li a { color: #aaa; }
.m-footer li a:hover { color: #fff; }
.m-copy { margin-top: 36px; font-size: 12px; color: #777; text-align: center; }
