@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** デザインシステム変数（デザイン_共有ベース）
** Primary  : #965051（ローズ）
** Secondary: #396b7e（ブルーグレー）
** Tertiary : #78620e（ゴールド）
** Surface  : #fffbff / #fdf9f4 / #f7f3ee
** Font     : Plus Jakarta Sans（見出し）/ Be Vietnam Pro（本文）
************************************/

/************************************
** Webフォント読み込み（@import でバックアップ）
************************************/
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap');

/************************************
** SNSシェア / SNSフォロー 非表示
************************************/
.sns-share,
.sns-share-buttons,
.sns-follow,
.sns-follow-buttons,
.sns-share-message,
.sns-follow-message,
.follow-message,
.share-buttons,
.follow-buttons {
  display: none !important;
}

/************************************
** グローバルヘッダー：pill型浮きナビ（デザイン_共有スタイル）
************************************/

/* ヘッダーコンテナ自体は透明・余白のみ */
#header-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  padding: 16px 24px 0 !important;
}

/* pill型ナビ本体 */
#header-container-in.hlt-center-logo {
  max-width: 960px !important;
  width: calc(100% - 48px) !important;
  margin: 0 auto !important;
  padding: 10px 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
  background: rgba(255,251,255,0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
  border: 1px solid rgba(255,255,255,0.6) !important;
}

#header-container-in.hlt-center-logo #header {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  min-height: auto !important;
  background: transparent !important;
}
#header-container-in.hlt-center-logo #header .header-in {
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  min-height: auto !important;
}
#header-container-in.hlt-center-logo .logo-header {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  width: auto !important;
}
#header-container-in.hlt-center-logo .logo-header .site-name-text-link {
  display: inline-flex !important;
  align-items: center !important;
}
#header-container-in.hlt-center-logo .tagline { display: none !important; }

/* ロゴテキスト */
.logo-header .site-name-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #965051;
  font-style: italic;
}
.logo-header img {
  max-height: 36px;
  width: auto;
  display: block;
}

/* ナビ右寄せ（PC） */
@media (min-width: 769px) {
  #navi,
  .navi {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    min-height: auto !important;
  }
  #navi .navi-in {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
  }
  #navi .menu-header.menu-pc {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
#navi .menu-header.menu-pc > li {
  list-style: none !important;
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}
#navi .menu-header.menu-pc > li > a {
  display: flex !important;
  align-items: center !important;
  padding: 8px 12px !important;
  color: #66645f !important;
  text-decoration: none !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  transition: color .3s ease !important;
  position: relative !important;
  border: none !important;
}
#navi .menu-header.menu-pc > li > a:hover { color: #965051 !important; }
#navi .menu-header.menu-pc > li.current-menu-item > a,
#navi .menu-header.menu-pc > li.current_page_item > a {
  color: #965051 !important;
  border-bottom: 2px solid #965051 !important;
  padding-bottom: 6px !important;
}
#navi .menu-header.menu-pc .item-label,
#navi .menu-header.menu-pc .caption-wrap {
  display: block !important;
  line-height: 1 !important;
}

/* CTAボタン（最後のナビ項目） */
#navi .menu-header.menu-pc > li:last-child {
  margin-left: 12px !important;
}
#navi .menu-header.menu-pc > li:last-child > a {
  padding: 10px 22px !important;
  border-radius: 9999px !important;
  color: #fff !important;
  background: #965051 !important;
  box-shadow: 0 2px 10px rgba(150,80,81,0.30) !important;
  font-weight: 700 !important;
  transition: opacity .2s, transform .2s !important;
  border: none !important;
}
#navi .menu-header.menu-pc > li:last-child > a:hover {
  color: #fff !important;
  opacity: .88 !important;
  transform: translateY(-1px) !important;
}

/* ハンバーガーボタン */
#tpfai-hamburger { display: none; }
@media (max-width: 768px) {
  #header-container {
    padding: 12px 16px 0 !important;
  }
  #header-container-in.hlt-center-logo {
    width: calc(100% - 32px) !important;
    padding: 10px 16px !important;
    border-radius: 9999px !important;
    min-height: 52px !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  #header-container-in.hlt-center-logo #header {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  #tpfai-hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    width: 36px !important;
    height: 36px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 4px !important;
    flex-shrink: 0 !important;
    z-index: 100 !important;
  }
  #tpfai-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #965051;
    border-radius: 2px;
    transition: all 0.22s ease;
    transform-origin: center;
  }
  #tpfai-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #tpfai-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  #tpfai-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* スマホ：ドロップダウン */
  #navi, .navi {
    flex: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255,251,255,0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10) !important;
    border: 1px solid rgba(255,255,255,0.6) !important;
    padding: 12px !important;
  }
  #navi .navi-in {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #navi .menu-mobile,
  #navi .menu-header.menu-mobile { display: none !important; }
  #navi .menu-header.menu-pc {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px !important;
  }
  #navi .menu-header.menu-pc > li > a {
    padding: 10px 12px !important;
    font-size: 13px !important;
    white-space: normal !important;
    justify-content: center !important;
    border-radius: 1rem !important;
  }
  #navi .menu-header.menu-pc > li > a:hover {
    background: rgba(150,80,81,0.06) !important;
  }
  #navi .menu-header.menu-pc > li:last-child {
    grid-column: 1 / -1 !important;
    margin-left: 0 !important;
  }
  #navi .menu-header.menu-pc > li:last-child > a {
    padding: 12px 22px !important;
    justify-content: center !important;
    border-radius: 9999px !important;
  }
  .logo-header .site-name-text { font-size: 17px !important; }
}

/************************************
** 固定ページでは目次・タイトル・日付・パンくず非表示
************************************/
.page .toc,
body.page .toc,
.page-template-default .toc,
.page .article-header,
.page .entry-header,
.page .entry-title,
.page .date-tags,
.page .post-date,
.page .post-update,
.page .post-info,
.page .entry-meta,
.page .author-info,
.page .breadcrumb,
body.page .article-header,
body.page .entry-title,
body.page .date-tags,
body.page .breadcrumb {
  display: none !important;
}

/************************************
** Cocoon h1〜h6 デフォルトリセット
************************************/
.page .entry-content h1,
.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4,
.page .entry-content h5,
.page .entry-content h6 {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin: 0 0 16px;
  color: #393834;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.4;
  box-shadow: none !important;
}
.page .entry-content h2 { font-size: 26px; font-weight: 800; margin-top: 40px; }
.page .entry-content h3 { font-size: 20px; font-weight: 700; margin-top: 32px; }
.page .entry-content h4 { font-size: 17px; font-weight: 700; margin-top: 24px; }

