@charset "UTF-8";
/*
 * 記事ページ（投稿詳細）のスタイル。is_singular('post') のときだけ読み込む。
 * Figmaの 2023:2「ECNOW 記事ページ PC 1440px」に対応している。
 *
 * 色とフォントの変数は front-page.css が body.ecn-top と .ecn-lower に定義しているので、
 * ここではそれを使う。新しい色が要るときは front-page.css 側に足すこと。
 *
 * 本文（.post_content の中）は既存記事117本のHTMLをそのまま使う前提で、
 * SWELLが出すクラス（wp-block-heading / wp-block-list / p-blogCard / p-toc）に
 * スタイルを当てて見た目を合わせている。記事データは触らない。
 */

/* ============================================================
   レイアウト
   Figmaは 1440px 幅で、コンテンツ 1200px（本文760 + 余白120 + サイド320）。
   SWELLは幅をCSS変数で持っているので、変数を差し替えるだけで組み替えられる。
   ============================================================ */
/*
 * 注意：SWELLは body_class() を <body> ではなく #body_wrap に出す。
 * なので ecn-single / ecn-lower は body ではなく #body_wrap に付く。
 * `body.ecn-single` と書くと一切当たらないので `.ecn-single` で受けること。
 */
.ecn-single {
  --container_size: 1200px;
  --swl-pad_container: 24px;
  --swl-sidebar_width: 320px;
  --swl-sidebar_margin: 120px;

  background: #fff;
  color: var(--ecn-ink);
  font-family: var(--ecn-jp);
  -webkit-font-smoothing: antialiased;
}

.ecn-single .l-content {
  padding-top: 48px;
  margin-bottom: 120px;
}

/*
 * #after_article は single.php で <main> の外に出してある。
 * #content は display:flex なので、幅100%の3つ目の子として2カラムの下へ回り込む。
 * DOM順は main → after_article → sidebar なので、order で並べ直す。
 */
.ecn-single #main_content {
  order: 1;
}
.ecn-single #sidebar {
  order: 2;
  align-self: flex-start;
}
.ecn-single #after_article {
  order: 3;
  width: 100%;
  margin-top: 48px;
}

/* ============================================================
   パンくず
   自前のものを header.php から出しているので、親テーマのものは隠す。
   ============================================================ */
.ecn-single #breadcrumb {
  display: none;
}
.ecn-bc {
  padding-top: 32px;
}
.ecn-bc .ecn-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ecn-bc a,
.ecn-bc span {
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--ecn-ink3);
  text-decoration: none;
}
.ecn-bc a:first-child,
.ecn-bc span[aria-hidden] {
  font-family: var(--ecn-mono);
}
.ecn-bc__current {
  color: var(--ecn-ink2);
}
.ecn-bc a:hover {
  color: var(--ecn-accent);
}

/* ============================================================
   記事ヘッダー（カテゴリ → タイトル → メタ）
   ============================================================ */
.ecn-ahead__cat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0;
}
.ecn-ahead__slug {
  font-family: var(--ecn-en);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ecn-accent);
  text-decoration: none;
}
.ecn-ahead__catname {
  font-size: 13px;
  line-height: 1.3;
  color: var(--ecn-ink2);
  text-decoration: none;
}
.ecn-ahead__slug:hover,
.ecn-ahead__catname:hover {
  text-decoration: underline;
}

.ecn-ahead__ttl {
  margin: 16px 0 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ecn-ink);
}

.ecn-ahead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 16px;
}
/* 「公開」「更新」の2文字は日本語なので、等幅のあとに和文フォントを並べておく。
   var(--ecn-mono) だけだと和文がOSの等幅フォントに落ちて浮く。 */
.ecn-ahead__date,
.ecn-ahead__no {
  font-family: "IBM Plex Mono", var(--ecn-jp);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--ecn-ink3);
}
.ecn-ahead__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.ecn-ahead__tags a {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ecn-ink2);
  text-decoration: none;
}
.ecn-ahead__tags a:hover {
  color: var(--ecn-accent);
}

/* アイキャッチ */
.ecn-single .p-articleThumb {
  margin: 16px 0 0;
}
.ecn-single .p-articleThumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: top;
}

/* ============================================================
   本文の土台
   ============================================================ */
