/* ==========================================================================
   AI Compass UI Design System v2.0.0 (White-based, Mobile-First, High-CVR)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 最強可読性タイポグラフィ＆SWELL レイアウト競合の完全修正
   -------------------------------------------------------------------------- */
html,
body,
#body_wrap,
.post_content,
button,
input {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.post_content p,
.post_content li {
  font-weight: 400;
  color: #1e293b;
  letter-spacing: 0.025em;
  overflow-wrap: break-word;
  word-break: normal;
}

/* 全見出し・タイトルの自然な文節改行（1文字だけ落ちる不格好な折り返しを防止） */
.post_content h2,
.post_content h3,
.ac-hero__title,
.ac-hub-card h3,
.ac-post-card__title,
.ac-widget__title,
.ac-cta-card__title,
.ac-mcard__name {
  text-wrap: balance;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

/* 脱・SWELL初期設定：洗練された白基調エディトリアル見出し（H2 / H3） */
.post_content h2:not(.c-secTitle):not(.l-articleBottom__title) {
  background: transparent !important;
  color: #0f172a !important;
  border: none !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
  border-radius: 0 !important;
  padding: 6px 0 12px 18px !important;
  margin: 48px 0 22px !important;
  font-size: clamp(20px, 2.3vw, 24px) !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  position: relative;
}
.post_content h2:not(.c-secTitle):not(.l-articleBottom__title)::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 6px !important;
  bottom: 12px !important;
  width: 5px !important;
  height: auto !important;
  background: linear-gradient(180deg, #2563eb 0%, #059669 100%) !important;
  border-radius: 99px !important;
}
.post_content h2:not(.c-secTitle):not(.l-articleBottom__title)::after {
  display: none !important;
  content: none !important;
}

.post_content h3:not(.ac-post-card__title) {
  background: transparent !important;
  color: #0f172a !important;
  border: none !important;
  border-left: 3.5px solid #2563eb !important;
  padding: 2px 0 2px 13px !important;
  margin: 34px 0 14px !important;
  font-size: clamp(17.5px, 2vw, 19.5px) !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
}
.post_content h3::before,
.post_content h3::after {
  display: none !important;
  content: none !important;
}

/* 脱・SWELL初期設定：記事内の通常Markdownテーブルを軽やかで読みやすい白基調へ刷新 */
.post_content .wp-block-table {
  margin: 24px 0 30px !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}
.post_content .wp-block-table table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  border: none !important;
  font-size: 14px !important;
}
.post_content .wp-block-table thead th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  padding: 13px 14px !important;
  border: none !important;
  border-bottom: 1.5px solid #cbd5e1 !important;
  text-align: left !important;
  white-space: nowrap;
}
.post_content .wp-block-table tbody td {
  padding: 13px 14px !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
  color: #334155 !important;
  line-height: 1.65 !important;
  vertical-align: top !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
.post_content .wp-block-table.is-style-stripes tbody tr:nth-child(even) td {
  background: #fafbfc !important;
}
.post_content .wp-block-table tbody tr:last-child td {
  border-bottom: none !important;
}

/* 引用・ご案内枠（blockquote）をカクカク縦線廃止の洗練されたモダンカード型へ刷新 */
.post_content blockquote.wp-block-quote {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 20px 24px !important;
  margin: 24px 0 !important;
  color: #334155 !important;
  font-size: 14.5px !important;
  line-height: 1.85 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
  position: relative;
}
.post_content blockquote.wp-block-quote p {
  margin: 0 !important;
}
.post_content blockquote.wp-block-quote p + p {
  margin-top: 10px !important;
}
.post_content blockquote.wp-block-quote::before,
.post_content blockquote.wp-block-quote::after {
  display: none !important;
  content: none !important;
}

/* 未スタイルスマホヘッダーメニュー崩れの永久防止 */
.l-header__spNav {
  display: none !important;
}

/* スクロール時の追従ヘッダー透過重なりバグの完全解消（SWELL #fix_header対応） */
#fix_header,
.l-fixHeader {
  background: rgba(255, 255, 255, 0.98) !important;
  background-color: #ffffff !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
  z-index: 9995 !important;
}
#fix_header::before,
.l-fixHeader::before {
  display: none !important;
}
.l-header {
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9;
}

/* ヘッダーの「AIコンパス」ロゴ左横にブランドコンパスアイコンを自動表示 */
.c-headLogo__link {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}
.c-headLogo__link::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: url("../img/site-icon.png") center/contain no-repeat;
  border-radius: 7px;
}