.page .entry-content .tpfai-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #393834 !important;
  text-align: center !important;
  margin: 0 auto 28px !important;
  padding: 0 0 14px !important;
  position: relative;
  background: transparent !important;
  border: none !important;
  line-height: 1.4;
  display: block;
  width: 100%;
  max-width: 960px;
  box-sizing: border-box;
}
.page .entry-content .tpfai-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: #965051;
  border-radius: 9999px;
}
.page .entry-content .tpfai-page-header h1 {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
  font-size: 36px;
  font-weight: 900;
  color: #393834;
  line-height: 1.3;
}
.page .entry-content .tpfai-hero-title {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

/************************************
** 1カラム時のメイン幅
************************************/
.no-sidebar #main,
.no-sidebar .main {
  width: 100% !important;
  max-width: 100% !important;
}
.no-sidebar #content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 768px) {
  .no-sidebar #content { padding: 0 16px; }
}
.no-sidebar .article {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.no-sidebar .entry-content {
  margin-top: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1080px;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.no-sidebar #main,
.no-sidebar .main,
.no-sidebar #content .main {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  width: 100% !important;
  max-width: 1120px;
  box-sizing: border-box;
}
.no-sidebar #content,
.no-sidebar .content {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}

/* aside#sidebar 自体を非表示にする（is_active_sidebarフィルタが効かないテーマでもbody.no-sidebarで強制非表示） */
.no-sidebar #sidebar,
.no-sidebar aside#sidebar,
.no-sidebar .sidebar {
  display: none !important;
}

/* no-sidebar時はgrid(1fr 300px)を解除して中身を全幅にする
   ※ #content-in.wrap には .archive/.single/.category 等のgridが当たっており
      サイドバーを消してもgridの右300pxカラムが居座って中身が左寄せ縮小になるため */
body.no-sidebar #content-in.wrap {
  display: block !important;
}

/* ブログ一覧ページ: 自テーマ・Cocoon両方の幅制限をすべて解除してフル幅にする */
body.blog.no-sidebar #content,
body.blog.no-sidebar .content,
body.blog.no-sidebar .content-in,
body.blog.no-sidebar .content-in.wrap,
body.blog.no-sidebar #main,
body.blog.no-sidebar .main,
body.blog.no-sidebar #content .main,
body.blog.no-sidebar .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}

/************************************
** Body・全体背景
************************************/
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background-color: #fdf9f4;
  color: #393834;
}

/* Cocoonの#mainの白背景・padding をリセット（固定ページ・トップ） */
.home #main,
.home .main,
.page #main,
.page .main {
  background: transparent !important;
  background-color: transparent !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

/* Cocoonの.wrap（コンテンツラッパー）の余白もリセット */
.home .wrap,
.page .wrap {
  padding-top: 0 !important;
}

/* article の margin-bottom も詰める */
.home .article,
.page .article {
  margin-bottom: 0 !important;
}

/************************************
** Cocoon レイアウト上書き（#content-in がはみ出す問題の修正）
************************************/
#content-in.wrap {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* Cocoon のモバイルフッターボタン（メニュー/ホーム/検索/トップ）をサイト全体で非表示 */
.mobile-menu-buttons { display: none !important; }
body { --mobile-menu-buttons-height: 0 !important; }

/************************************
** ブログ/アーカイブ/個別記事 の全体幅を LP と揃える
** LP は .tpfai-section 側で 1080px 前後に収めているので
** blog 系も wrap を同等に絞って「広がりすぎ」を防ぐ
************************************/
.archive #content-in.wrap,
.single #content-in.wrap,
.category #content-in.wrap,
.tag #content-in.wrap,
.search #content-in.wrap,
.author #content-in.wrap,
.date #content-in.wrap {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px;
  padding-right: 24px;
}
/* ブログ一覧はフル幅（home.phpが独自レイアウトを持つ） */
.blog #content-in.wrap {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.blog #main,
.blog main.main {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

@media (max-width: 1023px) {
  .blog #content-in.wrap,
  .archive #content-in.wrap,
  .single #content-in.wrap,
  .category #content-in.wrap,
  .tag #content-in.wrap,
  .search #content-in.wrap,
  .author #content-in.wrap,
  .date #content-in.wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/************************************
** TPF AI 固定ページ用 トーン＆マナー
************************************/

/* --- ページヘッダー（参考デザインのFVスタイル） --- */
/* home の .tpfai-hero と同じく、装飾円をビューポート端まで"はみ出し"で見せる。
   そのため overflow は visible にし、はみ出し処理は #content-in 側で body が隠す */
.tpfai-page-header {
  text-align: center;
  padding: 72px 20px 56px;
  margin: 0 0 56px;
  background: transparent;
  border: none;
  position: relative;
  overflow: visible;
}
/* 親側で円が横スクロールを作らないよう body でクリップ */
body { overflow-x: clip; }

/* 右上の有機的シェイプ（ピンク系） */
.tpfai-page-header::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 60% 40% 70% 30% / 40% 50% 60% 70%;
  background: rgba(255,167,167,0.22);
  pointer-events: none;
  z-index: 0;
}
/* 左下の有機的シェイプ（ベージュ・ブルー寄り） */
.tpfai-page-header::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -120px;
  width: 240px;
  height: 240px;
  border-radius: 40% 60% 30% 70% / 50% 40% 70% 60%;
  background: rgba(187,233,255,0.18);
  pointer-events: none;
  z-index: 0;
}
/* SP ははみ出し量を抑える */
@media (max-width: 640px) {
  .tpfai-page-header::before { width: 180px; height: 180px; right: -60px; top: -20px; }
  .tpfai-page-header::after  { width: 140px; height: 140px; left: -50px;  bottom: -30px; }
}
.tpfai-page-header > * { position: relative; z-index: 1; }

/* バッジ（参考デザイン: uppercase tracking-widest） */
.tpfai-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #396b7e;
  background: rgba(57,107,126,0.08);
  border: 1px solid rgba(57,107,126,0.18);
  border-radius: 9999px;
  margin-bottom: 22px;
}
.tpfai-page-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #393834;
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -.02em;
  /* 参考デザインの下線アクセント */
}
/* タイトル下の細いアクセントライン */
.tpfai-page-header h1::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: rgba(150,80,81,0.25);
  border-radius: 9999px;
  margin: 14px auto 0;
}
.tpfai-page-header p {
  font-size: 16px;
  color: #66645f;
  margin: 0 auto;
  max-width: 640px;
  line-height: 1.85;
}
@media (max-width: 768px) {
  .tpfai-page-header { padding: 52px 16px 40px; margin: 0 0 40px; }
  .tpfai-page-header h1 { font-size: 28px; }
  .tpfai-page-header p { font-size: 14px; }
}

