/* ============================================================
   ブログ詳細（NAYOSEL_ブログ詳細 / _SP 準拠）
   ============================================================ */

.ba-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 18px 60px;
  display: grid;
  grid-template-columns: 352px 1fr 252px;
  gap: 20px;
  align-items: start;
}

/* 追従目次 */
.ba-toc { position: sticky; top: 158px; padding-right: 40px; }
.ba-toc__head { font-size: 13px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid #c9d8de; }
.ba-toc__list { list-style: none; margin-top: 8px; }
.ba-toc__list li { border-bottom: 1px solid #e6ecea; }
.ba-toc__list a { display: block; padding: 9px 4px 9px 20px; font-size: 11px; line-height: 1.6; }
.ba-toc__list .ba-toc__h1 a { padding-left: 4px; font-size: 12px; font-weight: 500; }
.ba-toc__list a:hover { color: var(--orange); }

/* 本文（XD: 白カード 740px・r10・影 0 4 3 rgba(54,67,77,.15)） */
.ba-main {
  max-width: 740px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 3px rgba(54, 67, 77, 0.15);
  padding: 50px 40px 56px;
}
.ba-ttl { font-size: 24px; font-weight: 700; line-height: 1.7; }
.ba-meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ba-meta__date { font-size: 10px; margin-right: 6px; }
.ba-hero { margin-top: 14px; width: 100%; border-radius: 4px; }
.ba-index { margin-top: 40px; background: var(--bg-base); border-radius: 10px; padding: 26px 25px 30px; }
.ba-index__ttl { font-size: 18px; font-weight: 700; }
.ba-index__list { margin-top: 14px; padding-left: 20px; }
.ba-index__list li { font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.ba-index__list a:hover { color: var(--orange); }

.ba-main p { margin-top: 26px; font-size: 15px; font-weight: 400; line-height: 2.1; }
.ba-h1 { margin-top: 64px; font-size: 22px; font-weight: 700; line-height: 1.75; }
.ba-h2 { margin-top: 56px; font-size: 18px; font-weight: 700; line-height: 1.8; }
.ba-h3 { margin-top: 48px; font-size: 16px; font-weight: 700; line-height: 1.8; padding-left: 40px; position: relative; }
.ba-h3::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 24px; height: 3px; background: var(--ink); }
.ba-list { margin-top: 26px; padding-left: 28px; }
.ba-list li { font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.ba-code-inline { display: inline-block; background: #e4e8ea; border-radius: 4px; font-size: 13px; padding: 0 10px; margin: 0 4px; font-family: Menlo, Consolas, monospace; }
.ba-code {
  margin-top: 26px;
  background: #263540;
  border-radius: 10px;
  color: #e8eef2;
  padding: 28px;
  overflow-x: auto;
}
.ba-code code { font-family: Menlo, Consolas, monospace; font-size: 14px; line-height: 1.9; }
.ba-fig { margin-top: 20px; }
.ba-fig img { width: 100%; height: auto; }
.ba-fig figcaption { margin-top: 8px; padding-left: 13px; font-size: 13px; color: var(--gray); }

.ba-ogp {
  margin-top: 26px;
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid #e2e9e7;
  border-radius: 10px;
  padding: 20px;
  transition: 0.2s;
}
.ba-ogp:hover { box-shadow: 0 4px 10px rgba(27, 53, 146, 0.1); }
.ba-ogp__body { flex: 1; min-width: 0; }
.ba-ogp__ttl { font-size: 16px; font-weight: 700; line-height: 1.6; margin: 0 !important; }
.ba-ogp__desc { margin-top: 10px !important; font-size: 12px !important; color: var(--gray); line-height: 1.6 !important; }
.ba-ogp__url { margin-top: 10px !important; font-size: 12px !important; color: var(--gray); line-height: 1.4 !important; }
.ba-ogp img { flex: 0 0 194px; width: 194px; height: 102px; object-fit: cover; }

.ba-embed { margin-top: 26px; }
.ba-embed__bar { width: 100%; display: block; }
.ba-embed__body {
  background: #182c37;
  min-height: 371px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-embed__body p { color: #fff; margin: 0 !important; }
.ba-embed--slides img { width: 100%; display: block; }

.ba-table { margin-top: 26px; width: 100%; border-collapse: collapse; }
.ba-table th, .ba-table td { border: 1px solid #dfe6e4; padding: 14px 20px; font-size: 14px; text-align: left; vertical-align: top; }
.ba-table thead th { background: #ebf1f6; font-weight: 500; }
.ba-table td:first-child { width: 167px; font-weight: 500; }
.ba-table tbody td { background: #fff; font-weight: 400; line-height: 1.7; }

.ba-share { margin-top: 60px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.ba-share p { margin: 0 !important; font-size: 13px; }
.ba-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c9d8de;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
}
.ba-share__btn:hover { transform: translateY(-2px); }

.ba-author { margin-top: 48px; border-top: 1px solid #c9d8de; padding-top: 32px; }
.ba-author__head { font-size: 15px; font-weight: 700; }
.ba-author__row { margin-top: 24px; display: flex; gap: 22px; }
.ba-author__photo { flex: 0 0 130px; width: 130px; height: 130px; border-radius: 50%; object-fit: cover; }
.ba-author__name { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; margin: 0 !important; }
.ba-author__role { font-size: 13px; color: var(--gray); font-weight: 400; }
.ba-author__follow {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c9d8de;
  border-radius: 100px;
  background: #fff;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
}
.ba-author__txt { margin-top: 12px !important; font-size: 14px !important; line-height: 1.9 !important; }

/* 他のオススメ記事 */
.ba-rel { padding: 50px 0 80px; }
.ba-rel__ttl { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: 0.06em; }
.ba-rel__grid { max-width: 820px; margin: 36px auto 0; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.ba-rel__back {
  margin: 66px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 280px;
  height: 60px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 5px rgba(27, 53, 146, 0.15);
  transition: 0.2s;
}
.ba-rel__back:hover { opacity: 0.85; transform: translateY(-1px); }
.ba-rel__arrow { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }

@media (max-width: 1100px) {
  .ba-layout { grid-template-columns: 1fr 252px; }
  .ba-toc { display: none; }
}
@media (max-width: 768px) {
  .ba-layout { grid-template-columns: 1fr; padding: 16px 12px 40px; }
  .ba-main { max-width: none; padding: 28px 20px 36px; }
  .ba-ttl { font-size: 20px; }
  .ba-h1 { font-size: 19px; margin-top: 48px; }
  .ba-h2 { font-size: 17px; }
  .ba-h3 { font-size: 15px; padding-left: 32px; }
  .ba-ogp { flex-direction: column; }
  .ba-ogp img { width: 100%; height: auto; flex: none; }
  .ba-embed__body { min-height: 200px; }
  .ba-author__row { flex-direction: column; align-items: center; text-align: left; }
  .ba-author__name { flex-wrap: wrap; }
  .ba-rel__grid { grid-template-columns: 1fr; }
}

.ba-link { text-decoration: underline; }
.ba-link:hover { color: var(--orange); }
.ba-code .sel { color: #f2a35c; }

/* ---------- 記事内CTA（NAYOSEL_ブログ詳細_ボタン追加.xd 準拠） ---------- */
.article-cta {
  position: relative;
  margin-top: 76px;
  border-radius: 10px;
  background: #f1f5f4;
  color: var(--ink);
  padding: 48px 24px 36px;
  text-align: center;
}
.article-cta__logo { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 60px; height: 40px; margin: 0 !important; }
.article-cta__ttl { font-size: 22px !important; font-weight: 700 !important; letter-spacing: 0.17em; line-height: 32px !important; margin: 0 !important; color: var(--ink); }
.article-cta__txt { margin: 18px 0 0 !important; font-size: 15px !important; font-weight: 500; letter-spacing: 0.12em; line-height: 26px !important; color: var(--ink); }
.article-cta__btns { margin-top: 26px; display: flex; justify-content: center; gap: 17px; flex-wrap: wrap; }
.article-cta__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 256px;
  height: 55px;
  padding: 0 76px 0 24px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: 0.2s;
}
.article-cta__btn:hover { opacity: 0.9; transform: translateY(-1px); }
.article-cta__badge {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 30px;
  border-radius: 100px;
  background: #dfebe7;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.article-cta__btn--ghost {
  background: #fff;
  border: 2px solid var(--orange);
  color: var(--orange);
  padding: 0 24px;
}
.article-cta__note { margin: 14px 0 0 !important; font-size: 12px !important; color: var(--gray); }
@media (max-width: 768px) {
  .article-cta { padding: 32px 18px 28px; }
  .article-cta__ttl { font-size: 18px !important; letter-spacing: 0.1em; line-height: 1.6 !important; }
  .article-cta__txt { font-size: 13px !important; letter-spacing: 0.06em; }
  .article-cta__btn { width: 100%; }
}

/* 記事内サマリボックス・注意ボックス */
.ba-point {
  margin-top: 26px;
  border-radius: 10px;
  background: var(--bg-base);
  border-left: 4px solid var(--orange);
  padding: 22px 26px;
}
.ba-point p { margin: 0 !important; font-size: 14px !important; line-height: 2 !important; }
.ba-point ul { margin: 0; padding-left: 22px; }
.ba-point li { font-size: 14px; line-height: 2; }

/* 記事メタ（カテゴリタグ） */
.ba-meta .bcard__tag { font-size: 11px; padding: 2px 10px; }
