/* ============================================================
   Asobe 共通ヘッダー/フッター (site-chrome) — ライトテーマ
   対象: ブログ全記事・ブログ一覧・プライバシーポリシー・サイトマップ・新設ページ
   読み込み順: 各ページのインラインCSSの後（後勝ち）
   変更時は全HTMLの ?v= クエリを更新すること
   ============================================================ */

:root {
  --sc-bg: #ffffff;
  --sc-bg-2: #f5f7fa;
  --sc-ink: #1a2233;
  --sc-ink-2: #4a5568;
  --sc-ink-3: #64748b;
  --sc-brand: #0a5cd6;
  --sc-brand-strong: #084aab;
  --sc-accent: #00806a;
  --sc-border: #e2e8f0;
}

/* ---- スキップリンク ---- */
.sc-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: #ffffff;
  color: #0a2540;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  border: 1px solid var(--sc-border);
  font-weight: 700;
  text-decoration: none;
}
.sc-skip-link:focus {
  left: 0;
}

/* ---- フォーカス可視化（サイト共通の底上げ） ---- */
.sc-header a:focus-visible,
.sc-header button:focus-visible,
.sc-mobile-nav a:focus-visible,
.sc-footer a:focus-visible,
.sc-skip-link:focus-visible {
  outline: 2px solid var(--sc-brand-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- ヘッダー ---- */
.sc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sc-border);
}
.sc-header-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sc-ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.sc-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--sc-brand), var(--sc-accent));
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
}
.sc-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.sc-nav > a {
  color: var(--sc-ink-2);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.sc-nav > a:hover,
.sc-nav > a.is-current {
  color: var(--sc-ink);
}
.sc-nav > a.is-current {
  border-bottom: 2px solid var(--sc-brand);
}
.sc-nav > a.sc-cta {
  color: #ffffff;
  background: var(--sc-brand);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease;
}
.sc-nav > a.sc-cta:hover {
  background: var(--sc-brand-strong);
}

/* ---- ハンバーガー ---- */
.sc-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.sc-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--sc-ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.sc-menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sc-menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.sc-menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- モバイルナビ ---- */
.sc-mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--sc-border);
  box-shadow: 0 12px 32px rgba(16, 30, 54, 0.12);
  padding: 12px 24px 20px;
  flex-direction: column;
}
.sc-mobile-nav.is-open {
  display: flex;
}
.sc-mobile-nav a {
  color: var(--sc-ink);
  text-decoration: none;
  padding: 13px 4px;
  font-size: 1rem;
  border-bottom: 1px solid var(--sc-bg-2);
}
.sc-mobile-nav a:last-child {
  border-bottom: 0;
}
.sc-mobile-nav a.sc-cta {
  margin-top: 12px;
  text-align: center;
  background: var(--sc-brand);
  color: #ffffff;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  border-bottom: 0;
}

@media (max-width: 900px) {
  .sc-nav {
    display: none;
  }
  .sc-menu-toggle {
    display: flex;
  }
}

/* ページ本文がヘッダーに隠れないための余白 */
body {
  scroll-padding-top: 84px;
}
.sc-body-offset {
  height: 72px;
}

/* ---- 記事パンくず ---- */
.ab-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px 0;
  font-size: 0.82rem;
}
.ab-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ab-breadcrumb li {
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ab-breadcrumb li + li::before {
  content: "›";
  opacity: 0.6;
}
.ab-breadcrumb li[aria-current] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 34em;
}
.ab-breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.ab-breadcrumb a:hover {
  text-decoration: underline;
}