/* --- セクション --- */
.tpfai-section {
  max-width: 960px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0;
  margin-bottom: 64px;
  padding: 0 4px;
  box-sizing: border-box;
}
.tpfai-section-alt {
  background: #f7f3ee;
  padding: 52px 32px;
  max-width: 1040px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0;
  margin-bottom: 64px;
  border-radius: 2rem;
  box-sizing: border-box;
}
.tpfai-section-alt > * {
  max-width: 960px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.tpfai-section-alt > .tpfai-section-title { text-align: center; }
.tpfai-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #393834;
  text-align: center;
  margin: 0 0 28px;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: -.01em;
}
.tpfai-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #965051;
  border-radius: 9999px;
}
.tpfai-lead {
  font-size: 16px;
  color: #66645f;
  line-height: 1.85;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.tpfai-section h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #393834;
  margin: 28px 0 12px;
}
.tpfai-section ul:not(.tpfai-price-features):not(.tpfai-check-list):not(.tpfai-step-list) {
  padding-left: 1.2em;
  line-height: 1.9;
  color: #393834;
}
.tpfai-section ul:not(.tpfai-price-features):not(.tpfai-check-list):not(.tpfai-step-list) li {
  margin-bottom: 6px;
}

/* --- ボタン共通 --- */
.tpfai-section-cta {
  text-align: center;
  margin-top: 32px;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.tpfai-section-cta br,
.tpfai-hero-cta br { display: none; }

.tpfai-btn,
.entry-content a.tpfai-btn,
a.tpfai-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  height: 54px !important;
  min-height: 54px;
  padding: 0 32px !important;
  border-radius: 9999px !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  line-height: 1 !important;
  border: 2px solid transparent;
  box-sizing: border-box !important;
  vertical-align: middle;
  margin: 0 !important;
  letter-spacing: .01em;
}
.tpfai-btn-primary,
.entry-content a.tpfai-btn-primary {
  background: #965051 !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(150,80,81,0.28);
  border: 2px solid transparent !important;
}
.tpfai-btn-primary:hover {
  opacity: .88;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(150,80,81,0.34);
}
.tpfai-btn-ghost,
.entry-content a.tpfai-btn-ghost {
  background: #fff !important;
  color: #965051 !important;
  border: 2px solid rgba(150,80,81,0.30) !important;
}
.tpfai-btn-ghost:hover {
  background: rgba(150,80,81,0.05) !important;
  border-color: #965051 !important;
  transform: translateY(-2px);
}
.tpfai-btn-lg { height: 60px !important; font-size: 17px; padding: 0 40px !important; }

.tpfai-section-cta,
.tpfai-hero-cta { align-items: stretch !important; }
.tpfai-section-cta > *,
.tpfai-hero-cta > * { display: inline-flex; align-items: center; }

/* --- チェックリスト --- */
.tpfai-check-list {
  list-style: none !important;
  padding: 0 !important;
  max-width: 720px;
  margin: 0 auto !important;
}
.tpfai-check-list li {
  position: relative;
  padding: 12px 12px 12px 48px;
  margin-bottom: 10px !important;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(150,80,81,0.12);
  line-height: 1.7;
  transition: box-shadow .2s;
}
.tpfai-check-list li:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.tpfai-check-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #965051;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- 手順リスト --- */
.tpfai-step-list {
  list-style: none !important;
  counter-reset: step;
  padding: 0 !important;
  max-width: 720px;
  margin: 0 auto !important;
}
.tpfai-step-list li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 68px;
  margin-bottom: 12px !important;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(150,80,81,0.12);
  line-height: 1.8;
  transition: box-shadow .2s;
}
.tpfai-step-list li:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.tpfai-step-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #965051;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(150,80,81,0.28);
}
.tpfai-step-list li strong { color: #393834; }

/* --- フロー (flow.md) --- */
.tpfai-flow-list {
  list-style: none !important;
  counter-reset: flow;
  padding: 0 !important;
  max-width: 800px;
  margin: 0 auto !important;
}
.tpfai-flow-list li {
  display: flex;
  gap: 20px;
  padding: 22px;
  margin-bottom: 14px !important;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(150,80,81,0.10);
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
  transition: transform .2s, box-shadow .2s;
}
.tpfai-flow-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.tpfai-flow-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  background: rgba(150,80,81,0.10);
  color: #965051;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tpfai-flow-list h3 {
  margin: 2px 0 6px !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px !important;
  color: #393834;
}
.tpfai-flow-list p {
  margin: 0;
  color: #66645f;
  line-height: 1.75;
  font-size: 14px;
}
@media (max-width: 560px) {
  .tpfai-flow-list li { padding: 16px; gap: 14px; }
  .tpfai-flow-num { width: 40px; height: 40px; font-size: 16px; }
}

/* --- 特徴カード (books-intro / guide) --- */
.tpfai-feature-grid,
.entry-content .tpfai-feature-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}
.tpfai-feature-card {
  background: #fff;
  padding: 28px 22px;
  border-radius: 1.5rem;
  border: 1px solid rgba(150,80,81,0.10);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.tpfai-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.tpfai-feature-icon { font-size: 34px; margin-bottom: 12px; }
.tpfai-feature-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px !important;
  font-weight: 800;
  color: #393834;
  margin: 0 0 8px !important;
}
.tpfai-feature-card p {
  font-size: 13px;
  color: #66645f;
  line-height: 1.7;
  margin: 0;
}

/* --- 事例カード (cases) --- */
.tpfai-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .tpfai-case-grid { grid-template-columns: 1fr; }
}
.tpfai-case-card {
  background: #fff;
  padding: 26px;
  border-radius: 1.5rem;
  border: 1px solid rgba(150,80,81,0.10);
  border-top: 4px solid #965051;
  transition: transform .2s, box-shadow .2s;
}
.tpfai-case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.tpfai-case-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px !important;
  margin: 0 0 14px !important;
  color: #393834;
}
.tpfai-case-card ul { list-style: none !important; padding: 0 !important; }
.tpfai-case-card li {
  position: relative;
  padding-left: 20px;
  line-height: 1.7;
  font-size: 14px;
  color: #66645f;
  margin-bottom: 6px !important;
}
.tpfai-case-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #965051;
  font-weight: 900;
}
.tpfai-case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(150,80,81,0.08);
  color: #965051;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}