/* トップページからSWELLデフォルトの「さぁ、始めよう。」灰色バナー＆スライダーを完全非表示（SWELLは #body_wrap に .home が付く） */
#body_wrap.home #main_visual,
#body_wrap.home .p-mainVisual,
#body_wrap.home #post_slider,
#body_wrap.home .p-postSlider,
.home #main_visual,
.home #post_slider {
  display: none !important;
}

/* SWELLの標準h3下線・疑似要素がカスタムUIカード内に漏れ出るのを完全防止 */
.ac-hero h1::before, .ac-hero h1::after,
.ac-hero h3::before, .ac-hero h3::after,
.ac-widget h3::before, .ac-widget h3::after,
.ac-cta-card h3::before, .ac-cta-card h3::after,
.ac-post-card h3::before, .ac-post-card h3::after,
.ac-mcard h4::before, .ac-mcard h4::after {
  display: none !important;
  content: none !important;
}
.ac-hero h3,
.ac-widget h3,
.ac-cta-card h3,
.ac-post-card h3 {
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

/* 個別記事での下部追従バーとフッター／トップへ戻るボタンの被り完全防止 */
#body_wrap.single {
  padding-bottom: 76px;
}
#body_wrap.single #pagetop,
#body_wrap.single .p-fixBtnWrap {
  bottom: 84px !important;
}

/* 全ページでノイズとなるデフォルトサイドバーを完全非表示（CVR最大化 1カラム集中レイアウト） */
#sidebar,
.l-sidebar {
  display: none !important;
}
#content.l-content {
  display: block !important;
}
/* 個別記事・固定ページは最も読みやすく比較表が映える 860px 中央寄せ */
#main_content,
.l-mainContent {
  width: 100% !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  float: none !important;
  flex: none !important;
}

/* トップ固定ページは1カラム全幅(1120px)・白基調LPレイアウトへ完全最適化 */
#body_wrap.home .l-mainContent__inner > .p-articleHead,
#body_wrap.home .c-pageTitle,
#body_wrap.home .l-articleHead,
#body_wrap.home #breadcrumb {
  display: none !important;
}
#body_wrap.home #content.l-content {
  padding-top: 24px !important;
}
#body_wrap.home #main_content,
#body_wrap.home .l-mainContent {
  max-width: 1120px !important;
}

/* --------------------------------------------------------------------------
   1. トップページ ヒーロー＆3大ツールハブ
   -------------------------------------------------------------------------- */
