/*
Theme Name: Cocoon Child - Lab Front
Theme URI: https://example.com/
Description: Child theme for Cocoon — custom lab front page
Author: Auto-generated
Template: cocoon
Version: 1.0.0
*/

/* Import parent styles if needed (handled via functions.php enqueue)
   Custom child styles live in assets/css/front.css and are enqueued on the lab front page only.
*/

/* Place any general child-theme overrides here */

/* トップページの記事タイトルリンク色を統一 */
.acl-article-card h3 a,
.acl-product-list h3 a {
  color: inherit;
  text-decoration: none;
}

.acl-article-card h3 a:hover,
.acl-product-list h3 a:hover {
  color: #00B8A9;
  text-decoration: none;
}


/* 個別記事：本文幅を少し広げる */
.acl-single-article {
  max-width: 860px;
}

.acl-single-content {
  font-size: 16px;
  line-height: 2;
}


/* 個別記事：目次デザイン調整 */
.acl-single-content .toc,
.acl-single-content #toc_container {
  margin: 32px auto 48px;
  padding: 24px;
  border: 1px solid rgba(0, 184, 169, 0.18);
  border-radius: 18px;
  background: rgba(0, 184, 169, 0.035);
}

.acl-single-content .toc a,
.acl-single-content #toc_container a {
  color: #008f85;
  text-decoration: none;
  font-weight: 700;
}

.acl-single-content .toc a:hover,
.acl-single-content #toc_container a:hover {
  text-decoration: underline;
}


/* =========================
   note風：個別記事デザイン
========================= */

/* 全体幅 */
.acl-single-article {
  max-width: 920px;
}

/* タイトルまわり */
.acl-single-header h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
}

.acl-single-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 14px;
}

/* 本文 */
.acl-single-content {
  font-size: 17px;
  line-height: 2.05;
  color: #222;
}

.acl-single-content p {
  margin: 0 0 1.6em;
}

.acl-single-content a {
  color: #0f766e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.acl-single-content a:hover {
  color: #0b5f59;
}

/* 見出し */
.acl-single-content h2 {
  font-size: 34px;
  line-height: 1.45;
  margin: 72px 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  letter-spacing: -0.01em;
}

.acl-single-content h3 {
  font-size: 26px;
  line-height: 1.5;
  margin: 44px 0 18px;
  letter-spacing: -0.01em;
}

/* 箇条書き */
.acl-single-content ul,
.acl-single-content ol {
  margin: 0 0 1.8em 1.4em;
  padding: 0;
}

.acl-single-content li {
  margin-bottom: 0.7em;
}

/* 引用 */
.acl-single-content blockquote {
  margin: 2em 0;
  padding: 1.2em 1.4em;
  border-left: 4px solid #d1d5db;
  background: #f8fafb;
  color: #374151;
  border-radius: 10px;
}

/* コード */
.acl-single-content pre {
  margin: 2em 0;
  padding: 20px 22px;
  border-radius: 14px;
  background: #111827;
  color: #f9fafb;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.8;
}

.acl-single-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95em;
}

.acl-single-content :not(pre) > code {
  background: #f3f4f6;
  padding: 0.15em 0.45em;
  border-radius: 6px;
  color: #111827;
}

/* 画像 */
.acl-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* 目次 */
.acl-single-content .toc,
.acl-single-content #toc_container,
.article-toc,
.toc-content {
  margin: 36px 0 52px;
  padding: 26px 28px;
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: none;
}

.acl-single-content .toc a,
.acl-single-content #toc_container a,
.article-toc a,
.toc-content a {
  color: #374151;
  text-decoration: none;
}

.acl-single-content .toc a:hover,
.acl-single-content #toc_container a:hover,
.article-toc a:hover,
.toc-content a:hover {
  color: #111827;
  text-decoration: underline;
}

.acl-single-content .toc ul,
.acl-single-content #toc_container ul,
.article-toc ul,
.toc-content ul {
  margin: 14px 0 0 0;
  padding: 0;
  list-style: none;
}

.acl-single-content .toc li,
.acl-single-content #toc_container li,
.article-toc li,
.toc-content li {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}

.acl-single-content .toc li:last-child,
.acl-single-content #toc_container li:last-child,
.article-toc li:last-child,
.toc-content li:last-child {
  border-bottom: none;
}

/* 戻るボタン */
.acl-single-back a,
.acl-single-nav a {
  border-radius: 999px;
  font-weight: 700;
}

/* スマホ */
@media (max-width: 768px) {
  .acl-single-article {
    max-width: 100%;
  }

  .acl-single-header h1 {
    font-size: 34px;
  }

  .acl-single-content {
    font-size: 16px;
    line-height: 1.95;
  }

  .acl-single-content h2 {
    font-size: 28px;
    margin-top: 56px;
  }

  .acl-single-content h3 {
    font-size: 25px;
  }

  .acl-single-content .toc,
  .acl-single-content #toc_container,
  .article-toc,
  .toc-content {
    padding: 20px;
    border-radius: 14px;
  }
}


/* =========================
   個別記事：目次をミニマルに再調整
========================= */

.acl-single-content .toc,
.acl-single-content #toc_container,
.article-toc,
.toc-content {
  max-width: 640px;
  margin: 32px 0 48px;
  padding: 22px 26px;
  background: #f7f8f9;
  border: 1px solid #dfe3e6;
  border-radius: 4px;
  box-shadow: none;
}

/* Cocoon系の内側ボックス対策 */
.acl-single-content .toc > *,
.acl-single-content #toc_container > *,
.article-toc > *,
.toc-content > * {
  border-radius: 0;
  box-shadow: none;
}

/* 目次タイトル */
.acl-single-content .toc-title,
.acl-single-content .toc .toc-title,
.acl-single-content #toc_container .toc_title,
.acl-single-content #toc_container .toc-title,
.article-toc .toc-title,
.toc-content .toc-title {
  margin: 0 0 14px;
  padding: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}

/* リスト */
.acl-single-content .toc ul,
.acl-single-content #toc_container ul,
.article-toc ul,
.toc-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 行をギュッと */
.acl-single-content .toc li,
.acl-single-content #toc_container li,
.article-toc li,
.toc-content li {
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #e2e5e8;
  line-height: 1.45;
}

.acl-single-content .toc li:last-child,
.acl-single-content #toc_container li:last-child,
.article-toc li:last-child,
.toc-content li:last-child {
  border-bottom: none;
}

/* 子階層 */
.acl-single-content .toc li li,
.acl-single-content #toc_container li li,
.article-toc li li,
.toc-content li li {
  padding-left: 18px;
  font-size: 0.95em;
  border-bottom: none;
}

/* 通常時はリンクっぽくしすぎない */
.acl-single-content .toc a,
.acl-single-content #toc_container a,
.article-toc a,
.toc-content a {
  color: #374151;
  text-decoration: none;
  font-weight: 600;
}

/* ホバー時だけリンク感 */
.acl-single-content .toc a:hover,
.acl-single-content #toc_container a:hover,
.article-toc a:hover,
.toc-content a:hover {
  color: #00B8A9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* すべて表示ボタンが出る場合 */
.acl-single-content .toc .toc-show-more,
.acl-single-content #toc_container .toc-show-more,
.article-toc .toc-show-more,
.toc-content .toc-show-more,
.acl-single-content .toc button,
.acl-single-content #toc_container button {
  margin-top: 14px;
  border-radius: 4px;
}

/* スマホ */
@media (max-width: 768px) {
  .acl-single-content .toc,
  .acl-single-content #toc_container,
  .article-toc,
  .toc-content {
    max-width: 100%;
    padding: 18px 20px;
    margin: 28px 0 40px;
  }

  .acl-single-content .toc li,
  .acl-single-content #toc_container li,
  .article-toc li,
  .toc-content li {
    padding: 6px 0;
  }
}


/* =========================
   目次：黒文字・内側枠なし
========================= */

/* 外側だけ残す */
.acl-single-content .toc,
.acl-single-content #toc_container,
.acl-single-content .toc-box,
.acl-single-content .toc-widget-box {
  background: #f7f8f9 !important;
  border: 1px solid #dfe3e6 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

/* 内側の四角枠を消す */
.acl-single-content .toc ol,
.acl-single-content .toc ul,
.acl-single-content #toc_container ol,
.acl-single-content #toc_container ul,
.acl-single-content .toc-list,
.acl-single-content .toc-content,
.acl-single-content .toc-main {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* 目次リンクを通常時は黒に */
.acl-single-content .toc a,
.acl-single-content #toc_container a,
.acl-single-content .toc-box a,
.acl-single-content .toc-widget-box a,
.acl-single-content .toc-content a {
  color: #111827 !important;
  text-decoration: none !important;
  font-weight: 700;
}

/* ホバー時だけアクセントカラー */
.acl-single-content .toc a:hover,
.acl-single-content #toc_container a:hover,
.acl-single-content .toc-box a:hover,
.acl-single-content .toc-widget-box a:hover,
.acl-single-content .toc-content a:hover {
  color: #00B8A9 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* 行の線は薄く・詰める */
.acl-single-content .toc li,
.acl-single-content #toc_container li,
.acl-single-content .toc-box li,
.acl-single-content .toc-widget-box li {
  padding: 6px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  line-height: 1.45 !important;
}

.acl-single-content .toc li:last-child,
.acl-single-content #toc_container li:last-child,
.acl-single-content .toc-box li:last-child,
.acl-single-content .toc-widget-box li:last-child {
  border-bottom: none !important;
}

/* 二重番号っぽさを少し抑える */
.acl-single-content .toc ol,
.acl-single-content #toc_container ol {
  padding-left: 1.4em !important;
}

.acl-single-content .toc ol ol,
.acl-single-content #toc_container ol ol {
  margin-top: 4px !important;
  padding-left: 1.2em !important;
}


/* 目次：サイズと余白をさらに調整 */
.acl-single-content .toc,
.acl-single-content #toc_container,
.acl-single-content .toc-box,
.acl-single-content .toc-widget-box {
  max-width: 580px !important;
  width: 100% !important;
  margin: 32px 0 56px !important;
  padding: 22px 28px !important;
  min-height: 0 !important;
}

/* Cocoon目次内の余白を詰める */
.acl-single-content .toc-content,
.acl-single-content .toc-list,
.acl-single-content .toc-main,
.acl-single-content #toc_container .toc_list,
.acl-single-content #toc_container .toc-list {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* 目次タイトル下の余白 */
.acl-single-content .toc-title,
.acl-single-content .toc .toc-title,
.acl-single-content #toc_container .toc_title,
.acl-single-content #toc_container .toc-title {
  margin-bottom: 18px !important;
}

/* 目次行をさらに詰める */
.acl-single-content .toc li,
.acl-single-content #toc_container li,
.acl-single-content .toc-box li,
.acl-single-content .toc-widget-box li {
  padding: 5px 0 !important;
  line-height: 1.4 !important;
}

/* 目次リンク文字サイズ */
.acl-single-content .toc a,
.acl-single-content #toc_container a,
.acl-single-content .toc-box a,
.acl-single-content .toc-widget-box a,
.acl-single-content .toc-content a {
  font-size: 15px !important;
}


/* =========================
   AI-Continuity Lab v2 polish
   note本文 + mediaカード + SaaSトップ
========================= */

/* 全体の質感 */
.acl-page {
  background:
    radial-gradient(circle at top left, rgba(0, 184, 169, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfb 42%, #ffffff 100%);
}

/* ヘッダーをSaaSっぽく */
.acl-header {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.acl-nav a {
  position: relative;
  color: #111827;
  font-weight: 800;
  text-decoration: none;
}

.acl-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #00B8A9;
  transition: width 0.2s ease;
}

.acl-nav a:hover::after {
  width: 100%;
}

/* SaaS風ヒーロー */
.acl-hero h1 {
  letter-spacing: -0.045em;
}

.acl-hero p {
  color: #4b5563;
}

.acl-hero .acl-labels span,
.acl-labels span {
  border: 1px solid rgba(0, 184, 169, 0.28);
  background: rgba(0, 184, 169, 0.07);
  color: #00776f;
  font-weight: 800;
}

/* ボタンを少しプロダクト風に */
.acl-button,
.acl-text-link,
.acl-single-back a,
.acl-single-nav a {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.acl-button:hover,
.acl-single-back a:hover,
.acl-single-nav a:hover {
  transform: translateY(-1px);
}

/* トップの記事カードをメディア風に */
.acl-article-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acl-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.1);
}

.acl-article-card h3 {
  letter-spacing: -0.02em;
}

.acl-article-card h3 a,
.acl-product-list h3 a {
  color: #111827;
  text-decoration: none;
}

.acl-article-card h3 a:hover,
.acl-product-list h3 a:hover {
  color: #00B8A9;
}

/* サムネの存在感 */
.acl-thumb,
.acl-article-card img {
  transition: transform 0.28s ease;
}

.acl-article-card:hover .acl-thumb,
.acl-article-card:hover img {
  transform: scale(1.025);
}

/* 作っているもの・実験ログを締める */
.acl-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.05);
}