.tpfai-case-result {
  background: rgba(150,80,81,0.05);
  border-left: 3px solid #965051;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 10px 14px !important;
  margin: 14px 0 !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  color: #393834 !important;
}
.tpfai-case-result strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #66645f;
  margin-bottom: 4px;
}

/* --- 診断ページ: ヘッダー・フッター非表示 --- */
.page-id-231 #header-container,
.page-id-231 #footer { display: none !important; }

/* --- AI診断ツール (diagnosis) --- */
.tpfai-diagnosis {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(150,80,81,0.12);
  border-radius: 2rem;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.tpfai-diagnosis-progress {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #965051;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  margin-bottom: 24px;
}
.tpfai-diagnosis-q h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  margin: 0 0 20px;
  text-align: center;
  color: #393834;
}
.tpfai-diagnosis .tpfai-diagnosis-opt {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: left !important;
  background: #fdf9f4 !important;
  border: 1px solid rgba(150,80,81,0.12) !important;
  border-radius: 1rem !important;
  padding: 14px 18px !important;
  margin: 0 0 10px !important;
  font-size: 15px !important;
  font-family: 'Be Vietnam Pro', sans-serif !important;
  line-height: 1.5 !important;
  color: #393834 !important;
  cursor: pointer !important;
  user-select: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.tpfai-diagnosis .tpfai-diagnosis-opt:hover {
  background: rgba(150,80,81,0.07) !important;
  border-color: #965051 !important;
  transform: translateY(-1px);
}
.tpfai-diagnosis .tpfai-diagnosis-opt:active {
  transform: translateY(0);
  background: rgba(150,80,81,0.12) !important;
}
.tpfai-diagnosis-result h2 {
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  color: #66645f;
  margin-bottom: 12px;
}
.tpfai-diagnosis-result h3 {
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  color: #393834;
  margin: 0 0 16px;
}
.tpfai-diagnosis-result p { font-size: 15px; line-height: 1.7; color: #393834; }
.tpfai-diagnosis-result a { color: #965051; text-decoration: underline; }

/* --- サービスブロック (services) --- */
.tpfai-service-block {
  background: #fff;
  padding: 36px;
  border-radius: 2rem;
  border: 1px solid rgba(150,80,81,0.10);
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  position: relative;
  max-width: 860px;
  margin: 0 auto 32px;
  transition: box-shadow .2s;
}
.tpfai-service-block:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); }
.tpfai-service-num {
  display: inline-block;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: #965051;
  background: rgba(150,80,81,0.08);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
}
.tpfai-service-block h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px !important;
  margin: 0 0 12px !important;
  color: #393834;
  font-weight: 900;
}
.tpfai-service-block .tpfai-lead { text-align: left; margin: 0 0 20px; }
@media (max-width: 560px) {
  .tpfai-service-block { padding: 24px 20px; }
  .tpfai-service-block h2 { font-size: 22px !important; }
}

/* --- 料金カード (pricing) --- */
.tpfai-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.tpfai-price-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: 2rem;
  border: 1.5px solid rgba(150,80,81,0.12);
  text-align: center;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.tpfai-price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,.10);
}
.tpfai-price-card-popular {
  border-color: #965051;
  box-shadow: 0 8px 28px rgba(150,80,81,0.16);
}
.tpfai-price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #965051;
  color: #fff;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 18px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(150,80,81,0.30);
  letter-spacing: 1px;
  white-space: nowrap;
}
.tpfai-price-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px !important;
  margin: 0 0 16px !important;
  color: #393834;
}
.tpfai-price-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #393834;
  margin: 0 0 6px;
  line-height: 1;
}
.tpfai-price-amount span {
  font-size: 14px;
  color: #66645f;
  font-weight: 500;
  margin-left: 4px;
}
.tpfai-price-desc { font-size: 13px; color: #66645f; margin: 0 0 24px; line-height: 1.6; }
.tpfai-price-features {
  list-style: none !important;
  padding: 0 0 20px !important;
  margin: 0 0 20px !important;
  border-bottom: 1px dashed rgba(150,80,81,0.15);
  text-align: left;
}
.tpfai-price-features li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 13.5px;
  color: #393834;
  line-height: 1.6;
}
.tpfai-price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  color: #965051;
  font-weight: 900;
}