.ac-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 36px 32px;
  margin: 0 0 48px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
}
.ac-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
}
.ac-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.ac-hero__title {
  font-size: clamp(26px, 3.2vw, 38px) !important;
  line-height: 1.32 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: none !important;
  letter-spacing: -0.01em;
}
.ac-text-gradient {
  background: linear-gradient(120deg, #2563eb 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ac-hero__lead {
  font-size: 15.5px;
  line-height: 1.8;
  color: #475569;
  margin: 0 0 24px !important;
}
.ac-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.ac-hero__btn {
  width: auto !important;
  padding: 15px 26px !important;
  font-size: 15.5px !important;
}
.ac-hero__btn-sub {
  padding: 14px 22px !important;
  font-size: 15px !important;
}
.ac-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}
.ac-hero__visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 温かみと人間味を伝える「AIコンパス編集部アドバイス」吹き出しコンポーネント */
.ac-editor-note {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 28px 0 36px;
}
.ac-editor-note__avatar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 84px;
}
.ac-editor-note__img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
  background-color: #f0f7ff;
  background-size: cover;
  background-position: center top;
}
.ac-editor-note__avatar span {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-align: center;
  line-height: 1.35;
  white-space: nowrap;
}
.ac-editor-note__bubble {
  position: relative;
  flex: 1;
  background: #fffdf9;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.06);
}
.ac-editor-note__bubble::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 22px;
  width: 14px;
  height: 14px;
  background: #fffdf9;
  border-left: 1.5px solid #fed7aa;
  border-bottom: 1.5px solid #fed7aa;
  transform: rotate(45deg);
}
.ac-editor-note__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ac-editor-note__label {
  display: inline-block;
  background: #ffedd5;
  color: #c2410c;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.ac-editor-note__head strong {
  font-size: 15.5px;
  color: #0f172a;
}
.ac-editor-note__bubble p {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.8 !important;
  color: #334155 !important;
}
@media (max-width: 600px) {
  .ac-editor-note { gap: 12px; }
  .ac-editor-note__avatar { width: 68px; }
  .ac-editor-note__img { width: 52px; height: 52px; }
  .ac-editor-note__avatar span { font-size: 10px; }
  .ac-editor-note__bubble { padding: 14px 16px; }
}

/* 専門メディアとしての洗練度とCVRを高めるため、不要要素を整理
   - 記事タイトル左横の二重日付(.c-postTitle__date)：日記ブログ感＆タイトル幅圧迫を解消
   - 記事本文先頭の重複アイキャッチ(.p-articleThumb)：一覧/関連記事/OGPはそのまま活かし、スマホ直帰率を大幅改善
   - 左端固定SNSバー・未使用コメント欄・「この記事を書いた人」を非表示 */
.c-postTitle__date,
.p-articleThumb,
.c-shareBtns.-fix,
.p-articleMetas .c-shareBtns.-fix,
.p-authorBox,
.l-articleBottom__section.-author,
#author_box,
#comments,
.p-postComments,
.widget_recent_comments,
.wp-block-latest-comments {
  display: none !important;
}
.p-articleHead.c-postTitle {
  display: block !important;
  padding-left: 0 !important;
  border-left: none !important;
}
.c-postTitle__ttl {
  border-left: none !important;
  padding-left: 0 !important;
  font-size: clamp(22px, 2.8vw, 29px) !important;
  line-height: 1.42 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-wrap: balance;
  word-break: auto-phrase;
}

/* 目的・お悩み別 1タップ入口チップ（個人読者が「自分のサイトだ」と1秒で感じる導線） */
.ac-persona-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 24px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.ac-persona-strip__label {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.ac-persona-strip__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ac-persona-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.ac-persona-chip:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8 !important;
  transform: translateY(-1px);
}