/*
 * 本文の文字サイズは親テーマが --swl-fz--content（既定15px）で持っていて、
 * .post_content への font-size 指定だけでは段落に効かない。変数ごと差し替える。
 * 左右の16pxパディングも、デザインでは見出しの帯が760px幅いっぱいなので0に戻す。
 */
.ecn-single {
  --swl-fz--content: 16px;
}
.ecn-single .post_content {
  margin-top: 32px;
  padding-inline: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ecn-ink);
}
.ecn-single .post_content p {
  margin: 0 0 24px;
}
.ecn-single .post_content strong {
  font-weight: 700;
  color: var(--ecn-ink);
}
.ecn-single .post_content a {
  color: #005bd3;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ecn-single .post_content a:hover {
  color: var(--ecn-accent);
}

/* ------------------------------------------------------------
   見出し
   h2 … グレーの帯＋下の4px帯（左2/3が濃い青、右1/3が淡い青）
   h3 … 下に1本罫
   h4 … 行頭に8pxの黒い四角
   ------------------------------------------------------------ */
.ecn-single .post_content h2 {
  position: relative;
  margin: 96px 0 40px;
  padding: 13px 16px;
  background: var(--ecn-bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.013em;
  color: var(--ecn-ink);
}
.ecn-single .post_content h2::before {
  content: none;
}
.ecn-single .post_content h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 4px;
  background: linear-gradient(to right, var(--ecn-accent) 0 66.6667%, #a9bcd6 66.6667% 100%);
}
.ecn-single .post_content > h2:first-child {
  margin-top: 0;
}

.ecn-single .post_content h3 {
  margin: 56px 0 28px;
  padding: 0 0 13px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ecn-line);
  border-radius: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.015em;
  color: var(--ecn-ink);
}
.ecn-single .post_content h3::before,
.ecn-single .post_content h3::after {
  content: none;
}

.ecn-single .post_content h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 12px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.019em;
  color: var(--ecn-ink);
}
.ecn-single .post_content h4::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--ecn-ink);
}
.ecn-single .post_content h4::after {
  content: none;
}

/* ------------------------------------------------------------
   箇条書き・番号付きリスト
   どちらもグレーの箱に入る。マーカーはデザイン通りに自前で描く。
   ------------------------------------------------------------ */
.ecn-single .post_content ul,
.ecn-single .post_content ol {
  margin: 12px 0 24px;
  padding: 26px 28px 22px;
  background: var(--ecn-bg);
  list-style: none;
}
.ecn-single .post_content ul li,
.ecn-single .post_content ol li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 30.4px;
  letter-spacing: 0.02em;
  color: var(--ecn-ink);
}
.ecn-single .post_content ul li:last-child,
.ecn-single .post_content ol li:last-child {
  margin-bottom: 0;
}
.ecn-single .post_content ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  background: var(--ecn-accent);
}

.ecn-single .post_content ol {
  counter-reset: ecn-ol;
}
.ecn-single .post_content ol > li {
  padding-left: 36px;
  counter-increment: ecn-ol;
}
.ecn-single .post_content ol > li::before {
  content: counter(ecn-ol);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  font-family: var(--ecn-en);
  font-weight: 800;
  font-style: italic;
  color: var(--ecn-accent);
}

/* 入れ子は箱を重ねない */
.ecn-single .post_content li > ul,
.ecn-single .post_content li > ol {
  margin: 6px 0 0;
  padding: 0;
  background: none;
}

/* ------------------------------------------------------------
   目次（SWELLの .p-toc。中身はSWELLのJSが組み立てる）
   ------------------------------------------------------------ */
.ecn-single #main_content .p-toc,
.ecn-single .post_content .p-toc {
  width: auto;
  max-width: none;
  margin: 56px 0;
  padding: 36px 40px;
  background: var(--ecn-bg);
  background-image: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ecn-single .p-toc__ttl {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  color: var(--ecn-ink2);
}
.ecn-single .p-toc__ttl::before {
  content: "Contents";
  font-family: var(--ecn-en);
  font-weight: 800;
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ecn-ink);
  margin: 0;
  padding: 0;
}
/*
 * 親テーマの目次は「-double」スタイルで、見出し番号・区切り線・
 * 「もっと見る」での折りたたみが付く。デザインはどれも無いので全部止める。
 * 番号は ol.is-style-index > li::before（詳細度 0,1,2）なので、
 * こちらは .ecn-single を足して勝たせている。
 */