/* --- contact ボックス --- */
.tpfai-contact-box {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  padding: 36px;
  border-radius: 2rem;
  border: 1.5px solid rgba(150,80,81,0.12);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.tpfai-contact-label {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #965051;
  margin: 0 0 10px;
}
.tpfai-contact-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px !important;
  font-weight: 800;
  margin: 0 0 10px !important;
}
.tpfai-contact-value a { color: #965051 !important; text-decoration: none !important; }
.tpfai-contact-value a:hover { text-decoration: underline !important; }
.tpfai-contact-note { font-size: 12px; color: #66645f; margin: 0; }

/* --- FAQ --- */
.tpfai-faq { max-width: 720px; margin: 0 auto; }
.tpfai-faq details {
  background: #fff;
  border: 1px solid rgba(150,80,81,0.12);
  border-radius: 1rem;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.tpfai-faq details:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.tpfai-faq summary {
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  padding: 18px 48px 18px 20px;
  color: #393834;
  position: relative;
  list-style: none;
}
.tpfai-faq summary::-webkit-details-marker { display: none; }
.tpfai-faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(150,80,81,0.08);
  color: #965051;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.tpfai-faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}
.tpfai-faq p { padding: 0 20px 20px; margin: 0; color: #66645f; line-height: 1.85; }

/* --- 書籍紹介CTAボックス (books-intro) --- */
.tpfai-book-cta-box {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(150,80,81,0.06) 0%, #fffbff 100%);
  padding: 40px 32px;
  border-radius: 2rem;
  border: 1.5px solid rgba(150,80,81,0.20);
  text-align: center;
  box-shadow: 0 8px 24px rgba(150,80,81,0.10);
}
.tpfai-book-cta-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #393834;
  margin: 0 0 6px !important;
}
.tpfai-book-cta-sub { font-size: 13px; color: #66645f; margin: 0 0 18px !important; }
.tpfai-book-cta-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 8px 18px;
  background: #fff;
  border: 1.5px solid rgba(150,80,81,0.20);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: #965051;
}
.tpfai-book-cta-price::before {
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #965051;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tpfai-book-cta-price strong { color: #965051; font-weight: 900; }

/* --- 表組み (about 等) --- */
.no-sidebar .entry-content table {
  border-collapse: collapse;
  margin: 0 auto;
  max-width: 720px;
}
.no-sidebar .entry-content table th,
.no-sidebar .entry-content table td {
  padding: 13px 18px;
  border: 1px solid rgba(150,80,81,0.12);
  font-size: 14px;
}
.no-sidebar .entry-content table th {
  background: rgba(150,80,81,0.06);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #965051;
  text-align: left;
}

/************************************
** レスポンシブ
************************************/
@media screen and (max-width: 1023px) { /* 必要なら追記 */ }
@media screen and (max-width: 834px)  { /* 必要なら追記 */ }
@media screen and (max-width: 480px)  { /* 必要なら追記 */ }

/************************************
** ホーム（トップページ）用スタイル
************************************/

/* body 背景 */
body {
  background-color: #fdf9f4;
}
.bg-mesh {
  background:
    radial-gradient(at 0% 0%, #fdf9f4 0%, transparent 50%),
    radial-gradient(at 100% 0%, rgba(150,80,81,0.06) 0%, transparent 50%),
    radial-gradient(at 50% 100%, rgba(57,107,126,0.05) 0%, transparent 50%);
}

/* --- ヒーローセクション --- */
.tpfai-hero {
  max-width: 1000px;
  margin: 0 auto 64px;
  padding: 80px 24px 72px;
  text-align: center;
  /* ページ背景(#fdf9f4)と同じ色系でシームレスに繋ぐ */
  background: transparent;
  border-radius: 0;
  position: relative;
  overflow: visible;
}
/* 有機的装飾シェイプ（右上） */
.tpfai-hero::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 60% 40% 70% 30% / 40% 50% 60% 70%;
  background: rgba(150,80,81,0.07);
  pointer-events: none;
  z-index: 0;
}
/* 有機的装飾シェイプ（左下） */
.tpfai-hero::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -60px;
  width: 200px;
  height: 200px;
  border-radius: 40% 60% 30% 70% / 50% 40% 70% 60%;
  background: rgba(57,107,126,0.06);
  pointer-events: none;
  z-index: 0;
}
.tpfai-hero > * { position: relative; z-index: 1; }
.tpfai-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(57,107,126,0.10);
  color: #396b7e;
  border: 1px solid rgba(57,107,126,0.20);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.tpfai-hero-title,
.page .entry-content .tpfai-hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 48px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  color: #393834 !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  text-align: center !important;
  letter-spacing: -.02em !important;
}
.tpfai-hero-accent {
  color: #965051;
  position: relative;
}
.tpfai-hero-sub {
  font-size: 17px;
  color: #66645f;
  line-height: 1.85;
  margin: 0 auto 36px;
  max-width: 640px;
}
.tpfai-hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tpfai-hero-cta br { display: none; }
.tpfai-hero-note {
  font-size: 13px;
  color: #66645f;
  margin: 0;
  letter-spacing: .02em;
}
@media (max-width: 768px) {
  .tpfai-hero { padding: 52px 20px 48px; }
  .tpfai-hero-title,
  .page .entry-content .tpfai-hero-title { font-size: 30px !important; }
  .tpfai-hero-sub { font-size: 15px; }
}

/* --- 課題・理由グリッド --- */
.tpfai-problem-grid,
.tpfai-reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.tpfai-problem-card,
.tpfai-reason-card {
  background: #fff;
  padding: 32px 26px;
  border-radius: 1.5rem;
  border: 1px solid rgba(150,80,81,0.10);
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.tpfai-problem-card:hover,
.tpfai-reason-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
/* --- Material Symbols 設定（細め・有機的） --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  font-size: 24px;
  line-height: 1;
  display: inline-block;
}

/* --- アイコン円形（有機的シェイプ・柔らかい配色） --- */
.tpfai-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 60% 40% 70% 30% / 40% 50% 60% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform .5s ease;
  flex-shrink: 0;
}
.tpfai-problem-card:hover .tpfai-icon-circle {
  transform: scale(1.06) rotate(3deg);
}
.tpfai-icon-circle--primary {
  background: rgba(255,167,167,0.25); /* primary-container の柔らか版 */
  color: #965051;
}
.tpfai-icon-circle--secondary {
  background: rgba(187,233,255,0.35); /* secondary-container の柔らか版 */
  color: #396b7e;
  border-radius: 40% 60% 30% 70% / 50% 40% 70% 60%;
}
.tpfai-icon-circle--tertiary {
  background: rgba(249,219,125,0.30); /* tertiary-container の柔らか版 */
  color: #78620e;
  border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
}

/* --- サービスカード アイコン（丸みを帯びた正方形・温かみ） --- */
.tpfai-service-icon {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  background: rgba(255,167,167,0.20);
  color: #965051;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform .4s ease, background .3s ease;
}
.tpfai-service-card:hover .tpfai-service-icon {
  background: rgba(255,167,167,0.35);
  transform: rotate(-4deg) scale(1.05);
}

.tpfai-problem-icon { font-size: 34px; margin-bottom: 14px; }
.tpfai-reason-num {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #965051;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.page .entry-content .tpfai-problem-card h3,
.page .entry-content .tpfai-reason-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #393834 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
.tpfai-problem-card p,
.tpfai-reason-card p {
  font-size: 14px;
  color: #66645f;
  line-height: 1.85;
  margin: 0;
}

/* --- サービスカードグリッド --- */
.tpfai-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.tpfai-service-card {
  display: block;
  background: #fff;
  padding: 30px 26px;
  border-radius: 1.5rem;
  border: 1px solid rgba(150,80,81,0.10);
  text-decoration: none !important;
  color: #393834 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tpfai-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.09);
  border-color: rgba(150,80,81,0.30);
}
.page .entry-content .tpfai-service-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #393834 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
.tpfai-service-card p {
  font-size: 14px;
  color: #66645f;
  line-height: 1.8;
  margin: 0 0 12px;
}
.tpfai-service-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #965051;
}
/* 「詳しく見る →」はHTML側で .tpfai-service-more として出力するため ::after は不要 */
.tpfai-service-card::after { display: none !important; content: none !important; }

/* --- 空要素の非表示 --- */
.entry-content .tpfai-hero p:empty,
.entry-content .tpfai-problem-card p:empty,
.entry-content .tpfai-reason-card p:empty,
.entry-content .tpfai-service-card p:empty,
.entry-content .tpfai-problem-grid > p:empty,
.entry-content .tpfai-reason-grid > p:empty,
.entry-content .tpfai-service-grid > p,
.entry-content .tpfai-problem-grid > p,
.entry-content .tpfai-reason-grid > p,
.entry-content .tpfai-feature-grid > p { display: none !important; }

/* --- home・固定ページ Cocoon 標準 UI 非表示 --- */
.home .entry-title,
.home .article-header,
.home .date-tags,
.home .post-info,
.home .entry-meta,
.home .breadcrumb,
.home .sns-share,
.home .eye-catch-wrap,
.page .sns-share,
.page .eye-catch-wrap,
.page .toc,
.home .toc { display: none !important; }

/* --- home の h1〜h6 リセット --- */
.home .entry-content h1,
.home .entry-content h2,
.home .entry-content h3,
.home .entry-content h4,
.home .entry-content h5,
.home .entry-content h6 {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #393834;
  line-height: 1.4;
}
.home .entry-content .tpfai-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #393834 !important;
  text-align: center !important;
  margin: 0 auto 28px !important;
  padding: 0 0 14px !important;
  position: relative;
  background: transparent !important;
  border: none !important;
  line-height: 1.4;
  display: block;
  width: 100%;
  max-width: 960px;
  box-sizing: border-box;
}
.home .entry-content .tpfai-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #965051;
  border-radius: 9999px;
}
.tpfai-section-lead {
  text-align: center;
  color: #66645f;
  font-size: 15px;
  line-height: 1.85;
  margin: 0 auto 28px;
  max-width: 680px;
}

