/* =================================================================
   /tools/ 統合CSS — DESIGN.md (Airtable-inspired) 準拠
   ページのインライン<style>を削除し、これ1ファイルに集約する
   貼り付け先: WordPress 外観 > カスタマイズ > 追加CSS（全置き換え）
   ================================================================= */

body.single-tools,
body.tax-tools_category,
body.post-type-archive-tools {
  --st-ink:           #181d26;
  --st-body:          #333840;
  --st-muted:         #41454d;
  --st-canvas:        #ffffff;
  --st-surface-soft:  #f8fafc;
  --st-surface-dark:  #181d26;
  --st-hairline:      #dddddd;
  --st-link:          #1b61c9;
  --st-radius-sm:     6px;
  --st-radius-md:     10px;
  --st-radius-lg:     12px;
  --st-section:       96px;
}


/* ================================================================
   個別ツールページ（/tools/xxx/）
   ================================================================ */

/* テーマ側レイアウト上書き */
body.single-tools #post_title .title     { font-size: 24px; }
body.single-tools #recent_tools .headline { font-size: 24px; }
body.single-tools .news_list .title      { font-size: 16px; }

body.single-tools #single_tools_lp .post_content {
  width: 100%;
  max-width: 100%;
  float: none;
}

/* ベース */
body.single-tools .sc-lp,
body.tax-tools_category .sc-lp {
  color: var(--st-body);
  line-height: 2;
  font-size: 18px;
  font-family: 'Inter', "Hiragino Sans", "ヒラギノ角ゴ ProN", "游ゴシック", YuGothic, sans-serif;
}

body.single-tools .sc-lp *,
body.tax-tools_category .sc-lp * {
  box-sizing: border-box;
}

/* --- ヒーロー --- */
body.single-tools .sc-hero,
body.tax-tools_category .sc-hero {
  background: var(--st-surface-dark);
  border-radius: 0;
  padding: 72px 40px;
  margin: 0;
  color: #fff;
}

body.single-tools .sc-hero-inner,
body.tax-tools_category .sc-hero-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 36px;
  align-items: center;
}

body.single-tools .sc-hero-copy,
body.tax-tools_category .sc-hero-copy {
  text-align: left;
}

body.single-tools .sc-hero h1,
body.tax-tools_category .sc-hero h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 2.5em;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
}

body.single-tools .sc-hero p,
body.tax-tools_category .sc-hero p {
  font-size: 1.18em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 10px;
}

body.single-tools .sc-sub-copy,
body.tax-tools_category .sc-sub-copy {
  margin-bottom: 24px;
}

body.single-tools .sc-hero-cta,
body.tax-tools_category .sc-hero-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

body.single-tools .sc-hero-visual img,
body.tax-tools_category .sc-hero-visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: var(--st-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* --- CTAボタン（ベース: ダーク面の上に置く白ボタン） --- */
body.single-tools .sc-cta-btn,
body.tax-tools_category .sc-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  height: auto;
  background: #fff;
  color: var(--st-ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1em;
  font-weight: 500;
  text-align: center;
  border-radius: var(--st-radius-lg);
  text-decoration: none;
  line-height: 1.5;
  letter-spacing: 0;
  min-width: auto;
}

body.single-tools .sc-cta-btn:hover,
body.tax-tools_category .sc-cta-btn:hover {
  opacity: 0.92;
  color: var(--st-ink);
  text-decoration: none;
}

/* セクション内CTAボタン（ライト面の上に置くダークボタン） */
body.single-tools .sc-section-cta,
body.tax-tools_category .sc-section-cta {
  margin-top: 32px;
  background: var(--st-ink);
  color: #fff;
}

body.single-tools .sc-section-cta:hover,
body.tax-tools_category .sc-section-cta:hover {
  background: #0d1218;
  color: #fff;
}

/* --- セクション --- */
body.single-tools .sc-section,
body.tax-tools_category .sc-section {
  padding: var(--st-section) 40px;
  text-align: center;
}

body.single-tools .sc-section-bg-white,
body.tax-tools_category .sc-section-bg-white {
  background: var(--st-canvas);
}

body.single-tools .sc-section-bg-gray,
body.tax-tools_category .sc-section-bg-gray {
  background: var(--st-surface-soft);
}

body.single-tools .sc-section-title,
body.tax-tools_category .sc-section-title {
  font-family: 'Inter', system-ui, sans-serif;
  text-align: center;
  font-size: 2em;
  font-weight: 400;
  margin-bottom: 28px;
  color: var(--st-ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

body.single-tools .sc-section-lead,
body.tax-tools_category .sc-section-lead {
  text-align: center;
  font-size: 1.15em;
  color: var(--st-body);
  line-height: 2;
  max-width: 760px;
  margin: -10px auto 38px;
}

body.single-tools .sc-solution-text,
body.tax-tools_category .sc-solution-text {
  text-align: center;
  font-size: 1.15em;
  color: var(--st-body);
  line-height: 2;
  max-width: 780px;
  margin: 0 auto;
}

body.single-tools .center-ul,
body.tax-tools_category .center-ul {
  display: inline-block;
  text-align: left;
}

/* --- 課題カード --- */
body.single-tools .sc-problem-grid,
body.tax-tools_category .sc-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 90%;
  margin: 0 auto;
}

body.single-tools .sc-problem-card,
body.tax-tools_category .sc-problem-card {
  background: var(--st-canvas);
  border: 1px solid var(--st-hairline);
  border-radius: var(--st-radius-md);
  padding: 28px 24px;
  font-size: 1.08em;
  line-height: 1.9;
  color: var(--st-body);
  text-align: center;
}

body.single-tools .sc-problem-icon,
body.tax-tools_category .sc-problem-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: var(--st-radius-md);
  background: var(--st-surface-soft);
  color: var(--st-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

body.single-tools .sc-problem-card strong,
body.tax-tools_category .sc-problem-card strong {
  display: block;
  color: var(--st-ink);
  font-size: 1.12em;
  margin-bottom: 8px;
}

/* --- 機能カード --- */
body.single-tools .sc-feature-grid,
body.tax-tools_category .sc-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 90%;
  margin: 0 auto;
}

body.single-tools .sc-feature-card,
body.tax-tools_category .sc-feature-card {
  background: var(--st-surface-soft);
  border: none;
  border-radius: var(--st-radius-md);
  padding: 32px 24px;
  text-align: center;
}

body.single-tools .sc-feature-icon,
body.tax-tools_category .sc-feature-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: var(--st-radius-md);
  background: var(--st-canvas);
  color: var(--st-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

body.single-tools .sc-feature-card h4,
body.tax-tools_category .sc-feature-card h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.18em;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--st-ink);
}

body.single-tools .sc-feature-card p,
body.tax-tools_category .sc-feature-card p {
  font-size: 1.03em;
  color: var(--st-body);
  line-height: 1.9;
}

/* カテゴリページのサムネイル比率固定フォールバック
   テーマフィルタで img の style 属性が除去された場合でも
   ラッパー側の aspect-ratio + overflow:hidden で高さを揃える */
body.tax-tools_category .sc-feature-card a > img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

body.single-tools .sc-feature-arrow,
body.tax-tools_category .sc-feature-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 38px 0;
  color: var(--st-ink);
  font-weight: 400;
  text-align: center;
}