.ecn-single .p-toc.is-omitted::before,
.ecn-single .p-toc.is-omitted::after {
  content: none;
}
.ecn-single .p-toc.is-omitted:not([data-omit="nest"]) [data-omit="1"] {
  display: list-item;
}
.ecn-single .p-toc .p-toc__expandBtn,
.ecn-single .p-toc .__next,
.ecn-single .p-toc .__prev {
  display: none;
}
.ecn-single .p-toc ol.is-style-index > li::before,
.ecn-single .p-toc ol.is-style-index ol > li::before {
  content: none;
}
.ecn-single .p-toc ol.is-style-index > li,
.ecn-single .p-toc ol.is-style-index ol > li {
  margin-left: 0;
  padding-left: 0;
}

/*
 * 目次のol/ulは .post_content の中にあるので、上で書いた本文リストの
 * グレーの箱・マーカー・行間がそのまま乗ってしまう。ここで素に戻す。
 */
.ecn-single .post_content .p-toc__list,
.ecn-single .post_content .p-toc__childList {
  margin: 0;
  padding: 0;
  background: none;
  list-style: none;
}
.ecn-single .post_content .p-toc__list > li,
.ecn-single .post_content .p-toc__childList > li {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.6;
  letter-spacing: normal;
}
.ecn-single .post_content .p-toc__list > li::before,
.ecn-single .post_content .p-toc__childList > li::before {
  content: none;
}
.ecn-single .post_content .p-toc__list > li + li {
  margin-top: 6px;
}
.ecn-single .p-toc__list > li > .p-toc__link {
  display: block;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ecn-ink);
  text-decoration: none;
}
.ecn-single .post_content .p-toc__childList {
  padding-left: 18px;
}
.ecn-single .p-toc__childList .p-toc__link {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ecn-ink2);
  text-decoration: none;
}
.ecn-single .p-toc__link:hover {
  color: var(--ecn-accent);
  opacity: 1;
}

/* ------------------------------------------------------------
   あわせて読みたい（SWELLのブログカード）
   DOM順は caption → thumb → body なので、gridで置き直している。
   ------------------------------------------------------------ */
.ecn-single .post_content .wp-block-embed:has(.p-blogCard) {
  margin: 12px 0 24px;
}
.ecn-single .p-blogCard {
  margin: 12px 0 24px;
  padding: 24px 20px 20px;
  background: var(--ecn-bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ecn-single .p-blogCard__inner {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 44px;
  column-gap: 24px;
  align-items: center;
  padding: 0;
}
/* 親テーマはここに1pxの枠線を描いている。デザインには無いので消す。 */
.ecn-single .p-blogCard__inner::before {
  content: none;
}
.ecn-single .p-blogCard__inner::after {
  content: "";
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  width: 44px;
  height: 44px;
  background: var(--ecn-ink) url("../img/icon-arrow-right-white.svg") center / 14px 10px no-repeat;
}
.ecn-single .p-blogCard__thumb {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 200px;
  margin: 0;
  background: var(--ecn-line);
}
.ecn-single .p-blogCard__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: top;
}
/* 親テーマはカードの上辺にかぶせる絶対配置のラベルにしている。流し込みに戻す。 */
.ecn-single .p-blogCard__caption {
  position: static;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  transform: none;
  opacity: 1;
  border-radius: 0;
  padding: 0;
  background: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--ecn-accent);
}
.ecn-single .p-blogCard__caption::before,
.ecn-single .p-blogCard__caption::after {
  content: none;
}
.ecn-single .p-blogCard__body {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
/* .post_content a（下線付きの青）に勝たせるため、セレクタを1段深くしている */
.ecn-single .post_content .p-blogCard__title,
.ecn-single .p-blogCard__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ecn-ink);
  text-decoration: none;
}
.ecn-single .p-blogCard__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.025em;
  color: var(--ecn-ink2);
}
.ecn-single .post_content .p-blogCard:hover .p-blogCard__title {
  color: var(--ecn-accent);
}

/* ============================================================
   本文に差し込むブロック（編集部プロフィール／ご相談）
   inc/single.php が the_content の優先度11で最初のh2の前に入れている。
   ============================================================ */