/* 3大ツール直結カード */
.ac-tool-hub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}
.ac-hub-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.ac-hub-card:hover {
  transform: translateY(-3px);
  border-color: #2563eb;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.10);
}
.ac-hub-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.ac-hub-card__icon--blue { background: #eff6ff; }
.ac-hub-card__icon--orange { background: #fff7ed; }
.ac-hub-card__icon--green { background: #ecfdf5; }
.ac-hub-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 3px;
}
.ac-hub-card h3 {
  margin: 0 0 4px !important;
  padding: 0 !important;
  border: none !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.ac-hub-card p {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: #64748b !important;
}

@media (max-width: 900px) {
  .ac-hero { padding: 24px 18px; }
  .ac-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .ac-tool-hub { grid-template-columns: 1fr; }
  .ac-hero__actions a { width: 100% !important; text-align: center; }
}

/* --------------------------------------------------------------------------
   2. モダン最新記事グリッド
   -------------------------------------------------------------------------- */
.ac-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0 36px;
}
@media (max-width: 900px) {
  .ac-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ac-post-grid { grid-template-columns: 1fr; }
}
.ac-post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.ac-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}
.ac-post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
}
.ac-post-card__thumb {
  position: relative;
  aspect-ratio: 1200 / 630;
  background: #f1f5f9;
  overflow: hidden;
}
.ac-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ac-post-card__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.ac-post-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.ac-post-card__title {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: none !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
.ac-post-card__more {
  font-size: 12.5px;
  font-weight: 700;
  color: #2563eb;
}

/* --------------------------------------------------------------------------
   3. PR表記・バッジ・高CVRボタンシステム
   -------------------------------------------------------------------------- */
.ac-pr-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  margin: 0 0 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}
.ac-pr-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 1px 6px;
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
  border-radius: 4px;
  font-size: 11px;
}
.ac-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.ac-badge--primary {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.ac-badge--accent {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.ac-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.ac-cta-micro {
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  text-align: center;
}
.ac-cta-note {
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
}
.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  font-weight: 700;
  border-radius: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
}
.ac-btn--cta {
  width: 100%;
  max-width: 440px;
  padding: 16px 22px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.28);
  position: relative;
  overflow: hidden;
}
.ac-btn--cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  animation: ac-shimmer 3.8s infinite;
}
@keyframes ac-shimmer {
  0% { left: -100%; }
  35%, 100% { left: 160%; }
}
.ac-btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.36);
}
.ac-btn--primary {
  width: 100%;
  max-width: 420px;
  padding: 14px 20px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.24);
}
.ac-btn--primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.ac-btn--table {
  padding: 10px 12px;
  background: #059669;
  color: #ffffff !important;
  font-size: 12.5px;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-block;
}
.ac-btn--table:hover {
  background: #047857;
}
.ac-btn--outline {
  padding: 9px 14px;
  background: #ffffff;
  color: #2563eb !important;
  border: 1.5px solid #2563eb;
  font-size: 13px;
  border-radius: 8px;
}
.ac-btn--outline:hover {
  background: #eff6ff;
}

/* A8.net規約完全準拠ボタンラッパー（中のHTML/1x1ピクセルを改変せずボタン化） */
.ac-a8-btn-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: center;
}
.ac-a8-btn-wrap a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 22px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none !important;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.ac-a8-btn-wrap a::after {
  content: " ›";
  margin-left: 6px;
  font-size: 18px;
  line-height: 1;
}
.ac-a8-btn-wrap a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.36);
}
.ac-a8-btn-wrap img,
.ac-a8-table-wrap img {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ac-a8-table-wrap {
  position: relative;
  flex: 1;
  display: flex;
}
.ac-a8-table-wrap a {
  flex: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  background: #059669;
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 8px;
  text-align: center;
  line-height: 1.3;
  transition: background-color 0.16s ease;
}
.ac-a8-table-wrap a:hover {
  background: #047857;
}

/* Amazon 厳選書籍紹介ボックス（白基調・本命ASPと視覚分離しつつ高クリック率） */
.ac-books-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px 20px;
  margin: 30px 0;
}
.ac-books-section__head {
  margin-bottom: 16px;
}
.ac-books-section__title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  text-wrap: balance;
  word-break: auto-phrase;
}
.ac-books-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ac-book-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.ac-book-card__body {
  flex: 1;
  min-width: 0;
}
.ac-book-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.ac-book-tag {
  display: inline-block;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.ac-book-pub {
  font-size: 11.5px;
  color: #64748b;
}
.ac-book-card__title {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 6px;
  word-break: auto-phrase;
}
.ac-book-card__desc {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
}
.ac-book-card__action {
  flex-shrink: 0;
}
.ac-btn--amazon {
  padding: 11px 16px;
  background: #f59e0b;
  color: #ffffff !important;
  font-size: 13.5px;
  border-radius: 9px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}
.ac-btn--amazon:hover {
  background: #d97706;
  transform: translateY(-1px);
}
.ac-books-note {
  margin: 12px 0 0 !important;
  font-size: 11.5px !important;
  color: #64748b !important;
}
@media (max-width: 680px) {
  .ac-book-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .ac-btn--amazon {
    width: 100%;
  }
}

/* CTAカード */
.ac-cta-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-top: 4px solid #2563eb;
  border-radius: 14px;
  padding: 22px 20px;
  margin: 28px 0;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}