/* --- プロフィール (about) --- */
.tpfai-profile {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2rem;
  border: 1px solid rgba(150,80,81,0.10);
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.tpfai-profile-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #393834;
  margin: 0 0 14px;
}
.tpfai-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 0 !important;
}
.tpfai-profile-tags li {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(150,80,81,0.08);
  color: #965051;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0 !important;
}

/* --- メンバー一覧 (members) --- */
.tpfai-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .tpfai-member-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}
.tpfai-member-card {
  background: #fff;
  border: 1px solid rgba(150,80,81,0.10);
  border-radius: 2rem;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.tpfai-member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(150,80,81,.10);
}
.tpfai-member-photo {
  width: 140px;
  height: 140px;
  border-radius: 9999px;
  overflow: hidden;
  margin: 0 auto 20px;
  background: #f7f3ee;
  border: 3px solid rgba(150,80,81,0.12);
  flex-shrink: 0;
}
.tpfai-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tpfai-member-photo--lg {
  width: 180px;
  height: 180px;
}
.page .entry-content .tpfai-member-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #393834;
  margin: 0 0 10px;
  line-height: 1.4;
}
.tpfai-member-kana {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #82807b;
  letter-spacing: .08em;
  margin-top: 4px;
}
.tpfai-member-intro {
  color: #66645f;
  font-size: 14.5px;
  line-height: 1.8;
  margin: 0 0 20px;
  flex-grow: 1;
}
.tpfai-member-cta {
  margin: 8px 0 0 !important;
}
.tpfai-member-head {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.tpfai-member-head .tpfai-member-body {
  flex: 1;
  min-width: 240px;
  text-align: left;
}
.tpfai-member-head .tpfai-member-photo {
  margin: 0;
}
@media (max-width: 640px) {
  .tpfai-member-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .tpfai-member-head .tpfai-member-body {
    text-align: center;
  }
}

/* --- メンバー詳細ページ SP 最適化 --- */
@media (max-width: 640px) {
  /* Cocoon由来の左右paddingを殺してSPは横いっぱい使う */
  .page #main,
  .page .main,
  .page #content,
  .page .entry-content { padding-left: 0 !important; padding-right: 0 !important; }
  .page #content-in { padding-left: 0 !important; padding-right: 0 !important; }
  .tpfai-section { padding: 0 12px; margin-bottom: 40px; }
  .tpfai-section-alt { padding: 32px 16px; margin: 0 12px 40px; border-radius: 1.25rem; max-width: none; }
  .tpfai-profile { padding: 22px 18px; border-radius: 1.25rem; max-width: none; }
  .tpfai-member-card { padding: 26px 20px; border-radius: 1.25rem; }
  .tpfai-member-photo--lg { width: 140px; height: 140px; }
  .tpfai-member-intro { font-size: 14px; }
  .page .entry-content .tpfai-member-name { font-size: 20px; }
  .tpfai-section-title { font-size: 22px; margin-bottom: 20px; }
  .tpfai-lead { font-size: 14.5px; }
  .tpfai-profile-tags { justify-content: center; }
  .tpfai-btn, .entry-content a.tpfai-btn, a.tpfai-btn {
    height: 48px !important;
    min-height: 48px;
    padding: 0 22px !important;
    font-size: 14px;
  }
  .tpfai-section-cta { flex-direction: column; gap: 10px; align-items: center !important; }
  .tpfai-section-cta .tpfai-btn { width: 100%; max-width: 320px; margin-left: auto !important; margin-right: auto !important; }
  /* 追従CTA 重なり回避 */
  body.tpfai-has-sticky-cta #content-in { padding-bottom: 96px; }
}

/* --- tpfai-table (メンバー経歴テーブル) --- */
.tpfai-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(150,80,81,0.10);
  margin: 0 auto;
  max-width: 760px;
  font-size: 15px;
  color: #393834;
}
.tpfai-table th,
.tpfai-table td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
  border-bottom: 1px solid rgba(150,80,81,0.08);
}
.tpfai-table tr:last-child th,
.tpfai-table tr:last-child td { border-bottom: none; }
.tpfai-table th {
  width: 96px;
  background: #f7f3ee;
  font-weight: 700;
  color: #965051;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .tpfai-table { font-size: 14px; border-radius: .75rem; }
  .tpfai-table th,
  .tpfai-table td { padding: 10px 12px; line-height: 1.7; }
  .tpfai-table th { width: 72px; font-size: 13px; }
}