/* ---- ブログカード画像のスケルトン (Skeleton) ---- */
.blog-card-image,
.blog-card-img {
  background: linear-gradient(100deg, #eef2f7 30%, #e2e8f0 45%, #eef2f7 60%);
  background-size: 300% 100%;
  animation: sc-shimmer 1.5s ease-in-out infinite;
}
@keyframes sc-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card-image,
  .blog-card-img { animation: none; background: #eef2f7; }
}

/* ---- 記事目次 (Scrollspy) ---- */
.ab-toc {
  max-width: 780px;
  margin: 20px auto 0;
  padding: 0 24px;
}
.ab-toc-inner {
  border: 1px solid var(--sc-border);
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
}
.ab-toc-t {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--sc-ink);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.ab-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ab-toc li {
  border-left: 2px solid var(--sc-border);
}
.ab-toc a {
  display: block;
  padding: 6px 0 6px 14px;
  font-size: 0.88rem;
  color: var(--sc-ink-2);
  text-decoration: none;
  line-height: 1.6;
}
.ab-toc a:hover {
  color: var(--sc-ink);
  text-decoration: underline;
}
.ab-toc li.is-active {
  border-left-color: var(--sc-brand);
}
.ab-toc li.is-active > a {
  color: var(--sc-brand);
  font-weight: 700;
}
.ab-toc a:focus-visible {
  outline: 2px solid var(--sc-brand-strong);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- 記事情報ボックス ---- */
.ab-meta {
  max-width: 780px;
  margin: 48px auto 0;
  padding: 0 24px;
}
.ab-meta-inner {
  border: 1px solid var(--sc-border);
  background: var(--sc-bg-2);
  border-radius: 12px;
  padding: 22px 24px;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--sc-ink-2);
}
.ab-meta h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: var(--sc-ink);
}
.ab-meta p {
  margin: 0 0 10px;
}
.ab-meta-line {
  font-weight: 700;
  color: var(--sc-ink);
}
.ab-meta a {
  color: var(--sc-brand);
  text-decoration: underline;
}

/* ---- フッター（コンパクト版） ---- */
.sc-footer {
  background: var(--sc-bg-2);
  border-top: 1px solid var(--sc-border);
  margin-top: 64px;
}
.sc-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sc-footer-brand {
  color: var(--sc-ink);
  font-weight: 700;
}
.sc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.sc-footer-links a {
  color: var(--sc-ink-2);
  text-decoration: none;
  font-size: 0.88rem;
}
.sc-footer-links a:hover {
  color: var(--sc-ink);
  text-decoration: underline;
}
.sc-footer-copy {
  width: 100%;
  color: #4f5b6e;
  font-size: 0.8rem;
}

/* ---- ライトテーマ矯正（インラインCSS変換で拾いきれないケースの後勝ち上書き） ---- */
/* 塗りボタンの文字は常に白 */
.btn-primary,
a.btn-primary,
.article-cta .btn-primary {
  color: #ffffff !important;
}
/* 画像上のカテゴリチップ（ダーク地）: 白文字 */
.blog-card-image .category,
.blog-card-img .blog-category {
  color: #ffffff !important;
}
/* 画像＋ダークオーバーレイ上のヒーロー文字は白のまま */
.article-hero:has(.article-hero-img) .article-hero-title,
.article-hero:has(.article-hero-img) .article-lead,
.article-hero:has(.article-hero-img) .article-meta,
.article-hero:has(.article-hero-img) .article-meta time,
.article-hero:has(.article-hero-img) .article-meta span:not(.article-category),
.article-hero:has(.article-hero-img) .article-date,
.article-hero:has(.article-hero-img) .article-hero-content {
  color: #ffffff;
}
/* 濃色塗りのカテゴリチップ・共有ボタンの文字は白 */
.article-hero .article-category,
.article-category[class*="cat-"],
.floating-share-btn,
.article-share a[class*="fs-"],
.article-share-buttons a,
.share-buttons a.share-btn {
  color: #ffffff !important;
}
.share-buttons a.share-btn-copy {
  color: #1a2233 !important;
  background: #e9eef4 !important;
}
/* コピー用ボタンだけは淡色地のことがあるため個別に戻す */
.floating-share-btn.fs-copy,
.article-share a.fs-copy {
  color: #1a2233 !important;
  background: #e9eef4 !important;
}
/* セクションラベル（eyebrow）の可読性 */
.eyebrow {
  color: #00614f;
}
/* 記事メタの日付・共有ラベルの可読性 */
.article-date,
.article-share-title,
.article-nav-cat,
.article-meta time {
  color: #4a5568;
}
.article-hero:has(.article-hero-img) .article-date {
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .sc-menu-toggle span,
  .sc-nav > a,
  .sc-nav > a.sc-cta {
    transition: none;
  }
}