.ac-cta-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.ac-cta-card__title {
  margin: 4px 0 8px !important;
  padding: 0 !important;
  border: none !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
}
.ac-cta-card__price {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 0 0 14px !important;
  font-size: 15px;
}
.ac-cta-card__price strong {
  color: #c2410c;
  font-size: 17px;
}
.ac-cta-card__list {
  margin: 0 0 18px !important;
  padding-left: 0 !important;
  list-style: none !important;
}
.ac-cta-card__list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
  font-size: 14.5px;
  color: #334155;
}
.ac-cta-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   4. 比較表（PC完全フィット5列＆スマホ自動カード変形）
   -------------------------------------------------------------------------- */
.ac-table-section { margin: 28px 0; }
.ac-desktop-only { display: block !important; }
.ac-mobile-only,
.ac-mobile-only.ac-mobile-cards { display: none !important; }
@media (max-width: 767px) {
  .ac-desktop-only { display: none !important; }
  .ac-mobile-only { display: block !important; }
  .ac-mobile-only.ac-mobile-cards { display: flex !important; }
}

.ac-table-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
}
.ac-compare-table {
  width: 100% !important;
  min-width: 0 !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  font-size: 13px !important;
  table-layout: fixed;
}
.ac-compare-table thead th {
  background: #0f172a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 13px 10px !important;
  text-align: center !important;
  border: none !important;
  border-bottom: 2px solid #1e293b !important;
  font-size: 12.5px !important;
}
.ac-compare-table tbody td {
  padding: 14px 10px !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  vertical-align: middle !important;
  text-align: center !important;
  background: #ffffff !important;
  color: #1e293b !important;
  word-break: break-word;
}
.ac-compare-table tbody tr:last-child td {
  border-bottom: none !important;
}
.ac-school-cell {
  text-align: left !important;
}
.ac-table-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 5px;
}
.ac-school-cell strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: #0f172a;
}
.ac-stars {
  color: #d97706;
  font-weight: 800;
  white-space: nowrap;
  margin-bottom: 4px;
}
.ac-subsidy-pill {
  display: inline-block;
  background: #fff7ed;
  color: #c2410c;
  font-weight: 800;
  font-size: 11.5px;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.ac-price-cell strong {
  display: block;
  font-size: 14px;
  color: #047857;
  white-space: nowrap;
}
.ac-price-sub {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
  white-space: nowrap;
}
.ac-target-cell {
  text-align: left !important;
  font-size: 12px !important;
  line-height: 1.5;
  color: #475569 !important;
}
.ac-duration-tag {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}
.ac-table-caption {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 10px !important;
}

/* スマホ専用 縦型比較カードUI（displayは .ac-mobile-only で制御） */
.ac-mobile-cards {
  flex-direction: column;
  gap: 14px;
}
.ac-mcard {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-top: 4px solid #2563eb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.ac-mcard__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ac-mcard__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}
.ac-mcard__name {
  margin: 0 0 12px !important;
  font-size: 17px !important;
  font-weight: 800;
  color: #0f172a;
}
.ac-mcard__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.ac-mcard__box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}
.ac-mcard__box span {
  display: block;
  font-size: 11px;
  color: #64748b;
}
.ac-mcard__box strong {
  font-size: 15px;
}
.ac-mcard__target {
  font-size: 12.5px !important;
  color: #475569;
  margin: 0 0 12px !important;
  line-height: 1.55;
}
.ac-mcard__btn {
  padding: 13px 16px !important;
  font-size: 14.5px !important;
}

/* --------------------------------------------------------------------------
   5. 独自ツールウィジェット共通・診断・シミュレーター・DB
   -------------------------------------------------------------------------- */
.ac-widget {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  padding: 24px 20px;
  margin: 30px 0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}
.ac-widget__header {
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
}
.ac-widget__title {
  margin: 10px 0 6px !important;
  padding: 0 !important;
  border: none !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
}
.ac-widget__desc {
  margin: 0 !important;
  font-size: 14px;
  color: #475569;
}
.is-hidden { display: none !important; }

.ac-diag-q {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 14px !important;
}
.ac-q-num {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 8px;
}
.ac-diag-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 640px) {
  .ac-diag-options { grid-template-columns: 1fr; }
}
.ac-opt-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 15px 16px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 64px;
}
.ac-opt-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}
.ac-opt-btn strong {
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 3px;
}
.ac-opt-btn span {
  font-size: 12.5px;
  color: #475569;
}
.ac-diag-result-card {
  background: #f8fafc;
  border: 2px solid #2563eb;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}
.ac-diag-reset {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 8px;
}

.ac-calc-label { display: block; font-size: 15px; margin-bottom: 8px; }
.ac-calc-label strong { font-size: 20px; color: #2563eb; }
.ac-calc-range { width: 100%; accent-color: #2563eb; height: 8px; cursor: pointer; }
.ac-calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.ac-preset-btn {
  padding: 6px 12px;
  font-size: 12.5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  cursor: pointer;
}
.ac-preset-btn:hover { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }
.ac-calc-checks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ac-check-item { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ac-calc-output { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 600px) { .ac-calc-output { grid-template-columns: 1fr; } }
.ac-calc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.ac-calc-box--highlight { background: #ecfdf5; border: 2px solid #059669; }
.ac-calc-box__label { display: block; font-size: 12.5px; color: #475569; margin-bottom: 6px; }
.ac-calc-box__val { font-size: 26px; font-weight: 800; }
.ac-text-accent { color: #c2410c; }
.ac-text-cta { color: #047857; }
.ac-calc-note { font-size: 12px; color: #64748b; margin-top: 12px !important; }

.ac-db-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ac-db-tab {
  padding: 7px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.ac-db-tab.is-active { background: #2563eb; border-color: #2563eb; color: #ffffff; }
.ac-db-subfilters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.ac-db-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
}
.ac-db-free-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ac-db-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 720px) { .ac-db-grid { grid-template-columns: 1fr; } }
.ac-tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}
.ac-tool-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
.ac-tool-card__title { margin: 0 0 6px !important; font-size: 17px !important; color: #0f172a; }
.ac-tool-card__desc { font-size: 13px; color: #475569; margin: 0 0 12px !important; line-height: 1.6; }
.ac-tool-specs {
  font-size: 12.5px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.ac-tool-specs div { margin-bottom: 3px; }
.ac-tool-card__actions { display: flex; gap: 8px; }
.ac-tool-card__actions a { flex: 1; text-align: center; }

/* モバイル・記事下部追従ミニCTAバー（フッター到達時は自動非表示） */
.ac-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid #cbd5e1;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  padding: 10px 14px;
  display: none;
}
.ac-sticky-bar.is-visible { display: block; }
.ac-sticky-bar__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ac-sticky-bar__tag {
  display: inline-block;
  background: #fff7ed;
  color: #c2410c;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}
.ac-sticky-bar__title { font-size: 13px; font-weight: 700; color: #0f172a; }
.ac-sticky-bar__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ac-sticky-bar__btn {
  padding: 9px 14px;
  background: #059669;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.ac-sticky-bar__close {
  background: #f1f5f9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #475569;
  font-size: 16px;
  cursor: pointer;
}
@media (max-width: 480px) {
  .ac-sticky-bar__title { display: block; font-size: 12px; }
}
