/* ===== コラム一覧（/column/）と記事ページ ===== */
.cm { overflow: hidden; background: #fff; --serif: 'Noto Serif JP', 'Noto Serif CJK JP', 'Hiragino Mincho ProN', serif; }

/* --- 一覧：メインビジュアル --- */
.cm-hero { position: relative; background: #f0fafb url(/assets/img/column-hero-bg.jpg) right top / cover no-repeat; min-height: clamp(300px, 27.5vw, 470px); }
.cm-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(rgba(255,255,255,0), #fff); }
.cm-hero .breadcrumb, .cm-hero-copy { position: relative; z-index: 1; }
.cm-hero-copy { padding: 14px 40px 50px; }
.cm-hero-en { display: inline-block; margin: 0; padding: 0 14px 4px 4px; font-size: 30px; font-weight: 800; font-style: italic; color: var(--teal-dark); border-bottom: 2px solid var(--teal); }
.cm-hero-title { margin: 10px 0 0; font-family: var(--serif); font-weight: 900; font-size: 64px; letter-spacing: .06em; line-height: 1.2; }
.cm-hero-lead { margin: 14px 0 0; font-size: 21px; font-weight: 700; line-height: 1.6; }

/* --- 一覧：カテゴリー --- */
.cm-main { position: relative; padding: 24px 0 90px; }
.cm-main::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -170px; height: 300px; border-radius: 50%; background: linear-gradient(180deg, #d6f5f5, #9fe4e6); opacity: .7; z-index: 0; }
.cm-main .wrap { position: relative; z-index: 1; }
.cm-tabs { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 34px; padding: 4px; background: #fff; border-radius: 999px; box-shadow: 0 0 0 1px #d5eded, 0 6px 16px rgba(0,110,120,.08); overflow-x: auto; scroll-margin-top: calc(var(--header-h) + 20px); }
.cm-tabs button { flex: 0 0 auto; min-width: 130px; border: 0; background: none; padding: 13px 22px; border-radius: 999px; font-size: 19px; font-weight: 800; color: var(--navy); cursor: pointer; position: relative; white-space: nowrap; transition: background .2s, color .2s; }
.cm-tabs button + button::before { content: ''; position: absolute; left: 0; top: 30%; height: 40%; width: 1px; background: #c6d5d8; }
.cm-tabs button[aria-pressed="true"] { background: linear-gradient(180deg, #17aeac, #0d9a9a); color: #fff; }
.cm-tabs button[aria-pressed="true"]::before, .cm-tabs button[aria-pressed="true"] + button::before { display: none; }
.cm-tabs button:hover:not([aria-pressed="true"]) { color: var(--teal-dark); }

/* --- カテゴリーのラベル --- */
.cm-cat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 14px 3px 12px; border: 2px solid var(--teal); border-radius: 999px; background: #fff; color: var(--teal-dark); font-size: 14px; font-weight: 800; white-space: nowrap; }
.cm-cat::before { content: ''; width: 16px; height: 13px; border-radius: 2px; background: var(--teal); clip-path: polygon(0 0, 40% 0, 50% 18%, 100% 18%, 100% 100%, 0 100%); }

/* --- 一覧：先頭の大きな記事 --- */
.cm-feature { display: grid; grid-template-columns: 42% 1fr 30px; align-items: center; gap: 30px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid #e0eaec; }
.cm-feature-photo { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #e8f6f6; }
.cm-feature-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cm-feature:hover .cm-feature-img { transform: scale(1.04); }
.cm-feature-body { display: grid; gap: 12px; justify-items: start; }
.cm-feature-title { font-size: 26px; font-weight: 900; line-height: 1.5; transition: color .2s; }
.cm-feature:hover .cm-feature-title { color: var(--teal-dark); }
.cm-feature-text { font-size: 15px; line-height: 1.8; color: #3b4f5a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cm-feature-arrow { font-size: 40px; color: var(--teal); font-weight: 700; }

/* --- 一覧：カード --- */
.cm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.cm-card { display: grid; align-content: start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #e0eaec; }
.cm-card-photo { position: relative; display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #e8f6f6; }
.cm-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cm-card:hover .cm-card-img { transform: scale(1.05); }
.cm-card-photo .cm-cat { position: absolute; left: 10px; top: 10px; }
.cm-card-title { font-size: 18px; font-weight: 900; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.cm-card:hover .cm-card-title { color: var(--teal-dark); }
.cm-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: #4a5f69; }
.cm-card-meta time::before { content: ''; display: inline-block; width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; border: 2px solid var(--teal); border-top-width: 4px; border-radius: 3px; }
.cm-card-arrow { font-size: 28px; line-height: 1; color: var(--teal); font-weight: 700; }
.cm-thumb-none { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #d9f6f4, #7fd9d6); color: #fff; font-size: 26px; font-weight: 900; }
.cm-empty { margin: 40px 0; text-align: center; font-weight: 700; color: #4a6370; }

/* --- ページ切り替え --- */
.cm-pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 44px; flex-wrap: wrap; }
.cm-page { min-width: 52px; height: 52px; padding: 0 10px; border-radius: 10px; border: 2px solid #d5e3e6; background: #fff; font-size: 20px; font-weight: 800; color: var(--navy); cursor: pointer; transition: .2s; }
.cm-page[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.cm-page:hover:not(:disabled):not([aria-current]) { border-color: var(--teal); color: var(--teal-dark); }
.cm-prev, .cm-next { border-radius: 50%; min-width: 46px; height: 46px; margin: 0 12px; font-size: 26px; line-height: 1; }
.cm-page:disabled { opacity: .35; cursor: default; }
.cm-gap { color: #8aa; font-weight: 800; }

/* ===== 記事ページ ===== */
.cm-article-page { background: linear-gradient(180deg, #eefafa 0, #fff 320px); padding-bottom: 80px; }
.cm-article { max-width: 860px; }
.cm-article-head { padding-top: 20px; }
.cm-article-title { margin: 16px 0 10px; font-size: 32px; font-weight: 900; line-height: 1.5; }
.cm-article-date { margin: 0 0 22px; font-size: 14px; color: #4a5f69; }
.cm-article-eyecatch { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 8px 24px rgba(0,80,90,.12); margin-bottom: 36px; }
.page-column .breadcrumb span[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50vw; }

/* --- 記事本文（WordPress時代の装飾もここで再現） --- */
.cm-content { font-size: 17px; line-height: 2; color: #1d2c3f; overflow-wrap: anywhere; }
.cm-content > * + * { margin-top: 1.2em; }
.cm-content p { margin: 0; }
.cm-content p + p { margin-top: 1em; }
.cm-content a { color: var(--teal-dark); text-decoration: underline; }
.cm-content h2 { margin: 2.6em 0 1em; padding: 14px 20px; font-size: 24px; line-height: 1.5; color: #fff; background: linear-gradient(100deg, #0e9fa0, #17b5b2); border-radius: 10px; }
.cm-content h3 { margin: 2.2em 0 .9em; padding: 6px 0 8px 16px; font-size: 21px; line-height: 1.5; border-left: 6px solid var(--teal); border-bottom: 1px solid #d7eaea; }
.cm-content h4 { margin: 1.8em 0 .6em; font-size: 18px; color: var(--teal-dark); }
.cm-content h2.has-text-align-center, .cm-content h3.has-text-align-center { text-align: center; }
.cm-content .has-text-align-center { text-align: center; }
.cm-content .has-text-align-right { text-align: right; }
.cm-content .has-swl-main-color { color: var(--teal-dark) !important; }
.cm-content strong { font-weight: 800; }
.cm-content ul, .cm-content ol { padding-left: 1.5em; }
.cm-content li + li { margin-top: .3em; }
.cm-content figure { margin: 1.6em 0; }
.cm-content img { max-width: 100%; height: auto; border-radius: 8px; display: inline-block; }
.cm-content .wp-block-image.alignright, .cm-content .wp-block-image .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 45%; }
.cm-content .wp-block-image.alignleft, .cm-content .wp-block-image .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 45%; }
.cm-content .wp-block-image.aligncenter, .cm-content .wp-block-image .aligncenter { text-align: center; }
.cm-content h2, .cm-content h3, .cm-content hr, .cm-content .cm-video { clear: both; }
.cm-content figcaption { font-size: 13px; color: #607580; text-align: center; margin-top: 6px; }
.cm-content .is-style-photo_frame img, .cm-content .is-style-browser_mac img { padding: 6px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.cm-content .is-style-browser_mac img { border-top: 22px solid #e6eef0; border-radius: 8px; }
.cm-content blockquote { margin: 1.6em 0; padding: 18px 22px; background: #f3f8f9; border-left: 5px solid #9fc8cb; border-radius: 6px; color: #3b4f5a; }
.cm-content blockquote p + p { margin-top: .5em; }
.cm-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.cm-content .wp-block-table { overflow-x: auto; }
.cm-content th, .cm-content td { border: 1px solid #cfe3e4; padding: 10px 12px; }
.cm-content thead th, .cm-content tr:first-child td { background: #e8f7f7; font-weight: 800; }
.cm-content hr { border: 0; border-top: 2px dashed #cfe3e4; margin: 2.4em 0; }

/* マーカー */
.cm-mk { padding: 0 .1em; font-weight: 800; }
.cm-mk.is-yellow { background: linear-gradient(transparent 60%, #fff27a 60%); }
.cm-mk.is-orange { background: linear-gradient(transparent 60%, #ffd2a6 60%); }
.cm-mk.is-blue { background: linear-gradient(transparent 60%, #bfe3ff 60%); }
.cm-mk.is-green { background: linear-gradient(transparent 60%, #c6f0d2 60%); }
.cm-fz-s { font-size: .9em; } .cm-fz-l { font-size: 1.2em; } .cm-fz-xl { font-size: 1.5em; }

/* 吹き出し */
.cm-balloon { position: relative; margin: 1.4em 0 1.4em 64px; padding: 14px 20px; border-radius: 14px; background: #f1f6f8; border: 2px solid #d6e3e8; }
.cm-balloon::before { content: ''; position: absolute; left: -64px; top: 0; width: 48px; height: 48px; border-radius: 50%; background: #d6e3e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='%23ffffff'%3E%3Ccircle cx='24' cy='18' r='9'/%3E%3Cpath d='M7 44c0-10 8-16 17-16s17 6 17 16z'/%3E%3C/svg%3E") center / 70% no-repeat; }
.cm-balloon::after { content: ''; position: absolute; left: -12px; top: 16px; border: 6px solid transparent; border-right: 10px solid #d6e3e8; }
.cm-balloon.is-red { background: #fff1f0; border-color: #ffc9c4; } .cm-balloon.is-red::before, .cm-balloon.is-red::after { border-right-color: #ffc9c4; } .cm-balloon.is-red::before { background-color: #ffb3ab; }
.cm-balloon.is-blue { background: #eef6ff; border-color: #c4dcf5; } .cm-balloon.is-blue::after { border-right-color: #c4dcf5; } .cm-balloon.is-blue::before { background-color: #9cc3eb; }
.cm-balloon.is-green { background: #effaf3; border-color: #c6ead3; } .cm-balloon.is-green::after { border-right-color: #c6ead3; } .cm-balloon.is-green::before { background-color: #9ad6b0; }
.cm-balloon.is-yellow { background: #fffbea; border-color: #f2e2a4; } .cm-balloon.is-yellow::after { border-right-color: #f2e2a4; } .cm-balloon.is-yellow::before { background-color: #e8cf6c; }
.cm-balloon p { margin: 0; }

/* 動画 */
.cm-video { position: relative; aspect-ratio: 16 / 9; margin: 1.8em 0; border-radius: 12px; overflow: hidden; background: #000; }
.cm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* SWELLのボックス・リスト装飾 */
.cm-content .is-style-border_left { padding-left: 16px; border-left: 4px solid var(--teal); }
.cm-content p.is-style-border_left, .cm-content .wp-block-group.is-style-border_left { background: #f4fbfb; padding: 14px 18px; border-radius: 0 8px 8px 0; }
.cm-content .is-style-check_list, .cm-content .is-style-good_list { list-style: none; padding: 16px 20px 16px 18px; background: #f4fbfb; border-radius: 10px; }
.cm-content .is-style-check_list li, .cm-content .is-style-good_list li { position: relative; padding-left: 28px; }
.cm-content .is-style-check_list li::before { content: '✓'; position: absolute; left: 2px; color: var(--teal); font-weight: 900; }
.cm-content .is-style-good_list li::before { content: '◎'; position: absolute; left: 0; color: #f37b00; font-weight: 900; }
.cm-content [class*="is-style-icon_"], .cm-content [class*="is-style-big_icon_"], .cm-content .is-style-crease, .cm-content .is-style-bg_stripe,
.cm-content .is-style-balloon_box2, .cm-content .is-style-sticky_box, .cm-content .is-style-emboss_box, .cm-content .is-style-double {
  position: relative; padding: 18px 22px; border-radius: 10px; background: #f4fbfb; border: 2px solid #cdeaea;
}
.cm-content [class*="is-style-icon_"], .cm-content [class*="is-style-big_icon_"] { padding-left: 60px; }
.cm-content [class*="is-style-icon_"]::before, .cm-content [class*="is-style-big_icon_"]::before { position: absolute; left: 18px; top: 16px; font-size: 22px; line-height: 1; }
.cm-content .is-style-icon_pen::before { content: '✎'; color: var(--teal-dark); }
.cm-content .is-style-icon_announce::before { content: '📢'; }
.cm-content .is-style-icon_good::before { content: '👍'; }
.cm-content .is-style-icon_book::before { content: '📘'; }
.cm-content .is-style-icon_info::before { content: 'ℹ'; color: var(--teal-dark); font-weight: 900; }
.cm-content .is-style-big_icon_point::before { content: '★'; color: #f39a00; }
.cm-content .is-style-big_icon_point { border-color: #ffd9a8; background: #fff8ef; }
.cm-content .is-style-big_icon_check::before { content: '✔'; color: var(--teal-dark); }
.cm-content .is-style-big_icon_memo::before { content: '📝'; }
.cm-content .is-style-big_icon_batsu::before { content: '✕'; color: #d9534f; font-weight: 900; }
.cm-content .is-style-big_icon_batsu { border-color: #f5c6c4; background: #fff5f5; }
.cm-content .is-style-crease { background: #fffdf3; border-color: #f2e3ae; box-shadow: 2px 2px 0 #f2e3ae; }
.cm-content .is-style-bg_stripe { background: repeating-linear-gradient(-45deg, #f4fbfb, #f4fbfb 8px, #eaf6f6 8px, #eaf6f6 16px); }
.cm-content .is-style-sticky_box { border: 0; border-left: 8px solid #f3a43a; background: #fff8ec; border-radius: 0 10px 10px 0; }
.cm-content .is-style-emboss_box { border: 0; box-shadow: 0 6px 18px rgba(0,80,90,.14); background: #fff; }
.cm-content .is-style-double { border: 4px double #9fd6d6; background: #fff; }
.cm-content .is-style-balloon_box2 { background: #fff; border-color: var(--teal); }
.cm-content .wp-block-cover { position: relative; border-radius: 12px; overflow: hidden; }
.cm-content .wp-block-cover img { width: 100%; }
.cm-content .wp-block-cover__background, .cm-content .wp-block-cover__inner-container:empty { display: none; }
.cm-content .swell-block-columns__inner { display: grid; grid-auto-flow: column; grid-auto-columns: min(300px, 80%); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.cm-content .swell-block-column figure { margin: 0; }

/* --- 記事下：サービス案内・関連記事 --- */
.cm-article-cta { max-width: 860px; margin-top: 60px; padding: 30px 26px; text-align: center; border-radius: 20px; background: linear-gradient(110deg, #e5f8f8, #f5fcfc); box-shadow: 0 0 0 1px #cdeaea; }
.cm-article-cta-lead { margin: 0 0 18px; font-size: 19px; font-weight: 900; }
.cm-article-cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cm-related { margin-top: 60px; }
.cm-related-title { margin: 0 0 24px; text-align: center; font-size: 26px; font-weight: 900; }
.cm-related-title::before, .cm-related-title::after { content: ''; display: inline-block; width: 40px; height: 2px; background: var(--teal); vertical-align: middle; margin: 0 16px; }
.cm-back { margin-top: 40px; text-align: center; }
.cm-back a { color: var(--teal-dark); font-weight: 800; }

/* --- タブレット・スマホ --- */
@media (max-width: 900px) {
  .cm-feature { grid-template-columns: 1fr; gap: 16px; }
  .cm-feature-arrow { display: none; }
  .cm-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
}
@media (max-width: 640px) {
  .cm-hero { background-position: 75% top; min-height: 0; }
  .cm-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(240,250,252,.92), rgba(240,250,252,.5)); }
  .cm-hero-copy { padding: 10px 16px 40px; }
  .cm-hero-en { font-size: 22px; }
  .cm-hero-title { font-size: 44px; }
  .cm-hero-lead { font-size: 15px; }
  .cm-hero-lead br { display: none; }
  .cm-tabs { width: auto; justify-content: flex-start; border-radius: 16px; }
  .cm-tabs button { min-width: 0; font-size: 15px; padding: 10px 16px; }
  .cm-feature-title { font-size: 20px; }
  .cm-grid { grid-template-columns: 1fr; }
  .cm-card { grid-template-columns: 130px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px; }
  .cm-card-photo { grid-row: 1 / 3; aspect-ratio: 4 / 3; border-radius: 10px; }
  .cm-card-photo .cm-cat { left: 6px; top: 6px; font-size: 11px; padding: 1px 8px; }
  .cm-card-photo .cm-cat::before { display: none; }
  .cm-card-title { font-size: 15px; -webkit-line-clamp: 3; }
  .cm-card-meta { font-size: 12px; }
  .cm-page { min-width: 42px; height: 42px; font-size: 16px; }
  .cm-prev, .cm-next { margin: 0 4px; min-width: 40px; height: 40px; }
  .cm-pager { gap: 6px; }
  .cm-article-title { font-size: 23px; }
  .cm-content { font-size: 16px; line-height: 1.9; }
  .cm-content h2 { font-size: 19px; padding: 12px 14px; }
  .cm-content h3 { font-size: 17.5px; }
  .cm-content .wp-block-image.alignright, .cm-content .wp-block-image .alignright,
  .cm-content .wp-block-image.alignleft, .cm-content .wp-block-image .alignleft { float: none; margin: 1em auto; max-width: 100%; text-align: center; }
  .cm-balloon { margin-left: 52px; padding: 12px 14px; }
  .cm-balloon::before { left: -52px; width: 40px; height: 40px; }
  .cm-article-cta-btns .btn { width: 100%; }
}