.ecn-editor {
  display: flex;
  gap: 24px;
  margin: 16px 0 40px;
  padding-top: 25px;
  border-top: 1px solid var(--ecn-line);
}
.ecn-editor__sign {
  flex: 0 0 auto;
  width: 96px;
  height: 64px;
  object-fit: contain;
}
.ecn-editor__body {
  min-width: 0;
}
.ecn-editor__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ecn-ink);
}
.ecn-editor__label {
  font-family: var(--ecn-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ecn-ink3);
}
.ecn-editor__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ecn-ink2);
}

.ecn-consult {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 32px;
  margin: 0 0 56px;
  padding: 36px 40px;
  background: var(--ecn-accent-pale);
}
.ecn-consult__body {
  flex: 1 1 auto;
  min-width: 0;
}
.ecn-consult__en {
  margin: 0;
  font-family: var(--ecn-en);
  font-weight: 800;
  font-style: italic;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--ecn-accent);
}
.ecn-consult__ttl {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ecn-ink);
}
.ecn-consult__text {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ecn-ink2);
}
.ecn-consult__btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 232px;
  height: 56px;
  padding: 0 24px;
  background: var(--ecn-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s;
}
/* 本文の中に出るので、.post_content a の色と下線より強く指定しておく */
.ecn-single .post_content .ecn-consult__btn,
.ecn-consult__btn {
  color: #fff;
  text-decoration: none;
}
.ecn-single .post_content .ecn-consult__btn:hover,
.ecn-consult__btn:hover {
  background: var(--ecn-accent);
  color: #fff;
}

/* ============================================================
   記事末尾（カテゴリ・タグ ＋ シェア）
   ============================================================ */
.ecn-afoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 56px;
  padding-top: 25px;
  border-top: 1px solid var(--ecn-line);
}
.ecn-afoot__terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.ecn-afoot__slug {
  font-family: var(--ecn-en);
  font-weight: 600;
  font-size: 14px;
  color: var(--ecn-accent);
  text-decoration: none;
}
.ecn-afoot__tag {
  font-size: 13px;
  color: var(--ecn-ink2);
  text-decoration: none;
}
.ecn-afoot__tag:hover {
  color: var(--ecn-accent);
}

.ecn-share {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ecn-share__label {
  margin-right: 12px;
  font-family: var(--ecn-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ecn-ink3);
}
.ecn-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ecn-share__btn:hover {
  opacity: 0.8;
}
.ecn-share__btn.-x {
  background: var(--ecn-ink);
}
.ecn-share__btn.-facebook {
  background: #0866ff;
  font-size: 22px;
}
.ecn-share__btn.-hatebu {
  background: #00a4de;
  font-size: 19px;
}
.ecn-share__btn.-line {
  background: #06c755;
  font-size: 22px;
}
.ecn-share__btn.-copy {
  background: var(--ecn-bg);
  color: var(--ecn-ink2);
  font-size: 18px;
}
.ecn-share__btn.-copy.is-copied {
  background: var(--ecn-accent);
  color: #fff;
}

/* ============================================================
   記事下：この記事を書いた人
   ============================================================ */
.ecn-author {
  display: flex;
  gap: 28px;
  margin: 72px 0 0;
  padding: 40px;
  background: var(--ecn-bg);
  /* 本文カラムの幅に戻す（#after_article は1200px幅） */
  max-width: calc(100% - var(--swl-sidebar_width) - var(--swl-sidebar_margin));
}
.ecn-author__sign {
  flex: 0 0 auto;
  width: 96px;
  height: 64px;
  object-fit: contain;
}
.ecn-author__body {
  min-width: 0;
}
.ecn-author__label {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ecn-ink3);
}
.ecn-author__name {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ecn-ink);
}
.ecn-author__text {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ecn-ink2);
}

/* ============================================================
   記事下：関連記事（1200px幅）
   ============================================================ */
.ecn-rel {
  margin-top: 96px;
}
.ecn-rel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}
.ecn-rel__en {
  margin: 0;
  font-family: var(--ecn-en);
  font-weight: 800;
  font-style: italic;
  font-size: 70px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ecn-ink);
}
.ecn-rel__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ecn-ink);
}
.ecn-rel__cat {
  font-weight: 400;
  color: var(--ecn-ink2);
}
.ecn-rel__all {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ecn-ink);
  text-decoration: none;
}
.ecn-rel__allIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--ecn-ink);
  transition: background-color 0.2s;
}
.ecn-rel__all:hover .ecn-rel__allIcon {
  background: var(--ecn-accent);
}