body.single-tools .sc-feature-arrow svg,
body.tax-tools_category .sc-feature-arrow svg {
  stroke: var(--st-ink);
}

body.single-tools .sc-feature-arrow p,
body.tax-tools_category .sc-feature-arrow p {
  font-size: 1em;
  color: var(--st-muted);
  font-weight: 400;
}

/* --- AIサポートタグ --- */
body.single-tools .sc-ai-grid,
body.tax-tools_category .sc-ai-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 90%;
  margin: 0 auto;
}

body.single-tools .sc-ai-item,
body.tax-tools_category .sc-ai-item {
  background: var(--st-canvas);
  color: var(--st-body);
  padding: 10px 18px;
  border-radius: var(--st-radius-sm);
  font-size: 1em;
  font-weight: 500;
  border: 1px solid var(--st-hairline);
}

/* --- サポートブロック --- */
body.single-tools .sc-support-wrap,
body.tax-tools_category .sc-support-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}

body.single-tools .sc-support-block,
body.tax-tools_category .sc-support-block {
  background: var(--st-canvas);
  border: 1px solid var(--st-hairline);
  border-radius: var(--st-radius-md);
  padding: 40px 28px;
  text-align: center;
}

body.single-tools .sc-support-block .sc-section-title,
body.tax-tools_category .sc-support-block .sc-section-title {
  margin-bottom: 28px;
}

body.single-tools .sc-support-grid,
body.tax-tools_category .sc-support-grid {
  display: grid;
  gap: 16px;
}

body.single-tools .sc-support-item,
body.tax-tools_category .sc-support-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 72px;
  background: var(--st-canvas);
  border: 1px solid var(--st-hairline);
  border-radius: var(--st-radius-md);
  padding: 16px 20px;
  font-size: 1.12em;
  font-weight: 500;
  color: var(--st-ink);
}

body.single-tools .sc-support-item img,
body.tax-tools_category .sc-support-item img {
  width: 42px;
  height: 42px;
  display: block;
}

body.single-tools .sc-support-icon,
body.tax-tools_category .sc-support-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--st-radius-sm);
  background: var(--st-surface-soft);
  color: var(--st-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* --- ステップカード --- */
body.single-tools .sc-steps-grid,
body.tax-tools_category .sc-steps-grid {
  display: flex;
  gap: 20px;
  position: relative;
  max-width: 90%;
  margin: 0 auto;
}

body.single-tools .sc-step-card,
body.tax-tools_category .sc-step-card {
  flex: 1;
  background: var(--st-canvas);
  border-radius: var(--st-radius-md);
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--st-hairline);
}

body.single-tools .sc-step-num,
body.tax-tools_category .sc-step-num {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--st-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: 500;
}