/* --- 追従CTAバー (SPのみ表示) --- */
.tpfai-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-top: 1px solid rgba(150,80,81,0.15);
  box-shadow: 0 -6px 20px rgba(0,0,0,.06);
}
.tpfai-sticky-cta-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}
.tpfai-sticky-cta .tpfai-btn {
  flex: 1;
  height: 46px !important;
  min-height: 46px;
  padding: 0 14px !important;
  font-size: 14px;
}
@media (max-width: 640px) {
  .tpfai-sticky-cta { display: block; }
}

/* --- ブログ・アーカイブのカラムレイアウト (メイン左 / サイドバー右) --- */
/* ブログ一覧(/blog/)は home.php が独自レイアウトを持つためグリッドから除外 */
.archive #content-in.wrap,
.single #content-in.wrap,
.category #content-in.wrap,
.tag #content-in.wrap,
.search #content-in.wrap,
.author #content-in.wrap,
.date #content-in.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}
.archive #main, .archive .main,
.single #main, .single .main,
.category #main, .category .main,
.tag #main, .tag .main,
.search #main, .search .main,
.author #main, .author .main,
.date #main, .date .main {
  min-width: 0;
  width: auto !important;
}
/* サイドバーのカスタムウィジェット */
.tpfai-sw {
  background: rgba(255,255,255,0.6);
  border-radius: 1rem;
  border: 1px solid rgba(188,185,179,0.30);
  padding: 20px;
  margin-bottom: 14px;
}
.tpfai-sw-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  color: #66645f !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(150,80,81,0.08) !important;
  padding: 0 0 8px !important;
  margin: 0 0 12px !important;
  text-transform: uppercase !important;
}
/* CTA */
.tpfai-sw-cta {
  background: linear-gradient(135deg, #965051 0%, #b06060 100%);
  border: none;
  text-align: center;
}
/* サイドバー全体を sticky コンテナにして追従させる */
@media (min-width: 961px) {
  #sidebar.sidebar,
  .sidebar {
    position: sticky !important;
    top: 24px !important;
    align-self: flex-start !important;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
}
.tpfai-sw-cta-lead {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 12px;
  line-height: 1.7;
}
.tpfai-sw-cta-btn {
  display: block;
  background: #fff;
  color: #965051 !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 10px 12px;
  text-decoration: none !important;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}
.tpfai-sw-cta-btn:hover { opacity: 0.85; }
.tpfai-sw-cta-note {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}
/* タクソノミーリスト */
.tpfai-sw-term-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.tpfai-sw-term-list li {
  margin: 0 !important;
  padding: 0 !important;
}
.tpfai-sw-term-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #3d3b38 !important;
  text-decoration: none !important;
  padding: 5px 0;
  border-bottom: 1px solid rgba(188,185,179,0.20);
  transition: color 0.2s;
}
.tpfai-sw-term-list li:last-child a { border-bottom: none; }
.tpfai-sw-term-list a:hover { color: #965051 !important; }
.tpfai-sw-count {
  font-size: 11px;
  color: #aaa;
}
/* 現在表示中のタームを強調 */
.tpfai-sw-current > a {
  color: #965051 !important;
  font-weight: 700;
}
/* 最近の記事リスト */
.tpfai-sw-recent-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.tpfai-sw-recent-list li {
  margin: 0 !important;
  padding: 0 !important;
}
.tpfai-sw-recent-list a {
  display: block;
  font-size: 13px;
  color: #3d3b38 !important;
  text-decoration: none !important;
  padding: 5px 0;
  border-bottom: 1px solid rgba(188,185,179,0.20);
  line-height: 1.5;
  transition: color 0.2s;
}
.tpfai-sw-recent-list li:last-child a { border-bottom: none; }
.tpfai-sw-recent-list a:hover { color: #965051 !important; }

@media (max-width: 960px) {
  .blog #content-in.wrap,
  .archive #content-in.wrap,
  .single #content-in.wrap,
  .category #content-in.wrap,
  .tag #content-in.wrap,
  .search #content-in.wrap,
  .author #content-in.wrap,
  .date #content-in.wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- ブログ・アーカイブ (#main 白ブロック修正) --- */
.home #main, .home .main,
.page #main, .page .main,
.archive #main, .archive .main,
.singular #main, .singular .main,
.search #main, .search .main,
.error404 #main, .error404 .main,
.blog #main, .blog .main {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* ウィジェットエリア（サイドバー）— ページ背景に馴染む薄いスタイル */
#sidebar .widget,
.sidebar .widget {
  background: rgba(255,255,255,0.6) !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(188,185,179,0.30) !important;
  box-shadow: none !important;
  padding: 20px !important;
  margin-bottom: 14px !important;
}
#sidebar .widget h2,
#sidebar .widget .widget-title,
.sidebar .widget h2,
.sidebar .widget .widget-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  color: #66645f !important;
  background: transparent !important;
  border: none !important;
  padding: 0 0 8px !important;
  margin: 0 0 8px !important;
  border-bottom: 1px solid rgba(150,80,81,0.08) !important;
  text-transform: uppercase !important;
}
/* 検索ボタン */
#sidebar .search-submit,
.sidebar .search-submit {
  background: #965051 !important;
  border-color: #965051 !important;
  border-radius: 0.5rem !important;
  color: #fff !important;
}

/* ブログ記事カード */
.article-type-post .article,
.article-list .article {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid rgba(150,80,81,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.article-type-post .article:hover,
.article-list .article:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

/* --- フッター --- */
#footer {
  background: #f7f3ee;
  border-top: none;
}
#footer-widget-area,
#footer-bottom { background: transparent; }
#footer a { color: #66645f; }
#footer a:hover { color: #965051; }

/* --- 有機的な装飾シェイプ（デザイン_共有より） --- */
.organic-shape-1 { border-radius: 60% 40% 70% 30% / 40% 50% 60% 70%; }
.organic-shape-2 { border-radius: 40% 60% 30% 70% / 50% 40% 70% 60%; }
.organic-shape-3 { border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%; }

/************************************
** サイトマップページ
************************************/
.tpfai-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}
.tpfai-sitemap-col {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(150,80,81,0.10);
  border-radius: 1rem;
  padding: 24px 22px;
}
.tpfai-sitemap-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #965051;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(150,80,81,0.15);
}
.tpfai-sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tpfai-sitemap-list li { margin: 0 0 8px; }
.tpfai-sitemap-list a {
  color: #393834;
  text-decoration: none;
  font-size: 14.5px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.tpfai-sitemap-list a:hover {
  color: #965051;
  border-bottom-color: rgba(150,80,81,0.3);
}
.tpfai-sitemap-machine {
  max-width: 1080px;
  margin: 32px auto 0;
  padding: 16px 20px;
  background: rgba(57,107,126,0.04);
  border: 1px dashed rgba(57,107,126,0.25);
  border-radius: .75rem;
  text-align: center;
}
.tpfai-sitemap-note {
  font-size: 13px;
  color: #66645f;
  margin: 0;
}
.tpfai-sitemap-note a {
  color: #396b7e;
  text-decoration: underline;
}
@media (max-width: 960px) {
  .tpfai-sitemap-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
  .tpfai-sitemap-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   ブログ一覧ページ（/blog/）— 左サイドナビ＋右カードリスト
   =================================================== */

/* 全体レイアウト */
/* ===== ブログ一覧 ===== */
.tpfai-bi-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

/* フィルターバー */
.tpfai-bi-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.tpfai-bi-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tpfai-bi-filter-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #965051;
  white-space: nowrap;
  min-width: 2.5em;
}
.tpfai-bi-filter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.tpfai-bi-filter-scroll::-webkit-scrollbar { display: none; }

/* ピルボタン */
.tpfai-pill {
  flex-shrink: 0;
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid rgba(188,185,179,0.5);
  background: #fff;
  font-size: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #66645f;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.tpfai-pill:hover {
  background: rgba(150,80,81,0.06);
  border-color: rgba(150,80,81,0.3);
  color: #965051;
}
.tpfai-pill.active {
  background: #965051;
  border-color: #965051;
  color: #fff;
  font-weight: 700;
}

/* 件数 */
.tpfai-bi-count {
  font-size: 12px;
  color: #aaa;
  margin: 0 0 14px;
}

/* カードグリッド */
.tpfai-bi-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* カード */
.tpfai-bi-card {
  background: #fff;
  border-radius: 0.875rem;
  border: 1px solid rgba(188,185,179,0.25);
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s;
}
.tpfai-bi-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.tpfai-bi-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  height: 100%;
}
.tpfai-bi-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f0eeeb;
  overflow: hidden;
}
.tpfai-bi-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tpfai-bi-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #ccc;
  letter-spacing: 0.05em;
}
.tpfai-bi-card-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tpfai-bi-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tpfai-bi-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  line-height: 1.6;
  white-space: nowrap;
}
.tpfai-bi-tag-ind {
  background: rgba(150,80,81,0.10);
  color: #965051;
}
.tpfai-bi-tag-iss {
  background: rgba(88,88,160,0.10);
  color: #5858a0;
}
.tpfai-bi-card-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: #1a1916 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tpfai-bi-card-excerpt {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tpfai-bi-card-date {
  font-size: 11px;
  color: #bbb;
  margin: 0;
}