.ecn-rel__big {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.ecn-relcard {
  display: block;
  text-decoration: none;
}
.ecn-relcard__thumb {
  display: block;
  background: var(--ecn-line);
}
.ecn-relcard__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: top;
}
.ecn-relcard__meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 20px;
}
.ecn-relcard__slug {
  font-family: var(--ecn-en);
  font-weight: 600;
  font-size: 13px;
  color: var(--ecn-accent);
}
.ecn-relcard__date {
  font-family: var(--ecn-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ecn-ink3);
}
.ecn-relcard__ttl {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ecn-ink);
}
.ecn-relcard:hover .ecn-relcard__ttl {
  color: var(--ecn-accent);
}

.ecn-rel__small {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.ecn-relmini {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 16px;
  text-decoration: none;
}
.ecn-relmini__thumb {
  display: block;
  align-self: start;
  background: var(--ecn-line);
}
.ecn-relmini__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: top;
}
.ecn-relmini__date {
  display: block;
  font-family: var(--ecn-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ecn-ink3);
}
.ecn-relmini__ttl {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--ecn-ink);
}
.ecn-relmini:hover .ecn-relmini__ttl {
  color: var(--ecn-accent);
}

/* ============================================================
   サイドバー
   ============================================================ */
.ecn-sb {
  display: flex;
  flex-direction: column;
  gap: 64px;
  font-family: var(--ecn-jp);
}
.ecn-sb a {
  text-decoration: none;
  color: inherit;
}
.ecn-sb ul,
.ecn-sb ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ecn-sb p {
  margin: 0;
}
.ecn-sb__fixed {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* セクション見出し（Ranking / Category / Theme） */
.ecn-sbh {
  margin: 0 0 24px;
}
.ecn-sbh em {
  display: block;
  font-family: var(--ecn-en);
  font-weight: 800;
  font-style: italic;
  font-size: 35px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ecn-ink);
}
.ecn-sbh span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ecn-ink2);
}

/* Ranking */
.ecn-rank li + li {
  margin-top: 4px;
}
.ecn-rank a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
}
.ecn-rank__n {
  font-family: var(--ecn-en);
  font-weight: 800;
  font-style: italic;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ecn-accent);
}
.ecn-rank__ttl {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--ecn-ink);
}
.ecn-rank__pv {
  display: block;
  margin-top: 4px;
  font-family: var(--ecn-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ecn-ink3);
}
.ecn-rank a:hover .ecn-rank__ttl {
  color: var(--ecn-accent);
}

/* Category */
.ecn-scat li + li {
  margin-top: 4px;
}
.ecn-scat a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ecn-bg);
  transition: background-color 0.2s;
}
.ecn-scat a:hover,
.ecn-scat a.is-current {
  background: var(--ecn-accent-pale);
}
.ecn-scat__slug {
  display: block;
  font-family: var(--ecn-en);
  font-weight: 800;
  font-style: italic;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ecn-accent);
}
.ecn-scat__name {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ecn-ink);
}
.ecn-scat__count {
  flex: 0 0 auto;
  font-family: var(--ecn-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ecn-ink3);
}

/* Theme */
.ecn-sth {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ecn-sth a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #e5e9ed;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ecn-ink);
  transition: border-color 0.2s, color 0.2s;
}
.ecn-sth a:hover {
  border-color: var(--ecn-accent);
  color: var(--ecn-accent);
}
.ecn-sth__cnt {
  font-family: var(--ecn-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ecn-ink3);
}

/* 資料ダウンロードのバナー */
.ecn-sdl {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 44px 28px 20px;
  background: var(--ecn-accent);
  color: #fff;
}
.ecn-sdl::before,
.ecn-sdl::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
/* 左上の水色の角 */
.ecn-sdl::before {
  top: 0;
  left: 0;
  width: 134px;
  height: 136px;
  background: #15a4d7;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
/* 右下の淡い青の角 */
.ecn-sdl::after {
  right: 0;
  bottom: 0;
  width: 139px;
  height: 106px;
  background: #659ede;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.ecn-sdl > * {
  position: relative;
  z-index: 1;
}
.ecn-sdl__pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ecn-accent);
}
/* 1行に収める。320pxの枠に左右29pxなので、使える幅は262px。 */
.ecn-sdl__ttl {
  display: block;
  margin-top: 14px;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
}
.ecn-sdl__ttl em {
  font-family: var(--ecn-en);
  font-weight: 800;
  font-style: italic;
}
.ecn-sdl__text {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.85;
}