body.single-tools .sc-step-title,
body.tax-tools_category .sc-step-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.12em;
  font-weight: 500;
  color: var(--st-ink);
  margin-bottom: 8px;
}

body.single-tools .sc-step-desc,
body.tax-tools_category .sc-step-desc {
  font-size: 1em;
  color: var(--st-muted);
  line-height: 1.9;
}

/* --- セキュリティリスト --- */
body.single-tools .sc-security-list,
body.tax-tools_category .sc-security-list {
  max-width: 760px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

body.single-tools .sc-security-list li,
body.tax-tools_category .sc-security-list li {
  list-style: none;
  background: var(--st-canvas);
  border-radius: var(--st-radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
  border: 1px solid var(--st-hairline);
  font-size: 1.05em;
  color: var(--st-body);
  text-align: left;
  line-height: 1.9;
}

body.single-tools .sc-security-list li::before,
body.tax-tools_category .sc-security-list li::before {
  content: "✓";
  color: var(--st-ink);
  font-weight: 600;
  margin-right: 10px;
}

/* --- 最終CTA --- */
body.single-tools .sc-final-cta,
body.tax-tools_category .sc-final-cta {
  background: var(--st-surface-dark);
  color: #fff;
  text-align: center;
  padding: var(--st-section) 40px;
  border-radius: 0;
}

body.single-tools .sc-final-cta h2,
body.tax-tools_category .sc-final-cta h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 2em;
  font-weight: 400;
  margin-bottom: 16px;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

body.single-tools .sc-final-cta p,
body.tax-tools_category .sc-final-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  font-size: 1.12em;
  line-height: 1.9;
}

/* 最終CTA内のボタンはヒーローと同じ白ボタン（button-secondary-on-dark） */
body.single-tools .sc-final-cta .sc-cta-btn,
body.tax-tools_category .sc-final-cta .sc-cta-btn {
  background: #fff;
  color: var(--st-ink);
}


/* ================================================================
   タクソノミーページ（/tools_category/xxx/）
   ================================================================ */

/* #tools_archive の幅制限を解除してセクション背景を全幅にする */
body.tax-tools_category #tools_archive {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* ================================================================
   一覧ページ（/tools/）
   ================================================================ */

body.post-type-archive-tools .tools_category_heading span {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  color: var(--st-ink);
  border-bottom-color: var(--st-ink);
}

body.post-type-archive-tools .project_list .title span {
  color: var(--st-ink);
  font-family: 'Inter', system-ui, sans-serif;
}


/* ================================================================
   モバイル
   ================================================================ */
@media screen and (max-width: 750px) {
  body.single-tools #post_title .title     { font-size: 18px; }
  body.single-tools #recent_tools .headline { font-size: 18px; }
  body.single-tools .news_list .title      { font-size: 14px; }
}

@media screen and (max-width: 768px) {
  body.single-tools .sc-lp,
  body.tax-tools_category .sc-lp { font-size: 17px; }

  body.single-tools .sc-hero,
  body.tax-tools_category .sc-hero {
    padding: 48px 20px;
  }

  body.single-tools .sc-hero-inner,
  body.tax-tools_category .sc-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.single-tools .sc-hero-copy,
  body.tax-tools_category .sc-hero-copy { text-align: center; }

  body.single-tools .sc-hero h1,
  body.tax-tools_category .sc-hero h1 {
    font-size: 2em;
    line-height: 1.5;
  }

  body.single-tools .sc-section,
  body.tax-tools_category .sc-section {
    padding: 64px 20px;
  }

  body.single-tools .sc-section-title,
  body.tax-tools_category .sc-section-title { font-size: 1.5em; }

  body.single-tools .sc-section-lead,
  body.tax-tools_category .sc-section-lead {
    font-size: 1.05em;
    margin: -8px auto 32px;
  }

  body.single-tools .sc-solution-text,
  body.tax-tools_category .sc-solution-text { font-size: 1.05em; }

  body.single-tools .sc-problem-grid,
  body.tax-tools_category .sc-problem-grid,
  body.single-tools .sc-feature-grid,
  body.tax-tools_category .sc-feature-grid {
    grid-template-columns: 1fr;
  }

  body.single-tools .sc-steps-grid,
  body.tax-tools_category .sc-steps-grid { flex-direction: column; }

  body.single-tools .sc-support-wrap,
  body.tax-tools_category .sc-support-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.single-tools .sc-support-block,
  body.tax-tools_category .sc-support-block { padding: 32px 20px; }

  body.single-tools .sc-support-item,
  body.tax-tools_category .sc-support-item  { min-height: 64px; }

  body.single-tools .sc-cta-btn,
  body.tax-tools_category .sc-cta-btn {
    width: 100%;
    max-width: 300px;
    min-width: 0;
    font-size: 1.08em;
  }

  body.single-tools .sc-final-cta,
  body.tax-tools_category .sc-final-cta {
    padding: 64px 20px;
  }

  body.single-tools .sc-final-cta h2,
  body.tax-tools_category .sc-final-cta h2 { font-size: 1.5em; }
}