/* 0件 */
.tpfai-bi-empty {
  text-align: center;
  color: #aaa;
  padding: 64px 0;
  font-size: 14px;
}

/* タブレット: 2列 */
@media (max-width: 860px) {
  .tpfai-bi-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* スマホ: 1列 */
@media (max-width: 560px) {
  .tpfai-bi-wrap { padding: 20px 12px 60px; }
  .tpfai-bi-cards { grid-template-columns: 1fr; gap: 10px; }
  .tpfai-bi-card-title { font-size: 13px !important; }
}

/* ===== 記事内テーブル横スクロール ===== */
.tpfai-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
}
.tpfai-table-wrap table {
  margin: 0 !important;
  width: auto;
  min-width: 560px;
  table-layout: auto;
}
.tpfai-table-wrap table th,
.tpfai-table-wrap table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  vertical-align: top;
  padding: 8px 12px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

/* ===== 著者吹き出し（ひとこと）===== */
.tpfai-hitokoto {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 2em 0;
  padding: 20px;
  background: #fdf9f4;
  border: 1px solid #e8e0d8;
  border-radius: 12px;
}
.tpfai-hitokoto-icon {
  flex-shrink: 0;
}
.tpfai-hitokoto-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.tpfai-hitokoto-avatar--noimg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #965051;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}
.tpfai-hitokoto-bubble {
  flex: 1;
  min-width: 0;
  position: relative;
}
.tpfai-hitokoto-bubble::before {
  content: '';
  position: absolute;
  top: 12px;
  left: -10px;
  border: 6px solid transparent;
  border-right-color: #e8e0d8;
}
.tpfai-hitokoto-bubble::after {
  content: '';
  position: absolute;
  top: 12px;
  left: -8px;
  border: 6px solid transparent;
  border-right-color: #fdf9f4;
}
.tpfai-hitokoto-name {
  font-size: 13px !important;
  font-weight: 700;
  color: #965051;
  margin: 0 0 8px !important;
  padding: 0 !important;
}
.tpfai-hitokoto-body {
  font-size: 14px;
  line-height: 1.7;
  color: #3a3028;
}
.tpfai-hitokoto-body br { display: none; }
.tpfai-hitokoto-body a {
  color: #965051;
  font-weight: 600;
  text-decoration: underline;
}

/* ===== カスタム著者ボックス ===== */
.tpfai-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 3em 0 1.5em;
  padding: 24px;
  background: #fdf9f4;
  border: 1px solid #e8e0d8;
  border-radius: 12px;
}
.tpfai-ab-photo-wrap {
  flex-shrink: 0;
}
.tpfai-ab-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.tpfai-ab-photo--noimg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e8e0d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #965051;
}
.tpfai-ab-body {
  flex: 1;
  min-width: 0;
}
.tpfai-ab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.tpfai-ab-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tpfai-ab-role {
  font-size: 12px;
  color: #7a6e68;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.tpfai-ab-name {
  font-size: 17px;
  font-weight: 700;
  color: #1c1c19;
  line-height: 1.3;
}
.tpfai-ab-sns {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a6e68;
  transition: color 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}
.tpfai-ab-sns:hover { color: #1c1c19; }
.tpfai-ab-bio {
  font-size: 14px;
  line-height: 1.8;
  color: #3a3028;
  margin: 0 0 12px;
}
.tpfai-ab-profile-link {
  display: inline-block;
  font-size: 13px;
  color: #965051;
  font-weight: 600;
  text-decoration: underline;
}
.tpfai-ab-profile-link:hover { opacity: 0.75; }

@media (max-width: 599px) {
  .tpfai-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
  }
  .tpfai-ab-header {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .tpfai-ab-sns {
    position: absolute;
    top: 16px;
    right: 16px;
  }
  .tpfai-author-box { position: relative; }
}