/* 資料のモック。表紙が未入稿なのでトップのDownloadセクションと同じくグレーのまま。 */
.ecn-sdl__docs {
  display: block;
  position: relative;
  height: 198px;
  margin-top: 6px;
}
.ecn-sdl__doc {
  position: absolute;
  display: block;
  width: 148px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.18);
}
.ecn-sdl__doc:first-child {
  top: 6px;
  left: 0;
  transform: rotate(-6deg);
}
.ecn-sdl__doc:last-child {
  right: 2px;
  bottom: 6px;
  transform: rotate(6deg);
}
.ecn-sdl__thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: #d9dde2;
}
.ecn-sdl__name {
  display: block;
  margin-top: 7px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ecn-ink);
}
.ecn-sdl__pdf {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 5px;
  background: var(--ecn-accent);
  font-family: var(--ecn-en);
  font-size: 7px;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
}
.ecn-sdl__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 44px;
  margin-top: 24px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ecn-ink);
  transition: color 0.2s;
}
.ecn-sdl:hover .ecn-sdl__btn {
  color: var(--ecn-accent);
}

/* お問い合わせバー */
.ecn-sask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 0 0 24px;
  background: var(--ecn-ink);
  color: #fff;
}
.ecn-sb .ecn-sask__label {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}
.ecn-sb .ecn-sask__ttl {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
}
.ecn-sask__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-right: 12px;
  background: var(--ecn-accent);
  transition: background-color 0.2s;
}
/*
 * ホバーで枠を白に反転させる。矢印のSVGは白抜きなのでそのままだと消える。
 * 画像を差し替えずに色を反転させたいので filter をかけている。
 */
.ecn-sask:hover .ecn-sask__icon {
  background: #fff;
}
.ecn-sask__icon img {
  transition: filter 0.2s;
}
.ecn-sask:hover .ecn-sask__icon img {
  filter: invert(1);
}

/* ============================================================
   狭い画面
   SP版のデザインは無いので、1200pxのPC版を縦積みに畳んでいる。
   ============================================================ */
@media (max-width: 1259px) {
  .ecn-single {
    --swl-sidebar_margin: 64px;
  }
  .ecn-author {
    max-width: none;
  }
}

@media (max-width: 959px) {
  .ecn-single #sidebar {
    width: 100%;
    margin-top: 64px;
  }
  .ecn-single #after_article {
    margin-top: 64px;
  }
  .ecn-rel__big,
  .ecn-rel__small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ecn-single .l-content {
    padding-top: 32px;
    margin-bottom: 72px;
  }
  .ecn-ahead__ttl {
    font-size: 24px;
  }
  .ecn-single .post_content h2 {
    margin: 64px 0 28px;
    font-size: 19px;
    line-height: 1.5;
    padding: 12px 14px;
  }
  .ecn-single .post_content h3 {
    margin: 40px 0 20px;
    font-size: 18px;
  }
  .ecn-single .post_content h4 {
    font-size: 16px;
  }
  .ecn-single .post_content ul,
  .ecn-single .post_content ol {
    padding: 20px 18px 16px;
  }
  .ecn-single #main_content .p-toc,
  .ecn-single .post_content .p-toc {
    padding: 24px 20px;
  }
  .ecn-single .p-toc__ttl::before {
    font-size: 22px;
  }
  .ecn-single .p-blogCard {
    padding: 18px 16px;
  }
  .ecn-single .p-blogCard__inner {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 14px;
  }
  .ecn-single .p-blogCard__inner::after {
    display: none;
  }
  .ecn-single .p-blogCard__thumb {
    width: 112px;
  }
  .ecn-editor,
  .ecn-author {
    flex-direction: column;
    gap: 16px;
  }
  .ecn-author {
    padding: 24px 20px;
  }
  .ecn-consult {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 28px 20px;
  }
  .ecn-consult__btn {
    width: 100%;
  }
  .ecn-afoot {
    flex-direction: column;
    align-items: flex-start;
  }
  .ecn-rel__en {
    font-size: 36px;
  }
  .ecn-rel__big,
  .ecn-rel__small {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .ecn-relcard__ttl {
    font-size: 17px;
  }
}