.acl-product-list article,
.acl-log-list article {
  transition: background 0.18s ease;
}

.acl-product-list article:hover,
.acl-log-list article:hover {
  background: rgba(0, 184, 169, 0.035);
}

/* note風本文を維持しつつ読みやすく */
.acl-single-content {
  color: #111827;
  font-size: 17px;
  line-height: 2.05;
}

.acl-single-content h2 {
  letter-spacing: -0.03em;
  border-bottom: 1px solid #e5e7eb;
}

.acl-single-content p {
  color: #1f2937;
}

/* 目次を技術ブログ風に固定 */
.acl-single-content .toc,
.acl-single-content #toc_container,
.acl-single-content .toc-box,
.acl-single-content .toc-widget-box {
  max-width: 580px !important;
  width: 100% !important;
  margin: 32px 0 56px !important;
  padding: 24px 30px !important;
  background: #f7f8f9 !important;
  border: 1px solid #dfe3e6 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.acl-single-content .toc a,
.acl-single-content #toc_container a,
.acl-single-content .toc-box a,
.acl-single-content .toc-widget-box a,
.acl-single-content .toc-content a {
  color: #111827 !important;
  text-decoration: none !important;
  font-weight: 800;
}

.acl-single-content .toc a:hover,
.acl-single-content #toc_container a:hover,
.acl-single-content .toc-box a:hover,
.acl-single-content .toc-widget-box a:hover,
.acl-single-content .toc-content a:hover {
  color: #00B8A9 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* =========================
   スマホ：メディア感を強める
========================= */
@media (max-width: 768px) {

  .acl-page {
    background:
      radial-gradient(circle at top, rgba(0, 184, 169, 0.10), transparent 26%),
      #f7fbfb;
  }

  .acl-header {
    padding: 14px 16px 12px;
  }

  .acl-logo-img {
    max-width: 92px;
  }

  .acl-logo-sub {
    font-size: 11px;
  }

  .acl-header-search {
    width: 100%;
    margin: 6px 0 2px;
  }

  .acl-header-search input {
    height: 34px;
    font-size: 12px;
    border-radius: 999px;
  }

  .acl-nav {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 2px 2px;
    font-size: 11px;
  }

  .acl-nav a::after {
    display: none;
  }

  .acl-hero {
    padding-top: 24px;
  }

  .acl-hero h1 {
    font-size: 29px;
    line-height: 1.34;
    letter-spacing: -0.045em;
  }

  .acl-hero p {
    font-size: 13px;
    line-height: 1.85;
  }

  .acl-button {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    font-size: 13px;
  }

  .acl-section h2,
  .acl-panel h2 {
    font-size: 27px;
    letter-spacing: -0.04em;
  }

  /* スマホ記事カード：メディア風 */
  .acl-article-card {
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  }

  .acl-article-card h3 {
    font-size: 17px;
    line-height: 1.45;
    margin-top: 10px;
  }

  .acl-article-card p {
    font-size: 12.5px;
    line-height: 1.7;
    color: #4b5563;
  }

  .acl-card-foot {
    margin-top: 14px;
  }

  .acl-card-foot a {
    font-weight: 900;
    color: #111827;
    text-decoration: none;
  }

  .acl-card-foot a:hover {
    color: #00B8A9;
  }

  /* サムネあり記事を強く見せる */
  .acl-thumb,
  .acl-article-card img {
    min-height: 172px;
    object-fit: cover;
  }

  /* 空サムネは少し低くして間延び防止 */
  .acl-thumb:empty {
    min-height: 132px;
  }

  .acl-panel {
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  }

  .acl-product-list article,
  .acl-log-list article {
    padding: 16px 0;
  }

  .acl-product-list h3,
  .acl-log-list h3 {
    font-size: 15.5px;
    line-height: 1.5;
  }

  /* 個別記事スマホ */
  .acl-single-header h1 {
    font-size: 34px;
    line-height: 1.25;
    letter-spacing: -0.045em;
  }

  .acl-single-content {
    font-size: 16px;
    line-height: 1.95;
  }

  .acl-single-content h2 {
    font-size: 27px;
    line-height: 1.35;
    margin-top: 56px;
  }

  .acl-single-content .toc,
  .acl-single-content #toc_container,
  .acl-single-content .toc-box,
  .acl-single-content .toc-widget-box {
    max-width: 100% !important;
    padding: 18px 20px !important;
    margin: 28px 0 44px !important;
  }

  .acl-single-content .toc li,
  .acl-single-content #toc_container li,
  .acl-single-content .toc-box li,
  .acl-single-content .toc-widget-box li {
    padding: 5px 0 !important;
  }
}


/* =========================
   スマホ：AI最新記事を横スクロール化
========================= */
@media (max-width: 768px) {

  .acl-article-grid {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 14px;
    margin-left: -4px;
    margin-right: -4px;
    -webkit-overflow-scrolling: touch;
  }

  .acl-article-grid::-webkit-scrollbar {
    display: none;
  }

  .acl-article-grid .acl-article-card {
    flex: 0 0 84%;
    max-width: 84%;
    scroll-snap-align: start;
  }

  .acl-article-grid .acl-article-card h3 {
    font-size: 16px;
  }

  .acl-article-grid .acl-card-foot {
    margin-top: 16px;
  }
}


/* =========================
   スマホ：カテゴリ別最新3件を横スクロール化
========================= */
@media (max-width: 768px) {

  /* AI最新記事 */
  .acl-article-grid {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 16px;
    margin-left: -4px;
    margin-right: -4px;
    -webkit-overflow-scrolling: touch;
  }

  .acl-article-grid::-webkit-scrollbar {
    display: none;
  }

  .acl-article-grid .acl-article-card {
    flex: 0 0 84%;
    max-width: 84%;
    scroll-snap-align: start;
  }

  /* 作っているもの */
  .acl-product-list {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 16px;
    margin-left: -4px;
    margin-right: -4px;
    -webkit-overflow-scrolling: touch;
  }

  .acl-product-list::-webkit-scrollbar {
    display: none;
  }

  .acl-product-list article {
    flex: 0 0 84%;
    max-width: 84%;
    min-height: 150px;
    scroll-snap-align: start;
    padding: 18px !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .acl-product-list article + article {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  .acl-product-list article span {
    align-self: flex-start;
    margin-top: 16px;
  }

  /* 最新の実験ログ */
  .acl-log-list {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 16px;
    margin-left: -4px;
    margin-right: -4px;
    -webkit-overflow-scrolling: touch;
  }

  .acl-log-list::-webkit-scrollbar {
    display: none;
  }

  .acl-log-list article {
    flex: 0 0 84%;
    max-width: 84%;
    min-height: 150px;
    scroll-snap-align: start;
    padding: 18px !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: #fff;
  }

  .acl-log-list article + article {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  .acl-log-list time {
    display: block;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 11px;
  }

  .acl-log-list a {
    display: block;
    color: #111827;
    font-weight: 900;
    text-decoration: none;
    line-height: 1.5;
  }

  .acl-log-list a:hover {
    color: #00B8A9;
  }

  /* 横スクロール可能感を出す */
  .acl-article-grid .acl-article-card,
  .acl-product-list article,
  .acl-log-list article {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  }
}


/* =========================
   Mobile media navigation
   AI FREAK風の回遊性をAI-Continuity Lab風に調整
========================= */

/* PCでは非表示 */
.acl-mobile-category-nav,
.acl-mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {

  /* 下部ナビ分の余白 */
  body {
    padding-bottom: 72px;
  }

  /* ヘッダー下カテゴリ横スクロール */
  .acl-mobile-category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 16px 12px;
    margin: 0 -16px 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.88);
    -webkit-overflow-scrolling: touch;
  }

  .acl-mobile-category-nav::-webkit-scrollbar {
    display: none;
  }

  .acl-mobile-category-nav a {
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid rgba(0, 184, 169, 0.18);
    border-radius: 999px;
    background: rgba(0, 184, 169, 0.055);
    color: #0f766e;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
  }

  .acl-mobile-category-nav a:active {
    transform: scale(0.98);
  }

  /* 既存ヘッダーナビはスマホでは少し控えめ */
  .acl-header .acl-nav {
    display: none;
  }

  /* AI最新記事：横スクロール */
  .acl-article-grid {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 18px;
    margin-left: -4px;
    margin-right: -4px;
    -webkit-overflow-scrolling: touch;
  }

  .acl-article-grid::-webkit-scrollbar {
    display: none;
  }

  .acl-article-grid .acl-article-card {
    flex: 0 0 86%;
    max-width: 86%;
    scroll-snap-align: start;
  }

  /* 作っているもの：横スクロールカード化 */
  .acl-product-list {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 18px;
    margin-left: -4px;
    margin-right: -4px;
    -webkit-overflow-scrolling: touch;
  }

  .acl-product-list::-webkit-scrollbar {
    display: none;
  }

  .acl-product-list article {
    flex: 0 0 86%;
    max-width: 86%;
    min-height: 154px;
    scroll-snap-align: start;
    padding: 18px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .acl-product-list article + article {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  .acl-product-list article span {
    align-self: flex-start;
    margin-top: 14px;
  }

  /* 実験ログ：横スクロールカード化 */
  .acl-log-list {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 18px;
    margin-left: -4px;
    margin-right: -4px;
    -webkit-overflow-scrolling: touch;
  }

  .acl-log-list::-webkit-scrollbar {
    display: none;
  }

  .acl-log-list article {
    flex: 0 0 86%;
    max-width: 86%;
    min-height: 154px;
    scroll-snap-align: start;
    padding: 18px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  }

  .acl-log-list article + article {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  .acl-log-list time {
    display: block;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 11px;
  }

  .acl-log-list a {
    display: block;
    color: #111827;
    font-weight: 900;
    text-decoration: none;
    line-height: 1.5;
  }

  .acl-log-list a:hover {
    color: #00B8A9;
  }

  /* 下部固定ナビ */
  .acl-mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 9999;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 8px 8px 7px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .acl-mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 42px;
    border-radius: 16px;
    color: #111827;
    text-decoration: none;
    font-weight: 900;
  }

  .acl-mobile-bottom-nav a span {
    font-size: 16px;
    line-height: 1;
    color: #00B8A9;
  }

  .acl-mobile-bottom-nav a small {
    font-size: 9px;
    line-height: 1;
  }

  .acl-mobile-bottom-nav a:active,
  .acl-mobile-bottom-nav a:hover {
    background: rgba(0, 184, 169, 0.08);
  }

  /* フッターが下部ナビに隠れないように */
  .acl-footer {
    padding-bottom: 96px;
  }
}


/* =========================
   スマホ横揺れ・メニューずれ修正
========================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.acl-page {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {

  /* ヘッダー周りの横幅ズレ防止 */
  .acl-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .acl-header-search {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .acl-header-search input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .acl-nav,
  .acl-mobile-category-nav {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* メニュー枠のズレ防止 */
  .acl-mobile-category-nav {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
  }

  /* 横スクロールエリア共通：ページ全体を揺らさない */
  .acl-article-grid,
  .acl-product-list,
  .acl-log-list {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 0 16px;
    box-sizing: border-box;
  }

  .acl-article-grid::-webkit-scrollbar,
  .acl-product-list::-webkit-scrollbar,
  .acl-log-list::-webkit-scrollbar {
    display: none;
  }

  /* カードを1枚完結表示に近づけつつ、横スクロールの気配は残す */
  .acl-article-grid .acl-article-card,
  .acl-product-list article,
  .acl-log-list article {
    flex: 0 0 min(640px, calc(100% - 40px)) !important;
    max-width: min(640px, calc(100% - 40px)) !important;
    min-width: min(640px, calc(100% - 40px)) !important;
    box-sizing: border-box;
    scroll-snap-align: start;
  }

  /* 横スクロール中に縦ページが引っ張られる感を軽減 */
  .acl-article-grid,
  .acl-product-list,
  .acl-log-list {
    scroll-snap-type: x proximity;
  }

  /* セクション内のカードが親から飛び出さないように */
  .acl-section,
  .acl-panel {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
}


/* =========================
   スマホ：上部ヘッダー領域を白に統一
========================= */
@media (max-width: 768px) {

  .acl-header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
  }

  .acl-mobile-category-nav {
    background: #ffffff !important;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  /* ヘッダー外側に背景色が見える場合の保険 */
  .acl-page > .acl-header,
  .acl-page > .acl-mobile-category-nav {
    background-color: #ffffff !important;
  }

  /* ヘッダー直下から淡い背景にする */
  .acl-hero {
    background: transparent;
  }
}


@media (max-width: 768px) {
  .acl-header {
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: calc(100% + 32px) !important;
  }
}


/* =========================
   スマホ：ヘッダー背景を画面幅いっぱい白にする
========================= */
@media (max-width: 768px) {

  .acl-page {
    position: relative;
  }

  .acl-header {
    position: relative;
    z-index: 2;
    background: #ffffff !important;
    overflow: visible !important;
  }

  .acl-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -80px;
    bottom: -1px;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .acl-mobile-category-nav {
    position: relative;
    z-index: 2;
    background: #ffffff !important;
  }

  .acl-mobile-category-nav::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #ffffff;
  }
}


/* =========================
   スマホ：ヘッダー固定
========================= */
@media (max-width: 768px) {

  .acl-header {
    position: sticky !important;
    top: 0;
    z-index: 9998;
    background: #ffffff !important;
  }

  .acl-header::before {
    top: 0;
  }

  /* 固定ヘッダー時の影 */
  .acl-header {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  }

  /* WordPress管理バー表示中の調整 */
  body.admin-bar .acl-header {
    top: 46px;
  }
}


/* =========================
   スマホ：固定ヘッダー修正版
========================= */
@media (max-width: 768px) {

  /* stickyを効かせるため、親要素のoverflowを解除 */
  html,
  body {
    overflow-x: clip !important;
    background: #ffffff !important;
  }

  .acl-page {
    overflow-x: clip !important;
  }

  /* ヘッダーを上部固定 */
  .acl-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  }

  /* ヘッダー背面を画面幅いっぱい白にする */
  .acl-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -120px !important;
    bottom: -1px !important;
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  /* WordPress管理バー表示中 */
  body.admin-bar .acl-header {
    top: 46px !important;
  }

  /* ヘッダー下から淡いグリーン背景 */
  .acl-hero {
    position: relative;
    z-index: 1;
  }
}


/* =========================
   スマホ：上部メニューを4等分で整える
========================= */
@media (max-width: 768px) {

  .acl-header .acl-nav {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    padding: 12px 0 4px;
    overflow: visible;
    white-space: normal;
  }

  .acl-header .acl-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 2px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.03em;
    text-decoration: none;
  }

  .acl-header .acl-nav a::after {
    display: none;
  }

  .acl-header .acl-nav a:hover {
    color: #00B8A9;
  }
}


/* =========================
   スマホ：カテゴリ一覧ページは2カラム表示
   トップページの横スクロールとは分離
========================= */
@media (max-width: 768px) {

  /* サブページ/カテゴリ一覧では横スクロールを解除 */
  body:not(.home) .acl-article-grid,
  body.acl-sub-page:not(.acl-single-page) .acl-article-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body:not(.home) .acl-article-grid .acl-article-card,
  body.acl-sub-page:not(.acl-single-page) .acl-article-grid .acl-article-card {
    flex: none !important;
    max-width: none !important;
    min-width: 0 !important;
    width: 100% !important;
    scroll-snap-align: none !important;
    border-radius: 14px;
  }

  /* カテゴリ一覧カードをコンパクト化 */
  body:not(.home) .acl-article-card,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  body:not(.home) .acl-article-card .acl-thumb,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-thumb {
    min-height: 118px !important;
    height: 118px !important;
  }

  body:not(.home) .acl-article-card img,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card img {
    width: 100%;
    height: 118px !important;
    object-fit: cover;
  }

  body:not(.home) .acl-article-card .acl-labels,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-labels {
    margin-top: 10px;
  }

  body:not(.home) .acl-article-card .acl-labels span,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-labels span {
    font-size: 9px;
    padding: 5px 8px;
  }

  body:not(.home) .acl-article-card h3,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card h3 {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    margin: 10px 0 8px;
    letter-spacing: -0.03em;
  }

  body:not(.home) .acl-article-card p,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card p {
    font-size: 11px !important;
    line-height: 1.55 !important;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body:not(.home) .acl-card-foot,
  body.acl-sub-page:not(.acl-single-page) .acl-card-foot {
    margin-top: 12px;
    font-size: 10px;
  }

  body:not(.home) .acl-card-foot a,
  body.acl-sub-page:not(.acl-single-page) .acl-card-foot a {
    font-size: 10px;
  }

  /* ページ見出しを少しだけ調整 */
  body.acl-sub-page:not(.acl-single-page) h1 {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.05em;
  }
}


/* =========================
   PC表示の崩れをリセット
   スマホ用横スクロールの影響をPCから除外
========================= */
@media (min-width: 769px) {

  html,
  body,
  .acl-page {
    overflow-x: visible !important;
  }

  /* PCではAI最新記事を通常グリッドに戻す */
  .acl-article-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .acl-article-grid .acl-article-card {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    scroll-snap-align: none !important;
  }

  /* PCでは作っているものを通常リストに戻す */
  .acl-product-list {
    display: block !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .acl-product-list article {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    scroll-snap-align: none !important;
    box-shadow: none !important;
  }

  /* PCでは実験ログを通常リストに戻す */
  .acl-log-list {
    display: block !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .acl-log-list article {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    scroll-snap-align: none !important;
    box-shadow: none !important;
  }

  /* PCではスマホ専用ナビを完全非表示 */
  .acl-mobile-category-nav,
  .acl-mobile-bottom-nav {
    display: none !important;
  }

  /* PCヘッダーを通常表示に戻す */
  .acl-header {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
  }

  .acl-header::before,
  .acl-mobile-category-nav::before {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }

  .acl-footer {
    padding-bottom: initial;
  }
}


/* =========================
   PCヘッダー修正：スマホ調整の影響を打ち消す
========================= */
@media (min-width: 769px) {

  .acl-header {
    position: relative !important;
    top: auto !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 28px 40px !important;
    display: grid !important;
    grid-template-columns: auto minmax(320px, 1fr) auto !important;
    align-items: center !important;
    gap: 36px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .acl-header::before,
  .acl-header::after {
    display: none !important;
    content: none !important;
  }

  .acl-logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 180px !important;
  }

  .acl-logo-img {
    max-width: 150px !important;
    height: auto !important;
  }

  .acl-logo-sub {
    display: none !important;
  }

  .acl-header-search {
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 auto !important;
  }

  .acl-header-search input {
    width: 100% !important;
    height: 52px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
  }

  .acl-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 34px !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  .acl-nav a {
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: #111827 !important;
    text-decoration: none !important;
  }

  .acl-mobile-category-nav,
  .acl-mobile-bottom-nav {
    display: none !important;
  }
}


/* =========================
   PC：ヘッダー背景を画面幅いっぱい白に戻す
========================= */
@media (min-width: 769px) {

  body {
    background: #ffffff !important;
  }

  .acl-page {
    background:
      linear-gradient(180deg, #ffffff 0px, #ffffff 140px, #f8fbfb 140px, #ffffff 100%) !important;
  }

  .acl-header {
    background: #ffffff !important;
  }

  .acl-header::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: -1 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  .acl-header {
    position: relative !important;
  }
}


/* =========================
   スマホ：カテゴリ一覧ページを確実に2カラム化
========================= */
@media (max-width: 768px) {

  body.category .acl-article-grid,
  body.archive .acl-article-grid,
  body.blog .acl-article-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.category .acl-article-grid .acl-article-card,
  body.archive .acl-article-grid .acl-article-card,
  body.blog .acl-article-grid .acl-article-card {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    scroll-snap-align: none !important;
  }

  body.category .acl-article-card .acl-thumb,
  body.archive .acl-article-card .acl-thumb,
  body.blog .acl-article-card .acl-thumb {
    height: 118px !important;
    min-height: 118px !important;
  }

  body.category .acl-article-card img,
  body.archive .acl-article-card img,
  body.blog .acl-article-card img {
    width: 100%;
    height: 118px !important;
    object-fit: cover;
  }

  body.category .acl-article-card h3,
  body.archive .acl-article-card h3,
  body.blog .acl-article-card h3 {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
  }

  body.category .acl-article-card p,
  body.archive .acl-article-card p,
  body.blog .acl-article-card p {
    font-size: 11px !important;
    line-height: 1.55 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


/* =========================
   スマホ：カテゴリ一覧2カラムカードの内側余白調整
========================= */
@media (max-width: 768px) {

  body.category .acl-article-card,
  body.archive .acl-article-card,
  body.blog .acl-article-card {
    overflow: hidden;
  }

  body.category .acl-article-card .acl-labels,
  body.archive .acl-article-card .acl-labels,
  body.blog .acl-article-card .acl-labels,
  body.category .acl-article-card h3,
  body.archive .acl-article-card h3,
  body.blog .acl-article-card h3,
  body.category .acl-article-card p,
  body.archive .acl-article-card p,
  body.blog .acl-article-card p,
  body.category .acl-card-foot,
  body.archive .acl-card-foot,
  body.blog .acl-card-foot {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.category .acl-article-card .acl-labels,
  body.archive .acl-article-card .acl-labels,
  body.blog .acl-article-card .acl-labels {
    margin-top: 14px !important;
    margin-bottom: 10px !important;
  }

  body.category .acl-article-card h3,
  body.archive .acl-article-card h3,
  body.blog .acl-article-card h3 {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin: 0 0 10px !important;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  body.category .acl-article-card p,
  body.archive .acl-article-card p,
  body.blog .acl-article-card p {
    margin: 0 0 18px !important;
    font-size: 11px !important;
    line-height: 1.6 !important;
  }

  body.category .acl-card-foot,
  body.archive .acl-card-foot,
  body.blog .acl-card-foot {
    padding-bottom: 14px !important;
    align-items: center;
  }

  body.category .acl-card-foot time,
  body.archive .acl-card-foot time,
  body.blog .acl-card-foot time {
    font-size: 10px !important;
  }

  body.category .acl-card-foot a,
  body.archive .acl-card-foot a,
  body.blog .acl-card-foot a {
    font-size: 10px !important;
    white-space: nowrap;
  }
}


/* =========================
   スマホ：固定ページ型カテゴリ一覧の2カラムカード修正
========================= */
@media (max-width: 768px) {

  body.acl-sub-page:not(.acl-single-page) .acl-article-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    scroll-snap-type: none !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-grid .acl-article-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.03) !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-thumb {
    width: 100% !important;
    height: 116px !important;
    min-height: 116px !important;
    max-height: 116px !important;
    display: block !important;
    overflow: hidden !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-thumb img,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card img {
    width: 100% !important;
    height: 116px !important;
    object-fit: cover !important;
    display: block !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-labels,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card h3,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card p,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-card-foot {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-labels {
    margin: 12px 0 8px !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-labels span {
    font-size: 9px !important;
    padding: 5px 8px !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card h3 {
    margin: 0 0 8px !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    letter-spacing: -0.03em !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card h3 a {
    color: #111827 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card p {
    margin: 0 0 14px !important;
    font-size: 10.5px !important;
    line-height: 1.55 !important;
    color: #4b5563 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-card-foot {
    margin-top: auto !important;
    padding-bottom: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-card-foot time,
  body.acl-sub-page:not(.acl-single-page) .acl-card-foot a {
    font-size: 10px !important;
    white-space: nowrap !important;
  }
}


/* =========================
   スマホ狭幅：固定ページ型カテゴリ一覧を読み物向け1カラムにする
========================= */
@media (max-width: 480px) {

  body.acl-sub-page:not(.acl-single-page) .acl-article-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-thumb {
    height: 174px !important;
    min-height: 174px !important;
    max-height: 174px !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-thumb img,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card img {
    height: 174px !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-labels,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card h3,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card p,
  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-card-foot {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-labels {
    margin: 16px 0 10px !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card .acl-labels span {
    font-size: 11px !important;
    padding: 6px 10px !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card h3 {
    font-size: 17px !important;
    line-height: 1.5 !important;
    letter-spacing: -0.03em !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-article-card p {
    margin-bottom: 18px !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
  }

  body.acl-sub-page:not(.acl-single-page) .acl-card-foot time,
  body.acl-sub-page:not(.acl-single-page) .acl-card-foot a {
    font-size: 12px !important;
  }
}


/* =========================
   PCトップ：dbt/STUDIO風に洗練
   スマホには影響させない
========================= */
@media (min-width: 769px) {

  /* ページ全体：余白と背景を上品に */
  body.home .acl-page,
  body.front-page .acl-page {
    background:
      radial-gradient(circle at 12% 8%, rgba(0, 184, 169, 0.08), transparent 28%),
      linear-gradient(180deg, #ffffff 0px, #ffffff 120px, #f7fbfb 120px, #ffffff 100%) !important;
  }

  /* ヒーロー：dbt/STUDIO風に広めの余白 */
  body.home .acl-hero,
  body.front-page .acl-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 96px 40px 92px;
    gap: 64px;
  }

  body.home .acl-hero h1,
  body.front-page .acl-hero h1 {
    font-size: clamp(56px, 5.2vw, 88px);
    line-height: 1.02;
    letter-spacing: -0.065em;
    max-width: 760px;
  }

  body.home .acl-hero p,
  body.front-page .acl-hero p {
    max-width: 720px;
    font-size: 18px;
    line-height: 2;
    color: #374151;
  }

  /* ラベルを少し洗練 */
  body.home .acl-hero .acl-labels span,
  body.front-page .acl-hero .acl-labels span {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0, 184, 169, 0.07);
    border: 1px solid rgba(0, 184, 169, 0.22);
    color: #0f766e;
    font-size: 13px;
    font-weight: 900;
  }

  body.home .acl-button,
  body.front-page .acl-button {
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  body.home .acl-button-primary,
  body.front-page .acl-button-primary {
    box-shadow: 0 14px 34px rgba(0, 184, 169, 0.22);
  }

  body.home .acl-button-primary:hover,
  body.front-page .acl-button-primary:hover {
    box-shadow: 0 18px 42px rgba(0, 184, 169, 0.28);
  }

  /* 右側カード：影を控えめ高級感 */
  body.home .acl-profile-card,
  body.front-page .acl-profile-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.07);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  /* セクション幅と余白 */
  body.home .acl-section,
  body.front-page .acl-section {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
  }

  body.home .acl-ai-watch,
  body.front-page .acl-ai-watch {
    padding-top: 88px;
    padding-bottom: 68px;
  }

  body.home .acl-section-row,
  body.front-page .acl-section-row {
    margin-bottom: 30px;
  }

  body.home .acl-section h2,
  body.home .acl-panel h2,
  body.front-page .acl-section h2,
  body.front-page .acl-panel h2 {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -0.055em;
  }

  body.home .acl-eyebrow,
  body.front-page .acl-eyebrow {
    color: #0f766e;
    font-weight: 900;
    letter-spacing: 0.02em;
  }

  /* 記事カード：dbt/STUDIO風に影控えめ、余白きれい */
  body.home .acl-article-card,
  body.front-page .acl-article-card {
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.055);
    background: rgba(255, 255, 255, 0.92);
  }

  body.home .acl-article-card:hover,
  body.front-page .acl-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.09);
  }

  body.home .acl-article-card h3,
  body.front-page .acl-article-card h3 {
    font-size: 21px;
    line-height: 1.45;
    letter-spacing: -0.035em;
  }

  body.home .acl-article-card p,
  body.front-page .acl-article-card p {
    color: #4b5563;
    line-height: 1.8;
  }

  /* 2カラムパネル：カード感を上品に */
  body.home .acl-split,
  body.front-page .acl-split {
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 78px;
  }

  body.home .acl-panel,
  body.front-page .acl-panel {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 22px 64px rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.9);
  }

  body.home .acl-product-list article,
  body.home .acl-log-list article,
  body.front-page .acl-product-list article,
  body.front-page .acl-log-list article {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  /* 下部のビジュアルセクション：中央に余白を持たせる */
  body.home .acl-feature,
  body.front-page .acl-feature {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 68px 40px 96px;
  }

  body.home .acl-feature img,
  body.front-page .acl-feature img {
    filter: drop-shadow(0 24px 48px rgba(15, 23, 42, 0.10));
  }

  /* フッター手前の黒セクションをLPっぽく */
  body.home .acl-footer,
  body.front-page .acl-footer {
    margin-top: 0;
  }

  body.home .acl-footer::before,
  body.front-page .acl-footer::before {
    content: "コードは書かない。でも、システムはつくる。";
    display: block;
    max-width: 1180px;
    margin: 0 auto 64px;
    padding: 0 40px;
    color: #ffffff;
    font-size: clamp(42px, 4vw, 72px);
    line-height: 1.12;
    letter-spacing: -0.065em;
    font-weight: 900;
  }
}


/* =========================
   PC：ヘッダー/フッター崩れ修正
========================= */
@media (min-width: 769px) {

  /* 横スクロール・幅ズレ防止 */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden !important;
    background: #ffffff !important;
  }

  .acl-page {
    max-width: 100%;
    overflow-x: hidden !important;
  }

  /* PCヘッダーを安定した横並びに戻す */
  .acl-header {
    position: relative !important;
    top: auto !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 24px 40px !important;
    display: grid !important;
    grid-template-columns: 220px minmax(280px, 520px) auto !important;
    align-items: center !important;
    gap: 36px !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  .acl-header::before,
  .acl-header::after {
    display: none !important;
    content: none !important;
  }

  .acl-logo {
    min-width: 0 !important;
  }

  .acl-logo-img {
    max-width: 150px !important;
    height: auto !important;
  }

  .acl-logo-sub {
    display: none !important;
  }

  .acl-header-search {
    width: 100% !important;
    max-width: 520px !important;
    margin: 0 !important;
  }

  .acl-header-search input {
    width: 100% !important;
    height: 50px !important;
    font-size: 15px !important;
  }

  .acl-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 30px !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  .acl-nav a {
    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    color: #111827 !important;
    text-decoration: none !important;
  }

  /* ヘッダー背景を白に固定 */
  .acl-page {
    background:
      linear-gradient(180deg, #ffffff 0px, #ffffff 118px, #f7fbfb 118px, #ffffff 100%) !important;
  }

  /* 追加したフッター大見出しを削除 */
  body.home .acl-footer::before,
  body.front-page .acl-footer::before {
    display: none !important;
    content: none !important;
  }

  /* フッターは既存デザインを活かす */
  body.home .acl-footer,
  body.front-page .acl-footer {
    margin-top: 0 !important;
  }

  .acl-footer {
    overflow: hidden !important;
  }
}


/* =========================
   PC：全幅レイアウトに戻す
   背景・ヘッダー・フッターは全幅
   中身だけ中央寄せ
========================= */
@media (min-width: 769px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    background: #ffffff !important;
  }

  .acl-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    background:
      linear-gradient(180deg, #ffffff 0px, #ffffff 118px, #f7fbfb 118px, #ffffff 100%) !important;
  }

  /* ヘッダーは中身を中央幅、背景は全幅 */
  .acl-header {
    max-width: 1180px !important;
    margin: 0 auto !important;
    position: relative !important;
    background: #ffffff !important;
  }

  .acl-header::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: -1 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  }

  /* ヒーロー背景は全幅、中身は中央 */
  .acl-hero {
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 通常セクションは中身だけ中央 */
  .acl-section,
  .acl-feature {
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* AI最新記事周辺の背景を全幅にする */
  .acl-ai-watch {
    position: relative !important;
  }

  .acl-ai-watch::before {
    content: "" !important;
    position: absolute !important;
    z-index: -1 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    background:
      radial-gradient(circle at 20% 0%, rgba(0, 184, 169, 0.07), transparent 30%),
      #f7fbfb !important;
  }

  /* フッター黒背景を画面全幅に戻す */
  .acl-footer {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    background: #151515 !important;
  }

  .acl-footer-grid,
  .acl-footer-bottom {
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* フッターの追加見出しは消したまま */
  body.home .acl-footer::before,
  body.front-page .acl-footer::before {
    display: none !important;
    content: none !important;
  }
}


/* =========================
   dbt / STUDIO風 グラデーション背景
========================= */

/* 全体背景：白ベースに淡い光 */
.acl-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(0, 184, 169, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(127, 232, 220, 0.16), transparent 30%),
    radial-gradient(circle at 50% 48%, rgba(235, 255, 252, 0.9), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f3fbfa 28%, #ffffff 68%, #ffffff 100%) !important;
}

/* ヒーロー背景：dbt/STUDIO風の広い淡グラデーション */
.acl-hero {
  position: relative;
  z-index: 1;
}

.acl-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40px;
  bottom: -64px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 22% 16%, rgba(0, 184, 169, 0.20), transparent 30%),
    radial-gradient(circle at 78% 10%, rgba(164, 244, 232, 0.30), transparent 34%),
    linear-gradient(135deg, #effcfb 0%, #ffffff 46%, #f3fbfa 100%);
}

/* AI最新記事エリア：白に溶ける淡い面 */
.acl-ai-watch {
  position: relative;
  z-index: 1;
}

.acl-ai-watch::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40px;
  bottom: -40px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 184, 169, 0.10), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(188, 247, 238, 0.32), transparent 32%),
    linear-gradient(180deg, #f7fdfc 0%, #ffffff 100%);
}

/* 中段も少しだけ光を入れる */
.acl-split {
  position: relative;
  z-index: 1;
}

.acl-split::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -32px;
  bottom: -80px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 20%, rgba(0, 184, 169, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fdfc 55%, #ffffff 100%);
}

/* カードを背景から少し浮かせる */
.acl-article-card,
.acl-panel,
.acl-profile-card {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* 黒フッター前を自然につなぐ */
.acl-footer {
  position: relative;
}

.acl-footer::after {
  content: "";
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #151515);
  pointer-events: none;
}

/* スマホは少し控えめ */
@media (max-width: 768px) {
  .acl-page {
    background:
      radial-gradient(circle at 20% 4%, rgba(0, 184, 169, 0.12), transparent 26%),
      linear-gradient(180deg, #ffffff 0%, #f3fbfa 34%, #ffffff 100%) !important;
  }

  .acl-hero::before {
    top: -24px;
    bottom: -40px;
    background:
      radial-gradient(circle at 30% 12%, rgba(0, 184, 169, 0.14), transparent 32%),
      linear-gradient(180deg, #f1fbfa 0%, #ffffff 100%);
  }

  .acl-ai-watch::before,
  .acl-split::before {
    background:
      linear-gradient(180deg, #f7fdfc 0%, #ffffff 100%);
  }
}


/* =========================
   PC：ヘッダー白固定・線切れ修正
========================= */
@media (min-width: 769px) {

  /* ページ背景はヘッダー下から効かせる */
  .acl-page {
    background:
      linear-gradient(180deg, #ffffff 0px, #ffffff 118px, #f5fbfa 118px, #ffffff 72%, #ffffff 100%) !important;
  }

  /* ヘッダー本体 */
  .acl-header {
    position: relative !important;
    z-index: 20 !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }

  /* ヘッダー背面を画面全幅で白にする */
  .acl-header::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: -1 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
  }

  /* ヘッダー下の線を画面全幅で引く */
  .acl-header::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 1px !important;
    transform: translateX(-50%) !important;
    background: rgba(15, 23, 42, 0.08) !important;
  }

  /* ヒーローのグラデーションはヘッダーに食い込ませない */
  .acl-hero::before {
    top: 0 !important;
    bottom: -64px !important;
    background:
      radial-gradient(circle at 22% 10%, rgba(0, 184, 169, 0.16), transparent 30%),
      radial-gradient(circle at 82% 12%, rgba(164, 244, 232, 0.22), transparent 34%),
      linear-gradient(135deg, #f2fbfa 0%, #ffffff 48%, #f6fcfb 100%) !important;
  }

  /* AI最新記事の背景線・面の切れ防止 */
  .acl-ai-watch::before {
    top: -56px !important;
    bottom: -48px !important;
    background:
      radial-gradient(circle at 18% 0%, rgba(0, 184, 169, 0.09), transparent 28%),
      radial-gradient(circle at 90% 20%, rgba(188, 247, 238, 0.26), transparent 32%),
      linear-gradient(180deg, #f7fdfc 0%, #ffffff 100%) !important;
  }

  /* 途中で見える細い線を弱める */
  .acl-ai-watch,
  .acl-section,
  .acl-split {
    border-top-color: rgba(15, 23, 42, 0.04) !important;
  }
}


/* =========================
   PC：ヘッダー背景を完全に白へ固定
========================= */
@media (min-width: 769px) {

  /* ページ上部に白い帯を敷く */
  .acl-page {
    position: relative !important;
  }

  .acl-page::before {
    content: "" !important;
    position: absolute !important;
    z-index: 1 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 118px !important;
    background: #ffffff !important;
    pointer-events: none !important;
  }

  /* ヘッダーを白帯の上に置く */
  .acl-header {
    position: relative !important;
    z-index: 5 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border-bottom: none !important;
  }

  /* ヘッダー内の擬似背景を全部白に統一 */
  .acl-header::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: -1 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
  }

  /* ヘッダー下線だけ全幅で引く */
  .acl-header::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 1px !important;
    transform: translateX(-50%) !important;
    background: rgba(15, 23, 42, 0.08) !important;
  }

  /* ヘッダー直下からグラデーション開始 */
  .acl-hero {
    position: relative !important;
    z-index: 2 !important;
  }

  .acl-hero::before {
    top: 0 !important;
  }
}


/* =========================
   PC：Hero背景だけグラデーション、Hero下は白に整理
========================= */
@media (min-width: 769px) {

  /* ページ全体は白ベースに戻す */
  .acl-page {
    background: #ffffff !important;
  }

  /* Heroだけ全幅グラデーション */
  .acl-hero {
    position: relative !important;
    z-index: 2 !important;
  }

  .acl-hero::before {
    content: "" !important;
    position: absolute !important;
    z-index: -1 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    background:
      radial-gradient(circle at 22% 18%, rgba(0, 184, 169, 0.16), transparent 30%),
      radial-gradient(circle at 78% 8%, rgba(166, 244, 232, 0.24), transparent 34%),
      linear-gradient(135deg, #f1fbfa 0%, #ffffff 48%, #f6fcfb 100%) !important;
  }

  /* Hero下からは白 */
  .acl-ai-watch::before,
  .acl-split::before {
    display: none !important;
    content: none !important;
  }

  .acl-ai-watch,
  .acl-split,
  .acl-feature {
    background: #ffffff !important;
  }

  /* セクション間の境界線が途中で切れて見える場合を消す */
  .acl-ai-watch,
  .acl-section,
  .acl-split {
    border-top: none !important;
  }

  /* AI最新記事以降は白い余白で見せる */
  body.home .acl-ai-watch,
  body.front-page .acl-ai-watch {
    padding-top: 88px !important;
    padding-bottom: 72px !important;
  }

  body.home .acl-split,
  body.front-page .acl-split {
    padding-top: 32px !important;
    padding-bottom: 88px !important;
  }
}


/* =========================
   PC：記事エリアの大きな白背景を消して、カードだけ浮かせる
========================= */
@media (min-width: 769px) {

  /* Hero下からAI最新記事までは淡い背景で自然につなぐ */
  .acl-page {
    background:
      linear-gradient(180deg, #ffffff 0px, #ffffff 118px, #f3fbfa 118px, #f8fdfc 42%, #ffffff 68%, #ffffff 100%) !important;
  }

  /* AI最新記事セクションの白い大箱感を消す */
  body.home .acl-ai-watch,
  body.front-page .acl-ai-watch {
    background: transparent !important;
    padding-top: 96px !important;
    padding-bottom: 82px !important;
  }

  body.home .acl-ai-watch::before,
  body.front-page .acl-ai-watch::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: -1 !important;
    top: -40px !important;
    bottom: -40px !important;
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    background:
      radial-gradient(circle at 22% 8%, rgba(0, 184, 169, 0.10), transparent 26%),
      radial-gradient(circle at 84% 20%, rgba(188, 247, 238, 0.22), transparent 30%),
      linear-gradient(180deg, #f4fbfa 0%, #fbfefd 60%, #ffffff 100%) !important;
  }

  /* セクション内に大きな白面が出ないようにする */
  body.home .acl-ai-watch,
  body.front-page .acl-ai-watch,
  body.home .acl-section,
  body.front-page .acl-section {
    box-shadow: none !important;
  }

  /* カードは白で浮かせる */
  body.home .acl-article-card,
  body.front-page .acl-article-card {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.055) !important;
  }

  body.home .acl-article-card:hover,
  body.front-page .acl-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 64px rgba(15, 23, 42, 0.09) !important;
  }

  /* 作っているもの以降は白に自然に戻す */
  body.home .acl-split,
  body.front-page .acl-split,
  body.home .acl-feature,
  body.front-page .acl-feature {
    background: transparent !important;
  }

  body.home .acl-split::before,
  body.front-page .acl-split::before,
  body.home .acl-feature::before,
  body.front-page .acl-feature::before {
    display: none !important;
    content: none !important;
  }

  /* パネルは白カードとして維持 */
  body.home .acl-panel,
  body.front-page .acl-panel {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.045) !important;
  }

  /* 不自然な区切り線を消す */
  body.home .acl-ai-watch,
  body.front-page .acl-ai-watch,
  body.home .acl-split,
  body.front-page .acl-split {
    border-top: none !important;
  }
}


/* =========================
   PC：Hero下〜中段まで背景を自然につなげる
========================= */
@media (min-width: 769px) {

  /* ページ背景を上から中段まで淡く、下部で白に戻す */
  .acl-page {
    background:
      linear-gradient(
        180deg,
        #ffffff 0px,
        #ffffff 118px,
        #f3fbfa 118px,
        #f6fcfb 34%,
        #ffffff 72%,
        #ffffff 100%
      ) !important;
  }

  /* AI最新記事の背景 */
  body.home .acl-ai-watch::before,
  body.front-page .acl-ai-watch::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: -1 !important;
    top: -40px !important;
    bottom: -120px !important;
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    background:
      radial-gradient(circle at 22% 8%, rgba(0, 184, 169, 0.10), transparent 28%),
      radial-gradient(circle at 82% 30%, rgba(188, 247, 238, 0.20), transparent 34%),
      linear-gradient(180deg, #f4fbfa 0%, #f8fdfc 70%, #ffffff 100%) !important;
  }

  /* 作っているもの周辺は白い箱ではなく透明に */
  body.home .acl-split,
  body.front-page .acl-split {
    position: relative !important;
    background: transparent !important;
  }

  body.home .acl-split::before,
  body.front-page .acl-split::before {
    display: none !important;
    content: none !important;
  }

  /* 中段カードだけ白で浮かせる */
  body.home .acl-panel,
  body.front-page .acl-panel {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.045) !important;
  }

  /* 画像・3カードエリア以降は自然に白へ */
  body.home .acl-feature,
  body.front-page .acl-feature {
    background: transparent !important;
  }
}


/* =========================
   PC：Hero下〜フッター前まで背景をなめらかに統一
========================= */
@media (min-width: 769px) {

  /* ページ全体：ヘッダー以外は淡い背景→下部で白へ */
  .acl-page {
    background:
      linear-gradient(
        180deg,
        #ffffff 0px,
        #ffffff 118px,
        #f3fbfa 118px,
        #f5fbfa 58%,
        #ffffff 82%,
        #ffffff 100%
      ) !important;
  }

  /* AI最新記事・中段・特徴エリアの個別背景を消す */
  .acl-ai-watch::before,
  .acl-split::before,
  .acl-feature::before,
  body.home .acl-ai-watch::before,
  body.front-page .acl-ai-watch::before,
  body.home .acl-split::before,
  body.front-page .acl-split::before,
  body.home .acl-feature::before,
  body.front-page .acl-feature::before {
    display: none !important;
    content: none !important;
    background: none !important;
  }

  /* セクション自体も透明にする */
  .acl-ai-watch,
  .acl-split,
  .acl-feature,
  body.home .acl-ai-watch,
  body.front-page .acl-ai-watch,
  body.home .acl-split,
  body.front-page .acl-split,
  body.home .acl-feature,
  body.front-page .acl-feature {
    background: transparent !important;
    border-top: none !important;
    box-shadow: none !important;
  }

  /* カードだけ白で浮かせる */
  .acl-article-card,
  .acl-panel,
  body.home .acl-article-card,
  body.front-page .acl-article-card,
  body.home .acl-panel,
  body.front-page .acl-panel {
    background: rgba(255, 255, 255, 0.96) !important;
  }

  /* フッターは黒のまま */
  .acl-footer {
    background: #151515 !important;
  }
}


/* =========================
   スマホ：背景切り替わり・線切れ修正
   PCには影響させない
========================= */
@media (max-width: 768px) {

  /* スマホ全体背景を1本化 */
  html,
  body {
    background: #ffffff !important;
    max-width: 100%;
    overflow-x: clip !important;
  }

  .acl-page {
    background:
      linear-gradient(
        180deg,
        #ffffff 0px,
        #ffffff 190px,
        #f3fbfa 190px,
        #f6fcfb 72%,
        #ffffff 88%,
        #ffffff 100%
      ) !important;
    overflow-x: clip !important;
  }

  /* ヘッダーは白固定 */
  .acl-header {
    background: #ffffff !important;
    border-bottom: none !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
  }

  .acl-header::before {
    background: #ffffff !important;
    border-bottom: none !important;
  }

  .acl-header::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 1px !important;
    transform: translateX(-50%) !important;
    background: rgba(15, 23, 42, 0.08) !important;
  }

  /* セクションごとの背景疑似要素をスマホでは消す */
  .acl-hero::before,
  .acl-ai-watch::before,
  .acl-split::before,
  .acl-feature::before,
  body.home .acl-hero::before,
  body.front-page .acl-hero::before,
  body.home .acl-ai-watch::before,
  body.front-page .acl-ai-watch::before,
  body.home .acl-split::before,
  body.front-page .acl-split::before,
  body.home .acl-feature::before,
  body.front-page .acl-feature::before {
    display: none !important;
    content: none !important;
    background: none !important;
  }

  /* セクション本体も透明にして、背景はacl-pageに任せる */
  .acl-hero,
  .acl-ai-watch,
  .acl-split,
  .acl-feature,
  .acl-section,
  .acl-panel,
  body.home .acl-hero,
  body.front-page .acl-hero,
  body.home .acl-ai-watch,
  body.front-page .acl-ai-watch,
  body.home .acl-split,
  body.front-page .acl-split,
  body.home .acl-feature,
  body.front-page .acl-feature {
    border-top: none !important;
  }

  .acl-hero,
  .acl-ai-watch,
  .acl-split,
  .acl-feature,
  .acl-section {
    background: transparent !important;
    box-shadow: none !important;
  }

  /* カード・パネルは白で維持 */
  .acl-article-card,
  .acl-panel,
  .acl-profile-card {
    background: rgba(255, 255, 255, 0.96) !important;
  }

  /* 横スクロール領域の背景を透明に */
  .acl-article-grid,
  .acl-product-list,
  .acl-log-list {
    background: transparent !important;
  }

  /* フッターは黒のまま */
  .acl-footer {
    background: #151515 !important;
  }

  .acl-footer::after,
  .acl-footer::before {
    display: none !important;
  }
}


/* =========================
   フッター下の白帯を消す
========================= */
html,
body {
  background: #151515 !important;
}

.acl-page {
  margin-bottom: 0 !important;
}

.acl-footer {
  margin-bottom: 0 !important;
  border-bottom: none !important;
}

.acl-footer-bottom {
  padding-bottom: 0 !important;
}


/* =========================
   フッター下の白帯を黒で埋める
========================= */
.acl-footer {
  background: #151515 !important;
  border-bottom: 80px solid #151515 !important;
  margin-bottom: 0 !important;
}

html,
body {
  background: #151515 !important;
}

.acl-page {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* =========================
   PC：カテゴリページ上部タイトルエリア調整
========================= */
@media (min-width: 769px) {

  .acl-archive-hero,
  .acl-category-hero,
  .acl-page-hero {
    width: min(1120px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
    padding: 72px 0 48px !important;
    background: transparent !important;
  }

  .acl-archive-hero h1,
  .acl-category-hero h1,
  .acl-page-hero h1 {
    font-size: clamp(40px, 4.2vw, 64px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.04em !important;
    margin: 0 0 24px !important;
  }

  .acl-archive-hero p,
  .acl-category-hero p,
  .acl-page-hero p {
    font-size: 18px !important;
    line-height: 1.9 !important;
    max-width: 760px !important;
    margin: 0 !important;
  }

  .acl-archive-main,
  .acl-category-main {
    width: min(1120px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
  }
}

/* =========================
   スマホ：カテゴリページ上部タイトル調整
========================= */
@media (max-width: 768px) {

  .acl-archive-hero,
  .acl-category-hero,
  .acl-page-hero {
    width: calc(100% - 32px) !important;
    margin: 0 auto !important;
    padding: 40px 0 32px !important;
    background: transparent !important;
  }

  .acl-archive-hero h1,
  .acl-category-hero h1,
  .acl-page-hero h1 {
    font-size: 34px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.04em !important;
    margin: 0 0 18px !important;
  }

  .acl-archive-hero p,
  .acl-category-hero p,
  .acl-page-hero p {
    font-size: 15px !important;
    line-height: 1.8 !important;
    margin: 0 !important;
  }
}


/* =========================
   カテゴリ固定ページ：上部タイトルエリア調整
   対象：AI Watch / 実験ログ / 作っているもの / 使用ツール
========================= */
@media (min-width: 769px) {

  .acl-sub-hero {
    width: min(1120px, calc(100% - 48px)) !important;
    margin: 0 auto !important;
    padding: 72px 0 56px !important;
    background: transparent !important;
  }

  .acl-sub-hero h1 {
    font-size: clamp(44px, 4.4vw, 72px) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.05em !important;
    margin: 0 0 24px !important;
  }

  .acl-sub-hero p {
    font-size: 18px !important;
    line-height: 1.9 !important;
    max-width: 760px !important;
    margin: 0 !important;
  }

  .acl-sub-section,
  .acl-sub-section .acl-section-row,
  .acl-sub-section .acl-article-grid {
    width: min(1120px, calc(100% - 48px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* スマホ側も念のため整える */
@media (max-width: 768px) {

  .acl-sub-hero {
    width: calc(100% - 32px) !important;
    margin: 0 auto !important;
    padding: 40px 0 32px !important;
    background: transparent !important;
  }

  .acl-sub-hero h1 {
    font-size: 36px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.04em !important;
    margin: 0 0 18px !important;
  }

  .acl-sub-hero p {
    font-size: 15px !important;
    line-height: 1.8 !important;
    margin: 0 !important;
  }
}


/* =========================
   カテゴリ固定ページ：背景を全面白に統一
   対象：AI Watch / 実験ログ / 作っているもの / 使用ツール
========================= */

/* PC・スマホ共通 */
.page-template-default .acl-page,
.acl-page:has(.acl-sub-hero) {
  background: #ffffff !important;
}

/* サブページのヒーローも白 */
.acl-sub-hero {
  background: #ffffff !important;
}

/* サブページ本文エリアも白 */
.acl-sub-section {
  background: #ffffff !important;
}

/* 背景用の疑似要素があれば消す */
.acl-sub-hero::before,
.acl-sub-hero::after,
.acl-sub-section::before,
.acl-sub-section::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

/* 記事カードは白背景のまま、薄い境界線で見せる */
.acl-sub-section .acl-article-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.035) !important;
}

/* カード上部のサムネ枠だけ淡い色にする */
.acl-sub-section .acl-thumb,
.acl-sub-section .acl-article-card > a:first-child,
.acl-sub-section .acl-article-card .post-thumbnail {
  background: #f3fbfa !important;
}


/* =========================
   About page v1.5
========================= */
body.acl-about-page .acl-about-hero,
body.acl-about-page .acl-about-section {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
  color: #111111;
}

body.acl-about-page .acl-about-hero {
  padding: 34px 0 48px;
}

body.acl-about-page .acl-about-hero-inner {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(56px, 8vw, 96px);
  min-height: 310px;
}

body.acl-about-page .acl-eyebrow {
  margin: 0 0 10px;
  color: #00b8a9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

body.acl-about-page .acl-about-hero h1,
body.acl-about-page .acl-about-section h2 {
  margin: 0;
  color: #111111;
  font-weight: 900;
  letter-spacing: 0;
}

body.acl-about-page .acl-about-hero h1 {
  font-size: clamp(44px, 5.2vw, 64px);
  line-height: 1.02;
}

body.acl-about-page .acl-about-profile > p:not(.acl-eyebrow),
body.acl-about-page .acl-about-lead > p,
body.acl-about-page .acl-about-card p,
body.acl-about-page .acl-about-link-card p,
body.acl-about-page .acl-about-manifesto-steps {
  color: #333333;
  font-size: 14px;
  line-height: 1.8;
}

body.acl-about-page .acl-about-profile > p:not(.acl-eyebrow) {
  max-width: 520px;
  margin: 16px 0 0;
  font-weight: 700;
  line-height: 1.85;
}

body.acl-about-page .acl-about-avatar {
  display: grid;
  width: 240px;
  height: 240px;
  place-items: center;
  justify-self: end;
  overflow: hidden;
  border: 3px solid rgba(0, 245, 212, 0.82);
  border-radius: 50%;
  background: #f2fffd;
  box-shadow: 0 22px 52px rgba(0, 184, 169, 0.14);
  color: #00b8a9;
  font-size: 34px;
  font-weight: 900;
}

body.acl-about-page .acl-about-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.acl-about-page .acl-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

body.acl-about-page .acl-about-actions .acl-button {
  display: inline-flex;
  min-width: 126px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

body.acl-about-page .acl-about-actions .acl-button-primary {
  border-color: transparent;
  background: #00f5d4;
}

body.acl-about-page .acl-about-actions .acl-button:hover {
  border-color: rgba(0, 220, 195, 0.55);
  background-color: #fbfffe;
  box-shadow: 0 10px 24px rgba(0, 184, 169, 0.10);
  transform: translateY(-2px);
}

body.acl-about-page .acl-about-button-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

body.acl-about-page .acl-about-card,
body.acl-about-page .acl-about-link-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

body.acl-about-page .acl-about-section {
  padding: 34px 0 36px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

body.acl-about-page .acl-about-section-head {
  margin-bottom: 18px;
}

body.acl-about-page .acl-about-lead {
  display: grid;
  grid-template-columns: minmax(270px, 390px) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 90px);
  align-items: start;
}

body.acl-about-page .acl-about-section h2 {
  position: relative;
  display: inline-block;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.24;
}

body.acl-about-page .acl-about-section h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: #00f5d4;
}

body.acl-about-page .acl-about-lead > p {
  max-width: 680px;
  margin: 0;
  font-weight: 700;
}

body.acl-about-page .acl-about-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

body.acl-about-page .acl-about-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.acl-about-page .acl-about-card {
  min-height: 142px;
  padding: 16px 12px 14px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

body.acl-about-page .acl-about-card:hover {
  border-color: rgba(0, 220, 195, 0.38);
  background-color: #fbfffe;
  box-shadow: 0 10px 24px rgba(0, 184, 169, 0.08);
  transform: translateY(-2px);
}

body.acl-about-page .acl-about-card-icon,
body.acl-about-page .acl-about-link-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0 auto 12px;
  border: 1px solid rgba(0, 184, 169, 0.28);
  border-radius: 12px;
  background: rgba(0, 245, 212, 0.10);
  color: #00b8a9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

body.acl-about-page .acl-about-card h3 {
  margin: 0 0 6px;
  color: #111111;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

body.acl-about-page .acl-about-card p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.55;
}

body.acl-about-page .acl-about-manifesto {
  display: grid;
  grid-template-columns: 130px minmax(220px, 1.1fr) minmax(0, 2fr);
  gap: 28px;
  align-items: center;
  min-height: 92px;
  padding: 20px 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-left: 6px solid #00f5d4;
  border-radius: 8px;
  box-shadow: none;
}

body.acl-about-page .acl-about-manifesto .acl-about-section-head {
  margin-bottom: 0;
}

body.acl-about-page .acl-about-manifesto h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.28;
}

body.acl-about-page .acl-about-manifesto h2::after {
  display: none;
}

body.acl-about-page .acl-about-manifesto-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  color: #111111;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  text-align: center;
}

body.acl-about-page .acl-about-manifesto-steps span::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #00f5d4;
}

body.acl-about-page .acl-about-links {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 24px;
}

body.acl-about-page .acl-about-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

body.acl-about-page .acl-about-link-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  color: #111111;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

body.acl-about-page .acl-about-link-card::after {
  content: "↗";
  position: static;
  color: #00dcc3;
  font-size: 16px;
  font-weight: 900;
}

body.acl-about-page .acl-about-link-card:hover {
  border-color: rgba(0, 220, 195, 0.42);
  background-color: #fbfffe;
  box-shadow: 0 10px 24px rgba(0, 184, 169, 0.08);
  transform: translateY(-2px);
}

body.acl-about-page .acl-about-link-icon {
  margin: 0;
}

body.acl-about-page .acl-about-link-card strong {
  display: block;
  margin-bottom: 2px;
  color: #111111;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

body.acl-about-page .acl-about-link-card p {
  margin: 0;
  padding-right: 0;
  font-size: 11px;
  line-height: 1.4;
}

body.acl-about-page .acl-about-links h2 {
  font-size: 18px;
  line-height: 1.35;
}

@media (max-width: 900px) {

  body.acl-about-page .acl-about-lead,
  body.acl-about-page .acl-about-duo,
  body.acl-about-page .acl-about-links {
    grid-template-columns: 1fr;
  }

  body.acl-about-page .acl-about-lead {
    gap: 24px;
  }

  body.acl-about-page .acl-about-links {
    gap: 14px;
  }

}

@media (max-width: 768px) {

  body.acl-about-page .acl-about-hero,
  body.acl-about-page .acl-about-section {
    width: calc(100% - 24px);
  }

  body.acl-about-page .acl-about-hero {
    padding: 18px 0 20px;
  }

  body.acl-about-page .acl-about-hero-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    text-align: center;
  }

  body.acl-about-page .acl-about-avatar {
    width: 128px;
    height: 128px;
    justify-self: center;
  }

  body.acl-about-page .acl-about-hero h1 {
    font-size: 26px;
    line-height: 1.08;
  }

  body.acl-about-page .acl-about-profile > p:not(.acl-eyebrow),
  body.acl-about-page .acl-about-lead > p {
    font-size: 11px;
    line-height: 1.8;
  }

  body.acl-about-page .acl-about-profile > p:not(.acl-eyebrow) {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  body.acl-about-page .acl-about-card-grid,
  body.acl-about-page .acl-about-link-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.acl-about-page .acl-about-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 0;
    padding: 14px;
    text-align: left;
  }

  body.acl-about-page .acl-about-section {
    padding: 18px 0 20px;
  }

  body.acl-about-page .acl-about-section h2 {
    font-size: 20px;
    line-height: 1.24;
  }

  body.acl-about-page .acl-about-section-head {
    margin-bottom: 12px;
  }

  body.acl-about-page .acl-about-actions {
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
  }

  body.acl-about-page .acl-about-actions .acl-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
    font-size: 11px;
  }

  body.acl-about-page .acl-about-card-icon {
    grid-row: span 2;
    margin: 0;
  }

  body.acl-about-page .acl-about-card h3 {
    margin: 0;
    font-size: 14px;
  }

  body.acl-about-page .acl-about-card p {
    grid-column: 2;
  }

  body.acl-about-page .acl-about-manifesto {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 18px 18px 20px;
  }

  body.acl-about-page .acl-about-manifesto-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: 13px;
    text-align: left;
  }

  body.acl-about-page .acl-about-manifesto-steps span::after {
    margin-left: 0;
  }

  body.acl-about-page .acl-about-link-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 12px 14px;
  }

  body.acl-about-page .acl-about-links h2 {
    font-size: 20px;
  }

}


/* =========================
   トップページ：横線・背景境界線をなくす
========================= */

/* トップページ全体の背景を1本化 */
body.home .acl-page,
body.front-page .acl-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 184, 169, 0.10) 0%, rgba(0, 184, 169, 0.04) 34%, rgba(255,255,255,0) 66%),
    linear-gradient(180deg, #f4fbfa 0%, #f7fcfb 42%, #ffffff 100%) !important;
}

/* Hero下・各セクション上の横線を消す */
body.home .acl-hero,
body.front-page .acl-hero,
body.home .acl-ai-watch,
body.front-page .acl-ai-watch,
body.home .acl-section,
body.front-page .acl-section,
body.home .acl-split,
body.front-page .acl-split,
body.home .acl-feature,
body.front-page .acl-feature {
  border-top: none !important;
  border-bottom: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 疑似要素による背景・境界線を消す */
body.home .acl-hero::before,
body.home .acl-hero::after,
body.home .acl-ai-watch::before,
body.home .acl-ai-watch::after,
body.home .acl-section::before,
body.home .acl-section::after,
body.home .acl-split::before,
body.home .acl-split::after,
body.home .acl-feature::before,
body.home .acl-feature::after,
body.front-page .acl-hero::before,
body.front-page .acl-hero::after,
body.front-page .acl-ai-watch::before,
body.front-page .acl-ai-watch::after,
body.front-page .acl-section::before,
body.front-page .acl-section::after,
body.front-page .acl-split::before,
body.front-page .acl-split::after,
body.front-page .acl-feature::before,
body.front-page .acl-feature::after {
  display: none !important;
  content: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* HeroとAI最新記事の間の余白を自然に */
body.home .acl-hero,
body.front-page .acl-hero {
  padding-bottom: 120px !important;
}

body.home .acl-ai-watch,
body.front-page .acl-ai-watch {
  padding-top: 120px !important;
}

/* カードだけ白で浮かせる */
body.home .acl-article-card,
body.front-page .acl-article-card,
body.home .acl-panel,
body.front-page .acl-panel,
body.home .acl-profile-card,
body.front-page .acl-profile-card {
  background: rgba(255, 255, 255, 0.96) !important;
}

/* ヘッダー直下の線も薄く、目立たないように */
body.home .acl-header,
body.front-page .acl-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.04) !important;
  box-shadow: none !important;
}


/* =========================
   トップ：課題 → 解決セクション
========================= */
.acl-problem-solution {
  padding: 40px 24px 120px;
  background: transparent;
}

.acl-ps-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.acl-ps-head {
  max-width: 780px;
  margin-bottom: 36px;
}

.acl-ps-head span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 184, 169, 0.10);
  color: #008f84;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.acl-ps-head h2 {
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin: 0 0 20px;
  color: #101010;
}

.acl-ps-head p {
  font-size: 17px;
  line-height: 1.9;
  color: #3f454b;
  margin: 0;
}

.acl-ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.acl-ps-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.06);
}

.acl-ps-label {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8fbf8;
  color: #008f84;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.acl-ps-card h3 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  color: #111;
}

.acl-ps-card p,
.acl-ps-card li {
  font-size: 15px;
  line-height: 1.9;
  color: #3f454b;
}

.acl-ps-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.acl-ps-card li + li {
  margin-top: 8px;
}

.acl-ps-solution {
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 184, 169, 0.14), transparent 42%),
    #ffffff;
}

@media (max-width: 768px) {
  .acl-problem-solution {
    padding: 32px 16px 72px;
  }

  .acl-ps-head h2 {
    font-size: 34px;
  }

  .acl-ps-head p {
    font-size: 15px;
  }

  .acl-ps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .acl-ps-card {
    border-radius: 22px;
    padding: 24px;
  }

  .acl-ps-card h3 {
    font-size: 23px;
  }
}


/* =========================
   トップ：課題解決セクション追加後の余白・ぼかし調整
========================= */

/* Hero下の余白を少し詰める */
body.home .acl-hero,
body.front-page .acl-hero {
  padding-bottom: 80px !important;
}

/* 課題解決セクションの上余白を自然に */
body.home .acl-problem-solution,
body.front-page .acl-problem-solution {
  padding-top: 16px !important;
  padding-bottom: 96px !important;
}

/* AI最新記事セクションの上余白を詰める */
body.home .acl-ai-watch,
body.front-page .acl-ai-watch {
  padding-top: 72px !important;
}

/* 見出しやカード周辺の不要なぼかし・影を消す */
body.home .acl-ai-watch h2,
body.front-page .acl-ai-watch h2 {
  text-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

/* 記事カードの影を少し上品に */
body.home .acl-article-card,
body.front-page .acl-article-card {
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.045) !important;
  filter: none !important;
}

/* 課題解決カードは少しだけ軽く */
body.home .acl-ps-card,
body.front-page .acl-ps-card {
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05) !important;
}


/* =========================
   トップHero：Latest Updates周辺の幅調整
========================= */
@media (min-width: 769px) {

  body.home .acl-hero,
  body.front-page .acl-hero {
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 72px !important;
  }

  body.home .acl-hero-side,
  body.front-page .acl-hero-side {
    width: 360px !important;
  }

  body.home .acl-profile-card,
  body.front-page .acl-profile-card {
    width: 100% !important;
  }

}


/* =========================
   トップページ：見出し周辺の黒いぼかしを除去
========================= */

body.home .acl-section-row,
body.front-page .acl-section-row,
body.home .acl-ai-watch,
body.front-page .acl-ai-watch {
  filter: none !important;
  backdrop-filter: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

/* 見出し・リンクの疑似要素を完全に消す */
body.home .acl-section-row::before,
body.home .acl-section-row::after,
body.home .acl-ai-watch::before,
body.home .acl-ai-watch::after,
body.front-page .acl-section-row::before,
body.front-page .acl-section-row::after,
body.front-page .acl-ai-watch::before,
body.front-page .acl-ai-watch::after {
  display: none !important;
  content: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  background: none !important;
}

/* AI最新記事の見出しを明瞭化 */
body.home .acl-ai-watch h2,
body.front-page .acl-ai-watch h2 {
  color: #101010 !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* 右側の「すべての記事を見る」リンクも明瞭化 */
body.home .acl-section-row a,
body.front-page .acl-section-row a {
  color: #101010 !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* 記事カード自体のぼかしを防止 */
body.home .acl-article-card,
body.front-page .acl-article-card {
  filter: none !important;
  backdrop-filter: none !important;
}


/* =========================
   トップ：Hero〜課題解決セクションの縦距離を調整
========================= */
@media (min-width: 769px) {

  body.home .acl-hero,
  body.front-page .acl-hero {
    padding-top: 72px !important;
    padding-bottom: 56px !important;
  }

  body.home .acl-problem-solution,
  body.front-page .acl-problem-solution {
    padding-top: 32px !important;
    padding-bottom: 88px !important;
  }

  body.home .acl-ps-head,
  body.front-page .acl-ps-head {
    margin-bottom: 30px !important;
  }
}

/* スマホは詰めすぎない */
@media (max-width: 768px) {

  body.home .acl-hero,
  body.front-page .acl-hero {
    padding-bottom: 48px !important;
  }

  body.home .acl-problem-solution,
  body.front-page .acl-problem-solution {
    padding-top: 24px !important;
    padding-bottom: 64px !important;
  }
}


/* =========================
   SaaS風ヘッダー仕上げ
========================= */

/* ヘッダー全体 */

/* =========================
   CLEAN：SaaS風ヘッダー安定版
   ロゴ｜検索｜ナビを中央コンテナ内に収める
========================= */

/* ヘッダー本体 */
html body .acl-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999999 !important;
  width: 100% !important;
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

/* WordPressログイン中 */
html body.admin-bar .acl-header {
  top: 32px !important;
}

html body .acl-header-search {
  position: relative !important;
}

html body .acl-header-search button[type="submit"] {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  display: inline-grid !important;
  width: 28px !important;
  height: 28px !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #111111 !important;
  box-shadow: none !important;
  font-size: 17px !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
  cursor: pointer !important;
}

/* PCヘッダー */
@media (min-width: 769px) {
  html body .acl-header {
    height: 82px !important;
    min-height: 82px !important;
  }

  html body .acl-logo {
    justify-self: start !important;
    width: 170px !important;
    display: flex !important;
    align-items: center !important;
  }

  html body .acl-logo img {
    max-height: 42px !important;
    width: auto !important;
    display: block !important;
  }

  html body .acl-header-search {
    justify-self: center !important;
    width: 340px !important;
    max-width: 340px !important;
  }

  html body .acl-header input[type="search"],
  html body .acl-header-search input[type="search"] {
    width: 100% !important;
    height: 40px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    background: #f8faf9 !important;
    padding: 0 42px 0 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  html body .acl-header nav,
  html body .acl-nav {
    justify-self: start !important;
    overflow: visible !important;
  }

  html body .acl-header nav ul,
  html body .acl-nav ul {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  html body .acl-header nav a,
  html body .acl-nav a {
    display: inline-flex !important;
    align-items: center !important;
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    padding: 0 !important;
    background: transparent !important;
  }

  html body .acl-header nav a:hover,
  html body .acl-nav a:hover {
    color: #00a99a !important;
  }

  /* 固定ヘッダー分だけページを下げる */
  html body .acl-page {
    padding-top: 82px !important;
  }
}

/* 少し狭いPC */
@media (max-width: 1180px) and (min-width: 769px) {
  html body .acl-logo {
    width: 150px !important;
  }

  html body .acl-logo img {
    max-height: 38px !important;
  }

  html body .acl-header-search {
    width: 280px !important;
    max-width: 280px !important;
  }

  html body .acl-header nav ul,
  html body .acl-nav ul {
    gap: 20px !important;
  }

  html body .acl-header nav a,
  html body .acl-nav a {
    font-size: 13px !important;
  }
}

/* スマホ */
@media (max-width: 768px) {
  html body .acl-header {
    position: fixed !important;
    top: 0 !important;
    background: #ffffff !important;
  }

  html body.admin-bar .acl-header {
    top: 46px !important;
  }

  html body .acl-logo img {
    max-height: 44px !important;
  }

  html body .acl-header-search {
    width: 100% !important;
    max-width: none !important;
  }

  html body .acl-header input[type="search"],
  html body .acl-header-search input[type="search"] {
    height: 46px !important;
    font-size: 15px !important;
  }

  html body .acl-header nav,
  html body .acl-nav {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  html body .acl-header nav::-webkit-scrollbar,
  html body .acl-nav::-webkit-scrollbar {
    display: none;
  }

  html body .acl-header nav ul,
  html body .acl-nav ul {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    min-width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  html body .acl-header nav a,
  html body .acl-nav a {
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    color: #111827 !important;
  }

  html body .acl-page {
    padding-top: 164px !important;
  }
}

/* =========================
   背景リセット：固定ヘッダー後の見た目を安定化
========================= */

/* ヘッダー本体は必ず画面全幅の白背景 */
html body .acl-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  background: #ffffff !important;
  z-index: 999999 !important;
  border: none !important;
  box-shadow: none !important;
}

/* WordPress管理バー表示時 */
html body.admin-bar .acl-header {
  top: 32px !important;
}

/* トップページ背景を1本化 */
body.home,
body.front-page,
body.home .acl-page,
body.front-page .acl-page {
  background:
    linear-gradient(
      180deg,
      #eefdff 0%,
      #f3fbfa 42%,
      #ffffff 100%
    ) !important;
}

/* Hero・各セクションは背景を持たせず、親背景に乗せる */
body.home .acl-hero,
body.front-page .acl-hero,
body.home .acl-problem-solution,
body.front-page .acl-problem-solution,
body.home .acl-ai-watch,
body.front-page .acl-ai-watch,
body.home .acl-section,
body.front-page .acl-section,
body.home .acl-split,
body.front-page .acl-split,
body.home .acl-feature,
body.front-page .acl-feature {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 固定ヘッダー分だけ下げる */
@media (min-width: 769px) {
  body.home .acl-page,
  body.front-page .acl-page {
    padding-top: 82px !important;
  }
}

/* スマホ */
@media (max-width: 768px) {
  html body.admin-bar .acl-header {
    top: 46px !important;
  }

  html body .acl-header {
    width: 100vw !important;
    max-width: 100vw !important;
    background: #ffffff !important;
  }

  body.home .acl-page,
  body.front-page .acl-page {
    padding-top: 164px !important;
  }
}

/* ヘッダーまわりの疑似要素を完全無効化 */
html body .acl-header::before,
html body .acl-header::after {
  display: none !important;
  content: none !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}


/* =========================
   背景整理：ヘッダーは白、本文だけミント背景
========================= */

/* トップページ全体の背景を一度クリア */
body.home,
body.front-page {
  background: #ffffff !important;
}

/* ヘッダーの下、本文エリアだけミント背景 */
body.home .acl-page,
body.front-page .acl-page {
  background:
    linear-gradient(
      180deg,
      #eefdff 0%,
      #f3fbfa 45%,
      #ffffff 100%
    ) !important;
}

/* セクション自体には背景を持たせない */
body.home .acl-hero,
body.front-page .acl-hero,
body.home .acl-problem-solution,
body.front-page .acl-problem-solution,
body.home .acl-ai-watch,
body.front-page .acl-ai-watch,
body.home .acl-section,
body.front-page .acl-section,
body.home .acl-split,
body.front-page .acl-split,
body.home .acl-feature,
body.front-page .acl-feature {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* カードは白で浮かせる */
body.home .acl-article-card,
body.front-page .acl-article-card,
body.home .acl-panel,
body.front-page .acl-panel,
body.home .acl-profile-card,
body.front-page .acl-profile-card,
body.home .acl-ps-card,
body.front-page .acl-ps-card {
  background: #ffffff !important;
}

/* 固定ヘッダー分だけ本文を下げる */
@media (min-width: 769px) {
  body.home .acl-page,
  body.front-page .acl-page {
    padding-top: 82px !important;
  }
}

@media (max-width: 768px) {
  body.home .acl-page,
  body.front-page .acl-page {
    padding-top: 164px !important;
  }
}


/* =========================
   primeNumber風：カードを四角寄りにする
========================= */

/* トップページの主要カード */
body.home .acl-article-card,
body.front-page .acl-article-card,
body.home .acl-panel,
body.front-page .acl-panel,
body.home .acl-profile-card,
body.front-page .acl-profile-card,
body.home .acl-ps-card,
body.front-page .acl-ps-card,
body.home .acl-feature-card,
body.front-page .acl-feature-card {
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035) !important;
}

body.home .acl-article-card,
body.front-page .acl-article-card,
body.home .acl-panel,
body.front-page .acl-panel,
body.home .acl-profile-card,
body.front-page .acl-profile-card,
body.home .acl-feature-card,
body.front-page .acl-feature-card {
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background-color 0.18s ease !important;
}

body.home .acl-article-card:hover,
body.front-page .acl-article-card:hover,
body.home .acl-feature-card:hover,
body.front-page .acl-feature-card:hover,
body.home .acl-feature-grid-polished .acl-feature-card:hover,
body.front-page .acl-feature-grid-polished .acl-feature-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(0, 184, 169, 0.28) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05) !important;
  background: #fbfffe !important;
}

body.home .acl-panel:hover,
body.front-page .acl-panel:hover,
body.home .acl-profile-card:hover,
body.front-page .acl-profile-card:hover {
  transform: none !important;
  border-color: rgba(0, 184, 169, 0.16) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035) !important;
  background: #ffffff !important;
}

/* 記事カードのサムネ部分も四角寄り */
body.home .acl-thumb,
body.front-page .acl-thumb,
body.home .acl-article-card img,
body.front-page .acl-article-card img,
body.home .acl-article-card > a:first-child,
body.front-page .acl-article-card > a:first-child {
  border-radius: 8px 8px 0 0 !important;
}

/* 課題→解決カードも企業サイト風に */
body.home .acl-ps-card,
body.front-page .acl-ps-card {
  padding: 34px 36px !important;
}

/* 右上プロフィール・更新カードを少し締める */
body.home .acl-profile-card,
body.front-page .acl-profile-card {
  border-radius: 8px !important;
}

/* ボタン・ラベルは少し丸さを残す */
body.home .acl-labels span,
body.front-page .acl-labels span,
body.home .acl-ps-label,
body.front-page .acl-ps-label {
  border-radius: 999px !important;
}

/* カテゴリ固定ページのカードも統一 */
.acl-sub-section .acl-article-card,
body.archive .acl-article-card {
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.03) !important;
}

/* フッター前の小カードも統一 */
body.home .acl-feature-card,
body.front-page .acl-feature-card {
  border-radius: 8px !important;
}


/* =========================
   primeNumber風：Hero部分だけ色を付ける
========================= */

/* トップ全体はいったん白ベース */
body.home,
body.front-page,
body.home .acl-page,
body.front-page .acl-page {
  background: #ffffff !important;
}

/* Heroだけ濃いミント/ティール背景にする */
body.home .acl-hero,
body.front-page .acl-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 184, 169, 0.22), transparent 34%),
    linear-gradient(135deg, #00796f 0%, #008f84 48%, #00a99a 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}

/* Hero内の文字色 */
body.home .acl-hero p,
body.front-page .acl-hero p {
  color: #ffffff !important;
}

/* Hero下のセクションは白背景に戻す */
body.home .acl-problem-solution,
body.front-page .acl-problem-solution,
body.home .acl-ai-watch,
body.front-page .acl-ai-watch,
body.home .acl-section,
body.front-page .acl-section,
body.home .acl-split,
body.front-page .acl-split,
body.home .acl-feature,
body.front-page .acl-feature {
  background: #ffffff !important;
}

/* Hero直後の余白をLPっぽく */
@media (min-width: 769px) {
  body.home .acl-hero,
  body.front-page .acl-hero {
    padding-top: 96px !important;
    padding-bottom: 120px !important;
  }

  body.home .acl-problem-solution,
  body.front-page .acl-problem-solution {
    padding-top: 96px !important;
  }
}

/* スマホ */
@media (max-width: 768px) {
  body.home .acl-hero,
  body.front-page .acl-hero {
    padding-top: 56px !important;
    padding-bottom: 72px !important;
  }

  body.home .acl-problem-solution,
  body.front-page .acl-problem-solution {
    padding-top: 56px !important;
  }
}


/* =========================
   Hero色付きLP風：全幅化＋カード文字色修正
========================= */

@media (min-width: 769px) {

  /* Hero背景を画面全幅にする */
  body.home .acl-hero,
  body.front-page .acl-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    box-sizing: border-box !important;
    padding: 120px max(48px, calc((100vw - 1180px) / 2)) 130px !important;

    display: grid !important;
    grid-template-columns: minmax(0, 620px) 360px !important;
    justify-content: center !important;
    align-items: start !important;
    column-gap: 72px !important;

    background:
      radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.12), transparent 34%),
      linear-gradient(135deg, #00796f 0%, #008f84 48%, #00a99a 100%) !important;

    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Hero左側 */
  body.home .acl-hero-main,
  body.front-page .acl-hero-main {
    max-width: 620px !important;
  }

  /* Hero右側 */
  body.home .acl-hero-side,
  body.front-page .acl-hero-side {
    width: 360px !important;
    max-width: 360px !important;
  }
}

/* Hero本文は白 */
body.home .acl-hero h1,
body.front-page .acl-hero h1,
body.home .acl-hero .acl-hero-lead,
body.front-page .acl-hero .acl-hero-lead {
  color: #ffffff !important;
}

/* 強調色 */
body.home .acl-hero h1 span,
body.front-page .acl-hero h1 span,
body.home .acl-hero h1 strong,
body.front-page .acl-hero h1 strong {
  color: #bffcf3 !important;
}

/* Heroラベル */
body.home .acl-hero .acl-labels span,
body.front-page .acl-hero .acl-labels span {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  color: #ffffff !important;
}

/* 右側カードは白＋黒文字に戻す */
body.home .acl-hero .acl-profile-card,
body.front-page .acl-hero .acl-profile-card {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06) !important;
}

/* カード内の全テキストを黒系に固定 */
body.home .acl-hero .acl-profile-card *,
body.front-page .acl-hero .acl-profile-card * {
  color: #111827 !important;
}

/* カード内の薄い説明文 */
body.home .acl-hero .acl-profile-card p,
body.front-page .acl-hero .acl-profile-card p {
  color: #64748b !important;
}

/* Factory Director ラベルだけミント系に */
body.home .acl-hero .acl-profile-card span,
body.front-page .acl-hero .acl-profile-card span {
  background: #e8fbf8 !important;
  color: #008f84 !important;
  border-color: rgba(0, 184, 169, 0.22) !important;
}

/* Hero下は白に戻す */
body.home .acl-problem-solution,
body.front-page .acl-problem-solution,
body.home .acl-ai-watch,
body.front-page .acl-ai-watch,
body.home .acl-section,
body.front-page .acl-section,
body.home .acl-split,
body.front-page .acl-split,
body.home .acl-feature,
body.front-page .acl-feature {
  background: #ffffff !important;
}

/* スマホ */
@media (max-width: 768px) {
  body.home .acl-hero,
  body.front-page .acl-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 56px 20px 72px !important;

    display: block !important;

    background:
      radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.14), transparent 36%),
      linear-gradient(135deg, #00796f 0%, #008f84 50%, #00a99a 100%) !important;
  }

  body.home .acl-hero-side,
  body.front-page .acl-hero-side {
    width: 100% !important;
    max-width: none !important;
    margin-top: 28px !important;
  }
}


/* =========================
   Hero：AI Agent Lab / Home DX Factory を非表示
========================= */

/* よく使っていそうなラベル系クラスをまとめて非表示 */
body.home .acl-hero .acl-pill,
body.front-page .acl-hero .acl-pill,
body.home .acl-hero .acl-labels,
body.front-page .acl-hero .acl-labels {
  display: none !important;
}

/* =========================
   Hero：見出しの日本語途中改行を抑制
========================= */

@media (min-width: 769px) {
  body.home .acl-hero h1,
  body.front-page .acl-hero h1 {
    max-width: 720px !important;
    font-size: clamp(56px, 4.4vw, 82px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.055em !important;

    word-break: keep-all !important;
    overflow-wrap: normal !important;
    line-break: strict !important;
  }

  body.home .acl-hero h1 span,
  body.front-page .acl-hero h1 span,
  body.home .acl-hero h1 strong,
  body.front-page .acl-hero h1 strong {
    white-space: nowrap !important;
  }
}

/* 少し狭いPCでは文字サイズだけ少し落として改行崩れを防ぐ */
@media (max-width: 1180px) and (min-width: 769px) {
  body.home .acl-hero h1,
  body.front-page .acl-hero h1 {
    font-size: clamp(48px, 4.2vw, 68px) !important;
    max-width: 680px !important;
  }
}

/* =========================
   Hero：見出しと右カードの被りを修正
========================= */

@media (min-width: 769px) {

  body.home .acl-hero,
  body.front-page .acl-hero {
    grid-template-columns: minmax(0, 560px) 380px !important;
    column-gap: 110px !important;
  }

  body.home .acl-hero-main,
  body.front-page .acl-hero-main {
    max-width: 560px !important;
  }

  body.home .acl-hero-side,
  body.front-page .acl-hero-side {
    width: 380px !important;
    max-width: 380px !important;
  }

  body.home .acl-hero h1,
  body.front-page .acl-hero h1 {
    max-width: 560px !important;
    font-size: clamp(52px, 4vw, 74px) !important;
    line-height: 1.13 !important;
    letter-spacing: -0.055em !important;
  }
}

/* 画面が少し狭いPCではさらに安全に */
@media (max-width: 1180px) and (min-width: 769px) {

  body.home .acl-hero,
  body.front-page .acl-hero {
    grid-template-columns: minmax(0, 520px) 340px !important;
    column-gap: 72px !important;
  }

  body.home .acl-hero-main,
  body.front-page .acl-hero-main {
    max-width: 520px !important;
  }

  body.home .acl-hero-side,
  body.front-page .acl-hero-side {
    width: 340px !important;
    max-width: 340px !important;
  }

  body.home .acl-hero h1,
  body.front-page .acl-hero h1 {
    max-width: 520px !important;
    font-size: clamp(46px, 4vw, 64px) !important;
  }
}


/* =========================
   Hero：見出しの右カード被りを最終修正
========================= */

@media (min-width: 769px) {

  body.home .acl-hero,
  body.front-page .acl-hero {
    grid-template-columns: 560px 380px !important;
    column-gap: 140px !important;
    justify-content: center !important;
  }

  body.home .acl-hero-main,
  body.front-page .acl-hero-main {
    max-width: 560px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.home .acl-hero-side,
  body.front-page .acl-hero-side {
    width: 380px !important;
    max-width: 380px !important;
    position: relative !important;
    z-index: 2 !important;
  }

  body.home .acl-hero h1,
  body.front-page .acl-hero h1 {
    max-width: 560px !important;
    font-size: clamp(48px, 3.7vw, 68px) !important;
    line-height: 1.14 !important;
    letter-spacing: -0.055em !important;

    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    line-break: strict !important;
  }

  /* 以前入れた span/strong の nowrap を解除 */
  body.home .acl-hero h1 span,
  body.front-page .acl-hero h1 span,
  body.home .acl-hero h1 strong,
  body.front-page .acl-hero h1 strong {
    white-space: normal !important;
  }

}

/* 狭いPC・タブレット */
@media (max-width: 1180px) and (min-width: 769px) {

  body.home .acl-hero,
  body.front-page .acl-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px) !important;
    column-gap: 56px !important;
  }

  body.home .acl-hero-main,
  body.front-page .acl-hero-main {
    max-width: 500px !important;
  }

  body.home .acl-hero-side,
  body.front-page .acl-hero-side {
    width: 340px !important;
    max-width: 340px !important;
  }

  body.home .acl-hero h1,
  body.front-page .acl-hero h1 {
    max-width: 500px !important;
    font-size: clamp(42px, 3.8vw, 58px) !important;
  }
}

/* 900px以下は768px以下の縦積みに自然につなげる */
@media (max-width: 900px) and (min-width: 769px) {

  body.home .acl-hero,
  body.front-page .acl-hero {
    grid-template-columns: 1fr !important;
    row-gap: 28px !important;
    column-gap: 0 !important;
    justify-content: stretch !important;
  }

  body.home .acl-hero-main,
  body.front-page .acl-hero-main,
  body.home .acl-hero-side,
  body.front-page .acl-hero-side {
    width: 100% !important;
    max-width: none !important;
  }

  body.home .acl-hero-side,
  body.front-page .acl-hero-side {
    margin-top: 28px !important;
  }
}

/* ACL Design v1.3 Final: Header brand */
.acl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111111;
}

.acl-brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.acl-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.acl-brand-title {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: #111111;
}

.acl-brand-sub {
  margin-top: 5px;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: #00DCC3;
}

@media (max-width: 768px) {
  .acl-brand {
    gap: 8px;
  }

  .acl-brand-icon {
    width: 34px;
    height: 34px;
  }

  .acl-brand-title {
    font-size: 21px;
    letter-spacing: -0.055em;
  }

  .acl-brand-sub {
    font-size: 9px;
    letter-spacing: 0.38em;
  }
}

/* ACL header logo fix */
.acl-brand {
  min-width: 260px;
  white-space: nowrap;
}

.acl-brand-icon {
  width: 36px;
  height: 36px;
}

.acl-brand-title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.acl-brand-sub {
  font-size: 9px;
  letter-spacing: 0.42em;
}

@media (max-width: 768px) {
  .acl-brand {
    min-width: 220px;
  }

  .acl-brand-icon {
    width: 30px;
    height: 30px;
  }

  .acl-brand-title {
    font-size: 18px;
  }

  .acl-brand-sub {
    font-size: 8px;
  }
}

/* ACL header logo final sizing */
.acl-brand-icon {
  width: 40px;
  height: 40px;
}

.acl-brand-title {
  font-size: 23px;
}

.acl-brand-sub {
  font-size: 10px;
}

@media (max-width: 768px) {
  .acl-brand-icon {
    width: 32px;
    height: 32px;
  }

  .acl-brand-title {
    font-size: 19px;
  }
}

/* ACL header vertical balance */
.acl-brand {
  transform: translateY(2px);
}

.acl-brand-title {
  font-size: 24px;
}

.acl-brand-sub {
  margin-top: 4px;
}
